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
NULL

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

query I rowsort
SELECT col2 * + ( - - col1 ) AS col2 FROM tab2
----
1173
3080
3886

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

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

query II rowsort
SELECT DISTINCT - col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # DIV for integer division: 
query II rowsort label-5715
SELECT + col1 AS col1, - 95 DIV - + col0 AS col2 FROM tab0
----
1
0
21
1
81
6

skipif mysql # not compatible
query II rowsort label-5715
SELECT + col1 AS col1, - 95 / - + col0 AS col2 FROM tab0
----
1
0
21
1
81
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT + - col1 / - ( col0 ) - + - col0 + - 56 * + CAST( NULL AS SIGNED ) / + + col2 * - 62 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT + - col1 / - ( col0 ) - + - col0 + - 56 * + CAST ( NULL AS INTEGER ) / + + col2 * - 62 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 * - col2 + + + 82 FROM tab0
----
-623
-788
-9521

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) * - 20 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) * - 20 FROM tab2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5721
SELECT ALL - col2 + - + col1 AS col2, + CAST( NULL AS SIGNED ) / col1 * - 76 / + + col0 - + 48 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL - col2 + - + col1 AS col2, + CAST ( NULL AS INTEGER ) / col1 * - 76 / + + col0 - + 48 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT ALL + ( COUNT ( * ) ) * 92 col2 FROM tab0 AS cor0
----
276

query I rowsort
SELECT DISTINCT - - col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - - 86 AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + col1 / + - 94 FROM tab2 AS cor0 WHERE - col1 * ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT - SUM( - + col1 ) DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5728
SELECT - SUM ( - + col1 ) / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT col1 * + + ( - - col0 ) - CAST( ( 25 ) AS SIGNED ), col0 AS col2 FROM tab1
----
400
85
4252
91
689
51

skipif mysql # not compatible
query II rowsort label-5729
SELECT col1 * + + ( - - col0 ) - CAST ( ( 25 ) AS INTEGER ), col0 AS col2 FROM tab1
----
400
85
4252
91
689
51

query I rowsort
SELECT col1 + - 38 AS col1 FROM tab1
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT SUM( + - 41 ) + 33 AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT SUM ( + - 41 ) + 33 AS col1 FROM tab2
----
-90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - + 41 + col2 + - + col1 col1, + ( col0 ) AS col1 FROM tab0
----
-31
87
58
97
6
15

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

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

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

query I rowsort
SELECT ALL + - 77 / + 26 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND - 41 / + - col0 + - 77 - - 36
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5738
SELECT ALL - - 18 col1, MIN( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5738
SELECT ALL - - 18 col1, MIN ( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

query I rowsort
SELECT ALL - col1 * + 28 AS col1 FROM tab1 WHERE NOT 69 + - 84 IN ( col1 )
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + 6 col1 FROM tab1
----
91
91
91

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col2 )
----
51
85
91

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

query I rowsort
SELECT 10 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
10
10
10

query I rowsort
SELECT - col0 * ( - col0 ) - col2 FROM tab2
----
2093
4056
5567

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 12 AS col2 FROM tab0
----
-3
-75
-85

query I rowsort
SELECT DISTINCT col2 + - col0 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 + + 45 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND 28 * col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - SUM ( col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT MAX( DISTINCT col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5753
SELECT MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN + 47 AND ( col2 * 12 )
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT CAST( ( + ( + col1 ) ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5756
SELECT CAST ( ( + ( + col1 ) ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 28 * - col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT CAST( 89 AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-5760
SELECT CAST ( 89 AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
-267

query I rowsort
SELECT 20 * + col1 FROM tab0
----
1620
20
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT DISTINCT COUNT( * ) / - SUM( ALL CAST( NULL AS SIGNED ) ) - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) * col0 ) BETWEEN col0 * 81 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT COUNT ( * ) / - SUM ( ALL CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) * col0 ) BETWEEN col0 * 81 AND NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + 4 + col1 FROM tab0
----
25
5
85

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

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

query I rowsort
SELECT 63 AS col2 FROM tab1 WHERE col2 * - col0 + + 14 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL COUNT( * ) - + 67 AS col0 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL COUNT ( * ) - + 67 AS col0 FROM tab2 AS cor0
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT COUNT( * ) * 35 + 62 FROM tab0 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-5770
SELECT COUNT ( * ) * 35 + 62 FROM tab0 AS cor0
----
167

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

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

query I rowsort
SELECT ALL 33 * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 76 + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT col1 DIV + 71 + 96 FROM tab0 AS cor0
----
96
96
97

skipif mysql # not compatible
query I rowsort label-5773
SELECT col1 / + 71 + 96 FROM tab0 AS cor0
----
96
96
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT - col1 DIV - col0 + + 43 * + 93 AS col0 FROM tab1 AS cor0
----
3999
3999
3999

skipif mysql # not compatible
query I rowsort label-5775
SELECT - col1 / - col0 + + 43 * + 93 AS col0 FROM tab1 AS cor0
----
3999
3999
3999

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 > ( col2 )
----
85
5
59
91
47
68

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) <= + ( + 16 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE - col0 NOT IN ( col1 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 83 / col2 = - col2
----

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1 WHERE - 10 <> - 37
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 13 / col0 - 53 * + 73 FROM tab2 WHERE NOT ( 90 * 45 ) <> - col1 + - col1
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE + 1 = + col2
----

query I rowsort
SELECT ALL col0 + 95 AS col2 FROM tab2
----
141
159
170

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 31 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT - SUM( + - 6 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - SUM ( + - 6 ) AS col0 FROM tab0 AS cor0
----
18

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

query I rowsort
SELECT DISTINCT col2 * + col1 * + + col2 * col2 FROM tab0
----
21000
8409663
970299

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

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT 67 * COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT + col1 DIV - + 25 col2 FROM tab1
----
-1
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5794
SELECT - - CAST( NULL AS SIGNED ) AS col0, - 39 FROM tab1 AS cor0
----
NULL
-39
NULL
-39
NULL
-39

skipif mysql # not compatible
query II rowsort label-5794
SELECT - - CAST ( NULL AS INTEGER ) AS col0, - 39 FROM tab1 AS cor0
----
NULL
-39
NULL
-39
NULL
-39

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

query I rowsort
SELECT - 86 + - 91 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 31
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT - col1 DIV + + 21 + 71 AS col0 FROM tab2 AS cor0
----
68
68
69

skipif mysql # not compatible
query I rowsort label-5798
SELECT - col1 / + + 21 + 71 AS col0 FROM tab2 AS cor0
----
68
68
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + 71 DIV + 41 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 71 / + 41 FROM tab1 cor0
----
1
1
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT col2 + + col2 DIV col2 col1 FROM tab1 cor0 WHERE NOT - 18 * - 85 IS NULL
----
60
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5803
SELECT col2 + + col2 / col2 col1 FROM tab1 cor0 WHERE NOT - 18 * - 85 IS NULL
----
60
69
97

query I rowsort
SELECT - + col2 * - - 79 * + col1 AS col1 FROM tab0 AS cor0
----
-16590
-300753
-7821

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5805
SELECT + col1 / + 61 - 88 * - col0 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) = ( - col0 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-5805
SELECT + col1 / + 61 - 88 * - col0 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) = ( - col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL + 99 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + 99 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
297

query I rowsort
SELECT ALL - col2 * - - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 98 + - 35 AS col1 FROM tab2
----
63
63
63

query I rowsort
SELECT ALL + col2 + + ( 13 ) AS col0 FROM tab2
----
36
53
71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 21 ) = 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5812
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IN ( col2 + 95 )
----

skipif mysql # not compatible
query III rowsort label-5812
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IN ( col2 + 95 )
----

query I rowsort
SELECT ALL + - 78 AS col2 FROM tab0 cor0
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + - 75 ) = col0
----

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

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + COUNT ( * ) + + 58 FROM tab0
----
61

query I rowsort
SELECT + col1 FROM tab2 WHERE ( + 56 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 82 - col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 49 IS NULL
----

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

query I rowsort
SELECT ALL - col1 - + + 82 + ( - + ( col2 ) ) FROM tab0 AS cor0
----
-113
-182
-210

query I rowsort
SELECT ALL 52 + col0 AS col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

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

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

query I rowsort
SELECT ALL + + 18 - col2 AS col1 FROM tab1 AS cor0
----
-41
-50
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5825
SELECT ALL * FROM tab0 AS cor0 WHERE 14 <= + ( - CAST( col1 AS SIGNED ) ) * - col2 AND ( col2 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5825
SELECT ALL * FROM tab0 AS cor0 WHERE 14 <= + ( - CAST ( col1 AS INTEGER ) ) * - col2 AND ( col2 ) < NULL
----

query I rowsort
SELECT + - 86 - 31 FROM tab1 AS cor0
----
-117
-117
-117

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

query II rowsort
SELECT DISTINCT 34, col2 FROM tab0
----
34
10
34
47
34
99

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

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

query I rowsort
SELECT + col1 + + 18 FROM tab1
----
23
32
65

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE - - col1 IN ( - + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT MIN( ALL col2 ) + + 50 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-5832
SELECT MIN ( ALL col2 ) + + 50 FROM tab2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT - ( 65 ) + ( - + CAST( - 30 AS SIGNED ) ) FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-5833
SELECT - ( 65 ) + ( - + CAST ( - 30 AS INTEGER ) ) FROM tab0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + col1 * 23 FROM tab1
----
1081
115
322

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

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

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-5838
SELECT ALL + COUNT( + 4 ) AS col1 FROM tab1 cor0
----
3

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5841
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ) / ( - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-5841
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS REAL ) / ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT MIN( DISTINCT 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5842
SELECT MIN ( DISTINCT 80 ) FROM tab1
----
80

query I rowsort
SELECT ALL + ( - col2 ) * + col0 + + col2 * + 61 AS col1 FROM tab1
----
-1416
-2040
960

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT SUM( + ( 87 ) ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-5844
SELECT SUM ( + ( 87 ) ) AS col2 FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT ALL ( + 53 ) * + + col1 + + - col0 + col0 DIV + + col1 AS col0 FROM tab1
----
197
2401
694

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL ( + 53 ) * + + col1 + + - col0 + col0 / + + col1 AS col0 FROM tab1
----
197
2401
694

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - + COUNT( * ) * - 34 + COUNT( * ) * ( - COUNT( * ) ) FROM tab0 WHERE NOT + col1 / 92 + - + col2 - - col0 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-5846
SELECT - + COUNT ( * ) * - 34 + COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0 WHERE NOT + col1 / 92 + - + col2 - - col0 IS NULL
----
93

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 40 / SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 62 * + - 13 - - 16 * col2 - + - col1 FROM tab2 AS cor0
----
-387
-89
189

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

query I rowsort
SELECT 12 * + 4 + - + col0 + - col0 + - + 39 * - col2 FROM tab0 AS cor0
----
1851
264
3715

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT 43 * - COUNT( ALL - col0 ) + MIN( ALL 53 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-5852
SELECT 43 * - COUNT ( ALL - col0 ) + MIN ( ALL 53 ) FROM tab0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + + + 5 + col1 col0 FROM tab0
----
11
31
91

query I rowsort
SELECT col0 + - - col0 FROM tab1
----
102
170
182

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

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + 55 + + + COUNT ( * ) AS col2 FROM tab2
----
58

query I rowsort
SELECT DISTINCT col0 + 17 FROM tab0
----
104
114
32

query I rowsort
SELECT ALL + 11 + - col2 * ( 89 ) AS col0 FROM tab2
----
-2036
-3549
-5151

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT MIN( 51 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT MIN ( 51 ) AS col0 FROM tab0 AS cor0
----
51

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

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

query I rowsort
SELECT ALL + 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query I rowsort
SELECT ALL ( - col2 ) + 97 FROM tab2 AS cor0
----
39
57
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT - col2 DIV - col0 + col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5868
SELECT - col2 / - col0 + col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

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

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

query II rowsort
SELECT - - col1 + + col1 AS col1, col0 * - 55 FROM tab2 AS cor0
----
102
-2530
134
-4125
154
-3520

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

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

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

query I rowsort
SELECT + + col0 * - col1 + - col1 + + 30 + col0 * + col1 FROM tab1 AS cor0
----
-17
16
25

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * + - col2 col2 FROM tab0
----
235
495
50

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - + 42 * + col2 AS col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

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

query I rowsort
SELECT DISTINCT ( - 27 ) FROM tab1
----
-27

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

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

query II rowsort
SELECT DISTINCT col1, col2 FROM tab0
----
1
99
21
10
81
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5893
SELECT ALL CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT + 10 ) * + COUNT( * ) DIV + 3 FROM tab2
----
NULL
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5893
SELECT ALL CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT + 10 ) * + COUNT ( * ) / + 3 FROM tab2
----
NULL
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT + col0 + + 39 DIV col1 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5894
SELECT + col0 + + 39 / col1 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 * + 75 FROM tab2
----
3450
4800
5625

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - - 87 * - col2 col2 FROM tab2 cor0
----
-12006
-20880
-30276

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL COUNT( - 45 ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL COUNT ( - 45 ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

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

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

query I rowsort
SELECT DISTINCT - col2 + + + col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL 93 + - col2 AS col2 FROM tab0
----
-6
46
83

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) / + + 1 + ( + + 24 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) / + + 1 + ( + + 24 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL + COUNT( * ) * COUNT( DISTINCT + 60 ) + + SUM( ALL + + col1 ) AS col1 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT + 60 ) + + SUM ( ALL + + col1 ) AS col1 FROM tab0
----
106

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

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

query I rowsort
SELECT - 6 + + + ( + col2 ) FROM tab0
----
4
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT ALL MIN( DISTINCT - 55 ) + 85 AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL MIN ( DISTINCT - 55 ) + 85 AS col0 FROM tab1
----
30

query I rowsort
SELECT 15 * - 62 + 3 FROM tab2
----
-927
-927
-927

query I rowsort
SELECT DISTINCT col2 + - 66 AS col1 FROM tab0
----
-19
-56
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT ALL - col1 + + CAST( - - col1 AS SIGNED ) * - col0 col2 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5912
SELECT ALL - col1 + + CAST ( - - col1 AS INTEGER ) * - col0 col2 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT + + 9 + col0 AS col0 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT - col0 * - + col2 * col1 FROM tab1 cor0 WHERE col1 * + 54 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 * + 74 * 64 col1 FROM tab2 AS cor0
----
-430976
-430976
-430976

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

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

query I rowsort
SELECT ALL + 93 + 20 FROM tab2
----
113
113
113

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

query I rowsort
SELECT ALL + col0 * + col0 * - 38 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-128250
-25023114
-34681574

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

query I rowsort
SELECT ALL col1 * + 14 + col1 FROM tab2 cor0
----
1005
1155
765

query II rowsort
SELECT col0, - 82 - + 39 AS col2 FROM tab2 AS cor0
----
46
-121
64
-121
75
-121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 col0, 83 AS col1 FROM tab0 AS cor0
----
-84
83
-84
83
-84
83

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 IS NULL
----

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

query I rowsort
SELECT - col0 * + 16 * + 71 AS col0 FROM tab1
----
-103376
-57936
-96560

query I rowsort
SELECT DISTINCT col0 * + 4 FROM tab0
----
348
388
60

query I rowsort
SELECT ALL + 62 FROM tab0 WHERE NOT + - col2 >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT COUNT ( ALL + col1 ) FROM tab0
----
3

query I rowsort
SELECT - col0 * 81 AS col0 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - + COUNT( * ) col0 FROM tab1 WHERE NOT + col1 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5933
SELECT - + COUNT ( * ) col0 FROM tab1 WHERE NOT + col1 <= NULL
----
0

query II rowsort
SELECT ALL + col1 AS col2, + col1 + + col0 FROM tab2 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT + 77 * + MAX( DISTINCT + col1 ) AS col1 FROM tab1
----
3619

skipif mysql # not compatible
query I rowsort label-5935
SELECT + 77 * + MAX ( DISTINCT + col1 ) AS col1 FROM tab1
----
3619

query I rowsort
SELECT DISTINCT 29 * + - 11 FROM tab2 cor0
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT - 83 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 83 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - 7 ) FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL + MAX( DISTINCT - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + MAX ( DISTINCT - 23 ) FROM tab2
----
-23

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

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

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

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

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

query I rowsort
SELECT ( + - col1 ) + + - col1 + + - 22 + - col2 * col2 FROM tab2 cor0
----
-1776
-3520
-653

query I rowsort
SELECT ALL + 87 * - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-18270
-331209
-8613

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

query I rowsort
SELECT col2 + - 66 AS col0 FROM tab2
----
-26
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - SUM( DISTINCT ( - 53 ) ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-5947
SELECT - SUM ( DISTINCT ( - 53 ) ) FROM tab0
----
53

query I rowsort
SELECT ALL + 60 + - - 14 FROM tab1
----
74
74
74

query II rowsort
SELECT col1, ( + col0 ) AS col1 FROM tab0
----
1
97
21
87
81
15

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

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

query I rowsort
SELECT ALL + 63 - - col1 * + + col0 FROM tab1 AS cor0
----
4340
488
777

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5952
SELECT ALL - col2 AS col1, - col2 + col2 FROM tab2 cor0 WHERE NOT CAST( 32 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query II rowsort label-5952
SELECT ALL - col2 AS col1, - col2 + col2 FROM tab2 cor0 WHERE NOT CAST ( 32 AS REAL ) > NULL
----

query II rowsort
SELECT ALL + + col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL 73 * + + 63 FROM tab2
----
4599
4599
4599

query I rowsort
SELECT ALL - + col0 * - col2 FROM tab0 WHERE NOT NULL <> NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-5957
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT 69 / + ( ( + col0 ) ) IS NULL
----
-3

query II rowsort
SELECT col1 * ( - - col0 ), col0 * + 13 * + - 47 * col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1215
-742140
1827
-1108728
97
-49858

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT DISTINCT - col1 DIV - + 50 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5961
SELECT DISTINCT - col1 / - + 50 col0 FROM tab0 AS cor0
----
0
1

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

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

query I rowsort
SELECT DISTINCT - + 32 AS col1 FROM tab0 AS cor0
----
-32

query III rowsort
SELECT - col2 * + ( 3 ) AS col1, + col2 * col2 + col1 AS col0, - 93 FROM tab1
----
9 values hashing to 09a5a5b02ce21e72ebf293567832e316

query I rowsort
SELECT DISTINCT - 31 FROM tab1, tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT SUM( + - 89 ) AS col1 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-5966
SELECT SUM ( + - 89 ) AS col1 FROM tab0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT DISTINCT CAST( - - col0 AS SIGNED ) FROM tab0
----
15
87
97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 + - col0 col2 FROM tab1 AS cor0
----
-21
24
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 81 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT ALL + 87 DIV - - 31 + - - col0 + + col2 * 44 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-4257
-8
69

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + 87 / - - 31 + - - col0 + + col2 * 44 / - + col1 AS col2 FROM tab0 AS cor0
----
-4257
-8
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT col0 DIV - col1 - - col0 FROM tab2 AS cor0
----
46
64
74

skipif mysql # not compatible
query I rowsort label-5973
SELECT col0 / - col1 - - col0 FROM tab2 AS cor0
----
46
64
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5975
SELECT - + 45 * + col0 AS col2, ( CAST( col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-3915
21
-4365
1
-675
81

skipif mysql # not compatible
query II rowsort label-5975
SELECT - + 45 * + col0 AS col2, ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-3915
21
-4365
1
-675
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL + COUNT( DISTINCT + 89 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + COUNT ( DISTINCT + 89 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab0 cor0
----
63

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

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

query I rowsort
SELECT + 53 AS col0 FROM tab0 WHERE col1 BETWEEN 97 - - col1 AND + col2 * ( 51 ) * + + col1
----

query II rowsort
SELECT ALL 13 + col0 * col0 AS col1, col1 AS col2 FROM tab1
----
2614
14
7238
5
8294
47

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - 18 <= - + col0 * col1
----

query I rowsort
SELECT col2 + - ( + + 66 ) FROM tab2
----
-26
-43
-8

query I rowsort
SELECT - col1 + - + col0 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * 23 + ( + col0 ) FROM tab2
----
1409
575
984

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

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

query I rowsort
SELECT ALL col0 - - col2 * - + col1 - 48 FROM tab0 AS cor0
----
-171
-3840
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT - CAST( - - col1 AS SIGNED ) * col2 + 94 + + + 80 * + col0 * 19 FROM tab1 AS cor0
----
128999
135218
76270

skipif mysql # not compatible
query I rowsort label-5988
SELECT - CAST ( - - col1 AS INTEGER ) * col2 + 94 + + + 80 * + col0 * 19 FROM tab1 AS cor0
----
128999
135218
76270

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

query I rowsort
SELECT col0 * col2 * + col0 AS col1 FROM tab2
----
163840
326250
48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + 83 + - + 7 * + 31 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 907dea30bfa8e2d7a89718dcdc47bc4e

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

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

query I rowsort
SELECT 52 + + 26 + + + col0 * 53 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - + 4 * + COUNT( * ) - - - 62 - - ( + + 41 ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-33

skipif mysql # not compatible
query I rowsort label-5996
SELECT - + 4 * + COUNT ( * ) - - - 62 - - ( + + 41 ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL + MIN( + col1 ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5997
SELECT ALL + MIN ( + col1 ) col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 55 col0, 90 FROM tab0 AS cor0
----
55
90

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

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - MIN ( - - 7 ) FROM tab2 AS cor0
----
-7

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6001
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + CAST( NULL AS DECIMAL ) <> + col2
----

skipif mysql # not compatible
query III rowsort label-6001
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + CAST ( NULL AS REAL ) <> + col2
----

query I rowsort
SELECT + 35 * - 80 + 13 FROM tab2 AS cor0
----
-2787
-2787
-2787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT ALL CAST( col1 AS SIGNED ) * 28 FROM tab1
----
1316
140
392

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL CAST ( col1 AS INTEGER ) * 28 FROM tab1
----
1316
140
392

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - MAX( DISTINCT + + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6004
SELECT - MAX ( DISTINCT + + col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT DISTINCT 4 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 4 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT 90 * - COUNT( * ) AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-6006
SELECT 90 * - COUNT ( * ) AS col0 FROM tab2
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 37 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 37 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * - + col1 col0 FROM tab0
----
-1386
-5346
-66

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

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

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

query I rowsort
SELECT DISTINCT + 82 FROM tab0 WHERE NOT NULL < NULL
----

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

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

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

query I rowsort
SELECT + - 34 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - + col0 + - col0 - + + 72 * + 38 FROM tab2 cor0 WHERE - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT COUNT( * ) col1 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-6018
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 AS col1, 22 col2 FROM tab0 cor0
----
1
22
21
22
81
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT + 23 DIV + col2 + + 4 AS col0 FROM tab2 AS cor0
----
4
4
5

skipif mysql # not compatible
query I rowsort label-6022
SELECT + 23 / + col2 + + 4 AS col0 FROM tab2 AS cor0
----
4
4
5

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

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

query I rowsort
SELECT + ( - - ( 2 ) ) AS col0 FROM tab1 cor0 WHERE NULL < col0
----

query II rowsort
SELECT ( 10 ) AS col0, col0 AS col2 FROM tab2
----
10
46
10
64
10
75

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + - 48
----

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

query I rowsort
SELECT ALL col1 + - col1 + - 69 AS col1 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + ( - 67 ) + + col1 FROM tab0
----
-46
-66
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT ALL 95 - - - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL 95 - - - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT col0 ) FROM tab2
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - 21 col2 FROM tab1 AS cor0
----
30
64
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - SUM( + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6034
SELECT - SUM ( + col2 ) col2 FROM tab1 AS cor0
----
-223

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

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL SUM ( + col1 ) FROM tab1
----
66

query II rowsort
SELECT DISTINCT 10, col0 FROM tab1 AS cor0
----
10
51
10
85
10
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL - MAX( ALL col1 ) * COUNT( - - col0 ) + + SUM( - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - MAX ( ALL col1 ) * COUNT ( - - col0 ) + + SUM ( - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-110

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 33 ) < NULL
----

query II rowsort
SELECT - - 82 AS col2, + col1 * - col0 - - col2 FROM tab1 AS cor0
----
82
-366
82
-4209
82
-618

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6041
SELECT CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6041
SELECT CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

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

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

query II rowsort
SELECT DISTINCT 30 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
30
-10
30
-47
30
-99

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

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

skipif mysql # not compatible
query I rowsort label-6045
SELECT + + 24 * + CAST ( col0 AS REAL ) FROM tab1 AS cor0 WHERE NOT + CAST ( ( + - col0 ) AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT ALL + CAST( - 17 AS SIGNED ) FROM tab2 AS cor0 WHERE ( - - col2 IS NOT NULL )
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + CAST ( - 17 AS INTEGER ) FROM tab2 AS cor0 WHERE ( - - col2 IS NOT NULL )
----
-17
-17
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + 0 + COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + 0 + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 1 * - col0 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 + - 12 * + - 68 FROM tab1
----
821
830
863

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

skipif mysql # not compatible
query II rowsort label-6052
SELECT DISTINCT + 7 AS col0, - COUNT ( * ) FROM tab2
----
7
-3

query I rowsort
SELECT 51 * - 90 * 73 * - 53 AS col1 FROM tab0
----
17758710
17758710
17758710

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT 59 * - + COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6054
SELECT 59 * - + COUNT ( * ) FROM tab1
----
-177

query II rowsort
SELECT ALL col2, 85 + - + col1 AS col0 FROM tab2
----
23
34
40
8
58
18

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

skipif mysql # not compatible
query III rowsort label-6056
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT + 74 * - 86 FROM tab0 AS cor0
----
-6364

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

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

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

query I rowsort
SELECT - col0 + + 85 AS col0 FROM tab1
----
-6
0
34

query I rowsort
SELECT - col1 + - 98 AS col0 FROM tab2 WHERE + 19 + - 42 IS NULL
----

query I rowsort
SELECT - col2 + + 40 * - 76 FROM tab2
----
-3063
-3080
-3098

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 1 - col2 * 64 AS col2 FROM tab1 AS cor0
----
-3777
-4353
-6145

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT DISTINCT - ( - 2 ) DIV - + col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - ( - 2 ) / - + col0 FROM tab0 cor0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col2 + - - ( + col0 ) + + col0 FROM tab1
----
1446
3378
465

onlyif mysql # aggregate syntax: 
query II rowsort label-6075
SELECT ALL - 24 AS col1, COUNT( * ) FROM tab1
----
-24
3

skipif mysql # not compatible
query II rowsort label-6075
SELECT ALL - 24 AS col1, COUNT ( * ) FROM tab1
----
-24
3

query I rowsort
SELECT col1 + + - col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab1
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) * + 44 + - col2 + + + ( + 80 ) * - col1 FROM tab0
----
-4447
-5518
-7187

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) * + 44 + - col2 + + + ( + 80 ) * - col1 FROM tab0
----
-4447
-5518
-7187

query I rowsort
SELECT - col2 * + - col0 + + + col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT col2 + - 59 + 33 FROM tab1
----
33
42
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL + CAST( 57 AS SIGNED ) FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + CAST ( 57 AS INTEGER ) FROM tab1
----
57
57
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6083
SELECT - COUNT ( + 86 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6084
SELECT DISTINCT col1, - 0 DIV col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6084
SELECT DISTINCT col1, - 0 / col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6086
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab0 WHERE NULL < + col0 OR NOT + CAST ( NULL AS INTEGER ) + + col0 <= + - col0
----
0

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

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

query I rowsort
SELECT 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL - COUNT( * ) * + SUM( 63 ) FROM tab1
----
-567

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - COUNT ( * ) * + SUM ( 63 ) FROM tab1
----
-567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6090
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT 21 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-6091
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > + - CAST( + + 43 AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-6091
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > + - CAST ( + + 43 AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 3
----

query I rowsort
SELECT DISTINCT - col2 * - 74 * - + col2 AS col0 FROM tab2 AS cor0
----
-118400
-248936
-39146

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6094
SELECT ALL + + 21 * - + CAST( NULL AS DECIMAL ) AS col0, col2 * + 5 col2 FROM tab1 AS cor0
----
NULL
295
NULL
340
NULL
480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6094
SELECT ALL + + 21 * - + CAST ( NULL AS REAL ) AS col0, col2 * + 5 col2 FROM tab1 AS cor0
----
NULL
295
NULL
340
NULL
480

query I rowsort
SELECT ALL col0 + - 17 AS col2 FROM tab0 AS cor0
----
-2
70
80

query I rowsort
SELECT DISTINCT 65 * col1 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT + COUNT( * ) DIV + 84 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6097
SELECT DISTINCT + COUNT ( * ) / + 84 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT COUNT( * ) * - - ( - COUNT( * ) ) + 35 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6098
SELECT COUNT ( * ) * - - ( - COUNT ( * ) ) + 35 FROM tab2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT - col2 DIV - 21 + + ( - + col0 ) DIV col1 * + col2 col0 FROM tab1
----
-1001
-284
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6099
SELECT - col2 / - 21 + + ( - + col0 ) / col1 * + col2 col0 FROM tab1
----
-1001
-284
-65

query I rowsort
SELECT 64 + + col2 FROM tab0
----
111
163
74

query I rowsort
SELECT DISTINCT - + 79 AS col2 FROM tab0 WHERE NOT - - 1 <> + + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6102
SELECT CAST( - + 77 AS SIGNED ) + + + 50 * col2 DIV - col1 AS col0, 43 FROM tab2
----
-102
43
-120
43
-99
43

skipif mysql # not compatible
query II rowsort label-6102
SELECT CAST ( - + 77 AS INTEGER ) + + + 50 * col2 / - col1 AS col0, 43 FROM tab2
----
-102
43
-120
43
-99
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6103
SELECT - COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT - 87 + col1 - - - col2 FROM tab0 AS cor0
----
-185
-53
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT - COUNT( * ) * - MIN( - col1 ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - COUNT ( * ) * - MIN ( - col1 ) FROM tab1 AS cor0
----
-141

query I rowsort
SELECT + col1 * 31 AS col0 FROM tab1 AS cor0
----
1457
155
434

query I rowsort
SELECT ALL + col1 * + + 49 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6109
SELECT * FROM tab0 AS cor0 WHERE + ( + CAST( - ( - col0 ) AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6109
SELECT * FROM tab0 AS cor0 WHERE + ( + CAST ( - ( - col0 ) AS REAL ) ) IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6112
SELECT DISTINCT 29 DIV - 66 * + 48 * col1, 81 DIV - col0 AS col0 FROM tab1
----
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-6112
SELECT DISTINCT 29 / - 66 * + 48 * col1, 81 / - col0 AS col0 FROM tab1
----
0
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 IS NULL AND + 80 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + + 52 AS col1 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT COUNT( * ) - + 70 FROM tab0 AS cor0
----
-67

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

query I rowsort
SELECT ALL - col0 * + + ( - - col2 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT + 11 FROM tab2 cor0
----
11
11
11

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

skipif mysql # not compatible
query I rowsort label-6119
SELECT MAX ( DISTINCT 3 ) FROM tab0 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT MIN( 75 ) * + MIN( 62 ) AS col2 FROM tab1
----
4650

skipif mysql # not compatible
query I rowsort label-6121
SELECT MIN ( 75 ) * + MIN ( 62 ) AS col2 FROM tab1
----
4650

query II rowsort
SELECT ALL col0 * col2 AS col1, + col0 + + 95 AS col0 FROM tab0
----
705
110
870
182
9603
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( DISTINCT - ( + ( + col0 ) ) ) + - + 98 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - ( + ( + col0 ) ) ) + - + 98 FROM tab1
----
NULL

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

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

query I rowsort
SELECT - + 87 + - col1 + - + col1 / - 67 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - 48 * col1 * + - col1 AND - col2 + 48 + + ( - col2 ) * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - 48 * col1 * + - col1 AND - col2 + 48 + + ( - col2 ) * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * + + 61 * + col1 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-11144700
-163720035
-57992517

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT MIN( DISTINCT + 33 ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6133
SELECT MIN ( DISTINCT + 33 ) AS col0 FROM tab0 AS cor0
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT 20 + + COUNT( * ) + + COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT 20 + + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
26

query I rowsort
SELECT 58 + - 90 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT ALL - col1 * + col2 + - + 80 FROM tab1 AS cor0
----
-1424
-3276
-375

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

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

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

query II rowsort
SELECT + 17 + + - col0, col2 * 93 AS col2 FROM tab0 AS cor0
----
-70
930
-80
9207
2
4371

query I rowsort
SELECT ALL - col1 + - + 70 AS col0 FROM tab1
----
-117
-75
-84

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

skipif mysql # not compatible
query I rowsort label-6143
SELECT - COUNT ( * ) / - 34 FROM tab2
----
0

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

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

query I rowsort
SELECT col0 - - 4 FROM tab2 AS cor0
----
50
68
79

query I rowsort
SELECT ALL 67 - 66 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT - + col0 DIV + - col2 - + + col1 AS col2 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-6148
SELECT - + col0 / + - col2 - + + col1 AS col2 FROM tab0 AS cor0
----
-1
-13
-81

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

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

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

query I rowsort
SELECT ( 70 ) * + col0 AS col2 FROM tab1
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT MIN( + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6152
SELECT MIN ( + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT 24 DIV + + COUNT( DISTINCT - col2 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6153
SELECT 24 / + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab1
----
8

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

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

query I rowsort
SELECT ( col0 ) * + col1 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL 11 * + + 27 AS col2 FROM tab2
----
297
297
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT DISTINCT + 44 DIV MIN( - ( col1 ) ) AS col2 FROM tab1 WHERE NOT col0 <= - 3
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + 44 / MIN ( - ( col1 ) ) AS col2 FROM tab1 WHERE NOT col0 <= - 3
----
0

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

skipif mysql # not compatible
query I rowsort label-6158
SELECT - SUM ( ALL ( - + col1 ) ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 68 = 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT DISTINCT + COUNT( * ) AS col1, - SUM( col0 ) FROM tab1 AS cor0
----
3
-227

skipif mysql # not compatible
query II rowsort label-6161
SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( col0 ) FROM tab1 AS cor0
----
3
-227

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col1 + + col0, ( - 71 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 83 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1111
-330
-3810

query I rowsort
SELECT - col1 + - 79 FROM tab1
----
-126
-84
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL 3 + + MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 3 + + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT + 76 - - col1 AS col0 FROM tab2 AS cor0
----
127
143
153

query I rowsort
SELECT - + 88 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT + + col2 * col1 + 86 FROM tab2 AS cor0
----
1259
3166
3972

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + + COUNT( * ) * + 89 AS col1 FROM tab0 cor0
----
267

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + + COUNT ( * ) * + 89 AS col1 FROM tab0 cor0
----
267

query I rowsort
SELECT DISTINCT - + 41 AS col1 FROM tab1 AS cor0
----
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - ( 36 ) * + col0 + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-3122
-3393
-493

skipif mysql # not compatible
query I rowsort label-6178
SELECT - ( 36 ) * + col0 + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-3122
-3393
-493

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL 76 * + + SUM( DISTINCT + 56 ) AS col1 FROM tab1
----
4256

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL 76 * + + SUM ( DISTINCT + 56 ) AS col1 FROM tab1
----
4256

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND NULL
----
87
21
10

query I rowsort
SELECT ALL 81 + + + col0 AS col0 FROM tab0 AS cor0
----
168
178
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + - col1 BETWEEN - ( - - col2 ) / + col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + 16 * + 35 AS col1 FROM tab1
----
611
645
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 33 AS col2, - col2 + - 0 * - col2 * - col1 col1 FROM tab1 AS cor0
----
33
-59
33
-68
33
-96

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 69 + col2 NOT IN ( + + 14 + - 12 * - - 87, 46 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT + 32 AS col2, + MIN( - 45 ) + + 4 FROM tab0 AS cor0
----
32
-41

skipif mysql # not compatible
query II rowsort label-6191
SELECT + 32 AS col2, + MIN ( - 45 ) + + 4 FROM tab0 AS cor0
----
32
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + 11 + - COUNT( * ) FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + 11 + - COUNT ( * ) FROM tab2 cor0
----
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT - col0 DIV col2 + - 18 FROM tab1 AS cor0
----
-18
-19
-19

skipif mysql # not compatible
query I rowsort label-6194
SELECT - col0 / col2 + - 18 FROM tab1 AS cor0
----
-18
-19
-19

query I rowsort
SELECT ALL ( 84 ) AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ( + 94 ) FROM tab1
----
94
94
94

query I rowsort
SELECT + col1 - - 23 * 8 FROM tab1
----
189
198
231

query I rowsort
SELECT ALL + col2 + col0 * + 59 FROM tab0
----
5143
5822
932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + - - col1 - 35 + 11 col2 FROM tab2
----
-28
-38
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + - 8 + + col2 col2 FROM tab2
----
15
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + 48 + - - ( SUM( - 22 ) ) col0 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6201
SELECT + 48 + - - ( SUM ( - 22 ) ) col0 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT COUNT( * ) + - 96 * + + 7 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( * ) + - 96 * + + 7 FROM tab1
----
-669

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT - col1 + + - 97 + + - 55 DIV - col2 AS col1 FROM tab0 AS cor0
----
-113
-177
-98

skipif mysql # not compatible
query I rowsort label-6203
SELECT - col1 + + - 97 + + - 55 / - col2 AS col1 FROM tab0 AS cor0
----
-113
-177
-98

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

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

query I rowsort
SELECT ALL + 50 AS col2 FROM tab1 AS cor0 WHERE + 67 IS NOT NULL
----
50
50
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 52 = + 32
----

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

query I rowsort
SELECT - 14 * col2 AS col1 FROM tab0
----
-1386
-140
-658

query I rowsort
SELECT - ( - 11 ) * + - col1 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) AS col2 FROM tab2 cor0
----
46
64
75

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

query I rowsort
SELECT ALL - - ( + col1 ) * col1 * col2 AS col1 FROM tab0 AS cor0
----
308367
4410
99

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

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

query II rowsort
SELECT DISTINCT + col1 * + 73, + col2 * - col2 AS col0 FROM tab2
----
3723
-529
4891
-3364
5621
-1600

onlyif mysql # DIV for integer division: 
query II rowsort label-6216
SELECT DISTINCT col1 DIV - col0 AS col0, - col1 AS col1 FROM tab2
----
-1
-51
-1
-77
0
-67

skipif mysql # not compatible
query II rowsort label-6216
SELECT DISTINCT col1 / - col0 AS col0, - col1 AS col1 FROM tab2
----
-1
-51
-1
-77
0
-67

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6218
SELECT - CAST( - col0 AS SIGNED ) AS col1, + col2 * + col1 FROM tab0
----
15
3807
87
210
97
99

skipif mysql # not compatible
query II rowsort label-6218
SELECT - CAST ( - col0 AS INTEGER ) AS col1, + col2 * + col1 FROM tab0
----
15
3807
87
210
97
99

query I rowsort
SELECT ALL - 62 AS col0 FROM tab2
----
-62
-62
-62

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL MIN ( DISTINCT - 6 ) AS col0 FROM tab1
----
-6

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 13 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + col1 + - 50 AS col0 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT ALL - col0 * + - 10 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT 78 + + ( col2 ) - col0 + + 8 DIV col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
110
88

skipif mysql # not compatible
query I rowsort label-6227
SELECT 78 + + ( col2 ) - col0 + + 8 / col1 / col1 AS col1 FROM tab0 AS cor0
----
1
110
88

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 <= - col2
----

query I rowsort
SELECT - - col1 + - 12 FROM tab2 AS cor0
----
39
55
65

query II rowsort
SELECT col1, col1 * col0 * 93 AS col1 FROM tab2
----
51
218178
67
467325
77
458304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT ALL 77 DIV + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL 77 / + COUNT ( * ) FROM tab1
----
25

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

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

query I rowsort
SELECT col0 * + - 47 FROM tab1
----
-2397
-3995
-4277

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 21 <= - 67
----

query I rowsort
SELECT + - 94 - 3 + col0 * + col0 * - 4 FROM tab1 AS cor0
----
-10501
-28997
-33221

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT DISTINCT - col0 DIV + ( - + 57 ) AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT - col0 / + ( - + 57 ) AS col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > NULL
----

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6240
SELECT DISTINCT + - 22 * - - COUNT ( * ) AS col0, COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-66
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6241
SELECT DISTINCT - CAST( 97 AS SIGNED ) col0, - col1 FROM tab0 AS cor0
----
-97
-1
-97
-21
-97
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6241
SELECT DISTINCT - CAST ( 97 AS INTEGER ) col0, - col1 FROM tab0 AS cor0
----
-97
-1
-97
-21
-97
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6242
SELECT DISTINCT + + 28 * + - CAST( NULL AS DECIMAL ) AS col1, - col2 * col1 - + 72 FROM tab2 AS cor0
----
NULL
-1245
NULL
-3152
NULL
-3958

skipif mysql # not compatible
query II rowsort label-6242
SELECT DISTINCT + + 28 * + - CAST ( NULL AS REAL ) AS col1, - col2 * col1 - + 72 FROM tab2 AS cor0
----
NULL
-1245
NULL
-3152
NULL
-3958

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

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

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

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 WHERE NOT + col1 * - - ( + col0 ) + - col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab0 WHERE NOT + 36 IS NULL
----
-8

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

query II rowsort
SELECT - col0 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT - 26 * - SUM( CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
5798

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 26 * - SUM ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
5798

query I rowsort
SELECT - col0 - - 40 * col2 FROM tab1
----
2275
2629
3789

query I rowsort
SELECT ALL 38 + - col1 AS col1 FROM tab2
----
-13
-29
-39

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

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

query I rowsort
SELECT 24 * + 95 FROM tab2
----
2280
2280
2280

query I rowsort
SELECT - 17 + - col1 FROM tab1
----
-22
-31
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 16 col1 FROM tab1 WHERE NOT + col1 NOT IN ( 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 64 col1 FROM tab0
----
3008
6336
640

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 94 + - 14 * - 21
----

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

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

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

query I rowsort
SELECT ALL - 77 + + col2 FROM tab2
----
-19
-37
-54

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT col0 <> ( + col1 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6269
SELECT ALL COUNT( * ) DIV CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( 15 )
----

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT ALL col2 DIV col2 - + col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL col2 / col2 - + col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT ALL 21 + ( - 17 ) * - col2 FROM tab1
----
1024
1177
1653

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT - 0 DIV + col2 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6273
SELECT - 0 / + col2 col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT - col2 * 60 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT + 0 * - ( - col1 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - 16 AS col0 FROM tab1
----
-1360
-1456
-816

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

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

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

query I rowsort
SELECT ( 37 ) * 24 AS col2 FROM tab1
----
888
888
888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT CAST( NULL AS SIGNED ) * 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT CAST ( NULL AS INTEGER ) * 44 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 86 + 56 AS col2 FROM tab1 AS cor0
----
142
142
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - 96 + SUM( + col0 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - 96 + SUM ( + col0 ) FROM tab2 AS cor0
----
89

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( col0 ) AND ( - col0 ) + - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE ( - ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE ( - ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ALL ( - 16 ) DIV 93 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL ( - 16 ) / 93 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT - ( - 16 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - ( - 16 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT col0 DIV 34 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT col0 / 34 FROM tab2 AS cor0
----
1
2

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

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

query I rowsort
SELECT ALL ( 34 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col2 * + 5 )
----

query I rowsort
SELECT DISTINCT 26 * col1 FROM tab1
----
1222
130
364

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT - COUNT( * ) * - ( + 59 - COUNT( * ) ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - COUNT ( * ) * - ( + 59 - COUNT ( * ) ) FROM tab0 AS cor0
----
168

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT col2 + - 61 AS col2 FROM tab1 WHERE NOT NULL = CAST( + col0 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-6310
SELECT col2 + - 61 AS col2 FROM tab1 WHERE NOT NULL = CAST ( + col0 AS INTEGER ) * col2
----

query I rowsort
SELECT DISTINCT 15 FROM tab2 WHERE NOT - col1 BETWEEN ( 38 / 83 ) AND col0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 < NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6315
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) NOT BETWEEN ( 40 + ( 12 ) ) AND 88 / ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6315
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) NOT BETWEEN ( 40 + ( 12 ) ) AND 88 / ( col1 )
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 45 + col1 * col0 ) IN ( + col2 * + 26 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 - 67 IS NOT NULL
----

query I rowsort
SELECT + + 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6324
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) / - - 80 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6324
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / - - 80 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - 62 AND + col0 + + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col2 * - col0 + + - 34 + 74 * - col2 AS col2 FROM tab1 cor0
----
-11254
-12034
-9415

query I rowsort
SELECT ( col2 ) + + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT ALL - 29 + - - 24 AS col2 FROM tab2 cor0
----
-5
-5
-5

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

query I rowsort
SELECT DISTINCT - col2 * - 36 + + + 16 * - 82 - + col2 FROM tab1 AS cor0
----
1068
2048
753

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + COUNT( * ) + 52 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + COUNT ( * ) + 52 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
55

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 85 col2, - col0 FROM tab2 AS cor0
----
85
-46
85
-64
85
-75

query I rowsort
SELECT DISTINCT col2 + - col0 + + + col1 FROM tab1 AS cor0
----
-21
24
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( + col2 ) col2 FROM tab2 WHERE NOT 46 <> ( NULL )
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 79 ) NOT BETWEEN - col0 AND col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + 56 + - - 97 FROM tab2
----
153

query I rowsort
SELECT DISTINCT ( - col1 ) * - - col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + SUM( ALL - 87 ) AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-6345
SELECT + SUM ( ALL - 87 ) AS col1 FROM tab1
----
-261

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

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

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL + MIN ( + 71 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
71
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT 15 FROM tab2 cor0 WHERE NOT ( + col1 + + 61 + - + 53 + CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6348
SELECT 15 FROM tab2 cor0 WHERE NOT ( + col1 + + 61 + - + 53 + CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 69 * + col2 )
----

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2
----
-99

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 * - col2 + + col2 * 18 AS col1 FROM tab1 cor0
----
-1344
-826
-952

query I rowsort
SELECT DISTINCT ( - ( + 21 ) ) AS col0 FROM tab1 AS cor0
----
-21

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

query I rowsort
SELECT ( 97 ) * 78 FROM tab2 AS cor0
----
7566
7566
7566

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

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

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

query II rowsort
SELECT DISTINCT - col2, + col2 * - 59 AS col0 FROM tab0
----
-10
-590
-47
-2773
-99
-5841

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

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

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

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

query II rowsort
SELECT 69 AS col0, - 97 FROM tab1
----
69
-97
69
-97
69
-97

query I rowsort
SELECT col0 * + 32 AS col2 FROM tab2
----
1472
2048
2400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6367
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col1, - 20 AS col2 FROM tab0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-6367
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col1, - 20 AS col2 FROM tab0
----
NULL
-20

query I rowsort
SELECT - 14 AS col2 FROM tab1 WHERE col0 / - + col0 <> NULL
----

query I rowsort
SELECT - 88 - - + col0 FROM tab0 WHERE + 71 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL MAX ( col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT - + 71 + col2 FROM tab1 AS cor0
----
-12
-3
25

query II rowsort
SELECT ALL 52 AS col0, + col0 * - col2 * + - col1 + - col2 FROM tab0 AS cor0
----
52
18260
52
57058
52
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT - + col2 DIV + + col1 + 15 + ( + col1 ) + - ( - col2 ) FROM tab1 AS cor0
----
119
129
68

skipif mysql # not compatible
query I rowsort label-6374
SELECT - + col2 / + + col1 + 15 + ( + col1 ) + - ( - col2 ) FROM tab1 AS cor0
----
119
129
68

query I rowsort
SELECT ALL + 73 * - 17 + col0 + + col2 AS col2 FROM tab0
----
-1045
-1144
-1179

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + SUM( + 84 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT + SUM ( + 84 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( 77 ) - 50 - - - col1 * col2 * 46 FROM tab0 AS cor0
----
-175095
-4527
-9633

query I rowsort
SELECT + 26 * + col2 - col2 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6379
SELECT DISTINCT - ( + col0 ) col2, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6379
SELECT DISTINCT - ( + col0 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

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

query II rowsort
SELECT ALL col1 * + 72 - + col1, + 75 * + - col0 * + ( - ( - col1 ) ) AS col2 FROM tab0
----
1491
-137025
5751
-91125
71
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL 81 * - + MIN( ALL - 4 ) AS col2 FROM tab2
----
324

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL 81 * - + MIN ( ALL - 4 ) AS col2 FROM tab2
----
324

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 * + + col2 AS col0 FROM tab1
----
10214416
1806336
87025

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT ALL + 96 * col2 DIV - + col0 FROM tab2
----
-48
-60
-74

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL + 96 * col2 / - + col0 FROM tab2
----
-48
-60
-74

query I rowsort
SELECT - col2 * - 60 FROM tab1
----
3540
4080
5760

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1, + 5 + - 87 )
----

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

query I rowsort
SELECT + 62 * col1 * + + col1 FROM tab2
----
161262
278318
367598

onlyif mysql # aggregate syntax: 
query II rowsort label-6389
SELECT DISTINCT - 2 * COUNT( - - col0 ) AS col2, 35 FROM tab1
----
-6
35

skipif mysql # not compatible
query II rowsort label-6389
SELECT DISTINCT - 2 * COUNT ( - - col0 ) AS col2, 35 FROM tab1
----
-6
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT + 47 DIV - 73 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6391
SELECT + 47 / - 73 col2 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6392
SELECT ALL - MIN ( + ( + col2 ) ) col0 FROM tab1 AS cor0
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6395
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 28 = 29 * + + CAST( + col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6395
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 28 = 29 * + + CAST ( + col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + + 28 AS col2 FROM tab2
----
1120
1624
644

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 19 ) col0 FROM tab0, tab2 AS cor0
----
19

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

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

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

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

query I rowsort
SELECT col1 + 74 AS col2 FROM tab2 cor0
----
125
141
151

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = + - ( - col1 ) * + - col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - COUNT( * ) + - - 52 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6407
SELECT - COUNT ( * ) + - - 52 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT 19 + - - COUNT( * ) + 94 AS col2 FROM tab0
----
116

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT 19 + - - COUNT ( * ) + 94 AS col2 FROM tab0
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL + 94 + + - COUNT( * ) col0 FROM tab2
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6410
SELECT ALL + 94 + + - COUNT ( * ) col0 FROM tab2
----
91

query I rowsort
SELECT ALL 73 + - ( + + col0 ) AS col0 FROM tab1
----
-12
-18
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( - - col0 - - ( - 36 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT col1 * + + CAST( + ( - 67 ) AS SIGNED ) - 5 + 43 FROM tab1 cor0 WHERE ( + col2 ) IS NOT NULL
----
-297
-3111
-900

skipif mysql # not compatible
query I rowsort label-6413
SELECT col1 * + + CAST ( + ( - 67 ) AS INTEGER ) - 5 + 43 FROM tab1 cor0 WHERE ( + col2 ) IS NOT NULL
----
-297
-3111
-900

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

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

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

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

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

query II rowsort
SELECT 0 - - 58 AS col1, - 90 AS col2 FROM tab1
----
58
-90
58
-90
58
-90

query I rowsort
SELECT + 2 + 9 FROM tab2 AS cor0
----
11
11
11

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

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

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

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

query I rowsort
SELECT ALL + col1 - col1 * + ( + + 54 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6423
SELECT + col1 DIV - + col2 col2, - CAST( NULL AS SIGNED ) FROM tab2
----
-1
NULL
-1
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6423
SELECT + col1 / - + col2 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-1
NULL
-1
NULL
-2
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL <= col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT ALL + + col1 + + - col1 AS col0 FROM tab2 WHERE NOT - - col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + + col1 + + - col1 AS col0 FROM tab2 WHERE NOT - - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 * - 72 FROM tab1 WHERE NOT + 84 IS NULL
----
-4248
-4896
-6912

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

skipif mysql # not compatible
query I rowsort label-6429
SELECT + MIN ( ALL + CAST ( 32 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6430
SELECT CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT + 36 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + + col1 AND - - ( - 26 ) + + ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT + 36 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + + col1 AND - - ( - 26 ) + + ( CAST ( NULL AS INTEGER ) )
----
0

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

query I rowsort
SELECT DISTINCT col1 * - + 88 FROM tab1
----
-1232
-4136
-440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + SUM( DISTINCT - 60 ) FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6435
SELECT + SUM ( DISTINCT - 60 ) FROM tab0 cor0
----
-60

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

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

query I rowsort
SELECT + col2 * + 21 AS col1 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT + ( ( + col1 ) ) FROM tab2 AS cor0 WHERE col0 * 74 < - col0
----

query I rowsort
SELECT DISTINCT - col2 * - 38 * - + col1 + + + col2 FROM tab1 AS cor0
----
-11151
-121380
-50976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT + + COUNT( * ) DIV + - 2 FROM tab0 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT + COUNT( * ) * + 63 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + COUNT ( * ) * + 63 FROM tab1 AS cor0
----
189

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

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE 36 + - 87 BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT - CAST( - - ( - col0 ) AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6446
SELECT - CAST ( - - ( - col0 ) AS INTEGER ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col0 + + 88 * + 21 + + - 25 AS col0 FROM tab1
----
1874
1908
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT COUNT( * ) AS col1 FROM tab0 WHERE + + col1 + - 96 * + col2 - 98 + col0 * - 65 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE + + col1 + - 96 * + col2 - 98 + col0 * - 65 IS NOT NULL
----
3

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

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

query I rowsort
SELECT DISTINCT col2 + + col1 + - col1 * col0 * - + col0 AS col1 FROM tab0
----
158980
18353
9509

query I rowsort
SELECT DISTINCT + 45 * - col1 FROM tab2
----
-2295
-3015
-3465

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

query I rowsort
SELECT ALL col0 + col0 + + + col2 FROM tab2
----
115
168
208

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT - MIN( ALL col1 ) * - MIN( ALL col2 ) * + COUNT( * ) + - COUNT( * ) + - COUNT( * ) DIV + SUM( ALL + col0 ) + + - 85 * + 41 FROM tab0
----
-3458

skipif mysql # not compatible
query I rowsort label-6455
SELECT - MIN ( ALL col1 ) * - MIN ( ALL col2 ) * + COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) / + SUM ( ALL + col0 ) + + - 85 * + 41 FROM tab0
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + 56 + + + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6456
SELECT + 56 + + + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
255

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

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT 32 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col1 FROM tab0 WHERE NOT + - col0 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6462
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE + - col1 * col0 <> - col0
----
14
47
5

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= ( - col0 - + col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL MAX ( ALL 78 ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 52 <> col1 + - 96 - + - col2 * - col0
----

query II rowsort
SELECT ALL + - 63 AS col0, 24 * + col2 AS col0 FROM tab2 cor0
----
-63
1392
-63
552
-63
960

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

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

query I rowsort
SELECT col0 * 62 + - col1 AS col1 FROM tab0 AS cor0
----
5373
6013
849

query I rowsort
SELECT DISTINCT - 38 * + + col1 FROM tab1 WHERE NOT + 16 < col1
----
-190
-532

query II rowsort
SELECT DISTINCT + 63 AS col1, col0 FROM tab1
----
63
51
63
85
63
91

query I rowsort
SELECT col0 * + + 7 FROM tab0
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT CAST( col2 AS SIGNED ) * + 24 AS col1 FROM tab2
----
1392
552
960

skipif mysql # not compatible
query I rowsort label-6476
SELECT CAST ( col2 AS INTEGER ) * + 24 AS col1 FROM tab2
----
1392
552
960

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 82 <> - + col0
----

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

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + MAX ( - - 57 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
57

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

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - + 25 * SUM ( 96 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + + 6, - col2 AS col1 FROM tab0 AS cor0
----
6
-10
6
-47
6
-99

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

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

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

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 AS cor0 WHERE - col2 * + 35 * + col0 IS NULL AND + 22 * 0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL + CAST( + 45 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + CAST ( + 45 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 * + 48 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT ALL + + 93 * + + 99 + col0 FROM tab0 AS cor0
----
9222
9294
9304

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

query I rowsort
SELECT ALL + col0 + + ( + + 19 ) + col1 AS col2 FROM tab0
----
115
117
127

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

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL COUNT ( + + col1 ) FROM tab1
----
3

query I rowsort
SELECT - 52 FROM tab1 WHERE - col1 < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT COUNT( ALL 89 ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT COUNT ( ALL 89 ) FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 25 + - col2 AS col2 FROM tab2
----
-15
-33
2

query I rowsort
SELECT ALL 12 - - - ( - 56 ) FROM tab0
----
68
68
68

query I rowsort
SELECT ALL + + 44 * + 69 AS col0 FROM tab1 AS cor0
----
3036
3036
3036

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 >= ( - + col2 + - 42 + 60 - - col1 + - + col1 + col1 * - - 80 )
----
97
1
99

query I rowsort
SELECT + - ( - + col0 ) * - - col0 + - col2 AS col0 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT DISTINCT + + col1 DIV - 59 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + + col1 / - 59 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL + MIN( DISTINCT + + 33 ) * + COUNT( * ) * + - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + MIN ( DISTINCT + + 33 ) * + COUNT ( * ) * + - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-9009

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 85 - + - col1, ( - col1 ) / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( col0 ) ) col2 FROM tab0 AS cor0
----
15
87
97

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT 29 DIV - - ( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT 29 / - - ( col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT - COUNT( DISTINCT - col0 ) AS col1, 12 AS col2 FROM tab1 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-6509
SELECT - COUNT ( DISTINCT - col0 ) AS col1, 12 AS col2 FROM tab1 AS cor0
----
-3
12

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

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

query I rowsort
SELECT ( + ( - 92 ) ) * - - col1 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT DISTINCT + col0 DIV + 38 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT + col0 / + 38 AS col0 FROM tab1 AS cor0
----
1
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL MAX( - col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6515
SELECT ALL MAX ( - col1 ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + 94 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT + - MAX( 78 ) * + 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3822

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + - MAX ( 78 ) * + 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3822

query I rowsort
SELECT ALL - 62 + + - col1 * col2 FROM tab1
----
-1406
-3258
-357

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT col2, col2 + col0 + + 49 AS col2 FROM tab0
----
10
146
47
111
99
245

query I rowsort
SELECT DISTINCT col0 + - + col2 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + col2 * + 27 + col0 * 63 * - - 12 + - + col0 FROM tab0 AS cor0
----
12594
65955
75908

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

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

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

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

query I rowsort
SELECT + 18 * - col1 FROM tab1 cor0
----
-252
-846
-90

query II rowsort
SELECT ALL - 16 AS col0, - 46 + + col0 FROM tab1 AS cor0
----
-16
39
-16
45
-16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 42 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 42 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT MAX( ALL - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-6531
SELECT MAX ( ALL - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

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

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

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

query I rowsort
SELECT DISTINCT 22 + col0 + + col1 * + col2 AS col2 FROM tab1
----
1417
3309
402

query I rowsort
SELECT - col1 * ( - col0 ) + + + col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT DISTINCT - 18 + - 72 FROM tab2
----
-90

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

query I rowsort
SELECT 75 + + - col2 * + 82 FROM tab0
----
-3779
-745
-8043

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT ALL - 30 + - COUNT( * ) - 18 AS col1, - COUNT( * ) AS col1 FROM tab0
----
-51
-3

skipif mysql # not compatible
query II rowsort label-6540
SELECT ALL - 30 + - COUNT ( * ) - 18 AS col1, - COUNT ( * ) AS col1 FROM tab0
----
-51
-3

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

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + 77 * ( - + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT DISTINCT col0 + CAST( 3 AS SIGNED ) AS col1 FROM tab1
----
54
88
94

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT col0 + CAST ( 3 AS INTEGER ) AS col1 FROM tab1
----
54
88
94

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

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

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

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + COUNT( 54 ) + + MAX( ALL + + 65 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-6545
SELECT + COUNT ( 54 ) + + MAX ( ALL + + 65 ) FROM tab2
----
68

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

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

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

query I rowsort
SELECT 19 FROM tab0 AS cor0 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT ALL col1 + + + col0 FROM tab2 AS cor0 WHERE - 75 IS NOT NULL
----
141
142
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST( NULL AS SIGNED ) col0, + 89 FROM tab0
----
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST ( NULL AS INTEGER ) col0, + 89 FROM tab0
----
NULL
89

query I rowsort
SELECT DISTINCT 62 * col2 * + - 55 FROM tab1
----
-201190
-231880
-327360

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + MAX( - 77 ) FROM tab1 cor0 WHERE NOT ( + - col2 ) IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-6556
SELECT + MAX ( - 77 ) FROM tab1 cor0 WHERE NOT ( + - col2 ) IS NULL
----
-77

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

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

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

query II rowsort
SELECT ALL + col0 AS col1, col2 * + col0 AS col0 FROM tab2 cor0
----
46
1058
64
2560
75
4350

query II rowsort
SELECT + col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6561
SELECT + - 57, 46 DIV col2 - + col2 AS col2 FROM tab0 AS cor0
----
-57
-47
-57
-6
-57
-99

skipif mysql # not compatible
query II rowsort label-6561
SELECT + - 57, 46 / col2 - + col2 AS col2 FROM tab0 AS cor0
----
-57
-47
-57
-6
-57
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL - COUNT( * ) * SUM( ALL + - 99 ) FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL - COUNT ( * ) * SUM ( ALL + - 99 ) FROM tab0
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6564
SELECT + CAST( + col2 AS SIGNED ), 48 * - col2 AS col0 FROM tab1
----
59
-2832
68
-3264
96
-4608

skipif mysql # not compatible
query II rowsort label-6564
SELECT + CAST ( + col2 AS INTEGER ), 48 * - col2 AS col0 FROM tab1
----
59
-2832
68
-3264
96
-4608

query I rowsort
SELECT ALL + 50 * + ( - col2 ) FROM tab1
----
-2950
-3400
-4800

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 26 * col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + 29 * + col2 - + + 92 FROM tab0
----
1352
219
2780

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 28 IS NULL
----

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

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

query I rowsort
SELECT col0 + - + col2 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / + + col0 - + - col2 - 64 * - ( 86 ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT + + CAST( 96 AS SIGNED ) * - - 12 + ( + ( - ( + COUNT( * ) ) ) ) FROM tab1 AS cor0
----
1149

skipif mysql # not compatible
query I rowsort label-6575
SELECT + + CAST ( 96 AS INTEGER ) * - - 12 + ( + ( - ( + COUNT ( * ) ) ) ) FROM tab1 AS cor0
----
1149

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL - + SUM( ALL CAST( + 20 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - + SUM ( ALL CAST ( + 20 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT - col1 * + + 64 * - col0 AS col0 FROM tab2 cor0
----
150144
315392
321600

query I rowsort
SELECT col1 * col1 * + col2 AS col2 FROM tab1
----
1475
150212
18816

query I rowsort
SELECT ALL col2 + + col0 * + + 87 FROM tab2
----
4025
5608
6583

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

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - COUNT ( * ) + + MIN ( - col0 ) FROM tab1
----
-94

query I rowsort
SELECT ALL - col2 * + - 34 FROM tab2
----
1360
1972
782

query I rowsort
SELECT ALL + 22 + + col1 FROM tab1
----
27
36
69

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col0 * - col0 * col1 * - + col2 + 78 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT MIN( ALL col1 ) col1 FROM tab1
----
5

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

query I rowsort
SELECT ALL col2 + + + 24 FROM tab0
----
123
34
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 - - col1 col2 FROM tab2
----
56
72
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL + MAX( 46 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + MAX ( 46 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
46

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - + col1 > - + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT MIN( col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT MIN ( col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT SUM( ALL - - col2 ) AS col1 FROM tab2 WHERE NOT col0 BETWEEN - - col1 - - + col1 AND col0
----
121

skipif mysql # not compatible
query I rowsort label-6592
SELECT SUM ( ALL - - col2 ) AS col1 FROM tab2 WHERE NOT col0 BETWEEN - - col1 - - + col1 AND col0
----
121

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / 59 * 88 * + + col2 + col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT - ( + CAST( - - col1 AS SIGNED ) ) * + 81 AS col1 FROM tab0 AS cor0
----
-1701
-6561
-81

skipif mysql # not compatible
query I rowsort label-6596
SELECT - ( + CAST ( - - col1 AS INTEGER ) ) * + 81 AS col1 FROM tab0 AS cor0
----
-1701
-6561
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( - 14 + - col1 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( - 14 + - col1 ) AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 92, col2 * + col2, + - col1 )
----

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

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

query II rowsort
SELECT DISTINCT + 24 AS col0, col2 FROM tab0
----
24
10
24
47
24
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6602
SELECT * FROM tab0 WHERE NOT + 21 NOT IN ( col2 * col1, CAST( - col0 AS SIGNED ), - 1 / + - 30 + + ( - + 6 ) + col2 + 32, + ( + 43 ) * col1, 24 )
----

skipif mysql # not compatible
query III rowsort label-6602
SELECT * FROM tab0 WHERE NOT + 21 NOT IN ( col2 * col1, CAST ( - col0 AS INTEGER ), - 1 / + - 30 + + ( - + 6 ) + col2 + 32, + ( + 43 ) * col1, 24 )
----

query I rowsort
SELECT DISTINCT + col2 + - col1 + 76 * col0 * col2 * col1 * + + col0 AS col2 FROM tab2
----
1661264991
188637140
958791643

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + COUNT( * ) * 43 AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6605
SELECT + COUNT ( * ) * 43 AS col1 FROM tab0 AS cor0
----
129

query I rowsort
SELECT ALL - + ( 56 ) FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT - 8 DIV + 57 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6607
SELECT - 8 / + 57 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT - 4 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT - 4 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT CAST( 47 AS SIGNED ) AS col2 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6611
SELECT CAST ( 47 AS INTEGER ) AS col2 FROM tab2
----
47
47
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT ALL + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + MIN( + col2 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6613
SELECT ALL + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + MIN ( + col2 ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 82 * 64 FROM tab1 AS cor0
----
5248

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

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

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

query I rowsort
SELECT DISTINCT - - col0 - - 66 FROM tab2 cor0
----
112
130
141

query I rowsort
SELECT - 48 FROM tab2 WHERE + col2 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-6619
SELECT DISTINCT MAX ( DISTINCT + - ( - 58 ) ) AS col0, COUNT ( * ) FROM tab0
----
58
3

query I rowsort
SELECT DISTINCT + 56 + + col0 FROM tab2
----
102
120
131

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 29 + - 97 AS col2, col0 col1 FROM tab1 WHERE + + col1 > NULL
----

query I rowsort
SELECT 46 * - - col2 FROM tab1
----
2714
3128
4416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ( - - COUNT( - 46 ) ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6626
SELECT ( - - COUNT ( - 46 ) ) FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT ( + 54 ) AS col0 FROM tab0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6628
SELECT ALL AVG ( col0 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL AVG ( col0 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 52 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT col2 * - 77 AS col2 FROM tab1
----
-4543
-5236
-7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col0, - col2 col2 FROM tab0
----
90
-10
90
-47
90
-99

query II rowsort
SELECT ALL 13 AS col1, - col1 FROM tab0
----
13
-1
13
-21
13
-81

query I rowsort
SELECT col0 * - col2 * - 38 AS col2 FROM tab2
----
165300
40204
97280

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

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

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

query I rowsort
SELECT DISTINCT 51 FROM tab0 cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT ALL + CAST( + 53 AS SIGNED ) * + - COUNT( + col0 ) FROM tab1 AS cor0
----
-159

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT - + 11 + + col1 + - - 2 DIV - - col0 FROM tab1 AS cor0
----
-6
3
36

skipif mysql # not compatible
query I rowsort label-6639
SELECT - + 11 + + col1 + - - 2 / - - col0 FROM tab1 AS cor0
----
-6
3
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT ALL + CAST( 79 AS SIGNED ) AS col2 FROM tab0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + CAST ( 79 AS INTEGER ) AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT - col2 + + - ( + + col2 ) AS col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT + 29 * col1 FROM tab0
----
2349
29
609

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

query I rowsort
SELECT + ( 69 ) AS col0 FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6646
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) AS col1, + col0 * col1 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-6646
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) AS col1, + col0 * col1 FROM tab1
----
NULL
425
NULL
4277
NULL
714

query I rowsort
SELECT ALL col0 + + 87 AS col0 FROM tab2
----
133
151
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 59 * - col0 + col1 col2, - 4 FROM tab2 cor0
----
2765
-4
3853
-4
4492
-4

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

query II rowsort
SELECT ALL col1 + - 75 AS col0, 58 FROM tab1 AS cor0
----
-28
58
-61
58
-70
58

query I rowsort
SELECT + 3 * 97 FROM tab1 AS cor0
----
291
291
291

query I rowsort
SELECT DISTINCT + col2 + + col2 + + col0 - - col0 AS col1 FROM tab1 AS cor0
----
288
294
318

query I rowsort
SELECT - 53 * + col1 * - + col0 + - - col2 AS col1 FROM tab1
----
22584
226749
37938

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

query II rowsort
SELECT DISTINCT + 65 * + 38 AS col2, - 45 AS col2 FROM tab1, tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col2 * - - 84 NOT BETWEEN + col2 AND + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 60 + col0 AS col0 FROM tab0 AS cor0
----
-45
27
37

query I rowsort
SELECT ALL - col2 + - + col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 70 * - col2 / 21 * - - col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 33 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6663
SELECT - + CAST( + col1 AS SIGNED ) * + col2 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

skipif mysql # not compatible
query II rowsort label-6663
SELECT - + CAST ( + col1 AS INTEGER ) * + col2 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query I rowsort
SELECT ALL 68 / - + col2 FROM tab2 cor0 WHERE NOT ( + + 73 ) / + - col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT + col0 / + - col1 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 16 * + - col1 * + 65 * - + 45 + + + col1 + 98 + + col0 <= + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT + SUM( 18 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT + SUM ( 18 ) FROM tab1
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6670
SELECT * FROM tab0 WHERE NOT - col1 * + CAST( NULL AS SIGNED ) * col0 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT + - MAX( + 92 ) FROM tab0 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + - MAX ( + 92 ) FROM tab0 cor0
----
-92

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

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

query I rowsort
SELECT ALL + col1 * + col0 * + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT - CAST( 5 AS SIGNED ) AS col1 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6676
SELECT - CAST ( 5 AS INTEGER ) AS col1 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT col0 * - 42 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6678
SELECT col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 2 * + ( - col1 ) FROM tab0 AS cor0
----
162
2
42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6681
SELECT - COUNT( * ) DIV - - COUNT( * ) + - + 77 AS col1 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6681
SELECT - COUNT ( * ) / - - COUNT ( * ) + - + 77 AS col1 FROM tab2 cor0
----
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT ALL + col2 * col0 DIV ( - col0 ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + col2 * col0 / ( - col0 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col2 + 60 FROM tab2
----
100
118
83

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 83 AS col0 FROM tab2
----
19
37
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6688
SELECT col0 * - col1 * CAST( NULL AS DECIMAL ) + + - 12 * - - 56 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT col0 * - col1 * CAST ( NULL AS REAL ) + + - 12 * - - 56 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 * - col0 * - - col0 AS col1 FROM tab1
----
-218484
-606900
-695604

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

query II rowsort
SELECT ALL col2 + + 40, + col0 FROM tab0 AS cor0
----
139
97
50
87
87
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT + col0 + + 83 + - 42 DIV + - ( - col1 ) FROM tab2 AS cor0
----
129
147
158

skipif mysql # not compatible
query I rowsort label-6692
SELECT + col0 + + 83 + - 42 / + - ( - col1 ) FROM tab2 AS cor0
----
129
147
158

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

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

query I rowsort
SELECT + 44 * + + 85 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 65c9ae6c67bc1ffeb0d12f1a2efbeebd

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + 37 AS col2 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT col2 * CAST( + - col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6700
SELECT col2 * CAST ( + - col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 > + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, 12 FROM tab2
----
23
12
40
12
58
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6703
SELECT DISTINCT + 23, COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6703
SELECT DISTINCT + 23, COUNT ( * ) - + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
23
NULL

query II rowsort
SELECT + col2 AS col0, 33 AS col0 FROM tab0
----
10
33
47
33
99
33

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT + + ( - + ( - 2 ) ) NOT BETWEEN NULL AND - - 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT col1 < - + col2
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 12
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6712
SELECT * FROM tab2 WHERE NOT NULL = + CAST( + 74 AS SIGNED ) + - 93
----

skipif mysql # not compatible
query III rowsort label-6712
SELECT * FROM tab2 WHERE NOT NULL = + CAST ( + 74 AS INTEGER ) + - 93
----

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

query IIIIII rowsort
SELECT ALL * 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 DISTINCT 88 col0 FROM tab0 cor0
----
88

query I rowsort
SELECT ALL - col1 * 60 + + - ( + 32 ) + - col2 * - col1 + - col2 - + col0 AS col1 FROM tab0 AS cor0
----
-1147
-1179
-189

query I rowsort
SELECT - - col2 * + 55 * col0 + 15 * + + col2 * 37 AS col2 FROM tab0 AS cor0
----
53400
583110
64860

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT + ( - 42 ) + + + 27 DIV + + col1 FROM tab0 AS cor0
----
-15
-41
-42

skipif mysql # not compatible
query I rowsort label-6719
SELECT + ( - 42 ) + + + 27 / + + col1 FROM tab0 AS cor0
----
-15
-41
-42

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + 99 AS col1 FROM tab0
----
18
78
98

query II rowsort
SELECT ALL - ( - col2 ) AS col0, - col1 * col0 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
59
-425
68
-4277
96
-714

query I rowsort
SELECT DISTINCT + col0 * + col2 * 58 + col1 + col1 FROM tab1
----
283996
290880
358998

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

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

query I rowsort
SELECT 37 FROM tab1 WHERE - 98 NOT IN ( - + 11 + - 74 + - col2 * + + 19 )
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 5 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 5 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - + 7 FROM tab2 AS cor0
----
-58
-74
-84

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + 53 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + 81 - col2 FROM tab0
----
-18
34
71

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL col0 DIV + col2 - - col2 col1 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6737
SELECT ALL col0 / + col2 - - col2 col1 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - SUM( DISTINCT + ( - col0 ) ) * - 60 FROM tab1 AS cor0
----
-13620

skipif mysql # not compatible
query I rowsort label-6738
SELECT - SUM ( DISTINCT + ( - col0 ) ) * - 60 FROM tab1 AS cor0
----
-13620

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

query II rowsort
SELECT ALL - - col1 AS col1, + 72 FROM tab0 AS cor0
----
1
72
21
72
81
72

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

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

query I rowsort
SELECT + col0 * col2 * + - col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6744
SELECT ALL 12 DIV COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL 12 / COUNT ( * ) AS col1 FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL + - COUNT( * ) col0 FROM tab2 WHERE NOT - - 88 + - 96 / - 43 * + CAST( NULL AS SIGNED ) + + 68 + 49 >= - col2 + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT ALL + - COUNT ( * ) col0 FROM tab2 WHERE NOT - - 88 + - 96 / - 43 * + CAST ( NULL AS INTEGER ) + + 68 + 49 >= - col2 + col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT DISTINCT 86 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT 86 / - col0 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6748
SELECT - CAST( - 57 AS SIGNED ) DIV + - col2 + - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT - CAST ( - 57 AS INTEGER ) / + - col2 + - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - col1 * - 81 FROM tab1 AS cor0
----
1134
3807
405

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

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

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

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

query I rowsort
SELECT ALL + col1 + 95 FROM tab0
----
116
176
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT DISTINCT col1 + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL MIN( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL MIN ( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
23

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6759
SELECT DISTINCT + col2 AS col2, - CAST( - CAST( - - 14 AS SIGNED ) AS SIGNED ) * - + col2 + + col0 FROM tab1 cor0
----
59
-741
68
-861
96
-1293

skipif mysql # not compatible
query II rowsort label-6759
SELECT DISTINCT + col2 AS col2, - CAST ( - CAST ( - - 14 AS INTEGER ) AS INTEGER ) * - + col2 + + col0 FROM tab1 cor0
----
59
-741
68
-861
96
-1293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT ALL 50, + 92 FROM tab0 AS cor0 WHERE 53 + + CAST( + + col0 AS SIGNED ) + - col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL 50, + 92 FROM tab0 AS cor0 WHERE 53 + + CAST ( + + col0 AS INTEGER ) + - col2 IS NULL
----

query II rowsort
SELECT - col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT - col2 + - 46 * + - col2 FROM tab2
----
1035
1800
2610

query I rowsort
SELECT + 71 + - + col2 - col1 FROM tab2
----
-3
-46
-54

query I rowsort
SELECT ALL - col0 + + 97 FROM tab1
----
12
46
6

query III rowsort
SELECT * FROM tab0 WHERE - 11 IS NULL
----

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

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

query I rowsort
SELECT + col1 + - + 8 FROM tab2
----
43
59
69

query II rowsort
SELECT ALL - - col2 + - col2 AS col0, + col0 + - col0 - 60 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
0
-159
0
-270
0
-3867

query I rowsort
SELECT - col2 * - 48 AS col2 FROM tab0
----
2256
4752
480

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT + COUNT( * ) * MIN( + col1 ) AS col0, 73 * + COUNT( * ) AS col1 FROM tab1
----
15
219

skipif mysql # not compatible
query II rowsort label-6771
SELECT + COUNT ( * ) * MIN ( + col1 ) AS col0, 73 * + COUNT ( * ) AS col1 FROM tab1
----
15
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 41 col1 FROM tab0
----
3567
3977
615

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6774
SELECT DISTINCT 81 AS col2, ( 65 ) * CAST( NULL AS SIGNED ) + 85 * COUNT( * ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT 81 AS col2, ( 65 ) * CAST ( NULL AS INTEGER ) + 85 * COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

query I rowsort
SELECT - 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

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

query I rowsort
SELECT DISTINCT + 21 * - col2 * + + 71 * - - col1 + col0 AS col2 FROM tab0 AS cor0
----
-147512
-313023
-5676222

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab2
----
38

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6783
SELECT SUM ( + + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT COUNT( * ) * - 92 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT COUNT ( * ) * - 92 FROM tab1
----
-276

query II rowsort
SELECT 79 * + col0 AS col2, - col1 FROM tab1
----
4029
-14
6715
-5
7189
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - - MIN( + + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-6787
SELECT - - MIN ( + + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6788
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

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

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

query I rowsort
SELECT col0 * col2 * + col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col1 - - 32 FROM tab0 cor0
----
-1
31
-21
11
-81
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6794
SELECT DISTINCT - MIN( DISTINCT + col1 ) DIV - - 17 * COUNT( * ) + + COUNT( * ) + + 94 AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT - MIN ( DISTINCT + col1 ) / - - 17 * COUNT ( * ) + + COUNT ( * ) + + 94 AS col0 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col2
----

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

query I rowsort
SELECT + 0 FROM tab2 AS cor0 WHERE 15 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 6 FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT + 9 FROM tab1 cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL + col1 * - col2 * 87 FROM tab1 AS cor0
----
-116928
-25665
-278052

query I rowsort
SELECT col0 + - 96 * - 18 * - + col2 AS col0 FROM tab0 AS cor0
----
-170975
-17193
-81201

query I rowsort
SELECT - 82 / - col2 AS col0 FROM tab0 AS cor0 WHERE col2 * - 43 = - col0 * + - col1 + + col1
----

query I rowsort
SELECT + + col2 * - + col0 * - col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT ALL 48 + 91 + - 90 FROM tab0
----
49
49
49

query I rowsort
SELECT + 32 AS col2 FROM tab0 WHERE NULL IS NULL
----
32
32
32

query I rowsort
SELECT ALL col2 * - 19 + 4 AS col1 FROM tab0
----
-186
-1877
-889

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

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

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

query I rowsort
SELECT ALL col2 + - col0 - + ( + 93 ) * col2 * 4 FROM tab1 AS cor0 WHERE NOT - 94 * col2 > ( - col2 )
----
-21974
-25319
-35667

query I rowsort
SELECT DISTINCT - col2 - 74 FROM tab1 AS cor0
----
-133
-142
-170

query I rowsort
SELECT col2 + + 60 FROM tab0 cor0
----
107
159
70

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( NULL ) >= - 23 * + ( - col1 )
----

query I rowsort
SELECT - col1 * + col1 - + col2 * - col2 AS col1 FROM tab0
----
-341
-4352
9800

query I rowsort
SELECT DISTINCT - 47 / col0 FROM tab0 WHERE NOT - col0 / - ( - 39 ) NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 > ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 91 + col2 > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT + 87 + + col0 DIV + col1 FROM tab2
----
87
88

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + 87 + + col0 / + col1 FROM tab2
----
87
88

query I rowsort
SELECT DISTINCT - col1 - 68 FROM tab2
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + 77 + COUNT( * ) AS col1 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 77 + COUNT ( * ) AS col1 FROM tab0
----
80

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL < ( - col2 * + 18 )
----

query I rowsort
SELECT 51 - + col2 FROM tab1
----
-17
-45
-8

query I rowsort
SELECT ALL ( 48 ) AS col1 FROM tab2
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) < col1 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT col1 * 18 col0 FROM tab2 WHERE 98 < + CAST( + 6 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6828
SELECT DISTINCT col1 * 18 col0 FROM tab2 WHERE 98 < + CAST ( + 6 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 / + 87 ) IS NULL
----

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT ( - col0 ) + col1 * - ( col1 + - col0 ) FROM tab2
----
-1065
-301
461

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

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

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

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

query I rowsort
SELECT + 74 AS col0 FROM tab1
----
74
74
74

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - 33 - 72
----

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1
----
-11

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

query I rowsort
SELECT col1 * + col1 + + 0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + 48 * 14 AS col0 FROM tab2 AS cor0
----
672

query I rowsort
SELECT ALL col0 * col0 FROM tab1 AS cor0 WHERE NOT + 66 = - col2 * 4
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT 89 + 44 * + COUNT( * ) col2 FROM tab0 AS cor0
----
221

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6843
SELECT 89 + 44 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
221

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL AVG ( DISTINCT - col0 ) + - MAX( DISTINCT ( 40 ) ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL AVG ( DISTINCT - col0 ) + - MAX ( DISTINCT ( 40 ) ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 53 * - col1 AS col0 FROM tab2 cor0
----
-2703
-3551
-4081

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT ALL col2 + col1 DIV 7 FROM tab1
----
59
74
98

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL col2 + col1 / 7 FROM tab1
----
59
74
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + SUM( 53 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6849
SELECT + SUM ( 53 ) FROM tab2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT - SUM( - col1 ) * 42 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
2769

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - SUM ( - col1 ) * 42 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - 69 * MAX( ALL col1 + + 29 ) AS col1 FROM tab2 AS cor0
----
-7314

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 69 * MAX ( ALL col1 + + 29 ) AS col1 FROM tab2 AS cor0
----
-7314

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT SUM( ALL 66 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6854
SELECT SUM ( ALL 66 ) FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + COUNT( * ) * - SUM( ALL col1 ) FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT + COUNT ( * ) * - SUM ( ALL col1 ) FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6856
SELECT DISTINCT + COUNT( * ) DIV - 42 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + COUNT ( * ) / - 42 AS col1 FROM tab1 AS cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT DISTINCT CAST( - - 32 AS SIGNED ) * 92 FROM tab0
----
2944

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT CAST ( - - 32 AS INTEGER ) * 92 FROM tab0
----
2944

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN + 28 AND + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - ( - ( - col0 ) ) + + 37 AS col1 FROM tab2
----
-27
-38
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT COUNT( * ) * + 67 + - MAX( + 9 ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6863
SELECT COUNT ( * ) * + 67 + - MAX ( + 9 ) AS col1 FROM tab2
----
192

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

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + 32 + + COUNT( - col2 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-6866
SELECT + 32 + + COUNT ( - col2 ) AS col1 FROM tab2
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT 32 + - COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-6868
SELECT 32 + - COUNT ( * ) AS col0 FROM tab2
----
29

query I rowsort
SELECT ALL + col1 * + - ( col0 ) + + col0 AS col0 FROM tab0
----
-1200
-1740
0

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

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

query I rowsort
SELECT DISTINCT 99 - + col2 FROM tab2
----
41
59
76

query I rowsort
SELECT ALL - 54 + - col0 + col1 FROM tab0
----
-120
-150
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL - 48 - - COUNT( * ) * COUNT( ALL + col0 * 46 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - 48 - - COUNT ( * ) * COUNT ( ALL + col0 * 46 ) FROM tab2
----
-39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT + CAST( - 90 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-6875
SELECT + CAST ( - 90 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-90
-90
-90

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 25 / ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT ALL + 8 DIV 39 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + 8 / 39 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 3 * ( - col0 ) FROM tab0
----
261
291
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( + col2 ) )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT + col2 DIV + + 66 + - + col0 AS col2 FROM tab1 AS cor0
----
-50
-85
-90

skipif mysql # not compatible
query I rowsort label-6886
SELECT + col2 / + + 66 + - + col0 AS col2 FROM tab1 AS cor0
----
-50
-85
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + col0 = NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT + + MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col0 >= - col2
----

query I rowsort
SELECT - col0 - col2 AS col2 FROM tab2 cor0 WHERE NOT ( + 21 / - 18 ) NOT IN ( - col2 + + 88 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ALL - 21 DIV - - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 21 / - - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT - - MAX( DISTINCT + 73 ) col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6894
SELECT DISTINCT - - MAX ( DISTINCT + 73 ) col1 FROM tab0 AS cor0
----
73

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT col1 * 25 + + CAST( - + col0 AS SIGNED ) * - col0 AS col0 FROM tab1
----
2951
7350
9456

skipif mysql # not compatible
query I rowsort label-6897
SELECT col1 * 25 + + CAST ( - + col0 AS INTEGER ) * - col0 AS col0 FROM tab1
----
2951
7350
9456

query II rowsort
SELECT 31 + - 43, col2 + - col1 AS col0 FROM tab1
----
-12
21
-12
54
-12
82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) <= NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 21 + + 28 * - col0 AS col0 FROM tab2
----
-1309
-1813
-2121

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT col0 * - CAST( + col1 AS SIGNED ) + + + col0 AS col0 FROM tab2
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-6907
SELECT col0 * - CAST ( + col1 AS INTEGER ) + + + col0 AS col0 FROM tab2
----
-2300
-4864
-4950

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

query I rowsort
SELECT col2 + + - ( + col1 ) + + ( + 88 ) FROM tab2
----
51
60
79

query I rowsort
SELECT ALL - ( 79 ) * col2 + - - col2 + + - col0 + - col1 * 87 FROM tab0
----
-10728
-2694
-7906

query I rowsort
SELECT ALL + 42 - 1 * + 99 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT ALL col2 + - col0 + col1 FROM tab2 AS cor0
----
28
50
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 52 + + col1 + + col0 / col2 BETWEEN - 71 AND - 99
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( + 73 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( + 48 * - col0 * - col0 / - col0 + 96 ) NOT BETWEEN - 46 AND NULL
----
9

skipif mysql # not compatible
query I rowsort label-6916
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + 48 * - col0 * - col0 / - col0 + 96 ) NOT BETWEEN - 46 AND NULL
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6917
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 12 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 60 * - col2 * col2 + 56 * - col2 AS col0 FROM tab0 AS cor0 WHERE - 64 BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + MAX( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT + col0 * - col1 - - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT + col0 * - col1 - - col0 < NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL - 81 + + - COUNT( * ) + + 21 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - 81 + + - COUNT ( * ) + + 21 FROM tab2
----
-63

query I rowsort
SELECT DISTINCT col1 + + ( + + ( col2 ) ) * - + 14 AS col1 FROM tab1
----
-1330
-821
-905

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6926
SELECT * FROM tab1 WHERE NOT 64 BETWEEN NULL AND + col2 * - + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6926
SELECT * FROM tab1 WHERE NOT 64 BETWEEN NULL AND + col2 * - + CAST ( - col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - MIN( - + col1 ) * + - 90 FROM tab0
----
-7290

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - MIN ( - + col1 ) * + - 90 FROM tab0
----
-7290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL col2, col1 + + CAST( + col1 AS SIGNED ) * + ( col2 ) FROM tab0 WHERE NOT NULL = 85
----

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL col2, col1 + + CAST ( + col1 AS INTEGER ) * + ( col2 ) FROM tab0 WHERE NOT NULL = 85
----

query I rowsort
SELECT ALL - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

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

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - ( - + ( CAST ( + - col2 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( 1 )
----

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

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

query I rowsort
SELECT DISTINCT - AVG ( col2 ) FROM tab0 WHERE NOT ( - - col2 * - col2 / col0 * - + col1 ) >= NULL
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 92 ) > ( + col0 )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - - col1 - col1 NOT BETWEEN - - col2 AND col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT ALL 10 DIV col1 AS col1 FROM tab0 cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL 10 / col1 AS col1 FROM tab0 cor0
----
0
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT + + MAX( DISTINCT - ( - 68 ) ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + + MAX ( DISTINCT - ( - 68 ) ) FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( + col0 * - - col0 ) AND ( 62 + + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( + col0 * - - col0 ) AND ( 62 + + col1 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6945
SELECT DISTINCT - 51, CAST( + 42 AS SIGNED ) + ( COUNT( * ) ) AS col2 FROM tab0
----
-51
45

skipif mysql # not compatible
query II rowsort label-6945
SELECT DISTINCT - 51, CAST ( + 42 AS INTEGER ) + ( COUNT ( * ) ) AS col2 FROM tab0
----
-51
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT - 81 + - - COUNT( * ) DIV 67 AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - 81 + - - COUNT ( * ) / 67 AS col2 FROM tab2
----
-81

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6948
SELECT ALL ( + col0 ) DIV + 51 AS col2, - 60 FROM tab0
----
0
-60
1
-60
1
-60

skipif mysql # not compatible
query II rowsort label-6948
SELECT ALL ( + col0 ) / + 51 AS col2, - 60 FROM tab0
----
0
-60
1
-60
1
-60

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

query I rowsort
SELECT col0 + 38 AS col1 FROM tab2
----
102
113
84

query I rowsort
SELECT + 33 * + col0 + + 17 - + col1 * + col1 FROM tab2 cor0
----
-1066
-1997
-3800

query I rowsort
SELECT 27 + - + col2 AS col1 FROM tab1 AS cor0
----
-32
-41
-69

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

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

query I rowsort
SELECT DISTINCT + 4 * col0 - col2 + 42 FROM tab2 AS cor0
----
203
258
284

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 cor0 WHERE 53 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 85 + + 87 ) <> ( - col2 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT COUNT( - col0 ) * - - ( + 32 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6958
SELECT COUNT ( - col0 ) * - - ( + 32 ) FROM tab2
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT MIN( - ( + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT MIN ( - ( + col2 ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT ( - - MIN( + 81 ) ) * - COUNT( * ) AS col0 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT ( - - MIN ( + 81 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-243

query I rowsort
SELECT col2 * + 94 FROM tab1
----
5546
6392
9024

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 81 = - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + COUNT( * ) * - 45 + SUM( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6965
SELECT + COUNT ( * ) * - 45 + SUM ( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 * + - col0 * - - col2 AS col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 19 <= ( - col1 )
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 <= - col1
----

query I rowsort
SELECT + + 84 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + col2 BETWEEN - col2 AND 13 + + col0 + - + ( + col0 )
----
84
84
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT COUNT( * ) * 66 * + 75 AS col1 FROM tab0
----
14850

skipif mysql # not compatible
query I rowsort label-6974
SELECT COUNT ( * ) * 66 * + 75 AS col1 FROM tab0
----
14850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6975
SELECT DISTINCT - 67 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-6975
SELECT DISTINCT - 67 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
-67
NULL

query II rowsort
SELECT col2, col1 FROM tab0
----
10
21
47
81
99
1

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

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

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

query II rowsort
SELECT ALL - - 92 AS col1, col2 * - - col0 AS col1 FROM tab2 AS cor0
----
92
1058
92
2560
92
4350

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

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

query I rowsort
SELECT - col0 + - col0 + - - 22 AS col2 FROM tab2
----
-106
-128
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6982
SELECT 97 AS col0, + COUNT( * ) DIV - + COUNT( * ) FROM tab2, tab0 AS cor0
----
97
-1

skipif mysql # not compatible
query II rowsort label-6982
SELECT 97 AS col0, + COUNT ( * ) / - + COUNT ( * ) FROM tab2, tab0 AS cor0
----
97
-1

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

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col2 FROM tab2 WHERE ( col2 + + ( - + col2 ) > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + + - 49 col0 FROM tab1
----
-118
-118
-118

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

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

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

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

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

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

query I rowsort
SELECT + col1 - + col0 * + 57 FROM tab0 AS cor0
----
-4938
-5528
-774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - - 16 * - 17 + + 12 + + - col2 col0 FROM tab2 AS cor0
----
-223
-232
-251

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 < ( col1 )
----

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

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

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

query II rowsort
SELECT - + 58 * col2 + + - col0, col1 AS col0 FROM tab0 AS cor0
----
-2741
81
-5839
1
-667
21

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col1 <> ( NULL )
----

query II rowsort
SELECT col0, + 27 * - 79 AS col1 FROM tab2 AS cor0
----
46
-2133
64
-2133
75
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE + 56 <> + col0
----
-3

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE + 56 <> + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT SUM( + + col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT SUM ( + + col2 ) col2 FROM tab1
----
223

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - 67 DIV + 43 FROM tab0 WHERE NOT col2 * + 73 + + col1 IS NULL
----
46
9
98

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - 67 / + 43 FROM tab0 WHERE NOT col2 * + 73 + + col1 IS NULL
----
46
9
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT MAX( DISTINCT ( - - col1 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-7007
SELECT MAX ( DISTINCT ( - - col1 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT - col2 * + CAST( - col1 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

skipif mysql # not compatible
query I rowsort label-7009
SELECT - col2 * + CAST ( - col1 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT - 90 * MIN( + - col1 ) FROM tab1 AS cor0
----
4230

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - 90 * MIN ( + - col1 ) FROM tab1 AS cor0
----
4230

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - - 37 + + 61 + + 62 >= - - col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL col0 + 23 + - - col2 FROM tab0
----
120
219
85

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL MAX( DISTINCT 23 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL MAX ( DISTINCT 23 ) AS col0 FROM tab0
----
23

query I rowsort
SELECT - col0 * - + 2 AS col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT MAX( + col0 ) * - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
-9075

skipif mysql # not compatible
query I rowsort label-7018
SELECT MAX ( + col0 ) * - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-9075

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT - col1 / - col2 col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - + col0 * + col1 + col1 * + col1 FROM tab2 AS cor0
----
-536
1001
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + MIN( - + 68 ) FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7021
SELECT + MIN ( - + 68 ) FROM tab1 cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT + CAST( - - col1 AS SIGNED ) * - 0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7022
SELECT + CAST ( - - col1 AS INTEGER ) * - 0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col1 / + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 43, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT ALL - col0 DIV + - col0 + + 66 AS col0 FROM tab0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL - col0 / + - col0 + + 66 AS col0 FROM tab0
----
67
67
67

query I rowsort
SELECT + col1 + + + col2 AS col0 FROM tab0
----
100
128
31

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

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

query I rowsort
SELECT + 8 * - - col2 + + ( - col2 ) - col1 FROM tab0
----
248
49
692

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7029
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-7029
SELECT - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - + col2 * - + 31 + + col1 AS col2 FROM tab1 AS cor0
----
1834
2155
2990

query II rowsort
SELECT DISTINCT col2 AS col0, + 61 AS col1 FROM tab1 cor0
----
59
61
68
61
96
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + + MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7033
SELECT + + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

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

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

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

query II rowsort
SELECT DISTINCT 33 AS col0, col2 * - col2 * + col0 FROM tab1
----
33
-295885
33
-420784
33
-470016

query II rowsort
SELECT + col1, col0 FROM tab0
----
1
97
21
87
81
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + 53 col2 FROM tab1
----
-1325
-1325
-1325

query II rowsort
SELECT ALL 68 AS col1, ( - col2 ) * - - col0 * + + col1 FROM tab2
----
68
-197120
68
-291450
68
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT + 78 DIV - 72 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 78 / - 72 FROM tab0
----
-1
-1
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7042
SELECT ALL SUM ( DISTINCT + ( + col2 ) ) col1 FROM tab2
----
121

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT DISTINCT 58, ( + COUNT( * ) ) col1 FROM tab1
----
58
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
0
68
0
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT + col2 FROM tab1 WHERE NOT - - 47 / CAST( - col2 AS SIGNED ) - + col1 < 39 + - - col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-7046
SELECT + col2 FROM tab1 WHERE NOT - - 47 / CAST ( - col2 AS INTEGER ) - + col1 < 39 + - - col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - CAST( + + ( - col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7047
SELECT - CAST ( + + ( - col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + 86 + - 74 FROM tab1
----
12

query I rowsort
SELECT + col1 FROM tab1 WHERE + + col1 > - 73 * - 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT + 47 + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
132
138
98

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 47 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
132
138
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT + col1 * - col0 DIV - + col0 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7051
SELECT + col1 * - col0 / - + col0 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT - 57 + + 93 * + SUM( - 22 ) AS col1 FROM tab0 AS cor0
----
-6195

skipif mysql # not compatible
query I rowsort label-7052
SELECT - 57 + + 93 * + SUM ( - 22 ) AS col1 FROM tab0 AS cor0
----
-6195

query I rowsort
SELECT + 31 + - 81 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT CAST( - 3 AS SIGNED ) FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7054
SELECT CAST ( - 3 AS INTEGER ) FROM tab1
----
-3
-3
-3

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

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

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

query I rowsort
SELECT + 18 FROM tab1 WHERE NULL IS NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL MIN( + 84 ) * - - COUNT( * ) + + + 30 + - 40 * 17 FROM tab2
----
-398

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL MIN ( + 84 ) * - - COUNT ( * ) + + + 30 + - 40 * 17 FROM tab2
----
-398

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

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

query I rowsort
SELECT ALL + col1 + - col2 / + - col2 FROM tab2 WHERE col0 NOT BETWEEN + - col2 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT DISTINCT + 73 AS col0, MAX( ALL - 28 ) AS col0 FROM tab1
----
73
-28

skipif mysql # not compatible
query II rowsort label-7064
SELECT DISTINCT + 73 AS col0, MAX ( ALL - 28 ) AS col0 FROM tab1
----
73
-28

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col0 FROM tab1 AS cor0 WHERE NOT + ( - - col1 ) IS NULL
----
73
73
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT ALL - col1 DIV - col0 * + - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - col1 / - col0 * + - col2 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT ALL - col1 DIV + 7 col0 FROM tab0 AS cor0
----
-11
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7071
SELECT ALL - col1 / + 7 col0 FROM tab0 AS cor0
----
-11
-3
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7073
SELECT ALL CAST( NULL AS SIGNED ) col0, 85 AS col0 FROM tab2 AS cor0
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7073
SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0
----
NULL
85
NULL
85
NULL
85

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

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

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

query I rowsort
SELECT + 60 * + col1 * - col0 FROM tab0
----
-109620
-5820
-72900

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

query I rowsort
SELECT DISTINCT - 70 FROM tab0 WHERE NOT + col2 * + col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7079
SELECT DISTINCT - 41 * + COUNT( * ), - COUNT( DISTINCT - col0 ) / MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-123
NULL

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT - 41 * + COUNT ( * ), - COUNT ( DISTINCT - col0 ) / MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-123
NULL

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

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

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT MIN( + 22 ) * 53 AS col1 FROM tab2
----
1166

skipif mysql # not compatible
query I rowsort label-7082
SELECT MIN ( + 22 ) * 53 AS col1 FROM tab2
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - 84 * - COUNT( * ) - + + 32 AS col2 FROM tab2 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-7083
SELECT - 84 * - COUNT ( * ) - + + 32 AS col2 FROM tab2 AS cor0
----
220

query II rowsort
SELECT ( col2 ) AS col2, - 76 FROM tab1 AS cor0
----
59
-76
68
-76
96
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - MIN( DISTINCT - 41 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7085
SELECT - MIN ( DISTINCT - 41 ) FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT - COUNT( * ) * - + MAX( col2 ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - COUNT ( * ) * - + MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
174

query I rowsort
SELECT - col1 * - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 84 * + - col2 AS col0 FROM tab2 AS cor0
----
1932
3360
4872

query I rowsort
SELECT ALL - + col2 * - + 2 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 + + col1 * - - col2 col0 FROM tab1 AS cor0 WHERE 37 IN ( - 77 / - - col0, col2 )
----

query I rowsort
SELECT - 18 * + 57 * + - 75 + + + 12 AS col2 FROM tab0 AS cor0
----
76962
76962
76962

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT COUNT( * ) col0 FROM tab0 WHERE col2 + col0 <> 90
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7093
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 WHERE col2 + col0 <> 90
----
3

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

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

query I rowsort
SELECT col2 + - 86 + - col2 AS col1 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT - 0 + - col0 + col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 + - 85 * col2 * + + col2 FROM tab0
----
-187780
-833182
-8587

query III rowsort
SELECT * FROM tab0 WHERE + + 24 > ( col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT col1 + col2 - col0 + - col1 AS col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col0 >= + - 17 )
----

query I rowsort
SELECT 63 + 96 + - 41 FROM tab1
----
118
118
118

query I rowsort
SELECT ALL - col0 - + ( - 29 ) AS col0 FROM tab0 AS cor0
----
-58
-68
14

query I rowsort
SELECT DISTINCT - col1 * + col1 - + - 70 AS col0 FROM tab2 AS cor0
----
-2531
-4419
-5859

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

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

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

query I rowsort
SELECT + 66 * - 10 * + ( - + col0 ) FROM tab0
----
57420
64020
9900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT MAX( ALL - + col0 ) DIV + - 88 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7107
SELECT MAX ( ALL - + col0 ) / + - 88 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT col1 DIV col0 * - col0 FROM tab2
----
-46
-64
0

skipif mysql # not compatible
query I rowsort label-7108
SELECT col1 / col0 * - col0 FROM tab2
----
-46
-64
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col1 * + - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

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

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL 98 * + CAST ( NULL AS INTEGER ) + - 40 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, 42 AS col1 FROM tab0 AS cor0
----
-10
42
-47
42
-99
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT DISTINCT col1 DIV 86 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT col1 / 86 AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col2, - 52 AS col1 FROM tab2 AS cor0
----
-23
-52
-40
-52
-58
-52

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

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

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

query I rowsort
SELECT ALL - 27 * col2 + + col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT ALL 6 DIV + MAX( DISTINCT - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL 6 / + MAX ( DISTINCT - col2 ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT - col0, + col0 AS col2 FROM tab0
----
-15
15
-87
87
-97
97

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

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

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

query I rowsort
SELECT 58 * + col2 FROM tab1 AS cor0
----
3422
3944
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT DISTINCT col0 + + ( - col0 ) - - - 34 * 76 * col2 * - - 64 - + CAST( - col2 AS SIGNED ) FROM tab0
----
-16372125
-1653750
-7772625

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT col0 + + ( - col0 ) - - - 34 * 76 * col2 * - - 64 - + CAST ( - col2 AS INTEGER ) FROM tab0
----
-16372125
-1653750
-7772625

query I rowsort
SELECT - 37 + ( - col1 ) AS col1 FROM tab1
----
-42
-51
-84

query I rowsort
SELECT - 29 + 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + 99 + - - col1 AS col2 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT DISTINCT col0 - + col1 + - + col2 * - col0 FROM tab2 AS cor0
----
1053
2547
4358

query I rowsort
SELECT - 87 * - 32 AS col0 FROM tab1 AS cor0
----
2784
2784
2784

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL - + COUNT( - + ( - 68 ) ) + - - MAX( 78 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - + COUNT ( - + ( - 68 ) ) + - - MAX ( 78 ) FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT ALL + col1, col2 + col2 FROM tab0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - COUNT( * ) * 93 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-7134
SELECT - COUNT ( * ) * 93 FROM tab2
----
-279

query I rowsort
SELECT ALL - 47 + col2 - + - col0 AS col2 FROM tab1
----
100
112
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7136
SELECT DISTINCT ( col2 ) - col2 DIV - + col2 AS col0, + col0 * - col2 FROM tab2
----
24
-1058
41
-2560
59
-4350

skipif mysql # not compatible
query II rowsort label-7136
SELECT DISTINCT ( col2 ) - col2 / - + col2 AS col0, + col0 * - col2 FROM tab2
----
24
-1058
41
-2560
59
-4350

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT + - MAX( DISTINCT + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7139
SELECT + - MAX ( DISTINCT + col2 ) FROM tab1 cor0
----
-96

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + + + ( col1 ) + + 54 / 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT ALL + col2 DIV 75 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL + col2 / 75 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT + 4 + ( MIN( + 11 ) ) AS col2 FROM tab1 WHERE NOT NULL < + - 85 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT + 4 + ( MIN ( + 11 ) ) AS col2 FROM tab1 WHERE NOT NULL < + - 85 - + col1
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 94 col2 FROM tab1 AS cor0
----
5546
6392
9024

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - - MIN( + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7149
SELECT - - MIN ( + col1 ) FROM tab0 cor0
----
1

query I rowsort
SELECT 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - 50
----

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

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

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

query I rowsort
SELECT DISTINCT 16 * - - col2 * + col0 FROM tab1
----
78336
80240
99008

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT - 14 + - MAX( + + col2 ) FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - 14 + - MAX ( + + col2 ) FROM tab0
----
-113

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT ( + - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7159
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT ( + - col1 ) IS NULL
----
3

query I rowsort
SELECT ALL + - col2 * + + 24 * - + 9 * + 50 AS col0 FROM tab0 AS cor0
----
1069200
108000
507600

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7162
SELECT col0, + 21 DIV col0 DIV - 64 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-7162
SELECT col0, + 21 / col0 / - 64 FROM tab0
----
15
0
87
0
97
0

query II rowsort
SELECT - 73, + ( - col0 ) AS col0 FROM tab2
----
-73
-46
-73
-64
-73
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7164
SELECT DISTINCT COUNT( * ) + - COUNT( * ) DIV 15 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) / 15 FROM tab2
----
3

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

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

query I rowsort
SELECT ALL col2 * - - col0 * col1 - 42 FROM tab1 AS cor0
----
25033
290794
68502

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

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

query I rowsort
SELECT DISTINCT - 98 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-149
-165
-175

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7171
SELECT + CAST( NULL AS SIGNED ) + 36 / + - 21 AS col1, + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7171
SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL
NULL

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

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

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

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

query II rowsort
SELECT ALL - ( + ( col2 ) ) AS col1, 14 FROM tab0
----
-10
14
-47
14
-99
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + MIN( - col1 ) FROM tab1 AS cor0 WHERE 35 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + MIN ( - col1 ) FROM tab1 AS cor0 WHERE 35 <> NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL MAX( + + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL MAX ( + + 79 ) FROM tab0
----
79

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 >= col1
----
15
81
47

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IN ( + 41 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - 25 + + - MAX( DISTINCT + + 83 ) + + COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-7186
SELECT - 25 + + - MAX ( DISTINCT + + 83 ) + + COUNT ( * ) FROM tab1
----
-105

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

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

query I rowsort
SELECT 6 + col2 AS col2 FROM tab1
----
102
65
74

query I rowsort
SELECT - 13 + - - col0 + - - col1 FROM tab2
----
128
129
84

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

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

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

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

query I rowsort
SELECT ALL col2 + + - col2 * + 93 AS col0 FROM tab0
----
-4324
-9108
-920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL = + 47
----

skipif mysql # not compatible
query I rowsort label-7195
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL = + 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT + + 71 AS col0 FROM tab2 AS cor0 WHERE - col0 * 19 > + - col2 / - + col2 + + + CAST( NULL AS SIGNED ) * + - col2 * - 80
----

skipif mysql # not compatible
query I rowsort label-7196
SELECT + + 71 AS col0 FROM tab2 AS cor0 WHERE - col0 * 19 > + - col2 / - + col2 + + + CAST ( NULL AS INTEGER ) * + - col2 * - 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT DISTINCT + + col0 DIV col0 * col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + + col0 / col0 * col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + ( - 95 ) + + 63 FROM tab2 cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - ( 74 ) + + + col1 BETWEEN col0 AND + ( 72 ) + col2
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT COUNT( + 19 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT COUNT ( + 19 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7201
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7202
SELECT ALL - + col0 - CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7202
SELECT ALL - + col0 - CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-141
-142
-97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - - COUNT( * ) * + + 93 * - + 49 FROM tab1 cor0
----
-13671

skipif mysql # not compatible
query I rowsort label-7206
SELECT - - COUNT ( * ) * + + 93 * - + 49 FROM tab1 cor0
----
-13671

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

query I rowsort
SELECT - 33 * + col2 * + col2 * col2 FROM tab1 AS cor0
----
-10376256
-29196288
-6777507

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - SUM( ALL + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7209
SELECT - SUM ( ALL + col1 ) FROM tab0
----
-103

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT - 24 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT - 90 AS col0, + 59 AS col0 FROM tab1 AS cor0
----
-90
59
-90
59
-90
59

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - + 99 AS col2 FROM tab1 AS cor0
----
-99
-99
-99

query II rowsort
SELECT col0 AS col2, 15 AS col1 FROM tab2 AS cor0
----
46
15
64
15
75
15

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT DISTINCT + + MAX( DISTINCT - 19 ) * - + COUNT( * ), 66 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
171
75

skipif mysql # not compatible
query II rowsort label-7217
SELECT DISTINCT + + MAX ( DISTINCT - 19 ) * - + COUNT ( * ), 66 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
171
75

query I rowsort
SELECT ALL ( 0 ) * - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - col1 * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7220
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7220
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ( + ( - 27 ) ) FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT - COUNT( col0 ), COUNT( + - 22 ) * SUM( DISTINCT col0 ) * + 45 + - - 48 AS col2 FROM tab2 AS cor0
----
-3
25023

skipif mysql # not compatible
query II rowsort label-7222
SELECT - COUNT ( col0 ), COUNT ( + - 22 ) * SUM ( DISTINCT col0 ) * + 45 + - - 48 AS col2 FROM tab2 AS cor0
----
-3
25023

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT col2 + + + CAST( - 50 AS SIGNED ) + + col1 AS col0 FROM tab1
----
14
60
65

skipif mysql # not compatible
query I rowsort label-7226
SELECT col2 + + + CAST ( - 50 AS INTEGER ) + + col1 AS col0 FROM tab1
----
14
60
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL MIN( DISTINCT - - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL COUNT( * ) + 32 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL COUNT ( * ) + 32 FROM tab2
----
35

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT 5 + + ( - 28 ) DIV - - col0 * + col0 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7231
SELECT 5 + + ( - 28 ) / - - col0 * + col0 FROM tab2
----
5
5
5

query I rowsort
SELECT - col2 + + 20 - + col0 AS col2 FROM tab2 AS cor0
----
-113
-49
-84

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

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

query I rowsort
SELECT + 70 + - 74 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT + col0 + 19 AS col1 FROM tab1 AS cor0
----
104
110
70

query II rowsort
SELECT ALL 62 + + - 81 AS col0, 21 AS col2 FROM tab1
----
-19
21
-19
21
-19
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT ALL + COUNT( * ) * + 63 - + CAST( NULL AS SIGNED ) - + + MIN( - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + COUNT ( * ) * + 63 - + CAST ( NULL AS INTEGER ) - + + MIN ( - col0 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT + + CAST( ( - 80 ) AS SIGNED ) + - 19 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

skipif mysql # not compatible
query I rowsort label-7240
SELECT + + CAST ( ( - 80 ) AS INTEGER ) + - 19 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE col0 < NULL
----

query I rowsort
SELECT ALL - col1 * - col0 + + 81 - col2 FROM tab0 AS cor0
----
1249
1898
79

query I rowsort
SELECT + - col2 - 46 FROM tab1 cor0
----
-105
-114
-142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * - col2 col2 FROM tab0 AS cor0
----
4512
9504
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL + CAST( 80 AS SIGNED ) * 76 + - col0 FROM tab0 AS cor0
----
5983
5993
6065

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + CAST ( 80 AS INTEGER ) * 76 + - col0 FROM tab0 AS cor0
----
5983
5993
6065

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 86 - - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - col2 * + + col2 * col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT 56 * + SUM( ALL + col0 ) FROM tab2
----
10360

skipif mysql # not compatible
query I rowsort label-7250
SELECT 56 * + SUM ( ALL + col0 ) FROM tab2
----
10360

query I rowsort
SELECT - ( - col1 ) * 27 - - + col1 AS col0 FROM tab0
----
2268
28
588

query I rowsort
SELECT 97 * ( + + 69 ) FROM tab1
----
6693
6693
6693

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

query I rowsort
SELECT ALL col0 * + + 56 FROM tab0
----
4872
5432
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7255
SELECT ALL * FROM tab0 WHERE NOT NULL < - + col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7255
SELECT ALL * FROM tab0 WHERE NOT NULL < - + col2 + + + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + + CAST( NULL AS SIGNED ) AND col2 )
----

skipif mysql # not compatible
query I rowsort label-7257
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND col2 )
----

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

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

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

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

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-7262
SELECT - COUNT( DISTINCT - 30 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7262
SELECT - COUNT ( DISTINCT - 30 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT 91 * - 75 FROM tab0
----
-6825
-6825
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT COUNT( * ) + - 21 AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7264
SELECT COUNT ( * ) + - 21 AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT 87 + - - 15 + + col2 FROM tab1 AS cor0
----
161
170
198

query I rowsort
SELECT DISTINCT + col2 + col2 + - 38 AS col0 FROM tab2 AS cor0
----
42
78
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col1 + - col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT + col0 - + + 57 FROM tab1
----
-6
28
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 + + - col2 col2 FROM tab0 AS cor0
----
-97
115
32

query I rowsort
SELECT 15 * + col0 + - - 53 AS col2 FROM tab0 cor0
----
1358
1508
278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT COUNT( * ) DIV + - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7273
SELECT COUNT ( * ) / + - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) * - - col0 - + col0 AS col2 FROM tab2
----
-262208
-421950
-97382

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7276
SELECT + COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7278
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7278
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 32 FROM tab2 AS cor0
----
23
32
40
32
58
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - - COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7280
SELECT - - COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 88 * - + 11 AS col2 FROM tab0 AS cor0
----
-968
-968
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7282
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 91 <= - - col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 * - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + 12 AS col2 FROM tab1 AS cor0
----
168
564
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * + + ( - col0 ) + - + col2 col1 FROM tab1 WHERE NULL IS NULL
----
-3003
-4904
-5255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7287
SELECT + - col2 AS col1, + CAST( - + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) + - + col1 FROM tab2 WHERE NOT col2 * + + col0 + + 14 = col1 * - 54 + ( + + col0 ) * + col2 / + + col2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7287
SELECT + - col2 AS col1, + CAST ( - + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 WHERE NOT col2 * + + col0 + + 14 = col1 * - 54 + ( + + col0 ) * + col2 / + + col2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7288
SELECT * FROM tab1 WHERE NOT - col2 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) BETWEEN - 0 AND col1 + 67
----

skipif mysql # not compatible
query III rowsort label-7288
SELECT * FROM tab1 WHERE NOT - col2 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) BETWEEN - 0 AND col1 + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT 78 * SUM( DISTINCT + col1 ) FROM tab1
----
5148

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT 78 * SUM ( DISTINCT + col1 ) FROM tab1
----
5148

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7291
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT + + col1 * - col0 + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT + + col1 * - col0 + - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - ( MAX( - - col0 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7292
SELECT - ( MAX ( - - col0 ) ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT SUM( - 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7293
SELECT SUM ( - 50 ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT + - 35 * + 28 AS col0 FROM tab2 AS cor0
----
-980
-980
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7295
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - COUNT( * ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7298
SELECT - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7299
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col2 * - col0 * + col2 AS col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT 60 * + col2 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT COUNT( - 21 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7302
SELECT COUNT ( - 21 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT MIN( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7303
SELECT MIN ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + 12 col1, + col0 + - col0 AS col0, 65 - + - col2 * 91 col1 FROM tab1 AS cor0
----
9 values hashing to d83a5e7b0a9a021ca09c960f3acdc860

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT - + COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + col1 / + col1 IS NOT NULL AND 31 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, + col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT MIN( ALL - - col0 ) + - ( + - COUNT( * ) ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT MIN ( ALL - - col0 ) + - ( + - COUNT ( * ) ) AS col0 FROM tab2
----
49

query III rowsort
SELECT * FROM tab0 WHERE - + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + COUNT( * ) + - + ( - 58 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + COUNT ( * ) + - + ( - 58 ) FROM tab1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL + ( + MAX( + - col1 ) ) + + - CAST( COUNT( * ) AS SIGNED ) * + - 91 * + 95 FROM tab0
----
25934

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL + ( + MAX ( + - col1 ) ) + + - CAST ( COUNT ( * ) AS INTEGER ) * + - 91 * + 95 FROM tab0
----
25934

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT 96 - - - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 96 - - - COUNT ( * ) FROM tab2
----
93

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7314
SELECT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - 78 * - COUNT( * ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - 78 * - COUNT ( * ) FROM tab2
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT DISTINCT + col1 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + col2 - - ( - + col1 ) * - col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE col2 - - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT + col1 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + col2 - - ( - + col1 ) * - col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE col2 - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT + + 83 * - col1 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-1162
-51
-3901
-91
-415
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 55 ) col1 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT + CAST( NULL AS SIGNED ) * ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7320
SELECT + CAST ( NULL AS INTEGER ) * ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7322
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - ( CAST( col0 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7322
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - ( CAST ( col0 AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 81 ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
81

query II rowsort
SELECT col0, - 63 FROM tab1
----
51
-63
85
-63
91
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 20 * - col0 * + col1 FROM tab2
----
100500
46920
98560

query I rowsort
SELECT ALL col0 * + - 99 + col2 FROM tab0 WHERE ( ( NOT NULL IN ( - col2, 81, col2, + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - SUM( DISTINCT + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, - col1 col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + col2 * 89 * + 85 col1, col2 AS col1 FROM tab1 AS cor0
----
446394
59
514488
68
726336
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + MAX( ALL 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7332
SELECT + MAX ( ALL 93 ) FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT 90 - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7333
SELECT 90 - COUNT ( * ) FROM tab2
----
87

query I rowsort
SELECT DISTINCT col1 * - 3 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-153
-201
-231

query I rowsort
SELECT col2 - - col0 * + 42 FROM tab2
----
1955
2728
3208

query I rowsort
SELECT - col0 + ( - col2 ) AS col1 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( 7 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT DISTINCT - CAST( NULL AS SIGNED ) - COUNT( DISTINCT 46 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT 46 ) FROM tab1
----
NULL

query I rowsort
SELECT + 81 FROM tab2 WHERE NOT - col0 IS NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7340
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + 23 BETWEEN col1 - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7340
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + 23 BETWEEN col1 - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT - COUNT( * ) * + 27 AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7341
SELECT - COUNT ( * ) * + 27 AS col2 FROM tab2
----
-81

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( - col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * + col2 col2 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - 15 * MIN( - 76 ) FROM tab2
----
1140

skipif mysql # not compatible
query I rowsort label-7344
SELECT - 15 * MIN ( - 76 ) FROM tab2
----
1140

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE ( 45 ) * - col0 < col2
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 IN ( + col0 - + 55 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + MAX( DISTINCT col2 ) - + 94 AS col2 FROM tab1 WHERE + 39 IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-7347
SELECT + MAX ( DISTINCT col2 ) - + 94 AS col2 FROM tab1 WHERE + 39 IS NOT NULL
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 50 col1 FROM tab1 WHERE NOT ( + 6 + col0 * + 15 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 * - 46 FROM tab1
----
-3588

query I rowsort
SELECT ALL + col2 * - 16 FROM tab1
----
-1088
-1536
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL + COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7352
SELECT ALL + COUNT ( * ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT COUNT( 32 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7353
SELECT COUNT ( 32 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT - 15 DIV - 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - 15 / - 72 FROM tab2
----
0

query I rowsort
SELECT 98 * + col1 - - col1 FROM tab0 AS cor0
----
2079
8019
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 72 * + col0 ) = + col1
----

query I rowsort
SELECT DISTINCT - 71 - + col0 FROM tab2 cor0
----
-117
-135
-146

query I rowsort
SELECT - col1 * + col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-1833
-485
1136

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 15 * + ( col1 ) FROM tab2 AS cor0
----
1005
1155
765

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT MAX( + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7363
SELECT MAX ( + col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL - MAX( DISTINCT + 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - MAX ( DISTINCT + 39 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT SUM( 96 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
864

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT SUM ( 96 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab1 WHERE NOT ( - col1 * - 44 + - 75 ) NOT IN ( - col2 / + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / col1 <> - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT + COUNT( * ) * 90 AS col0 FROM tab2 cor0
----
270

skipif mysql # not compatible
query I rowsort label-7369
SELECT + COUNT ( * ) * 90 AS col0 FROM tab2 cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7370
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + col1 * col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL CAST( NULL AS SIGNED ) / + ( - COUNT( ALL - 36 ) / CAST( NULL AS SIGNED ) ) col2 FROM tab2 cor0 WHERE col0 NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT ALL CAST ( NULL AS INTEGER ) / + ( - COUNT ( ALL - 36 ) / CAST ( NULL AS INTEGER ) ) col2 FROM tab2 cor0 WHERE col0 NOT IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT + - 57 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + - 57 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-171

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 <> + col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT - + SUM( + col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - + SUM ( + col2 ) FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab2 cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7380
SELECT DISTINCT + col0 * CAST( 18 AS SIGNED ) FROM tab0 AS cor0
----
1566
1746
270

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + col0 * CAST ( 18 AS INTEGER ) FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE 87 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( 8 ) FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN ( 35 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN ( 35 ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT MAX( ALL col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT MAX ( ALL col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT + 60 * col2 FROM tab1 AS cor0
----
3540
4080
5760

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + COUNT( * ) * + SUM( - col0 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-7389
SELECT + COUNT ( * ) * + SUM ( - col0 ) FROM tab2
----
-555

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) IN ( + ( col2 ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7391
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + COUNT( * ) * - MAX( - col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7392
SELECT + COUNT ( * ) * - MAX ( - col2 ) FROM tab0
----
30

query II rowsort
SELECT + + col1 AS col2, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT - col2 - - - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - 57 * - COUNT( * ) col0 FROM tab1 cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7397
SELECT ALL - 57 * - COUNT ( * ) col0 FROM tab1 cor0
----
171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 * - col2 * 66 <= - 98 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 27 * + col1 FROM tab0 AS cor0
----
-2187
-27
-567

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + + col2 ) + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 < + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT CAST( - 60 AS SIGNED ) + 54 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-7403
SELECT CAST ( - 60 AS INTEGER ) + 54 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + COUNT( * ) FROM tab0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT + COUNT ( * ) FROM tab0 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT ALL 27 * - CAST( NULL AS SIGNED ) + - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 27 * - CAST ( NULL AS INTEGER ) + - + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col1 - - 50 + col1 <= + 1
----
97
1
99

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( + ( 24 ) ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT 77 DIV + - col0 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7408
SELECT 77 / + - col0 col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 < + 48
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - ( COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7410
SELECT - ( COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 43 + col0 * col0 FROM tab0 WHERE NOT + + 89 * + col2 + + - 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7412
SELECT ( - col1 ) DIV + + col1 AS col1, + col2 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-7412
SELECT ( - col1 ) / + + col1 AS col1, + col2 FROM tab2
----
-1
23
-1
40
-1
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + - col1 BETWEEN + + 6 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 96 FROM tab1 AS cor0 WHERE NOT 30 * + 4 * + 81 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7415
SELECT DISTINCT - - ( - - CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7415
SELECT DISTINCT - - ( - - CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL - 5 + + ( + COUNT( * ) ) + + + MAX( 88 ) col2 FROM tab1
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7417
SELECT ALL - 5 + + ( + COUNT ( * ) ) + + + MAX ( 88 ) col2 FROM tab1
----
86

query II rowsort
SELECT ALL 34 AS col0, col1 FROM tab1
----
34
14
34
47
34
5

query I rowsort
SELECT DISTINCT col0 + - + 53 FROM tab0
----
-38
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT 67 * + - COUNT( + - 29 ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT 67 * + - COUNT ( + - 29 ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT COUNT( * ) * + + 54 * + 96 FROM tab2
----
15552

skipif mysql # not compatible
query I rowsort label-7421
SELECT COUNT ( * ) * + + 54 * + 96 FROM tab2
----
15552

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / col1 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 4 + - - col1 FROM tab2
----
47
63
73

query II rowsort
SELECT DISTINCT 85 AS col2, col2 AS col2 FROM tab1
----
85
59
85
68
85
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT ALL col0 + - + col0 + - CAST( NULL AS SIGNED ) / + + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL col0 + - + col0 + - CAST ( NULL AS INTEGER ) / + + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT ( - 91 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( - 14 + col1 / - 56 + + 12 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT col1 + - CAST( + col1 AS SIGNED ) * - col0 col0 FROM tab1
----
430
4324
728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7430
SELECT col1 + - CAST ( + col1 AS INTEGER ) * - col0 col0 FROM tab1
----
430
4324
728

query I rowsort
SELECT 29 + - + col2 FROM tab2 cor0 WHERE NULL IN ( - col1 / col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col1 - + 58 * 63 FROM tab1 AS cor0
----
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( - ( col0 ) * + + col2 * ( CAST( 60 AS SIGNED ) ) + + 64 )
----

skipif mysql # not compatible
query I rowsort label-7434
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( - ( col0 ) * + + col2 * ( CAST ( 60 AS INTEGER ) ) + + 64 )
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT - - 99 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - - 99 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7437
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT - - ( - col0 ) DIV + 57 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT - - ( - col0 ) / + 57 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 2 * - 18 * + - col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT - MIN( ALL + col1 ) / COUNT( * ) * CAST( NULL AS SIGNED ) + 99 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT - MIN ( ALL + col1 ) / COUNT ( * ) * CAST ( NULL AS INTEGER ) + 99 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * ( - + 26 ) FROM tab1
----
-1326
-2210
-2366

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 IN ( ( col0 ), + col0 * + - 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - 58 AS col1, 33 * + 69 * + col1 FROM tab1 AS cor0
----
58
107019
58
11385
58
31878

query II rowsort
SELECT ALL + - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 22 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT + ( - - 4 ) AS col2 FROM tab0, tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - 83 NOT BETWEEN - - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - MIN( ALL + + 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-7449
SELECT - MIN ( ALL + + 11 ) FROM tab1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7450
SELECT ALL - + 46 DIV COUNT( * ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7450
SELECT ALL - + 46 / COUNT ( * ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT 2 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT 2 / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 1 * col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT - MAX( DISTINCT - 70 ) AS col0 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - MAX ( DISTINCT - 70 ) AS col0 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - + SUM( 92 ) AS col2 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-7454
SELECT - + SUM ( 92 ) AS col2 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT - col0 * + - col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 32 - + 70 + - col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + col1 * 74 ) IN ( + col1 * + 93 )
----

query I rowsort
SELECT - col0 + + col2 + 59 FROM tab2
----
35
36
42

query I rowsort
SELECT ALL 76 + - 2 + + 26 - + + col1 + col2 * - 71 FROM tab2
----
-1584
-2817
-4085

query I rowsort
SELECT DISTINCT + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT + col1 * - - CAST( NULL AS SIGNED ) / - 13 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + col1 * - - CAST ( NULL AS INTEGER ) / - 13 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - + 26 NOT BETWEEN - + 84 + col2 + - col0 AND 80 + - 18
----
51
14
96
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 10 + - col2, col1 * - 43 col1 FROM tab1
----
-49
-215
-58
-2021
-86
-602

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 - - col0 col1 FROM tab1 AS cor0
----
113
119
79

query II rowsort
SELECT - col0 + - - 60 AS col1, + 96 + - col2 FROM tab0 AS cor0
----
-27
86
-37
-3
45
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + + ( - - 74 ) - MIN( + 94 ) col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT ALL + + ( - - 74 ) - MIN ( + 94 ) col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col2 - + 16 AS col1 FROM tab1 cor0
----
43
52
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT + - COUNT( + 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + - COUNT ( + 6 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL + - SUM( + 63 ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + - SUM ( + 63 ) FROM tab2 AS cor0
----
-189

query II rowsort
SELECT ALL - col2, + 84 AS col0 FROM tab1 AS cor0
----
-59
84
-68
84
-96
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT SUM( + col0 ) * 84 FROM tab2
----
15540

skipif mysql # not compatible
query I rowsort label-7472
SELECT SUM ( + col0 ) * 84 FROM tab2
----
15540

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT MAX( + + 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT MAX ( + + 30 ) FROM tab0
----
30

query I rowsort
SELECT - 95 * - col2 * + - 6 FROM tab2
----
-13110
-22800
-33060

query I rowsort
SELECT ALL ( + 77 ) * 82 FROM tab0
----
6314
6314
6314

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT MAX( ALL + ( - + col1 ) ) AS col1, + 37 + - 58 AS col2 FROM tab0
----
-1
-21

skipif mysql # not compatible
query II rowsort label-7476
SELECT MAX ( ALL + ( - + col1 ) ) AS col1, + 37 + - 58 AS col2 FROM tab0
----
-1
-21

query I rowsort
SELECT + 62 * - ( + 87 ) FROM tab2
----
-5394
-5394
-5394

query I rowsort
SELECT ALL + 16 * col2 FROM tab2
----
368
640
928

onlyif mysql # DIV for integer division: 
query II rowsort label-7479
SELECT DISTINCT 10 DIV + col1 AS col0, col0 + 76 DIV - - col1 FROM tab1
----
0
56
0
92
2
100

skipif mysql # not compatible
query II rowsort label-7479
SELECT DISTINCT 10 / + col1 AS col0, col0 + 76 / - - col1 FROM tab1
----
0
56
0
92
2
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT + 83 * + COUNT( * ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + 83 * + COUNT ( * ) FROM tab2
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT + 34 DIV COUNT( ALL + - col0 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + 34 / COUNT ( ALL + - col0 ) FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT + + CAST( NULL AS SIGNED ) * - col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT + + CAST ( NULL AS INTEGER ) * - col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE - col0 * + 92 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 < + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 <> NULL
----

query II rowsort
SELECT ALL col0, col1 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab0 AS cor0 WHERE NOT col1 + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 21, - 14 + - col2 AS col0 FROM tab0 AS cor0
----
21
-113
21
-24
21
-61

query I rowsort
SELECT DISTINCT - + col0 + + 51 AS col0 FROM tab0 AS cor0 WHERE col1 + 32 + - + 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + 83 + - MIN( 47 ) + MIN( + col0 ) * - - 76 AS col2 FROM tab2 AS cor0
----
3532

skipif mysql # not compatible
query I rowsort label-7492
SELECT + 83 + - MIN ( 47 ) + MIN ( + col0 ) * - - 76 AS col2 FROM tab2 AS cor0
----
3532

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL < col1 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7495
SELECT + + CAST( NULL AS DECIMAL ) + - - ( + 38 ) + - col1 * + col1 + + 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT + + CAST ( NULL AS REAL ) + - - ( + 38 ) + - col1 * + col1 + + 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7496
SELECT DISTINCT col1 * - col1 AS col0 FROM tab1 AS cor0 WHERE + CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT col1 * - col1 AS col0 FROM tab1 AS cor0 WHERE + CAST ( - col2 AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT MAX( ALL + 6 ) + ( + 7 ) * + 52 AS col0 FROM tab2 AS cor0
----
370

skipif mysql # not compatible
query I rowsort label-7498
SELECT MAX ( ALL + 6 ) + ( + 7 ) * + 52 AS col0 FROM tab2 AS cor0
----
370

query I rowsort
SELECT DISTINCT - 10 + - + col0 + + col0 FROM tab0
----
-10

query I rowsort
SELECT ALL + 25 AS col2 FROM tab2 WHERE + - 74 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 27 + - 40 AS col2 FROM tab1
----
-13

query I rowsort
SELECT ALL col0 + - col2 + + col1 AS col2 FROM tab2
----
101
74
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT + COUNT( * ), - MAX( + col1 ) AS col0 FROM tab0 WHERE col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7504
SELECT + COUNT ( * ), - MAX ( + col1 ) AS col0 FROM tab0 WHERE col1 IS NULL
----
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 31 < - 64 * + col0 + + col2 - col0 * 61 * col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 78 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 34 + + 95 AS col2 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - - SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - - SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + + col1 * + + col2 + + col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT col1 + + - ( ( col2 ) ) FROM tab1
----
-21
-54
-82

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - 52 FROM tab0 AS cor0
----
-31
-51
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT + ( + + CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7514
SELECT + ( + + CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 78 col0 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7517
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7518
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT + - MAX( ALL - 33 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + - MAX ( ALL - 33 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7520
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 39 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7520
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 39 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ( - SUM( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7521
SELECT ( - SUM ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT ALL 74, 27 AS col2 FROM tab0
----
74
27
74
27
74
27

query I rowsort
SELECT col0 * 34 AS col2 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query II rowsort label-7524
SELECT 26 AS col1, COUNT( * ) AS col1 FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-7524
SELECT 26 AS col1, COUNT ( * ) AS col1 FROM tab0
----
26
3

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL 43 AS col0, - col0 * - col1 * - + 34 FROM tab2
----
43
-167552
43
-170850
43
-79764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT DISTINCT + CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7528
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7530
SELECT + ( + 66 ) + - CAST( 53 AS SIGNED ), col1 AS col2 FROM tab1 cor0
----
13
14
13
47
13
5

skipif mysql # not compatible
query II rowsort label-7530
SELECT + ( + 66 ) + - CAST ( 53 AS INTEGER ), col1 AS col2 FROM tab1 cor0
----
13
14
13
47
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT DISTINCT - CAST( - - 16 AS SIGNED ) * + 35 * col2 + + col0 + col2 * - col1 * - 94 * 82 AS col1 FROM tab0
----
1613167
29318051
707749

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - CAST ( - - 16 AS INTEGER ) * + 35 * col2 + + col0 + col2 * - col1 * - 94 * 82 AS col1 FROM tab0
----
1613167
29318051
707749

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE NOT - + 70 * - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - + 70 * - col0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col1 * + - col0 + + 79 + - + col1 FROM tab1
----
-351
-4245
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT + + ( + col1 ) DIV - 29 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7535
SELECT + + ( + col1 ) / - 29 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT + MIN( + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7538
SELECT + MIN ( + - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT - + 61 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7539
SELECT - + 61 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + col0 / - col0 * + col2 FROM tab1 AS cor0 WHERE NOT ( - 7 ) > NULL
----

query II rowsort
SELECT col1 * - col0 AS col0, col1 - + 75 * - - col1 AS col0 FROM tab2 AS cor0
----
-2346
-3774
-4928
-5698
-5025
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + - + col1 col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + 55 * + 93 FROM tab1 AS cor0
----
5115
5115
5115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - - 36 col2, col2 FROM tab0 cor0
----
-2916
47
-36
99
-756
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT - col1 * + 90 + + CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0 * + 64 * + + 96
----

skipif mysql # not compatible
query I rowsort label-7546
SELECT - col1 * + 90 + + CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0 * + 64 * + + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - 48 * - COUNT( * ) AS col0 FROM tab2 cor0
----
144

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - 48 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
144

query I rowsort
SELECT DISTINCT + 16 * + col2 FROM tab2
----
368
640
928

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 < - + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 * + + col2 + + col2 col0 FROM tab2
----
-163800
-326192
-48645

query I rowsort
SELECT - 83 + 15 AS col0 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT 40 + col0 AS col2 FROM tab1
----
125
131
91

query I rowsort
SELECT ALL - 40 + - col2 AS col0 FROM tab2
----
-63
-80
-98

query I rowsort
SELECT - col2 + - + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT 12 + + col0 FROM tab1
----
103
63
97

query I rowsort
SELECT + 51 + 18 AS col1 FROM tab0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7558
SELECT + COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL + SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + 71 * - 49 FROM tab0
----
-3479

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7561
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 60 + ( + - col0 ) IN ( + - CAST( 35 AS SIGNED ) * + ( - 3 ) * - 91 * + + 87, - col0 * + col2 * 18 )
----

skipif mysql # not compatible
query III rowsort label-7561
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 60 + ( + - col0 ) IN ( + - CAST ( 35 AS INTEGER ) * + ( - 3 ) * - 91 * + + 87, - col0 * + col2 * 18 )
----

query II rowsort
SELECT ALL 58 AS col1, - col1 FROM tab0 AS cor0 WHERE col1 * + + col2 IS NOT NULL
----
58
-1
58
-21
58
-81

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 41 AND NULL
----

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL + + COUNT( - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + + COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT ( COUNT( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7566
SELECT ( COUNT ( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL SUM( DISTINCT + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL col0 * 2 AS col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT - COUNT( * ), + MAX( - - col0 ) AS col2 FROM tab2
----
-3
75

skipif mysql # not compatible
query II rowsort label-7570
SELECT - COUNT ( * ), + MAX ( - - col0 ) AS col2 FROM tab2
----
-3
75

query I rowsort
SELECT + 84 * col2 FROM tab2
----
1932
3360
4872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT + - COUNT( * ) * + 36 AS col1 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + - COUNT ( * ) * + 36 AS col1 FROM tab1 cor0
----
-108

query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

query I rowsort
SELECT ALL - ( + - col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ( - + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7576
SELECT ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT ALL 60 + + + COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
63
3

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL 60 + + + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
63
3

query I rowsort
SELECT ALL 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + col0 * col0 * - 0 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col2, - col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) / - + 0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) * - + col0 AS col1 FROM tab2 cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) * - + col0 AS col1 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - 20 + + col2 FROM tab1 AS cor0
----
39
48
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT + 24 + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 24 + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + SUM( + 81 ) * + COUNT( DISTINCT + col2 ) - 8 - COUNT( * ) FROM tab2 AS cor0 WHERE col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + SUM ( + 81 ) * + COUNT ( DISTINCT + col2 ) - 8 - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + + ( col2 ) col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + ( + COUNT( + 62 ) ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7588
SELECT + ( + COUNT ( + 62 ) ) col2 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT DISTINCT + col0 DIV col2 * 96 col1 FROM tab0
----
0
768

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7589
SELECT DISTINCT + col0 / col2 * 96 col1 FROM tab0
----
0
768

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL col0 DIV + 98 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL col0 / + 98 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7591
SELECT ALL SUM( col0 ) DIV + ( + COUNT( * ) ) + - 28 AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL SUM ( col0 ) / + ( + COUNT ( * ) ) + - 28 AS col0 FROM tab1
----
47

query II rowsort
SELECT ALL - 32 + col0, - 43 AS col2 FROM tab1
----
19
-43
53
-43
59
-43

query I rowsort
SELECT DISTINCT col0 - - 90 + col0 AS col2 FROM tab2
----
182
218
240

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + 36 IN ( + col2, col0 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7595
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7595
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT - - ( + 46 ) * + col1 + - col1 DIV - col0 + - - 77 FROM tab1 AS cor0
----
2239
307
721

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - - ( + 46 ) * + col1 + - col1 / - col0 + - - 77 FROM tab1 AS cor0
----
2239
307
721

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT SUM( + - 89 ) FROM tab2 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT SUM ( + - 89 ) FROM tab2 cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - - COUNT( * ) + + 69 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - COUNT ( * ) + + 69 AS col1 FROM tab0 AS cor0
----
72

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT - 55 * - COUNT( * ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - 55 * - COUNT ( * ) FROM tab2 AS cor0
----
165

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 92 * col1 + + 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT DISTINCT 9 DIV - 44 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT 9 / - 44 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL + ( 54 ) - - col1 + - col0 * + col0 AS col1 FROM tab2 cor0 WHERE ( NULL ) <> + 78 + - 54
----

query I rowsort
SELECT + 0 * - + col0 + col0 + 71 + + - 16 * + col1 / - - 30 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL ( - - MIN( - - col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL ( - - MIN ( - - col0 ) ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT - MIN( ALL + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - MIN ( ALL + col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT 48 * + 39 * 91 AS col0 FROM tab0
----
170352
170352
170352

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT + 52 DIV + - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 52 / + - col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( 6 ) + 5 + 97 AS col2 FROM tab0 cor0
----
108
108
108

query I rowsort
SELECT DISTINCT - - col1 * + - 72 FROM tab2 AS cor0
----
-3672
-4824
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7615
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, col2 * 23 * col0, - col1 + - - 33 + - - col1, - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7615
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, col2 * 23 * col0, - col1 + - - 33 + - - col1, - CAST ( + col2 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT - COUNT( - + 90 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - COUNT ( - + 90 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 37 AS col1 FROM tab0 WHERE + - 5 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 52 FROM tab1
----
-38
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT CAST( - col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7620
SELECT CAST ( - col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 0 + 52 * col2 + col0 FROM tab2 AS cor0
----
1242
2144
3091

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7622
SELECT MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT DISTINCT + + 70 - + 10 FROM tab0 cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) BETWEEN + 29 AND + col1
----
60

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + + 70 - + 10 FROM tab0 cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) BETWEEN + 29 AND + col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT ALL CAST( + 77 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL CAST ( + 77 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 3 BETWEEN col2 * - ( + col2 ) AND 61
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - ( ( + COUNT( * ) ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - ( ( + COUNT ( * ) ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT MAX( ALL + 96 ) + COUNT( * ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7629
SELECT MAX ( ALL + 96 ) + COUNT ( * ) AS col2 FROM tab2
----
99

query I rowsort
SELECT - 3 + - 11 FROM tab2
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - 45 + + + col1 * - 64 FROM tab1
----
-3053
-365
-941

query II rowsort
SELECT col2 AS col2, 15 FROM tab1
----
59
15
68
15
96
15

query II rowsort
SELECT ALL + 48, col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
1
48
21
48
81

query II rowsort
SELECT DISTINCT + col1, col0 - + - col1 * + col1 FROM tab0 AS cor0
----
1
98
21
528
81
6576

query I rowsort
SELECT - col2 * + 92 - 60 AS col2 FROM tab0 AS cor0
----
-4384
-9168
-980

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 10 + - + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT COUNT( * ) * 71 * 68 AS col1 FROM tab1
----
14484

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT COUNT ( * ) * 71 * 68 AS col1 FROM tab1
----
14484

query I rowsort
SELECT DISTINCT - + col0 + + col2 * - - 68 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3181
593
6635

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
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-7639
SELECT ALL + + ( - + COUNT ( * ) ) col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + + SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7640
SELECT + + SUM ( + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + 38 + + - col0 FROM tab2
----
-26
-37
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + 10
----

query I rowsort
SELECT - 10 * - 71 AS col2 FROM tab1
----
710
710
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col1 col1 FROM tab1
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + 38 IS NOT NULL
----

query I rowsort
SELECT ALL - 12 + - col1 FROM tab0
----
-13
-33
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 12 + + 81 < 47 + + col0
----
46
51
23

query I rowsort
SELECT + 74 * + 66 AS col2 FROM tab0
----
4884
4884
4884

query I rowsort
SELECT - col2 / - col0 + + col2 AS col2 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT ALL + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT DISTINCT + col2, col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, + 69 * + 97 - + ( col1 ) AS col1 FROM tab2 cor0
----
51
6642
67
6626
77
6616

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 81 * ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT 89 + COUNT( * ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7654
SELECT 89 + COUNT ( * ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - MAX( col1 ) + COUNT( * ) col0 FROM tab1
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7655
SELECT ALL - MAX ( col1 ) + COUNT ( * ) col0 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT 72 * col1 + + 40 AS col1 FROM tab1
----
1048
3424
400

query I rowsort
SELECT ALL + - 66 * 43 + - col2 FROM tab0 cor0
----
-2848
-2885
-2937

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT + + 16 * COUNT( * ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-7659
SELECT + + 16 * COUNT ( * ) FROM tab2 cor0
----
48

query II rowsort
SELECT - col1 * ( + col0 ) * - + col0, col2 AS col0 FROM tab2 AS cor0
----
107916
23
315392
40
376875
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7661
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT + COUNT( * ) * - COUNT( + col2 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7662
SELECT + COUNT ( * ) * - COUNT ( + col2 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT ALL + COUNT( * ) + - + MAX( DISTINCT col2 ) AS col1, ( COUNT( * ) ) AS col0 FROM tab1
----
-93
3

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL + COUNT ( * ) + - + MAX ( DISTINCT col2 ) AS col1, ( COUNT ( * ) ) AS col0 FROM tab1
----
-93
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN 40 * - col0 / + col0 AND - - col0 + - + 25 * + - col2 / + 74 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT CAST( + col2 AS SIGNED ) - - 81 FROM tab0
----
128
180
91

skipif mysql # not compatible
query I rowsort label-7665
SELECT CAST ( + col2 AS INTEGER ) - - 81 FROM tab0
----
128
180
91

query I rowsort
SELECT + col2 - - 99 AS col1 FROM tab2
----
122
139
157

query III rowsort
SELECT * FROM tab0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 68 * + 31 FROM tab1
----
2108
2108
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + + COUNT( ALL col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7669
SELECT + + COUNT ( ALL col0 ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - col2 AS col1, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + - ( + - 61 ) FROM tab1 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 70 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT - + ( SUM( - - ( + - col2 ) ) ) * - + 58 FROM tab1 AS cor0
----
-12934

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT - + ( SUM ( - - ( + - col2 ) ) ) * - + 58 FROM tab1 AS cor0
----
-12934

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT + COUNT( * ) * - 49 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + COUNT ( * ) * - 49 FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - - COUNT( * ) + - COUNT( * ) * - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-7675
SELECT - - COUNT ( * ) + - COUNT ( * ) * - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
225

query I rowsort
SELECT + 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT - + COUNT( * ) AS col2, 20 col2 FROM tab0 AS cor0
----
-3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7678
SELECT - + COUNT ( * ) AS col2, 20 col2 FROM tab0 AS cor0
----
-3
20

query I rowsort
SELECT + + 5 * - - 87 FROM tab0 AS cor0 WHERE NOT - col2 * col1 IN ( + 54 + + - col0 * + ( - col1 ), 12 )
----
435
435
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT + col0 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7681
SELECT + col0 / - col0 AS col2 FROM tab0 cor0
----
-1
-1
-1

query II rowsort
SELECT - col1 AS col2, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT 17, col2 FROM tab0 AS cor0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7684
SELECT - - 70 AS col0, COUNT( * ) + + 39 DIV 22 * - 87 + + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----
70
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7684
SELECT - - 70 AS col0, COUNT ( * ) + + 39 / 22 * - 87 + + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----
70
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7685
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab1
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 * col1 col0 FROM tab1
----
1288
4324
460

query I rowsort
SELECT DISTINCT col1 * + col1 * + + col0 + - 14 AS col2 FROM tab0
----
38353
83
98401

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + - MIN( ALL + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT + - MIN ( ALL + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT - col1 + + ( - 91 ) FROM tab1
----
-105
-138
-96

query III rowsort
SELECT * FROM tab2 WHERE 36 IS NULL
----

query II rowsort
SELECT + col2 + - 64 * + + 54 AS col0, + 53 FROM tab0
----
-3357
53
-3409
53
-3446
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL MIN ( - col2 ) FROM tab0
----
-99

query I rowsort
SELECT - col1 + 98 + 45 + + + col2 AS col1 FROM tab2 AS cor0
----
106
115
134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 24 * - - 61 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col0, col2 FROM tab0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT COUNT( * ) - + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7699
SELECT COUNT ( * ) - + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query II rowsort
SELECT - 61, col1 FROM tab0
----
-61
1
-61
21
-61
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT COUNT( * ) - 88 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) - 88 AS col2 FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - 45 col2 FROM tab2 AS cor0
----
51
-45
67
-45
77
-45

query I rowsort
SELECT ALL col1 * + - col0 - + 35 FROM tab0 cor0
----
-1250
-132
-1862

query I rowsort
SELECT + col2 - - - 99 AS col2 FROM tab0 AS cor0
----
-52
-89
0

query I rowsort
SELECT DISTINCT - + 52 AS col2 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT + - col1 FROM tab1 WHERE NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL 10 * - col1 AS col1, 77 + 12 FROM tab2
----
-510
89
-670
89
-770
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7711
SELECT ALL AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + ( + 82 ) * col1 + col1 FROM tab1
----
-110194
-24185
-262025

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL - COUNT( * ) * - 9 AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL - COUNT ( * ) * - 9 AS col1 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL CAST( 83 AS SIGNED ) FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL CAST ( 83 AS INTEGER ) FROM tab1
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT ALL ( - ( + CAST( NULL AS SIGNED ) ) ) * - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) * - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 44 AS col2 FROM tab1
----
-2596
-2992
-4224

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + 30 ) * - 46 FROM tab2 AS cor0
----
-1380

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + MIN( ALL - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7724
SELECT + MIN ( ALL - col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 70 AS col0 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL + 23 AS col0 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col2 + - 28 FROM tab2 AS cor0
----
-5
12
30

query I rowsort
SELECT ALL col0 * + 14 FROM tab2
----
1050
644
896

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT COUNT( * ), + MIN( ALL - - 39 ) AS col2 FROM tab1
----
3
39

skipif mysql # not compatible
query II rowsort label-7732
SELECT COUNT ( * ), + MIN ( ALL - - 39 ) AS col2 FROM tab1
----
3
39

query I rowsort
SELECT 43 * + + col0 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7734
SELECT ALL + COUNT( * ) * - COUNT( DISTINCT - 93 ) DIV 73 + + - COUNT( * ) + + 44 col1 FROM tab1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7734
SELECT ALL + COUNT ( * ) * - COUNT ( DISTINCT - 93 ) / 73 + + - COUNT ( * ) + + 44 col1 FROM tab1
----
41

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT SUM( - 60 ) + - + MIN( - 57 ) FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT SUM ( - 60 ) + - + MIN ( - 57 ) FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL ( - COUNT( * ) ) + 96 * + - ( + COUNT( * ) ) FROM tab2, tab1 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL ( - COUNT ( * ) ) + 96 * + - ( + COUNT ( * ) ) FROM tab2, tab1 AS cor0
----
-873

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT col2 + + - col0 DIV + + col2 AS col1 FROM tab0 cor0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-7739
SELECT col2 + + - col0 / + + col2 AS col1 FROM tab0 cor0
----
2
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - MAX( col1 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - MAX ( col1 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7741
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + 69 + + 74 FROM tab2
----
143
143
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT ALL - col2 DIV 82 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - col2 / 82 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + COUNT( * ) * - + 50 FROM tab1 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7746
SELECT + COUNT ( * ) * - + 50 FROM tab1 cor0
----
-150

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 33 / - col2 = NULL
----

query I rowsort
SELECT ALL - col2 - - 5 + + + ( + 57 ) AS col1 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT DISTINCT + 95 * col2 * - - col0 - col2 FROM tab1 AS cor0
----
465024
476366
587792

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + + COUNT( * ) * + MAX( DISTINCT + - col1 ) col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT + + COUNT ( * ) * + MAX ( DISTINCT + - col1 ) col0 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 89 * col1 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT ( + - COUNT( + + 30 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT ( + - COUNT ( + + 30 ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL MAX( col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL MAX ( col2 ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + - MIN( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7755
SELECT + - MIN ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT - col1, + col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT DISTINCT - 10 AS col1, col1 FROM tab0 AS cor0
----
-10
1
-10
21
-10
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > + 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + col2 + - + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 80 * + MAX( col2 ) AS col0 FROM tab0
----
-7920

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 80 * + MAX ( col2 ) AS col0 FROM tab0
----
-7920

query I rowsort
SELECT DISTINCT - - 63 AS col0 FROM tab2 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 25 + - - 99 + - 34 FROM tab2
----
90

query II rowsort
SELECT DISTINCT - + col0 AS col2, col2 + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - + MAX( DISTINCT 6 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - + MAX ( DISTINCT 6 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7767
SELECT 8 DIV - + COUNT( * ) + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7767
SELECT 8 / - + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL OR NOT + ( - col1 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 91 * + + 55 AS col0, - 82 - - col0 + + + 14 - 63 * + 67 AS col0 FROM tab1 AS cor0
----
5005
-4198
5005
-4204
5005
-4238

query I rowsort
SELECT DISTINCT + col0 * col2 * - - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT + col0 + + - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13
-5
8

query I rowsort
SELECT ALL - col0 * - col2 + col2 - 48 AS col2 FROM tab0
----
704
832
9654

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col2 AS col0 FROM tab2
----
-1664
-3439
-575

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - col2 + + 94 = ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL CAST( NULL AS SIGNED ) + - col0 * 19 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 * 19 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT 49 + 33 DIV - MIN( col1 ) col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7778
SELECT 49 + 33 / - MIN ( col1 ) col2 FROM tab0 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL >= - col0 )
----

query I rowsort
SELECT DISTINCT - 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

query I rowsort
SELECT - 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL + col1 * + col1 * col1 - - 97 FROM tab1
----
103920
222
2841

query I rowsort
SELECT + - 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - col2 * - 70 AS col0 FROM tab0 AS cor0
----
14700
266490
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7786
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - ( + 45 ) * - 93 + + 99 AS col1, ( - col2 ) * col0 FROM tab2 AS cor0
----
4284
-1058
4284
-2560
4284
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT SUM( ALL + - 51 ) col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7788
SELECT DISTINCT SUM ( ALL + - 51 ) col2 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT ALL + col2 DIV - col2 + - + 61 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + col2 / - col2 + - + 61 FROM tab1 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab2 AS cor0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - - col1
----

query II rowsort
SELECT col1 * - col0, 3 AS col2 FROM tab0
----
-1215
3
-1827
3
-97
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT - + AVG ( - col1 ) / - CAST( NULL AS SIGNED ) * 69 FROM tab1 WHERE NOT ( + col0 / col1 < + col1 + - + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT - + AVG ( - col1 ) / - CAST ( NULL AS INTEGER ) * 69 FROM tab1 WHERE NOT ( + col0 / col1 < + col1 + - + 17 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + 24 col0, 67 + + - col2 FROM tab1
----
1224
-29
2040
8
2184
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT MIN( DISTINCT - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7796
SELECT MIN ( DISTINCT - + col1 ) FROM tab0
----
-81

query I rowsort
SELECT ALL + col0 * - + 58 FROM tab0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT + 27 * + col0 * + + col0 * + + col0 col1 FROM tab2 WHERE NOT + - col2 >= 50 + CAST( + ( col0 ) AS SIGNED )
----
11390625
2628072
7077888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7798
SELECT DISTINCT + 27 * + col0 * + + col0 * + + col0 col1 FROM tab2 WHERE NOT + - col2 >= 50 + CAST ( + ( col0 ) AS INTEGER )
----
11390625
2628072
7077888

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT MIN( - col1 ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7799
SELECT DISTINCT MIN ( - col1 ) col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, 5 AS col0 FROM tab2
----
-51
5
-67
5
-77
5

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 <= - - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT 24 + + + 20 + - + col1 + - - 1 / + col2 * + - col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 8 FROM tab1 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL - + MAX( + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - + MAX ( + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL ( 28 ) * - - col1 + - 89 FROM tab2 AS cor0
----
1339
1787
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7813
SELECT + + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + 58 FROM tab1 WHERE + - col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT MIN( + ( - 21 ) ) DIV + 37 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT MIN ( + ( - 21 ) ) / + 37 FROM tab2
----
0

query I rowsort
SELECT + ( - - col0 ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT 35 DIV + COUNT( * ) AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-7817
SELECT 35 / + COUNT ( * ) AS col0 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - COUNT( ALL + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7818
SELECT - COUNT ( ALL + col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT + SUM( ALL col2 ) + - COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + SUM ( ALL col2 ) + - COUNT ( * ) FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT DISTINCT 67 * 91 * - - 86 + + + COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab2
----
524345
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7820
SELECT DISTINCT 67 * 91 * - - 86 + + + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2
----
524345
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT - MAX( ALL col1 ), SUM( + col0 ) AS col1 FROM tab1
----
-47
227

skipif mysql # not compatible
query II rowsort label-7821
SELECT - MAX ( ALL col1 ), SUM ( + col0 ) AS col1 FROM tab1
----
-47
227

query I rowsort
SELECT DISTINCT col2 * + - col0 + - col0 FROM tab2
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + 31 * + + 24 * - col1 FROM tab2 AS cor0
----
-37944
-49848
-57288

query I rowsort
SELECT DISTINCT + ( + - col1 ) + + ( + + col0 ) FROM tab2
----
-13
-5
8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT ALL 96 + col1 AS col0 FROM tab1
----
101
110
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT ALL col0 DIV col1 * + col2 * - - col0 FROM tab0 AS cor0
----
0
3480
931491

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL col0 / col1 * + col2 * - - col0 FROM tab0 AS cor0
----
0
3480
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + COUNT( * ) * + MAX( ( col0 ) ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-7829
SELECT + COUNT ( * ) * + MAX ( ( col0 ) ) FROM tab1 AS cor0
----
273

query II rowsort
SELECT ALL + col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT + col0 DIV + + ( - col0 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + col0 / + + ( - col0 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
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-7832
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT 16 * - SUM( + col2 ) FROM tab2
----
-1936

skipif mysql # not compatible
query I rowsort label-7833
SELECT 16 * - SUM ( + col2 ) FROM tab2
----
-1936

query II rowsort
SELECT DISTINCT col0 AS col2, ( - + col0 ) FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT col2 * + col1 * - 28 AS col0 FROM tab2
----
-108808
-32844
-86240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + 15 FROM tab1
----
1020
1440
885

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7838
SELECT - 47 AS col2 FROM tab1 WHERE NOT 22 > + col2 + - col1 + - - col2 + - CAST( + + 66 AS DECIMAL )
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7838
SELECT - 47 AS col2 FROM tab1 WHERE NOT 22 > + col2 + - col1 + - - col2 + - CAST ( + + 66 AS REAL )
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT 12 AS col2, SUM( 19 ) col1 FROM tab1
----
12
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7839
SELECT 12 AS col2, SUM ( 19 ) col1 FROM tab1
----
12
57

query I rowsort
SELECT ALL - 27 * 84 AS col2 FROM tab2 AS cor0
----
-2268
-2268
-2268

query I rowsort
SELECT + - ( - - 96 ) FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL 48 * + col0 * - col1 * + + col2 + - CAST( NULL AS SIGNED ) * 33 * + col1 + + 53 * col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL 48 * + col0 * - col1 * + + col2 + - CAST ( NULL AS INTEGER ) * 33 * + col1 + + 53 * col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 62 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + col2 col1 FROM tab1
----
177
204
288

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND - col1 + - col1 - + col0 * + ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT MAX( + - 76 ) * ( + COUNT( * ) ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7847
SELECT MAX ( + - 76 ) * ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT - ( - - CAST( + col0 AS SIGNED ) ) * - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7849
SELECT - ( - - CAST ( + col0 AS INTEGER ) ) * - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - - MIN( ALL - - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7850
SELECT - - MIN ( ALL - - col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT - col0 * + + 2 * + 56 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT - col0 * + + 2 * + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + col1 + 25 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT - SUM( + col1 ) * - MIN( ALL col2 ) FROM tab1 WHERE - col2 <= - + col2
----
3894

skipif mysql # not compatible
query I rowsort label-7855
SELECT - SUM ( + col1 ) * - MIN ( ALL col2 ) FROM tab1 WHERE - col2 <= - + col2
----
3894

query I rowsort
SELECT - 73 + + ( + + col0 ) AS col2 FROM tab1
----
-22
12
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7857
SELECT + 39 + - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7857
SELECT + 39 + - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 18 + col0 AS col1 FROM tab1
----
103
109
69

query II rowsort
SELECT - - col2 AS col2, col1 AS col1 FROM tab0 WHERE - col2 NOT BETWEEN col1 AND col1
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - 64 + - + col0 AS col0 FROM tab2
----
-110
-128
-139

query II rowsort
SELECT - col0 AS col2, + col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 95 - - col2 * - ( - - 13 ) * - 84 + + 71 + - col0 * col0 - - 4 col1 FROM tab1
----
102307
57242
66023

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT + - COUNT( + - 63 ) - 68 * COUNT( DISTINCT - 84 ) * - 44 AS col1 FROM tab1 AS cor0
----
2989

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + - COUNT ( + - 63 ) - 68 * COUNT ( DISTINCT - 84 ) * - 44 AS col1 FROM tab1 AS cor0
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + ( - SUM( + col1 ) ) * 82 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-8449

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + ( - SUM ( + col1 ) ) * 82 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-8449

query I rowsort
SELECT ALL - 95 - 33 AS col0 FROM tab2 AS cor0
----
-128
-128
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + COUNT( * ) + MAX( ALL 61 ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + COUNT ( * ) + MAX ( ALL 61 ) AS col0 FROM tab0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT + CAST( col1 AS SIGNED ) / col1 + + col1 FROM tab2 WHERE NOT 67 / + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7867
SELECT + CAST ( col1 AS INTEGER ) / col1 + + col1 FROM tab2 WHERE NOT 67 / + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 97 ) ) NOT IN ( 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 11 * col2 + 46 AS col1 FROM tab2
----
299
486
684

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + 32 = col2
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + 32 = col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) >= 0 * - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7872
SELECT ALL * FROM tab2 WHERE NOT - 92 * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7872
SELECT ALL * FROM tab2 WHERE NOT - 92 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab1
----
5

query I rowsort
SELECT + 2 + + col1 * col1 FROM tab2
----
2603
4491
5931

query I rowsort
SELECT col2 * - col2 FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 41 + col2 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 7 * col2 ) IS NOT NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT DISTINCT + col0 * 44 - + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
2193
3655
3913

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT + col0 * 44 - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
2193
3655
3913

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 65 * - 65 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT MAX( 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT MAX ( 30 ) FROM tab0
----
30

query I rowsort
SELECT ALL - ( + col1 ) + + 69 AS col1 FROM tab2
----
-8
18
2

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 / + ( col1 * ( ( - 65 ) ) ) NOT IN ( + 5 + + col1 * - col0 )
----

query I rowsort
SELECT + ( - 34 ) FROM tab2
----
-34
-34
-34

query I rowsort
SELECT ALL - col2 + ( - col0 ) AS col0 FROM tab2 WHERE 33 * + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT COUNT( * ) + 86 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT COUNT ( * ) + 86 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + COUNT( * ) FROM tab1 WHERE - col2 >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - col2 >= + col2
----
0

query I rowsort
SELECT DISTINCT ( 11 ) + - 26 AS col0 FROM tab2
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - 64 + col1 * - ( col1 - 93 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN ( - col0 ) AND 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7894
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE - 33 - 90 * col2 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7895
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - 33 - 90 * col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT 45 * col2 AS col2 FROM tab0 AS cor0
----
2115
4455
450

query I rowsort
SELECT ALL + - 21 * + col2 AS col2 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col2 * + ( + 4 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + ( + COUNT( + col0 ) ) * 28 AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7899
SELECT + ( + COUNT ( + col0 ) ) * 28 AS col1 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + ( MAX( DISTINCT col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7900
SELECT + ( MAX ( DISTINCT col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT - col2 DIV - - col0 * + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT - col2 / - - col0 * + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT ALL - CAST( + 69 AS SIGNED ) + - 45 AS col2 FROM tab0
----
-114
-114
-114

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - CAST ( + 69 AS INTEGER ) + - 45 AS col2 FROM tab0
----
-114
-114
-114

query I rowsort
SELECT + ( - 85 ) - - col1 FROM tab2
----
-18
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT COUNT( * ) * 50 - COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-7905
SELECT COUNT ( * ) * 50 - COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL col0 + + + col1 AS col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT COUNT( * ) * - SUM( - col0 ) * + 81 + 40 AS col0 FROM tab1
----
55201

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT COUNT ( * ) * - SUM ( - col0 ) * + 81 + 40 AS col0 FROM tab1
----
55201

query III rowsort
SELECT * FROM tab0 WHERE - 54 IS NULL
----

query I rowsort
SELECT + 91 + - 14 AS col2 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - ( col1 ) + col1 FROM tab1 AS cor0 WHERE - col2 < col1
----
0
0
0

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col1 + col2 FROM tab1 WHERE NOT ( - + col0 ) NOT BETWEEN ( - 94 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - SUM( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7913
SELECT - SUM ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col0 + - col2 FROM tab2 AS cor0
----
51
23
67
17
77
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 + 99 AS col0 FROM tab0 AS cor0
----
15
84
87
12
97
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7916
SELECT - COUNT( * ), - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7916
SELECT - COUNT ( * ), - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) = ( NULL )
----

query II rowsort
SELECT + col1, - 59 * + - col0 FROM tab2 AS cor0
----
51
2714
67
4425
77
3776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col2, 58 * col2 col1 FROM tab2 AS cor0
----
-51
1334
-67
3364
-77
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7921
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7922
SELECT + 21 * - col2 AS col0 FROM tab2 cor0 WHERE NOT - CAST( CAST( + col2 AS SIGNED ) AS DECIMAL ) < + 20 * + col0
----

skipif mysql # not compatible
query I rowsort label-7922
SELECT + 21 * - col2 AS col0 FROM tab2 cor0 WHERE NOT - CAST ( CAST ( + col2 AS INTEGER ) AS REAL ) < + 20 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 86 * + - col1 FROM tab0 AS cor0
----
-1806
-6966
-86

query I rowsort
SELECT DISTINCT 5 * + - 84 FROM tab0 AS cor0
----
-420

query I rowsort
SELECT ALL + 97 * - col2 * + 89 FROM tab2
----
-198559
-345320
-500714

query I rowsort
SELECT + 7 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT + CAST( 0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT + CAST ( 0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT - ( MAX( ALL - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7929
SELECT - ( MAX ( ALL - col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + ( ( 13 ) ) FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - 12 AND ( - col0 * - col2 )
----

query I rowsort
SELECT 57 + + 30 * + 21 AS col0 FROM tab2 AS cor0
----
687
687
687

query I rowsort
SELECT ALL col0 * + + 58 * + col1 FROM tab0 AS cor0
----
105966
5626
70470

query I rowsort
SELECT 95 + - col2 * col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT - COUNT( DISTINCT + 49 ) * 8 * - 33 AS col2 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - COUNT ( DISTINCT + 49 ) * 8 * - 33 AS col2 FROM tab2 AS cor0
----
264

query I rowsort
SELECT - 55 FROM tab2 WHERE ( + - 27 + + col1 + - col1 + - ( col1 ) * - col2 ) IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 WHERE 73 BETWEEN ( NULL ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 42 ) * col2 col2 FROM tab1 WHERE 90 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT col1 - + col1 AS col0 FROM tab1 AS cor0 WHERE + col0 NOT IN ( + col1 / - + 8 )
----
0
0
0

query I rowsort
SELECT 32 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 60 * 47 + 80 AS col0 FROM tab0
----
-2740
-2740
-2740

query III rowsort
SELECT - 61 AS col2, col2 * + col2 * + col1 AS col1, + col0 - - + 15 FROM tab0
----
9 values hashing to 35a721526606a84e339675b8f747711f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT + 34, - 99 AS col2 FROM tab0
----
34
-99
34
-99
34
-99

query II rowsort
SELECT 46, 44 AS col0 FROM tab2
----
46
44
46
44
46
44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 8 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 76 + + + 88
----

query I rowsort
SELECT - - 6 + + col2 FROM tab1 AS cor0
----
102
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - 94 + + COUNT( * ) + - - 75 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 94 + + COUNT ( * ) + - - 75 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col1, col1 - 93 col2 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0, col2 )
----
-51
-79
-85
-88
-91
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + MAX( + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7955
SELECT + MAX ( + + col1 ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL - ( 2 ) + - + CAST( NULL AS SIGNED ) + - 75 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - ( 2 ) + - + CAST ( NULL AS INTEGER ) + - 75 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7957
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * - COUNT( * ) * - + SUM( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2
----
3
1838
7

skipif mysql # not compatible
query III rowsort label-7957
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2
----
3
1838
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 11 AS col0 FROM tab1
----
59
-11
68
-11
96
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7959
SELECT * FROM tab2 WHERE col0 + + col0 + CAST( + 63 AS SIGNED ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7959
SELECT * FROM tab2 WHERE col0 + + col0 + CAST ( + 63 AS INTEGER ) = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT COUNT( * ) + + 37 * + COUNT( * ) + - 75 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT COUNT ( * ) + + 37 * + COUNT ( * ) + - 75 AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL - COUNT( * ) * + CAST( ( + - 79 ) AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - COUNT ( * ) * + CAST ( ( + - 79 ) AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
240

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col1 * 53 IS NULL AND - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7963
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT ALL - col1 AS col1, + col2 FROM tab1 WHERE NOT NULL NOT IN ( + 65 )
----

query I rowsort
SELECT DISTINCT 4 + col2 FROM tab0
----
103
14
51

query I rowsort
SELECT DISTINCT - 97 + col2 * + 48 AS col0 FROM tab1 WHERE - col1 / + 65 <> - ( col0 )
----
2735
3167
4511

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col0 AND - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL - - ( + - 58 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - - ( + - 58 ) / - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + - col0 * - - col0 * - col2 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col1 - - 73 AS col1 FROM tab2 AS cor0
----
60
68
81

query I rowsort
SELECT DISTINCT + - 90 AS col0 FROM tab1 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL + + col2 - + CAST( 84 AS SIGNED ) FROM tab1 AS cor0
----
-16
-25
12

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + + col2 - + CAST ( 84 AS INTEGER ) FROM tab1 AS cor0
----
-16
-25
12

query I rowsort
SELECT ALL + 68 * - - col0 FROM tab1 cor0 WHERE NOT col1 * - col2 <> + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab0
----
51
51
51

query I rowsort
SELECT col2 * - 17 FROM tab2
----
-391
-680
-986

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7977
SELECT * FROM tab2 WHERE NOT 30 * + - 20 + - col2 >= - col0 * - CAST( - - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7977
SELECT * FROM tab2 WHERE NOT 30 * + - 20 + - col2 >= - col0 * - CAST ( - - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 / ( col0 ) + - - col2 + + 26 * - - col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 92 AS col2, + col2 AS col1 FROM tab2
----
92
23
92
40
92
58

query I rowsort
SELECT DISTINCT - 96 * 39 FROM tab1
----
-3744

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * + + col0 AS col0 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT ALL - 2 * - 5 FROM tab0
----
10
10
10

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - SUM( DISTINCT + 97 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - SUM ( DISTINCT + 97 ) AS col2 FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 * + 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - - 96 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - - 96 IS NOT NULL
----
0

query I rowsort
SELECT ALL - - 54 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT 69 + + 82 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT DISTINCT - + col0 DIV ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - + col0 / ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT - CAST( NULL AS SIGNED ) * + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT - CAST ( NULL AS INTEGER ) * + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL - COUNT( DISTINCT - ( col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - COUNT ( DISTINCT - ( col2 ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 93 - - 27 <= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col0 AS col2, 58 * - col2 FROM tab2 AS cor0
----
-46
-1334
-64
-2320
-75
-3364

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + - col0 AS col1, + 5 FROM tab0 AS cor0
----
-15
5
-87
5
-97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 77 AS col0 FROM tab1 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8000
SELECT + - COUNT ( * ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - + MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT + 96 + 52, + 56 + - - col1 AS col1 FROM tab0
----
148
137
148
57
148
77

query I rowsort
SELECT DISTINCT - col2 + + 21 FROM tab1
----
-38
-47
-75

query I rowsort
SELECT DISTINCT col0 * + - 18 * + 10 AS col1 FROM tab2
----
-11520
-13500
-8280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT col1 + - CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT col1 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col2 AS col2 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col1 ) * + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 21 AS col0 FROM tab1 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * - 80 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 46d0abb12f9985f43f40e5eeccdb4ef4

query I rowsort
SELECT ALL + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - COUNT( * ) - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8013
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT - 77 + + col0 FROM tab0 AS cor0
----
-62
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8015
SELECT + SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT ( - col0 ) DIV + 83 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT ( - col0 ) / + 83 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT 79 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8019
SELECT 79 / - col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - ( col0 ) + - col1 * 31 + 23 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT 96 DIV ( - col1 ) AS col0 FROM tab0
----
-1
-4
-96

skipif mysql # not compatible
query I rowsort label-8021
SELECT 96 / ( - col1 ) AS col0 FROM tab0
----
-1
-4
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 73 * + 50 AS col0 FROM tab1
----
3650
3650
3650

query I rowsort
SELECT DISTINCT + col1 * + ( + 22 ) * col2 + + - 61 AS col0 FROM tab2 cor0
----
25745
67699
85431

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-1
-21
-81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col2 * - - col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL - SUM( ALL 15 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - SUM ( ALL 15 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT ALL - col2 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col1, - col0 col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query II rowsort
SELECT ALL col0 AS col2, col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8039
SELECT * FROM tab1 WHERE - col1 = + - 27 * + ( - + CAST( 15 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8039
SELECT * FROM tab1 WHERE - col1 = + - 27 * + ( - + CAST ( 15 AS INTEGER ) )
----

query I rowsort
SELECT ( + ( - col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + - 55 AND + - col1 * + col2
----

query I rowsort
SELECT ALL - + 6 + - + col1 AS col1 FROM tab0 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL + 40 + + + col2 + + col1 AS col0 FROM tab0
----
140
168
71

query II rowsort
SELECT + col1 - col1 AS col2, 53 AS col2 FROM tab2 cor0
----
0
53
0
53
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + 30 + - + MIN( - + ( 41 ) ) col2 FROM tab2
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8045
SELECT DISTINCT + 30 + - + MIN ( - + ( 41 ) ) col2 FROM tab2
----
71

query II rowsort
SELECT DISTINCT + col1 - col1, col2 AS col1 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab0
----
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8049
SELECT - + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT - + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT - 56 * + 48 DIV COUNT( * ) FROM tab0 cor0
----
-896

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 56 * + 48 / COUNT ( * ) FROM tab0 cor0
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + - COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8051
SELECT + - COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - - 9 * + COUNT( ALL 74 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8052
SELECT - - 9 * + COUNT ( ALL 74 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + col1 - - 16 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
67
83
93

query I rowsort
SELECT + col1 * col0 * - ( - col1 ) AS col2 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT - col0 * - - col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + + 83 * + col1 AS col0 FROM tab2 cor0
----
4233
5561
6391

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 10 < 77
----

query I rowsort
SELECT + - ( ( + ( + 25 ) ) ) AS col1 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT DISTINCT + COUNT( * ), + COUNT( 35 ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8059
SELECT DISTINCT + COUNT ( * ), + COUNT ( 35 ) AS col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL + col1 * - - col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + + MAX( + - col2 ) + - 94 AS col1 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-8061
SELECT + + MAX ( + - col2 ) + - 94 AS col1 FROM tab0 AS cor0
----
-104

query I rowsort
SELECT + 80 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1253
3160
3966

query I rowsort
SELECT DISTINCT 3 + - + col1 * - col1 + + - col2 FROM tab2
----
2581
4434
5892

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL - col0 DIV 65 * + col0 * col0 FROM tab1
----
-7225
-8281
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - col0 / 65 * + col0 * col0 FROM tab1
----
-7225
-8281
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT MIN( + 82 ) DIV + COUNT( * ) col0 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT MIN ( + 82 ) / + COUNT ( * ) col0 FROM tab1
----
27

query I rowsort
SELECT ALL - ( - 97 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL CAST( col1 AS SIGNED ) + - 2 FROM tab0
----
-1
19
79

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL CAST ( col1 AS INTEGER ) + - 2 FROM tab0
----
-1
19
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT CAST( + 93 AS SIGNED ) * - 60 FROM tab2 cor0
----
-5580
-5580
-5580

skipif mysql # not compatible
query I rowsort label-8068
SELECT CAST ( + 93 AS INTEGER ) * - 60 FROM tab2 cor0
----
-5580
-5580
-5580

query I rowsort
SELECT 86 * - col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-201756
-423808
-432150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 + col0 - - col0 * + col0 >= - ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - 50 * - - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
4950

skipif mysql # not compatible
query I rowsort label-8071
SELECT - 50 * - - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8072
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT col1 * + - 25 AS col0, 77 FROM tab2 cor0
----
-1275
77
-1675
77
-1925
77

query I rowsort
SELECT DISTINCT - col0 + - + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 60 * + 23 * + 29 FROM tab0 AS cor0
----
40020

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - + SUM( DISTINCT - 55 ) AS col0 FROM tab2 WHERE 32 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT - + SUM ( DISTINCT - 55 ) AS col0 FROM tab2 WHERE 32 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - 7 + - 78 FROM tab2
----
-85
-85
-85

query I rowsort
SELECT - 92 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT + col2 * ( 83 ) + - + col0 + - col1 AS col0 FROM tab1
----
4807
5506
7903

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT DISTINCT col0 + - 30 * + 8 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT col0 + - 30 * + 8 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8084
SELECT 79 DIV col0 + + CAST( 35 AS SIGNED ) DIV + 92, + col1 + + col1 AS col0 FROM tab1
----
0
10
0
94
1
28

skipif mysql # not compatible
query II rowsort label-8084
SELECT 79 / col0 + + CAST ( 35 AS INTEGER ) / + 92, + col1 + + col1 AS col0 FROM tab1
----
0
10
0
94
1
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 30 + - - col0 AS col2 FROM tab1
----
21
55
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL CAST( NULL AS SIGNED ) - + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL CAST ( NULL AS INTEGER ) - + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8090
SELECT DISTINCT - + 95 DIV + COUNT( * ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT - + 95 / + COUNT ( * ) FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL - CAST( - + 33 AS SIGNED ) FROM tab2
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - CAST ( - + 33 AS INTEGER ) FROM tab2
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT 21 + + 66 DIV + 47 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT 21 + + 66 / + 47 FROM tab0
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + SUM( ALL + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8094
SELECT + SUM ( ALL + col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL + SUM( CAST( + col0 AS SIGNED ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + SUM ( CAST ( + col0 AS INTEGER ) ) FROM tab2
----
185

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL ( + - MIN( DISTINCT + 77 ) ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL ( + - MIN ( DISTINCT + 77 ) ) FROM tab0 AS cor0
----
-77

query II rowsort
SELECT DISTINCT + col1 AS col2, - 55 * - - col1 AS col1 FROM tab0 cor0
----
1
-55
21
-1155
81
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL - MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= ( + - 27 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) < 75 * ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT MAX( ALL - + col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8102
SELECT MAX ( ALL - + col1 ) AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 85 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + CAST( NULL AS SIGNED ) AND - col1
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8105
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + CAST ( NULL AS INTEGER ) AND - col1
----
-46
-64
-75

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - 93 * + ( + COUNT( * ) ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 93 * + ( + COUNT ( * ) ) AS col2 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL ( MAX( ALL - 51 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL ( MAX ( ALL - 51 ) ) FROM tab1
----
-51

query I rowsort
SELECT + col1 * - 57 AS col1 FROM tab0
----
-1197
-4617
-57

query II rowsort
SELECT col0 * - ( - + col2 ) AS col0, + 45 FROM tab2
----
1058
45
2560
45
4350
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8111
SELECT DISTINCT COUNT ( * ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + COUNT ( * ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + - 89 * col2 FROM tab1 cor0
----
-5251
-6052
-8544

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) >= ( NULL )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT - COUNT( ALL + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + - col1 + 3 AS col1 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT DISTINCT 76 + + col2 * - - col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT - - 93 * - - 89 * - col0, col2 FROM tab0 AS cor0
----
-124155
47
-720099
10
-802869
99

query II rowsort
SELECT + 5 AS col0, col0 FROM tab2 AS cor0 WHERE ( 56 ) BETWEEN NULL AND - 4
----

query I rowsort
SELECT ALL - - col1 * - - 30 FROM tab1 cor0
----
1410
150
420

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT ALL + col1 DIV + + 1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + col1 / + + 1 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT - col0 DIV + - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8123
SELECT - col0 / + - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT - ( - SUM( + col1 ) ) * - 97 AS col2 FROM tab0 AS cor0
----
-9991

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - ( - SUM ( + col1 ) ) * - 97 AS col2 FROM tab0 AS cor0
----
-9991

query I rowsort
SELECT DISTINCT - + 61 + + - 90 AS col2 FROM tab2 AS cor0
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - MIN( ALL + col0 ) * - - COUNT( * ) + MAX( - col0 ) AS col0 FROM tab2
----
-184

skipif mysql # not compatible
query I rowsort label-8128
SELECT - MIN ( ALL + col0 ) * - - COUNT ( * ) + MAX ( - col0 ) AS col0 FROM tab2
----
-184

query III rowsort
SELECT * FROM tab1 WHERE - 65 + - + 54 IS NULL
----

query I rowsort
SELECT DISTINCT 98 * - - col2 * + col1 FROM tab1
----
131712
28910
313208

query I rowsort
SELECT DISTINCT - 57 + 34 FROM tab0
----
-23

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col1 col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col1 * + 20 - + col0 + col0 AS col2 FROM tab2
----
-1020
-1340
-1540

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND + 94 / + 48
----

query I rowsort
SELECT - 59 AS col2 FROM tab2 AS cor0 WHERE + col0 + - col2 > NULL
----

query I rowsort
SELECT col1 + col1 + + col0 * - + col1 FROM tab1 AS cor0
----
-415
-4183
-686

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT + + MAX( - - 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + + MAX ( - - 91 ) FROM tab0 AS cor0
----
91

query II rowsort
SELECT - col1 AS col0, + col2 * - 72 AS col1 FROM tab0
----
-1
-7128
-21
-720
-81
-3384

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 88 AS col0, + 37 AS col2 FROM tab2 AS cor0
----
88
37
88
37
88
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT ALL + col1 * - - CAST( NULL AS SIGNED ) - + + col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + col1 * - - CAST ( NULL AS INTEGER ) - + + col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8148
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 86 + - 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL + + SUM( - 47 ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + + SUM ( - 47 ) FROM tab0 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - MIN( ALL - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8151
SELECT - MIN ( ALL - col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT - COUNT( * ) AS col1, + COUNT( * ) + - 14 FROM tab1
----
-3
-11

skipif mysql # not compatible
query II rowsort label-8152
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) + - 14 FROM tab1
----
-3
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8153
SELECT ALL COUNT( * ) + 59 DIV 94 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL COUNT ( * ) + 59 / 94 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col2 * col1 * + 25 col1 FROM tab2
----
46
29325
64
77000
75
97150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT DISTINCT CAST( col1 AS SIGNED ) + - 55 FROM tab2
----
-4
12
22

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - 55 FROM tab2
----
-4
12
22

query I rowsort
SELECT ( - - 45 ) * + + 77 * + col2 FROM tab2
----
138600
200970
79695

query I rowsort
SELECT DISTINCT ( - ( 59 ) ) FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - CAST( + col2 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8158
SELECT - CAST ( + col2 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT DISTINCT + CAST( + - SUM( ALL + col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT + CAST ( + - SUM ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT COUNT( 55 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8160
SELECT COUNT ( 55 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 + 68 + - col0 FROM tab0
----
-28
134
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col2 FROM tab0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT + 1 * col1 DIV col2 + col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 1 * col1 / col2 + col2 FROM tab0 AS cor0
----
12
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col0 col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 9 * + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - + 41 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + 41 * COUNT( * ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 41 * COUNT ( * ) FROM tab2 AS cor0
----
123

query II rowsort
SELECT col0 AS col2, 16 FROM tab2
----
46
16
64
16
75
16

query I rowsort
SELECT - col1 * - 57 AS col0 FROM tab1
----
2679
285
798

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8171
SELECT * FROM tab1 WHERE + col2 - + - CAST( NULL AS SIGNED ) * col1 * + ( + col2 ) > 45
----

skipif mysql # not compatible
query III rowsort label-8171
SELECT * FROM tab1 WHERE + col2 - + - CAST ( NULL AS INTEGER ) * col1 * + ( + col2 ) > 45
----

query I rowsort
SELECT DISTINCT 28 - - col2 FROM tab2
----
51
68
86

query I rowsort
SELECT ALL - col0 * + col2 * + + 31 FROM tab1 cor0
----
-151776
-155465
-191828

query I rowsort
SELECT ALL - - 43 * - col2 * + col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL col0 / CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL col0 / CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 AS col2 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT DISTINCT ( - 37 ) FROM tab1 cor0
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 40 AS col2 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL col2 + - 73 FROM tab2
----
-15
-33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT COUNT( * ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( * ) FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT COUNT( * ) AS col1, SUM( col0 ) AS col1 FROM tab1
----
3
227

skipif mysql # not compatible
query II rowsort label-8185
SELECT COUNT ( * ) AS col1, SUM ( col0 ) AS col1 FROM tab1
----
3
227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8186
SELECT CAST( 10 AS SIGNED ) DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT CAST ( 10 AS INTEGER ) / col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 9 * - ( + - 55 ) FROM tab0
----
495
495
495

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT DISTINCT 32 DIV - + col1 col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8188
SELECT DISTINCT 32 / - + col1 col1 FROM tab1
----
-2
-6
0

query II rowsort
SELECT DISTINCT 51 AS col2, - col1 + + 1 AS col0 FROM tab2 AS cor0
----
51
-50
51
-66
51
-76

query I rowsort
SELECT DISTINCT + + col2 + + col1 + - + 82 AS col2 FROM tab1 AS cor0
----
-18
28
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT - 18 DIV - 59 + SUM( + 91 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8191
SELECT - 18 / - 59 + SUM ( + 91 ) AS col1 FROM tab1
----
273

query I rowsort
SELECT DISTINCT - col2 - ( - + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT MIN( + 77 ) col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8193
SELECT DISTINCT MIN ( + 77 ) col2 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - 89 * - + col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT COUNT( * ) * - 97 + - 17 AS col2 FROM tab1 cor0
----
-308

skipif mysql # not compatible
query I rowsort label-8195
SELECT COUNT ( * ) * - 97 + - 17 AS col2 FROM tab1 cor0
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - - SUM( DISTINCT - ( + + 8 ) ) AS col2 FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8196
SELECT - - SUM ( DISTINCT - ( + + 8 ) ) AS col2 FROM tab2 cor0
----
-8

query I rowsort
SELECT col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col2 + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col0 * ( - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 32 * - 72 + - col0 * + 96 AS col1 FROM tab0
----
-10656
-11616
-3744

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL col1 * - 49 AS col2 FROM tab1
----
-2303
-245
-686

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT SUM( + - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8205
SELECT SUM ( + - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT - + 19 AS col1 FROM tab0 cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8208
SELECT - 9 * + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8208
SELECT - 9 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8209
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - + SUM( DISTINCT - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8211
SELECT - + SUM ( DISTINCT - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - + 49 * - COUNT( * ) FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-8212
SELECT - + 49 * - COUNT ( * ) FROM tab1 cor0
----
147

query II rowsort
SELECT + - col1 AS col1, - 13 AS col1 FROM tab0 AS cor0
----
-1
-13
-21
-13
-81
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47 AS col2, + col2 col0 FROM tab0 AS cor0
----
47
10
47
47
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 27 IS NULL
----

query I rowsort
SELECT + - 60 FROM tab2 WHERE NOT NULL IN ( + 68 - - col0, - col0 )
----

query I rowsort
SELECT ALL + col2 + + - 41 - - 37 FROM tab1
----
55
64
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8219
SELECT * FROM tab0 WHERE 19 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8219
SELECT * FROM tab0 WHERE 19 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8220
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < ( + 57 * + - col2 * CAST( NULL AS SIGNED ) + - - col1 )
----

skipif mysql # not compatible
query III rowsort label-8220
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < ( + 57 * + - col2 * CAST ( NULL AS INTEGER ) + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE ( + 34 ) * col0 / - + col0 NOT IN ( + 85 / - ( - + 15 ), + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-8221
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE ( + 34 ) * col0 / - + col0 NOT IN ( + 85 / - ( - + 15 ), + col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT + 92 + + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-8223
SELECT + 92 + + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
95
3

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0
----
62

query II rowsort
SELECT + + ( - 43 ) AS col2, + col1 AS col2 FROM tab1 cor0
----
-43
14
-43
47
-43
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL - COUNT( + - 5 ) + 64 col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8227
SELECT ALL - COUNT ( + - 5 ) + 64 col0 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL + 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( 35, 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab1 WHERE col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
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-8233
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - MAX( DISTINCT + + 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - MAX ( DISTINCT + + 77 ) FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col0 FROM tab1 cor0
----
-76
-76
-76

query II rowsort
SELECT DISTINCT - + col1 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT 57 + + - COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8237
SELECT 57 + + - COUNT ( * ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL - COUNT( * ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8238
SELECT ALL - COUNT ( * ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT 21 * + + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8239
SELECT 21 * + + COUNT ( * ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL MAX( DISTINCT + col0 ) * + - COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL MAX ( DISTINCT + col0 ) * + - COUNT ( * ) AS col1 FROM tab1
----
-273

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8242
SELECT - ( ( + + CAST( NULL AS DECIMAL ) ) ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8242
SELECT - ( ( + + CAST ( NULL AS REAL ) ) ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT - SUM( col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT - SUM ( col0 ) col2 FROM tab2
----
-185

query II rowsort
SELECT DISTINCT + + col2 AS col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL col0 * - 55 + + - 83 AS col2 FROM tab2 AS cor0
----
-2613
-3603
-4208

query I rowsort
SELECT + 41 * + col1 FROM tab2
----
2091
2747
3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8252
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 21 FROM tab1 cor0
----
-21

query I rowsort
SELECT col1 + 53 FROM tab1 AS cor0
----
100
58
67

query I rowsort
SELECT DISTINCT - + col1 + - + ( + - col1 ) * col1 * - col1 AS col1 FROM tab2 cor0
----
-132702
-300830
-456610

query II rowsort
SELECT ALL col1 + col1, col2 FROM tab1 AS cor0
----
10
59
28
96
94
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8257
SELECT + CAST( + + 36 AS SIGNED ) AS col0, 47, - col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 7b264ef0ee6f48920e0f5efc4cb46fac

skipif mysql # not compatible
query III rowsort label-8257
SELECT + CAST ( + + 36 AS INTEGER ) AS col0, 47, - col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 7b264ef0ee6f48920e0f5efc4cb46fac

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT + col0 DIV + col2 + - col2 * - col2 AS col2 FROM tab1
----
3482
4625
9216

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + col0 / + col2 + - col2 * - col2 AS col2 FROM tab1
----
3482
4625
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT SUM( ALL - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8259
SELECT SUM ( ALL - - col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8260
SELECT DISTINCT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8260
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + 94 ) + - col1 AS col1 FROM tab2
----
17
27
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT ALL - COUNT( * ) + - + SUM( + + 69 ) AS col0, 60 AS col2 FROM tab2
----
-210
60

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL - COUNT ( * ) + - + SUM ( + + 69 ) AS col0, 60 AS col2 FROM tab2
----
-210
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT SUM( + 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-8263
SELECT SUM ( + 79 ) FROM tab2
----
237

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + col1 + + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - 30 + + col0 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 31 * + col1 FROM tab0 cor0
----
-2511
-31
-651

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 95 > NULL
----

query I rowsort
SELECT ALL + 79 * - 81 AS col0 FROM tab1 AS cor0
----
-6399
-6399
-6399

query I rowsort
SELECT 40 + - 19 AS col1 FROM tab0 AS cor0
----
21
21
21

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL - 26 * - MAX( DISTINCT + - 63 ) AS col0 FROM tab0, tab1 AS cor0
----
-1638

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - 26 * - MAX ( DISTINCT + - 63 ) AS col0 FROM tab0, tab1 AS cor0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT COUNT( ALL + + col2 ) + + 90 AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT COUNT ( ALL + + col2 ) + + 90 AS col1 FROM tab2 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 / + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT MAX( ALL + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT MAX( + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8275
SELECT MAX ( + 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NOT + col1 < + col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT MIN( DISTINCT + 83 ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8277
SELECT MIN ( DISTINCT + 83 ) AS col2 FROM tab1 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - 85 / + - 35 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + col1 * - CAST( - + ( - col1 ) AS SIGNED ) FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-8279
SELECT + col1 * - CAST ( - + ( - col1 ) AS INTEGER ) FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT + 16 FROM tab2 WHERE NOT + col0 + - - 71 IS NULL
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + COUNT( DISTINCT + 32 ) AS col2 FROM tab1 WHERE NOT 9 NOT BETWEEN + 23 AND CAST( + col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + COUNT ( DISTINCT + 32 ) AS col2 FROM tab1 WHERE NOT 9 NOT BETWEEN + 23 AND CAST ( + col0 AS INTEGER )
----
0

query I rowsort
SELECT + - col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT MAX( DISTINCT - + 67 ) AS col0 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT MAX ( DISTINCT - + 67 ) AS col0 FROM tab1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT DISTINCT CAST( - - col2 AS SIGNED ) col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT + MIN( - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + MIN ( - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8288
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN CAST( NULL AS SIGNED ) AND + ( 62 )
----

skipif mysql # not compatible
query III rowsort label-8288
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN CAST ( NULL AS INTEGER ) AND + ( 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 AS col2, + ( col0 ) col1 FROM tab0 cor0
----
70
15
70
87
70
97

query I rowsort
SELECT ALL + ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT DISTINCT col1, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT 55 AS col2, col1 AS col1 FROM tab1 AS cor0
----
55
14
55
47
55
5

query II rowsort
SELECT - 97, + col1 * - + 62 * + col1 * + - 83 AS col2 FROM tab2 AS cor0
----
-97
13384746
-97
23100394
-97
30510634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL col1 * + CAST( - col2 AS SIGNED ) * - col2 * col2 FROM tab2 AS cor0
----
13072504
4928000
620517

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL col1 * + CAST ( - col2 AS INTEGER ) * - col2 * col2 FROM tab2 AS cor0
----
13072504
4928000
620517

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT + 75 * + COUNT( * ) + - 33 + 41 FROM tab2 AS cor0
----
233

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + 75 * + COUNT ( * ) + - 33 + 41 FROM tab2 AS cor0
----
233

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8296
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 AND NULL
----

query II rowsort
SELECT + col1 AS col0, col1 + + col1 FROM tab1 AS cor0
----
14
28
47
94
5
10

query II rowsort
SELECT - col2 AS col2, + 74 FROM tab1 cor0
----
-59
74
-68
74
-96
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT CAST( - - 15 AS SIGNED ) * + col1 * ( 30 ) + + col2 * - - ( + - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9351
34241
9350

skipif mysql # not compatible
query I rowsort label-8300
SELECT CAST ( - - 15 AS INTEGER ) * + col1 * ( 30 ) + + col2 * - - ( + - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9351
34241
9350

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT + + 7 DIV + - col0 * col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT + + 7 / + - col0 * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 27 + - 12 + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col0 + - 65 + + 14 + - 23 FROM tab2
----
-10
-28
1

query III rowsort
SELECT ALL * FROM tab2 WHERE 5 * - ( + + col1 ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT IN ( + 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 55 FROM tab0 WHERE - - 72 IS NOT NULL
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * + + 4 + col0 col0 FROM tab0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * + MAX( - col1 ) col0 FROM tab2
----
459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8308
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * + MAX ( - col1 ) col0 FROM tab2
----
459

query I rowsort
SELECT DISTINCT - 34 FROM tab2 WHERE 88 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 - + - col2 < - - 20
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT ALL + - 59 DIV - - 7 + + 43 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + - 59 / - - 7 + + 43 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8312
SELECT * FROM tab1 AS cor0 WHERE + ( - 40 ) NOT BETWEEN ( + col1 ) - + + col2 AND col0 + - col1 * + col0 * - CAST( NULL AS SIGNED )
----
91
47
68

skipif mysql # not compatible
query III rowsort label-8312
SELECT * FROM tab1 AS cor0 WHERE + ( - 40 ) NOT BETWEEN ( + col1 ) - + + col2 AND col0 + - col1 * + col0 * - CAST ( NULL AS INTEGER )
----
91
47
68

query II rowsort
SELECT DISTINCT - 42 + + - col1, 11 AS col0 FROM tab1 AS cor0
----
-47
11
-56
11
-89
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT ALL + col0 DIV 39 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL + col0 / 39 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8315
SELECT CAST( NULL AS SIGNED ) - 84 * CAST( 48 AS SIGNED ) * + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT CAST ( NULL AS INTEGER ) - 84 * CAST ( 48 AS INTEGER ) * + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) * + CAST( - 32 AS SIGNED ) AS col1, + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * + CAST ( - 32 AS INTEGER ) AS col1, + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8317
SELECT CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT ALL CAST( + 77 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL CAST ( + 77 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL ( - + 5 ) AS col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT col2, col1 * - 49 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 83 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-8320
SELECT col2, col1 * - 49 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 83 * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + ( + ( col0 ) ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 28 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + COUNT( * ) * 28 * COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-8325
SELECT + COUNT ( * ) * 28 * COUNT ( * ) FROM tab2
----
252

query II rowsort
SELECT - 96 * col1 AS col0, + 60 FROM tab0
----
-2016
60
-7776
60
-96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT + SUM( + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + SUM ( + col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT col0 * - col0 * - 86 AS col2 FROM tab0
----
19350
650934
809174

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT SUM( DISTINCT - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8329
SELECT SUM ( DISTINCT - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT COUNT( * ) DIV + + 13 * - 11 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT COUNT ( * ) / + + 13 * - 11 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 20 * 94, 68 AS col2 FROM tab1 AS cor0
----
1880
68
1880
68
1880
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8332
SELECT DISTINCT - + 72 DIV - col0, + col1 AS col1 FROM tab2 AS cor0
----
0
67
1
51
1
77

skipif mysql # not compatible
query II rowsort label-8332
SELECT DISTINCT - + 72 / - col0, + col1 AS col1 FROM tab2 AS cor0
----
0
67
1
51
1
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 25 col1 FROM tab0 cor0
----
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + - - 82, col2 * col1 * + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT 17 * CAST( NULL AS SIGNED ) / + + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT 17 * CAST ( NULL AS INTEGER ) / + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL + CAST( + 46 AS SIGNED ) AS col0 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + CAST ( + 46 AS INTEGER ) AS col0 FROM tab0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT 72 / - CAST( NULL AS SIGNED ) + CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT 72 / - CAST ( NULL AS INTEGER ) + CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 1 < 21 / + - col0 + - ( - 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + col2 * + + col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN + 23 * + col2 + col1 - + col0 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN + 23 * + col2 + col1 - + col0 AND col2
----
0

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 90 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + - COUNT( DISTINCT + 80 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8346
SELECT + - COUNT ( DISTINCT + 80 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8347
SELECT + - 30 DIV SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT + - 30 / SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col1, + col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 + - - col1 FROM tab1 WHERE NOT NULL BETWEEN + 82 / - col0 AND - 76 * + + 48 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + + col0 col2 FROM tab2
----
134
152
163

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 82 col2 FROM tab1
----
133
167
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 52 col0 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL COUNT( * ) - + SUM( ALL + 51 ) col2 FROM tab0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8355
SELECT ALL COUNT ( * ) - + SUM ( ALL + 51 ) col2 FROM tab0
----
-150

query I rowsort
SELECT ALL ( 19 ) AS col1 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT col2 + + 7 AS col0 FROM tab0 cor0
----
106
17
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 43 * 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col2 * col2 + - col0 AS col0 FROM tab1
----
3396
4533
9165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT ALL - col1 DIV 43 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - col1 / 43 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - col0 + - + col0 BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ( + + MAX( DISTINCT - col2 ) ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT ( + + MAX ( DISTINCT - col2 ) ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT MIN( 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8367
SELECT MIN ( 89 ) FROM tab1 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - col2 * + col0 * + - col1 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 97 AS col0 FROM tab0 cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col0 * col0 col2, col0 AS col2 FROM tab2
----
-163840
64
-326250
75
-48668
46

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 84 FROM tab0 cor0
----
-3
-63
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 64 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 22 * + col0 IS NULL
----
-51
160
-85
123
-91
132

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT ALL ( + ( + col0 ) ) + - col0 - 16 DIV + + col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL ( + ( + col0 ) ) + - col0 - 16 / + + col2 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) IN ( col2 * + 61 )
----

query I rowsort
SELECT ALL - col0 * - 31 AS col1 FROM tab2
----
1426
1984
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT COUNT( * ) + 44 FROM tab2 WHERE NULL BETWEEN NULL AND + 94
----
44

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) + 44 FROM tab2 WHERE NULL BETWEEN NULL AND + 94
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > ( - 60 - + 18 * - 96 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 94 * col2 AS col1 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT ( 85 ) FROM tab1
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----
0

query I rowsort
SELECT ALL - 33 AS col2 FROM tab2 WHERE NOT col1 / 73 IN ( - col0 )
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + MIN( DISTINCT col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8387
SELECT + MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8388
SELECT ALL * FROM tab2 WHERE NOT + col0 - + CAST( NULL AS SIGNED ) * 95 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8388
SELECT ALL * FROM tab2 WHERE NOT + col0 - + CAST ( NULL AS INTEGER ) * 95 IS NULL
----

query I rowsort
SELECT ALL - 90 FROM tab1 WHERE NULL > - 51 * + col0 + col2
----

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT COUNT( * ) * 45 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-8391
SELECT COUNT ( * ) * 45 FROM tab0
----
135

query I rowsort
SELECT DISTINCT ( - 77 ) * 59 FROM tab2
----
-4543

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE ( 15 + 28 * col2 ) IN ( - 49 * ( col1 ) )
----

query I rowsort
SELECT 52 * - col2 AS col1 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT - col0 DIV - 17 - - col1 FROM tab2
----
53
71
80

skipif mysql # not compatible
query I rowsort label-8395
SELECT - col0 / - 17 - - col1 FROM tab2
----
53
71
80

query I rowsort
SELECT - 97 + - 85 AS col2 FROM tab0 WHERE NOT - 42 * + col0 <> - 25
----

query I rowsort
SELECT col2 - - 21 AS col2 FROM tab2 WHERE NOT col2 * 23 <= ( col1 )
----
44
61
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8398
SELECT ALL SUM( CAST( + 12 AS SIGNED ) ) + MAX( DISTINCT + 7 - 9 DIV col0 ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL SUM ( CAST ( + 12 AS INTEGER ) ) + MAX ( DISTINCT + 7 - 9 / col0 ) AS col0 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ( 31 ) * + COUNT( * ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8399
SELECT ( 31 ) * + COUNT ( * ) AS col0 FROM tab2
----
93

query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
100
128
31

query I rowsort
SELECT col2 * ( - col2 ) AS col0 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 + - col1 * - col1 < ( - 46 ) / + 53 + + 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT 76 + + COUNT( * ) * + 16 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-8403
SELECT 76 + + COUNT ( * ) * + 16 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT DISTINCT + col2 DIV - 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT + col2 / - 72 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT ALL - col2 DIV + 6 FROM tab1
----
-11
-16
-9

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - col2 / + 6 FROM tab1
----
-11
-16
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8406
SELECT SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ( + 52 ) + - 59 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * col0 + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + 6 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 ) WHERE NOT - 33 BETWEEN NULL AND + 10
----

query I rowsort
SELECT ALL - col1 * - 85 FROM tab0
----
1785
6885
85

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + col1 * col2 FROM tab1 AS cor0 WHERE NOT col1 * 29 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL - + COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - + COUNT ( col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT ALL - - SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - - SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8417
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + CAST( col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8417
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + CAST ( col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 84 / + 84 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL - - 38 * - ( col2 * - col1 ) FROM tab1 cor0
----
11210
121448
51072

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT DISTINCT - 82 DIV + - col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - 82 / + - col2 FROM tab0
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT MAX( DISTINCT ( - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8423
SELECT MAX ( DISTINCT ( - col0 ) ) FROM tab1
----
-51

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 WHERE NOT NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + MIN( DISTINCT 79 ) - COUNT( * ) FROM tab2 WHERE NOT - col2 BETWEEN ( NULL ) AND ( col2 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT + MIN ( DISTINCT 79 ) - COUNT ( * ) FROM tab2 WHERE NOT - col2 BETWEEN ( NULL ) AND ( col2 + + col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 * - col0 * + col0 col1 FROM tab1
----
101150
115934
36414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 col2 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + - 65 AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT CAST( - 18 AS SIGNED ) * + col0 + 20 * - col0 FROM tab2 AS cor0
----
-1748
-2432
-2850

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT CAST ( - 18 AS INTEGER ) * + col0 + 20 * - col0 FROM tab2 AS cor0
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL - COUNT( ALL + 81 ) + 41 * COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - COUNT ( ALL + 81 ) + 41 * COUNT ( * ) FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT - COUNT( * ) + - - 54 + + COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-8433
SELECT - COUNT ( * ) + - - 54 + + COUNT ( * ) AS col1 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT 58 DIV + col0 FROM tab0 WHERE ( col1 + CAST( NULL AS SIGNED ) IS NULL )
----
0
3

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT 58 / + col0 FROM tab0 WHERE ( col1 + CAST ( NULL AS INTEGER ) IS NULL )
----
0
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

query I rowsort
SELECT ALL + 68 - + col1 FROM tab1 cor0
----
21
54
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + col2 * CAST( 93 AS SIGNED ) BETWEEN - col0 / - col2 + 39 * ( col2 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + col2 * CAST ( 93 AS INTEGER ) BETWEEN - col0 / - col2 + 39 * ( col2 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT DISTINCT - 42 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - 42 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + 28 IS NOT NULL
----
0

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT + col2 + 4 FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN 75 / CAST( NULL AS SIGNED ) + + col1 AND 66 - col1
----

skipif mysql # not compatible
query I rowsort label-8442
SELECT + col2 + 4 FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN 75 / CAST ( NULL AS INTEGER ) + + col1 AND 66 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - COUNT( - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8443
SELECT - COUNT ( - + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
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-8444
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 34 * - col1 FROM tab0 cor0
----
2754
34
714

query II rowsort
SELECT + col0 AS col2, + 46 FROM tab1 AS cor0
----
51
46
85
46
91
46

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT ( + + col2 ) AS col2, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col1 * + 4 AS col1 FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT COUNT( * ) - 16 col0 FROM tab1 WHERE ( 84 - col2 + - col0 ) NOT IN ( - ( - col1 ) ) AND NOT ( 95 ) NOT IN ( - col1 - + col0 * + col2 )
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8450
SELECT DISTINCT COUNT ( * ) - 16 col0 FROM tab1 WHERE ( 84 - col2 + - col0 ) NOT IN ( - ( - col1 ) ) AND NOT ( 95 ) NOT IN ( - col1 - + col0 * + col2 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8451
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN col2 + - 32 * - 38 AND ( - 15 + col2 ) AND ( CAST( + 94 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8451
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN col2 + - 32 * - 38 AND ( - 15 + col2 ) AND ( CAST ( + 94 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 49 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 / + ( ( 57 ) ) - col2 * col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ), 95 AS col1 FROM tab2 AS cor0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ), 95 AS col1 FROM tab2 AS cor0
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + COUNT( * ) * + + COUNT( * ) * 76 FROM tab0 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-8456
SELECT + COUNT ( * ) * + + COUNT ( * ) * 76 FROM tab0 AS cor0
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8457
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL + - CAST( 28 AS SIGNED ) FROM tab2 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + - CAST ( 28 AS INTEGER ) FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT col0 * + + 1 - + 3 AS col2 FROM tab1 cor0
----
48
82
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 96 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8461
SELECT CAST( NULL AS SIGNED ) * - 12 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT CAST ( NULL AS INTEGER ) * - 12 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( ( col1 ) ) + col0 AS col2 FROM tab2
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 83 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( + - 73 ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT - COUNT( - col1 ) col1 FROM tab1 WHERE NOT ( - 68 ) NOT IN ( - 37 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8467
SELECT - COUNT ( - col1 ) col1 FROM tab1 WHERE NOT ( - 68 ) NOT IN ( - 37 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col2 / - 31 * + col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8469
SELECT ALL col2 - CAST( 80 AS DECIMAL ) AS col1 FROM tab0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL col2 - CAST ( 80 AS REAL ) AS col1 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 53 AS col1 FROM tab1 WHERE ( + + 7 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + COUNT( * ) + 21 col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT + COUNT ( * ) + 21 col2 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - 72 * - COUNT( * ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - 72 * - COUNT ( * ) FROM tab2 AS cor0
----
216

query I rowsort
SELECT DISTINCT ( col2 ) + col1 AS col0 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + 30 + + + 37 + + SUM( ALL - col2 ) col1 FROM tab1
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT ALL + 30 + + + 37 + + SUM ( ALL - col2 ) col1 FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT 22 - - - COUNT( * ) + 72 col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT 22 - - - COUNT ( * ) + 72 col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col2 * 81 FROM tab0 AS cor0 WHERE ( NOT - - col2 * - col2 * + col2 <> NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT 81 * COUNT( * ) - + + 28 DIV + 2 FROM tab1 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-8479
SELECT 81 * COUNT ( * ) - + + 28 / + 2 FROM tab1 AS cor0
----
229

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 88 + col1 IS NULL
----

query I rowsort
SELECT - + 56 + - col0 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND - col1 + 55 * col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT 59 NOT IN ( + ( 59 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 IN ( - 17, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col0 - + col0 IS NULL
----

query I rowsort
SELECT + + 83 FROM tab2 WHERE - 0 + + - col1 IS NOT NULL
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT ALL col0 DIV + + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL col0 / + + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 45 FROM tab1 WHERE 0 NOT BETWEEN - + 53 AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL - 20 + + CAST( NULL AS SIGNED ) - + - col1 / + 41 * 11 + + + col2 + ( - col1 ) - ( + col0 + - 61 ) / - col1 * 43 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - 20 + + CAST ( NULL AS INTEGER ) - + - col1 / + 41 * 11 + + + col2 + ( - col1 ) - ( + col0 + - 61 ) / - col1 * 43 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT 73 DIV - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8490
SELECT 73 / - COUNT ( * ) FROM tab1
----
-24

query III rowsort
SELECT * FROM tab2 WHERE + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT + 37 * CAST( - - 59 AS SIGNED ) * + - col1 AS col1 FROM tab0
----
-176823
-2183
-45843

skipif mysql # not compatible
query I rowsort label-8492
SELECT + 37 * CAST ( - - 59 AS INTEGER ) * + - col1 AS col1 FROM tab0
----
-176823
-2183
-45843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + col0 * col1 col2 FROM tab0
----
15
1215
87
1827
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - COUNT( * ) * 8 AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8495
SELECT - COUNT ( * ) * 8 AS col0 FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ( + + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ( + + COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 * + - 89 * + 21 FROM tab2 cor0
----
-108402
-42987
-74760

query I rowsort
SELECT + col1 + + 18 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab1 cor0
----
-44

query II rowsort
SELECT + col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - COUNT( * ) - - - MIN( 82 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - COUNT ( * ) - - - MIN ( 82 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query I rowsort
SELECT DISTINCT + + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT 57 * - - 59 * + col2 FROM tab0
----
158061
332937
33630

query II rowsort
SELECT ALL - ( - col0 ) AS col0, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + - col1, 44 + + ( - 82 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL - MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - MAX ( col0 ) FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab2 cor0
----
45
45
45

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL - 33 + - - 52 FROM tab2 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT ALL - col2 * + 86 AS col0 FROM tab0
----
-4042
-8514
-860

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 45 - col2 + - ( - col1 ) NOT BETWEEN NULL AND + col1 * + - 57 * - 47
----

query I rowsort
SELECT DISTINCT 96 + - col1 + - ( + + col0 ) + - col2 FROM tab1
----
-110
-53
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + COUNT( * ) * - 43 AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + COUNT ( * ) * - 43 AS col1 FROM tab2
----
-129

query I rowsort
SELECT ALL + col0 + + 68 + + 17 * col0 AS col1 FROM tab0
----
1634
1814
338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8515
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 * - 99 - - + col1 FROM tab0 cor0
----
1566
8634
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - 48 * - CAST( - col0 AS SIGNED ) - + col1 * + col2 * 37 * - col1 + 29 * - col2 AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN 45 / - 18 AND + - col2
----

skipif mysql # not compatible
query I rowsort label-8517
SELECT - 48 * - CAST ( - col0 AS INTEGER ) - + col1 * + col2 * 37 * - col1 + 29 * - col2 AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN 45 / - 18 AND + - col2
----

query I rowsort
SELECT ALL + 45 - - col0 FROM tab0 AS cor0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL - - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT MIN( - col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8520
SELECT MIN ( - col1 ) AS col2 FROM tab2 cor0
----
-77

query I rowsort
SELECT col1 * - ( + 43 ) * - 60 + col2 - col2 + + 51 FROM tab0 AS cor0
----
209031
2631
54231

query I rowsort
SELECT + 62 - - 93 + + - 65 AS col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT + col1 * - + CAST( + + 79 AS SIGNED ) - - 62 FROM tab1 AS cor0
----
-1044
-333
-3651

skipif mysql # not compatible
query I rowsort label-8523
SELECT + col1 * - + CAST ( + + 79 AS INTEGER ) - - 62 FROM tab1 AS cor0
----
-1044
-333
-3651

query I rowsort
SELECT + + col2 * + 16 AS col1 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT DISTINCT - col0 DIV 53 * + 38 * + col1 AS col1 FROM tab0 AS cor0
----
-38
-798
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - col0 / 53 * + 38 * + col1 AS col1 FROM tab0 AS cor0
----
-38
-798
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT - 54 * - - SUM( ALL col0 ) AS col2 FROM tab1
----
-12258

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - 54 * - - SUM ( ALL col0 ) AS col2 FROM tab1
----
-12258

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8528
SELECT - 15 DIV col2 DIV + 27 * + col1 * - CAST( 64 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8528
SELECT - 15 / col2 / + 27 * + col1 * - CAST ( 64 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT + col1 * - col1, - 61 * + 85 * 19 AS col1 FROM tab1
----
-196
-98515
-2209
-98515
-25
-98515

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8530
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL 10 AS col0 FROM tab0 AS cor0 WHERE + col2 * + ( - col2 ) * - + 86 / + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 5 * + - 13 AND - + 50 * 51
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0 WHERE + 37 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8534
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT 26 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT 26 / col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 82 * + col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 col1, col1 FROM tab0 AS cor0
----
7
1
7
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL 62 + - COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 62 + - COUNT ( * ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 * - 0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT - col0, 21 FROM tab2 AS cor0 WHERE - 88 BETWEEN - col0 * + col2 - + - col0 * + ( - - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) >= + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - col2 ) col1 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - 16 < + col2
----
1
21
81

query I rowsort
SELECT 56 + col2 AS col0 FROM tab2
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT ALL + col0 + + 78 + - col2 + - 52 * col0 * col1 * col1 DIV + + col1 FROM tab1
----
-21996
-222303
-37095

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + col0 + + 78 + - col2 + - 52 * col0 * col1 * col1 / + + col1 FROM tab1
----
-21996
-222303
-37095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT col1 + + col1 - + + 97 + - col1 * + CAST( NULL AS SIGNED ) * + col1 * - col1 / + col0 * + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT col1 + + col1 - + + 97 + - col1 * + CAST ( NULL AS INTEGER ) * + col1 * - col1 / + col0 * + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT + col1 * col0 / - CAST( NULL AS SIGNED ) * - 29 * + 82 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + col1 * col0 / - CAST ( NULL AS INTEGER ) * - 29 * + 82 + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT ALL CAST( NULL AS SIGNED ) * + col0, col0 col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8549
SELECT ALL CAST ( NULL AS INTEGER ) * + col0, col0 col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + 1 FROM tab1 WHERE NOT col2 * + - col0 >= + col0
----
1

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT COUNT( * ) + COUNT( * ) FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8552
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1, tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8553
SELECT * FROM tab2 AS cor0 WHERE - 14 NOT IN ( - + col0, - col2 * - CAST( ( - + 87 ) AS SIGNED ) + + 82 / - + 80 / + col2, - col2 * - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8553
SELECT * FROM tab2 AS cor0 WHERE - 14 NOT IN ( - + col0, - col2 * - CAST ( ( - + 87 ) AS INTEGER ) + + 82 / - + 80 / + col2, - col2 * - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + col2 + 34 + - - col2 * 14 AS col1 FROM tab2 AS cor0
----
379
634
904

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - COUNT( * ) + - 89 AS col1 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8555
SELECT - COUNT ( * ) + - 89 AS col1 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + col1 - - - ( - col0 ) AS col0 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT + 63 DIV COUNT( * ) * - 72 FROM tab1
----
-1512

skipif mysql # not compatible
query I rowsort label-8558
SELECT + 63 / COUNT ( * ) * - 72 FROM tab1
----
-1512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( + - 36 ) col1 FROM tab2
----
1836
2412
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 / + - ( + col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 / + - ( + col0 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 52 col2 FROM tab2
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - 31 * - COUNT( * ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - 31 * - COUNT ( * ) AS col1 FROM tab1
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8563
SELECT DISTINCT + 98 * + + CAST( NULL AS DECIMAL ) / - + col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + 98 * + + CAST ( NULL AS REAL ) / - + col2 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT - SUM( - - col2 ) * - - 44 AS col1 FROM tab0
----
-6864

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - SUM ( - - col2 ) * - - 44 AS col1 FROM tab0
----
-6864

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT ALL + 48 DIV 49 * - 34 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 48 / 49 * - 34 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 24 FROM tab0 cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col2, + col1 + col1 AS col2 FROM tab1 AS cor0
----
51
28
85
10
91
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + COUNT( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8568
SELECT + COUNT ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + COUNT( * ) * - + COUNT( * ) * + 10 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * + 10 FROM tab0
----
-90

query I rowsort
SELECT + col0 * + ( + 25 ) FROM tab1
----
1275
2125
2275

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab0 cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + col1 / - col0 AS col2 FROM tab0 cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT - COUNT( * ) * + - 97 + 61 FROM tab2 cor0
----
352

skipif mysql # not compatible
query I rowsort label-8574
SELECT - COUNT ( * ) * + - 97 + 61 FROM tab2 cor0
----
352

query I rowsort
SELECT ALL col1 + + col0 * + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 41 + col0 AS col1, - 7 AS col2 FROM tab2 AS cor0
----
23
-7
34
-7
5
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8578
SELECT - MIN ( - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT DISTINCT CAST( - 54 AS SIGNED ) + - - COUNT( * ) + + ( 42 ) col1 FROM tab0, tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT DISTINCT CAST ( - 54 AS INTEGER ) + - - COUNT ( * ) + + ( 42 ) col1 FROM tab0, tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT COUNT( * ) + 93 col1 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8580
SELECT DISTINCT COUNT ( * ) + 93 col1 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT SUM( DISTINCT + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8581
SELECT SUM ( DISTINCT + col0 ) FROM tab2
----
185

query II rowsort
SELECT col0 AS col2, ( + col0 ) AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - 42 + col0 FROM tab0
----
-27
45
55

query I rowsort
SELECT DISTINCT col0 + + - 71 AS col1 FROM tab0
----
-56
16
26

query I rowsort
SELECT DISTINCT 90 - + - col2 FROM tab1 AS cor0
----
149
158
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL + - MIN( ALL + - CAST( NULL AS SIGNED ) ) * 99 - - 90 + + + 17 * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * 99 - - 90 + + + 17 * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE 83 * + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE 83 * + - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 62 IS NULL
----

query I rowsort
SELECT + 76 + - col1 + - ( 97 ) AS col1 FROM tab2 AS cor0
----
-72
-88
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 82 ) NOT IN ( col1 * 45, + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8594
SELECT * FROM tab2 WHERE + 71 NOT BETWEEN CAST( NULL AS SIGNED ) AND col0
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-8594
SELECT * FROM tab2 WHERE + 71 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0
----
46
51
23
64
77
40

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 88 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL - COUNT( ALL + col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - COUNT ( ALL + col2 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL MIN( - 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL MIN ( - 0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8598
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) <> + - 16
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) <> + - 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL + COUNT( * ) * - 28, - 1 AS col1 FROM tab2 AS cor0
----
-84
-1

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL + COUNT ( * ) * - 28, - 1 AS col1 FROM tab2 AS cor0
----
-84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + COUNT( * ) * - 85 * - 2 AS col2 FROM tab1
----
510

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + COUNT ( * ) * - 85 * - 2 AS col2 FROM tab1
----
510

query I rowsort
SELECT 16 * 1 AS col1 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT ( + 10 ) AS col1 FROM tab2
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 98 NOT BETWEEN 86 + + - col2 * + col1 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT CAST( + + 32 AS SIGNED ) * - col1 * + + col2 AS col1 FROM tab0
----
-121824
-3168
-6720

skipif mysql # not compatible
query I rowsort label-8604
SELECT CAST ( + + 32 AS INTEGER ) * - col1 * + + col2 AS col1 FROM tab0
----
-121824
-3168
-6720

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT ALL 7 DIV + col1 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8606
SELECT ALL 7 / + col1 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - - ( + 45 ) + - 68 AS col1 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - + 52 + - 89 - COUNT( * ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8609
SELECT - + 52 + - 89 - COUNT ( * ) FROM tab0 AS cor0
----
-144

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 + + 62
----

query I rowsort
SELECT 13 * + + col2 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT DISTINCT - 32 * - - COUNT( * ) AS col2, 56 FROM tab0 AS cor0
----
-96
56

skipif mysql # not compatible
query II rowsort label-8615
SELECT DISTINCT - 32 * - - COUNT ( * ) AS col2, 56 FROM tab0 AS cor0
----
-96
56

query I rowsort
SELECT - 13 * + col1 AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT col0 * col0 DIV col2 FROM tab2 AS cor0
----
102
92
96

skipif mysql # not compatible
query I rowsort label-8617
SELECT col0 * col0 / col2 FROM tab2 AS cor0
----
102
92
96

query I rowsort
SELECT + col0 + col2 - - 36 AS col1 FROM tab1 AS cor0
----
180
183
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT MAX( - col1 ) AS col2 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT MAX ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND - + col2
----
NULL

query I rowsort
SELECT + col1 + 66 - - col2 AS col1 FROM tab2 cor0
----
140
183
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 93 col0 FROM tab1 AS cor0
----
-2
-42
-8

query I rowsort
SELECT - 81 / - col1 AS col0 FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT COUNT( * ) + - 51 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8623
SELECT COUNT ( * ) + - 51 FROM tab2
----
-48

query I rowsort
SELECT DISTINCT 98 + - col2 FROM tab0
----
-1
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - ( + COUNT( * ) ) * ( 75 ) FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8625
SELECT - ( + COUNT ( * ) ) * ( 75 ) FROM tab1 cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - 18 - - COUNT( * ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 18 - - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8627
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) * + ( col1 ) + - + 95 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1120
1732
2

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) * + ( col1 ) + - + 95 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1120
1732
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT + MAX( ALL + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + MAX ( ALL + + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + - 9 AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - - + 22 + + 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT + + CAST( + - ( - ( + ( - 71 ) ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-8635
SELECT + + CAST ( + - ( - ( + ( - 71 ) ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8636
SELECT COUNT ( + col0 ) FROM tab2
----
3

query I rowsort
SELECT + 83 * - col0 * col1 AS col2 FROM tab0
----
-100845
-151641
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - COUNT( * ) * 81 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-8638
SELECT - COUNT ( * ) * 81 FROM tab2
----
-243

query I rowsort
SELECT DISTINCT + 55 - col2 AS col0 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT col1 + 46 * col1 AS col0 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 82 * 60 AS col0 FROM tab1 AS cor0
----
-4920
-4920
-4920

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 + - col0 * + + col2 * - + 43 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8647
SELECT ALL - 71, CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0 WHERE NOT ( + 56 IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-8647
SELECT ALL - 71, CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 WHERE NOT ( + 56 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + - col0 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + - col0 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT + SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT + SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT + CAST( 81 AS SIGNED ) FROM tab1 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8651
SELECT + CAST ( 81 AS INTEGER ) FROM tab1 AS cor0
----
81
81
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) = ( - ( + 96 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - CAST( col2 AS SIGNED ) * + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - + col0 - - 5 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8653
SELECT - CAST ( col2 AS INTEGER ) * + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + col0 - - 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 > + col2
----

query I rowsort
SELECT DISTINCT - - 86 + - + col0 AS col2 FROM tab1 AS cor0
----
-5
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL - COUNT( * ) + + MAX( ALL + col0 ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - COUNT ( * ) + + MAX ( ALL + col0 ) AS col2 FROM tab1
----
88

query III rowsort
SELECT * FROM tab2 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - + col0 - - col1 + - - col1 - + col0 * col2 FROM tab0
----
-511
-905
-9599

query I rowsort
SELECT - col0 * - + col0 - + col2 AS col2 FROM tab0
----
178
7559
9310

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col0 > - 69 * 74
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT col2 DIV - 40 + + col2 FROM tab2
----
23
39
57

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT col2 / - 40 + + col2 FROM tab2
----
23
39
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL - MAX( - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - MAX ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, col2 + col2 FROM tab2 AS cor0
----
-51
46
-67
116
-77
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - + COUNT( ALL 81 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - + COUNT ( ALL 81 ) AS col0 FROM tab1 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ( col2 ) AS col0, 45 FROM tab2 AS cor0
----
23
45
40
45
58
45

query I rowsort
SELECT DISTINCT + - 5 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL - + 73 AS col2 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + ( - - 26 ) AS col1 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT SUM ( - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8672
SELECT + MIN ( + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col1 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT MAX( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT MAX ( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT - - 99 * - ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 17 ) col2 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - MIN( ALL - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8678
SELECT - MIN ( ALL - col0 ) FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 71 * - col0 * + col0 FROM tab2
----
-150213
-290776
-399317

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 + - - col1 ) AND NULL
----

query I rowsort
SELECT ALL - col0 * - 13 + col2 FROM tab2
----
1033
621
872

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL MIN( DISTINCT col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL MIN ( DISTINCT col0 ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + COUNT( * ) + - MIN( ALL + - col1 ) * + 93 FROM tab0 AS cor0
----
7536

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COUNT ( * ) + - MIN ( ALL + - col1 ) * + 93 FROM tab0 AS cor0
----
7536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col0 col0 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 80, - col1 + + col1 * - ( 7 ) * + col1 AS col0 FROM tab0 AS cor0
----
80
-3108
80
-46008
80
-8

query I rowsort
SELECT DISTINCT - col0 * + - 92 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT DISTINCT - + 92 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - COUNT( * ) - + 26 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-8690
SELECT - COUNT ( * ) - + 26 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL 68 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL 68 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL COUNT( * ) * 32 col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8692
SELECT ALL COUNT ( * ) * 32 col2 FROM tab0 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) - - + col2 col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - col0 + + 28 AS col1 FROM tab0 AS cor0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL - - COUNT( * ) * + 12 col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8695
SELECT ALL - - COUNT ( * ) * + 12 col1 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT DISTINCT + COUNT( * ) DIV ( + 25 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT + COUNT ( * ) / ( + 25 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT 14 + - col1 FROM tab1 AS cor0
----
-33
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT ALL - 14 * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-2744
-30926
-350

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 69 FROM tab2 WHERE NOT col0 BETWEEN NULL AND - col2 - - - 93
----
69

query I rowsort
SELECT DISTINCT ( + ( - 10 ) ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8704
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - col2 - - 7 FROM tab0
----
-3
-40
-92

query I rowsort
SELECT ALL + 54 - - 49 AS col0 FROM tab2
----
103
103
103

query I rowsort
SELECT DISTINCT 51 - - + col0 AS col1 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT DISTINCT 8 DIV MAX( DISTINCT 11 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT 8 / MAX ( DISTINCT 11 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT - 78 DIV + 54 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT - 78 / + 54 col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8711
SELECT COUNT ( col2 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col2, + 94 * + 68 FROM tab2 AS cor0
----
23
6392
40
6392
58
6392

onlyif mysql # aggregate syntax: 
query II rowsort label-8713
SELECT ALL 72, COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-8713
SELECT ALL 72, COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
72
3

query I rowsort
SELECT ALL + + 35 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 58 IS NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 7 AS col1, + col0 * + col0 + - col0 FROM tab0 AS cor0
----
7
210
7
7482
7
9312

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE col2 * + + col2 / + col2 IS NOT NULL
----
10
47
99

query II rowsort
SELECT + - ( 58 ) AS col1, - 47 AS col2 FROM tab1 AS cor0
----
-58
-47
-58
-47
-58
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT ALL MAX( + col0 ) AS col1, + ( - 30 ) AS col0 FROM tab2
----
75
-30

skipif mysql # not compatible
query II rowsort label-8719
SELECT ALL MAX ( + col0 ) AS col1, + ( - 30 ) AS col0 FROM tab2
----
75
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * + col1 col0 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT ALL 60 AS col0 FROM tab2 WHERE NOT + 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <> + col1
----

query II rowsort
SELECT - col0 * + 69 AS col1, + col0 FROM tab2
----
-3174
46
-4416
64
-5175
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + MAX( + col0 ) * - 53 AS col2 FROM tab0 AS cor0
----
-5141

skipif mysql # not compatible
query I rowsort label-8724
SELECT + MAX ( + col0 ) * - 53 AS col2 FROM tab0 AS cor0
----
-5141

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT DISTINCT - col0 + - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8726
SELECT DISTINCT - col0 + - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL - - MIN( ALL + 78 ) + COUNT( * ) col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8727
SELECT ALL - - MIN ( ALL + 78 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
81

query I rowsort
SELECT col2 + + - col0 AS col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col2 + 64 FROM tab0
----
-35
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - MIN( - 75 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
75

skipif mysql # not compatible
query I rowsort label-8730
SELECT - MIN ( - 75 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8731
SELECT ALL * FROM tab2 WHERE NULL < + col1 / + CAST( NULL AS SIGNED ) + + - col2
----

skipif mysql # not compatible
query III rowsort label-8731
SELECT ALL * FROM tab2 WHERE NULL < + col1 / + CAST ( NULL AS INTEGER ) + + - col2
----

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab1 cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT DISTINCT + col1 DIV 14 * - col0 - + + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-138
-300
-320

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + col1 / 14 * - col0 - + + col2 / - col1 AS col1 FROM tab2 AS cor0
----
-138
-300
-320

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1 cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8736
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + - - col0, CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) - - + col2, col2, col2, col0 )
----

skipif mysql # not compatible
query III rowsort label-8736
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + - - col0, CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) - - + col2, col2, col2, col0 )
----

query I rowsort
SELECT DISTINCT + - 51 AS col0 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col2 - + + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 31 * 60 FROM tab0 AS cor0
----
-1860
-1860
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL - - SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - - SUM ( - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT DISTINCT + + 36 DIV - col0 + - + col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + + 36 / - col0 + - + col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT + col0 DIV col0 - - col0 + + col0 AS col1 FROM tab0 AS cor0
----
175
195
31

skipif mysql # not compatible
query I rowsort label-8742
SELECT + col0 / col0 - - col0 + + col0 AS col1 FROM tab0 AS cor0
----
175
195
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 64 - + 29 AS col1 FROM tab1
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 + ( - col1 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 * 50 IS NOT NULL
----

query I rowsort
SELECT + - ( - ( col0 ) ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - + col2 + - + 85 AS col0 FROM tab0 cor0 WHERE NOT 67 - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab2 cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - + ( + MIN( ALL + + col1 ) ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8751
SELECT - + ( + MIN ( ALL + + col1 ) ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - ( - 82 ) * col2 + col1 FROM tab1 AS cor0
----
4843
5623
7886

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
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-8753
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8754
SELECT * FROM tab1 cor0 WHERE NOT CAST( + col0 AS SIGNED ) >= 54 * - - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8754
SELECT * FROM tab1 cor0 WHERE NOT CAST ( + col0 AS INTEGER ) >= 54 * - - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + 19 ) FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8756
SELECT - COUNT ( * ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + col2 + - col1 * 58 FROM tab1 AS cor0 WHERE NOT NULL = col0 * + col1 * + + col0
----

query I rowsort
SELECT + col1 FROM tab1 WHERE 90 < col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL COUNT( * ) + - 22 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL COUNT ( * ) + - 22 FROM tab1
----
-19

query III rowsort
SELECT * FROM tab1 WHERE NULL = 4 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT 24 * col0 AS col1 FROM tab2 WHERE - + col1 * + + CAST( + 79 AS SIGNED ) > 87
----

skipif mysql # not compatible
query I rowsort label-8762
SELECT 24 * col0 AS col1 FROM tab2 WHERE - + col1 * + + CAST ( + 79 AS INTEGER ) > 87
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8763
SELECT DISTINCT col0 + - + 10 - + - col0 + + + 77, - 8 DIV 54 AS col2 FROM tab1
----
169
0
237
0
249
0

skipif mysql # not compatible
query II rowsort label-8763
SELECT DISTINCT col0 + - + 10 - + - col0 + + + 77, - 8 / 54 AS col2 FROM tab1
----
169
0
237
0
249
0

query I rowsort
SELECT + col1 + - + 99 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT 47 + 59 FROM tab1
----
106
106
106

query I rowsort
SELECT col1 + + + 38 AS col0 FROM tab2 AS cor0
----
105
115
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8767
SELECT ALL - COUNT( * ) AS col1, ( - ( + SUM( ALL - 13 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-8767
SELECT ALL - COUNT ( * ) AS col1, ( - ( + SUM ( ALL - 13 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - SUM( DISTINCT - 67 ) - + 61 * COUNT( * ) + + SUM( + 60 ) AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - SUM ( DISTINCT - 67 ) - + 61 * COUNT ( * ) + + SUM ( + 60 ) AS col2 FROM tab0
----
64

query I rowsort
SELECT - 38 + - + ( col1 ) FROM tab0 AS cor0
----
-119
-39
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT + + COUNT( * ) + - COUNT( * ), - MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
0
-75

skipif mysql # not compatible
query II rowsort label-8770
SELECT + + COUNT ( * ) + - COUNT ( * ), - MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
0
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 16 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 * - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 * - col1 < NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 - + 3 FROM tab2 AS cor0
----
48
64
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT col2 / + col0 + + col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 4
----

skipif mysql # not compatible
query I rowsort label-8775
SELECT col2 / + col0 + + col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT - SUM( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - SUM ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + 20 * + ( 45 ) FROM tab1 cor0
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT CAST( + 90 AS SIGNED ) AS col2 FROM tab1
----
90
90
90

skipif mysql # not compatible
query I rowsort label-8778
SELECT CAST ( + 90 AS INTEGER ) AS col2 FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL ( + - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL col0 * - col1 * - col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT DISTINCT - ( 66 ) AS col2 FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT 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-8783
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 49 * + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8786
SELECT col1 col2, - col0 + + col1 DIV - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8786
SELECT col1 col2, - col0 + + col1 / - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

query II rowsort
SELECT col0 * 32 * + 92, - 1 + + 4 AS col0 FROM tab2
----
135424
3
188416
3
220800
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT - MIN( ALL - 60 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - MIN ( ALL - 60 ) FROM tab0 AS cor0
----
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - 13 * + col1 NOT BETWEEN + - col0 * + + col0 * col1 + - col2 AND NULL
----

query II rowsort
SELECT ALL - col1 * + - col1 AS col1, - col0 FROM tab2
----
2601
-46
4489
-75
5929
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ALL - CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * + col2 col0 FROM tab2
----
-1240
-1798
-713

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = 57 * - + 31 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT - COUNT( * ) DIV COUNT( * ) + SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COUNT ( * ) / COUNT ( * ) + SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-224

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IN ( - col0, col2, + - 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT ALL + MAX( - col0 ) + 26 DIV - - COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + MAX ( - col0 ) + 26 / - - COUNT ( * ) FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT CAST( + 13 AS SIGNED ) FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8797
SELECT CAST ( + 13 AS INTEGER ) FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT 31 * col1 * + - 27 FROM tab1
----
-11718
-39339
-4185

query I rowsort
SELECT DISTINCT col0 + - - col2 + - col0 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col0 + + + 87 + - - col1 AS col1 FROM tab0
----
-9
153
21

query I rowsort
SELECT DISTINCT - - col1 * col0 + - col1 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col2 * + col1 * - ( - 24 ) AS col1 FROM tab1
----
32256
7080
76704

query I rowsort
SELECT DISTINCT col0 + + - ( col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT - 27 + - - COUNT( * ) AS col1, 84 AS col1 FROM tab1 WHERE + + ( col2 ) IS NOT NULL
----
-24
84

skipif mysql # not compatible
query II rowsort label-8804
SELECT - 27 + - - COUNT ( * ) AS col1, 84 AS col1 FROM tab1 WHERE + + ( col2 ) IS NOT NULL
----
-24
84

query I rowsort
SELECT ALL - 73 FROM tab2 WHERE - col1 * col1 - + + col2 IS NOT NULL
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, + col1 * - col1 FROM tab2 AS cor0
----
46
-2601
64
-5929
75
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT + - 33 + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + - 33 + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 67 AS col2 FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL col2 + + ( - - 74 ) FROM tab0
----
121
173
84

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL - col1 + + 69 * + - col1 FROM tab0
----
-1470
-5670
-70

query I rowsort
SELECT DISTINCT + 51 * col2 + col0 + + 13 AS col1 FROM tab2
----
1232
2117
3046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT - ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col2, col2 * - col2 AS col0 FROM tab0 cor0
----
-10
-100
-47
-2209
-99
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT - MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8818
SELECT - MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL - - 87 AS col2, col2 FROM tab0 AS cor0
----
87
10
87
47
87
99

query II rowsort
SELECT - + 71 AS col0, 16 FROM tab0 AS cor0
----
-71
16
-71
16
-71
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT + + MAX( + + 19 ) DIV - + ( + MIN( DISTINCT + col1 ) ) - 85 AS col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8821
SELECT + + MAX ( + + 19 ) / - + ( + MIN ( DISTINCT + col1 ) ) - 85 AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + COUNT( * ) * + - 70 col1 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT + COUNT ( * ) * + - 70 col1 FROM tab2 AS cor0
----
-210

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT + 77 * 8 - - - col0 DIV + col2 AS col1 FROM tab0 cor0
----
608
616
616

skipif mysql # not compatible
query I rowsort label-8826
SELECT + 77 * 8 - - - col0 / + col2 AS col1 FROM tab0 cor0
----
608
616
616

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN + col1 AND NULL )
----

query I rowsort
SELECT - - 90 + + col1 * - 59 + - - col0 FROM tab1 WHERE NOT ( NULL > col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT 28 DIV col0 * 28 + + col0 FROM tab0 cor0
----
43
87
97

skipif mysql # not compatible
query I rowsort label-8829
SELECT 28 / col0 * 28 + + col0 FROM tab0 cor0
----
43
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 BETWEEN NULL AND - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ( - COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8831
SELECT ( - COUNT ( * ) ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT + SUM( ALL - 11 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT + SUM ( ALL - 11 ) FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL - COUNT( * ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8833
SELECT ALL - COUNT ( * ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8834
SELECT + col1 AS col1, + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8834
SELECT + col1 AS col1, + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT ALL col1 AS col2, + 49 * - col2 FROM tab1
----
14
-4704
47
-3332
5
-2891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 * col1 col2 FROM tab0 AS cor0
----
158949
18225
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col1, col0 * - col1 col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT - ( - - col1 ) * col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE ( - col1 >= - + col2 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8840
SELECT - CAST( NULL AS SIGNED ) AS col1, 17 * - + 32 AS col2 FROM tab2 cor0
----
NULL
-544
NULL
-544
NULL
-544

skipif mysql # not compatible
query II rowsort label-8840
SELECT - CAST ( NULL AS INTEGER ) AS col1, 17 * - + 32 AS col2 FROM tab2 cor0
----
NULL
-544
NULL
-544
NULL
-544

query I rowsort
SELECT ALL + 98 * 24 AS col2 FROM tab1 AS cor0
----
2352
2352
2352

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT 21 + + 23 AS col2 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8844
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + col1 * + 77
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + col1 * + 77
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 / col1 AND col0 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8846
SELECT ALL - CAST( - 40 AS SIGNED ) DIV col1 + - col1 + + 87 FROM tab2
----
10
20
36

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - CAST ( - 40 AS INTEGER ) / col1 + - col1 + + 87 FROM tab2
----
10
20
36

query I rowsort
SELECT DISTINCT - 50 + col2 AS col0 FROM tab1
----
18
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL + COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT + + ( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + 79 + + - 26 - col1 AS col0 FROM tab2
----
3557
4953
5832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8851
SELECT DISTINCT + 23 + + col2 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
122
NULL
33
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-8851
SELECT DISTINCT + 23 + + col2 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
122
NULL
33
NULL
70
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT - ( CAST( col1 AS SIGNED ) ) + col0 + - 28 + 42 - + + col1 FROM tab0
----
-133
109
59

skipif mysql # not compatible
query I rowsort label-8852
SELECT - ( CAST ( col1 AS INTEGER ) ) + col0 + - 28 + 42 - + + col1 FROM tab0
----
-133
109
59

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 <> - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + SUM( ALL col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8854
SELECT + SUM ( ALL col2 ) AS col2 FROM tab2 cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8858
SELECT MAX ( - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + col2 FROM tab1 cor0 WHERE - 37 * col1 * col1 IS NOT NULL
----
59
68
96

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8861
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + MAX( ALL - 17 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8863
SELECT + MAX ( ALL - 17 ) FROM tab2 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8864
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + + MAX( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + + MAX ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT DISTINCT - MIN( ALL + - 2 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - MIN ( ALL + - 2 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 69 AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL - - CAST( 26 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - - CAST ( 26 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT 20 * + - col1 * - - col1 AS col1 FROM tab1
----
-3920
-44180
-500

query I rowsort
SELECT ALL - 27 AS col0 FROM tab2
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + + ( + 7 ) * + + 12 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - SUM( ALL col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8872
SELECT - SUM ( ALL col0 ) FROM tab1
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + + + col1 - ( + col0 ), 66 + - col2 + - col2, + col2, + col1 + + col0 + - 35 * CAST( NULL AS DECIMAL ), - - col0 )
----

skipif mysql # not compatible
query III rowsort label-8873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + + + col1 - ( + col0 ), 66 + - col2 + - col2, + col2, + col1 + + col0 + - 35 * CAST ( NULL AS REAL ), - - col0 )
----

query I rowsort
SELECT - col1 + + col2 * ( - + col1 ) * col0 + col0 AS col0 FROM tab0 AS cor0
----
-18204
-57171
-9507

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + ( - - ( + COUNT( * ) ) ) * + - 26 * + MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-3978

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + ( - - ( + COUNT ( * ) ) ) * + - 26 * + MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-3978

query II rowsort
SELECT ALL - col0 * - col1 AS col1, col2 FROM tab1 AS cor0
----
425
59
4277
68
714
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 + - - col2 col1 FROM tab2 cor0
----
-101
-74
-84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 62 * - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL ( - SUM( - - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL ( - SUM ( - - col1 ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8880
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + COUNT( ALL + 43 ) + - 80 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + COUNT ( ALL + 43 ) + - 80 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8883
SELECT ALL - col2 - + CAST( - col1 AS SIGNED ) + + - col0 + col2 - - col1, + 55 + ( + + col2 ) * + col0 AS col2 FROM tab1
----
-23
4951
-75
5070
3
6243

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL - col2 - + CAST ( - col1 AS INTEGER ) + + - col0 + col2 - - col1, + 55 + ( + + col2 ) * + col0 AS col2 FROM tab1
----
-23
4951
-75
5070
3
6243

query I rowsort
SELECT DISTINCT 38 - + ( - col0 ) * + col0 AS col0 FROM tab0
----
263
7607
9447

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1, tab0 cor0
----
-36

query I rowsort
SELECT ALL 23 - + + 34 AS col1 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 0 ) <= - + 84 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + 82 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8888
SELECT + 82 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab0
----
-97

query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT SUM( ALL 35 ) FROM tab0 WHERE + col0 BETWEEN ( col1 ) * - 55 AND 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT SUM ( ALL 35 ) FROM tab0 WHERE + col0 BETWEEN ( col1 ) * - 55 AND 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT ALL + col0 DIV - col1 + col2 AS col0 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + col0 / - col1 + col2 AS col0 FROM tab1
----
42
67
93

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 * + col1 ) = NULL
----

query I rowsort
SELECT ALL - 8 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 * col1 ) IS NULL
----

query I rowsort
SELECT - col2 / + col1 + col0 * + col2 AS col0 FROM tab0 WHERE NOT col0 <> ( - col2 * - col1 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT + CAST( MIN( ALL - col2 ) AS SIGNED ) AS col0 FROM tab1 WHERE + col0 BETWEEN col2 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT + CAST ( MIN ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab1 WHERE + col0 BETWEEN col2 AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( + col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 32 * col0 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT COUNT( * ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT COUNT ( * ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 + 33 FROM tab1
----
-26
-35
-63

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT col2 * + CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT col2 * + CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT + COUNT( 92 ) FROM tab2 WHERE NOT ( 16 * - 44 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + COUNT ( 92 ) FROM tab2 WHERE NOT ( 16 * - 44 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT COUNT( * ) * + 15 - 70 AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-8905
SELECT COUNT ( * ) * + 15 - 70 AS col2 FROM tab2
----
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 37 + col1 FROM tab2 WHERE NOT ( col1 + + col2 * col1 ) IS NULL
----
104
114
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= 64
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 ) IN ( + 17 + - col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8912
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col1 NOT BETWEEN NULL AND - 96 + 29
----

skipif mysql # not compatible
query III rowsort label-8912
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col1 NOT BETWEEN NULL AND - 96 + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - COUNT( * ) FROM tab2 WHERE - 30 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT - COUNT ( * ) FROM tab2 WHERE - 30 = NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8914
SELECT * FROM tab0 WHERE NULL = - ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8914
SELECT * FROM tab0 WHERE NULL = - ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 93 AS col0 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT col2 + - ( - CAST( col2 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT col2 + - ( - CAST ( col2 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL + 6 AS col0 FROM tab0 cor0 WHERE NOT + 40 BETWEEN ( 75 * - 56 ) AND ( CAST( col2 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + 6 AS col0 FROM tab0 cor0 WHERE NOT + 40 BETWEEN ( 75 * - 56 ) AND ( CAST ( col2 AS INTEGER ) )
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 * - col0 + 28 * - col0 col0 FROM tab1 AS cor0
----
-10283
-5763
-9605

query I rowsort
SELECT DISTINCT 81 - - col1 FROM tab0 AS cor0 WHERE NOT + col0 + - col0 IS NULL
----
102
162
82

query I rowsort
SELECT + 24 + + 22 AS col0 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + 33 + - COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 33 + - COUNT ( * ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8924
SELECT * FROM tab0 WHERE NULL BETWEEN ( 36 * CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8924
SELECT * FROM tab0 WHERE NULL BETWEEN ( 36 * CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT - 37 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( col0 ) - + col2 * + 87 AND col2 + 40
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= ( 63 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + col2 + ( col1 ) FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT COUNT( + 88 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8929
SELECT COUNT ( + 88 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( 98 ) AND NULL
----

query I rowsort
SELECT ALL + ( + col1 ) * ( 75 * - 49 ) FROM tab2 WHERE NULL <> col2
----

query I rowsort
SELECT ALL col1 + - 66 AS col1 FROM tab2
----
-15
1
11

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 78 - - - col0 AS col1 FROM tab1
----
-13
-7
27

query I rowsort
SELECT DISTINCT - - col2 * - + col0 - 45 * 64 FROM tab0 AS cor0
----
-12483
-3585
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
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-8936
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT - 92 > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8941
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( - 23 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT + 74 - + MAX( ALL - col1 + - ( 95 + CAST( NULL AS SIGNED ) ) * - col2 ) FROM tab0 cor0 WHERE ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + 74 - + MAX ( ALL - col1 + - ( 95 + CAST ( NULL AS INTEGER ) ) * - col2 ) FROM tab0 cor0 WHERE ( col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - MIN( - - 75 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - MIN ( - - 75 ) FROM tab2 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 72 col0, col0 * - col1 * col2 col2 FROM tab0 AS cor0
----
72
-18270
72
-57105
72
-9603

query I rowsort
SELECT - - 27 * - 61 * - 35 + col1 FROM tab0 AS cor0
----
57646
57666
57726

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN + col2 AND - 6 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 32 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - ( 61 ) AS col1 FROM tab0 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT DISTINCT - SUM( ALL col1 ), - MIN( col2 ) AS col0 FROM tab0
----
-103
-10

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT - SUM ( ALL col1 ), - MIN ( col2 ) AS col0 FROM tab0
----
-103
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 37 * col1 + col2 / + 81
----

query I rowsort
SELECT ALL - 72 * + + col2 * - - col0 FROM tab2
----
-184320
-313200
-76176

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - 12 * + + ( - COUNT( * ) ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8953
SELECT - 12 * + + ( - COUNT ( * ) ) FROM tab1
----
36

query I rowsort
SELECT DISTINCT + ( 36 ) + - + col0 FROM tab2
----
-10
-28
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT CAST( + col1 AS SIGNED ) * 33 + - 59 * + col1 FROM tab0
----
-2106
-26
-546

skipif mysql # not compatible
query I rowsort label-8955
SELECT CAST ( + col1 AS INTEGER ) * 33 + - 59 * + col1 FROM tab0
----
-2106
-26
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ( + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8956
SELECT ( + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8957
SELECT COUNT( * ) DIV + 95 AS col0, MAX( DISTINCT + 40 ) AS col2 FROM tab0
----
0
40

skipif mysql # not compatible
query II rowsort label-8957
SELECT COUNT ( * ) / + 95 AS col0, MAX ( DISTINCT + 40 ) AS col2 FROM tab0
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL + MIN( + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + MIN ( + + col2 ) FROM tab0
----
10

query I rowsort
SELECT ALL - AVG ( - + col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT 93 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT 93 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 * - col0 + + col1 ) >= NULL
----

query I rowsort
SELECT + 52 + + ( + - col1 ) * - - col1 * + col1 FROM tab1 AS cor0
----
-103771
-2692
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL MIN( DISTINCT col1 ) FROM tab2 AS cor0 WHERE - 40 + - col1 + - + col0 * col1 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL MIN ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE - 40 + - col1 + - + col0 * col1 IS NOT NULL
----
51

query I rowsort
SELECT col1 + - - col2 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT 14 + - + col2 AS col1 FROM tab1
----
-45
-54
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 50 * + 86 + + col2 - + + col2 * col0 ) IN ( ( - 12 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8967
SELECT ALL col0 AS col1, - CAST( NULL AS SIGNED ) + col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

skipif mysql # not compatible
query II rowsort label-8967
SELECT ALL col0 AS col1, - CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL - col1 - - ( + + 54 ) AS col0 FROM tab2 cor0
----
-13
-23
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( col0 ) ) col2 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT - - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT + COUNT( * ) * MIN( ALL - col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL - col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT + + 32 AS col2 FROM tab2 cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( col2 - - + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - SUM( + - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8974
SELECT - SUM ( + - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT + CAST( - MIN( col0 ) AS SIGNED ) - + 21 AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8975
SELECT + CAST ( - MIN ( col0 ) AS INTEGER ) - + 21 AS col1 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT - col1, col1 AS col2, + col0 FROM tab0
----
9 values hashing to 7a7996e800785bd147cfd3bb73e28fde

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT DISTINCT col1 DIV 73 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT col1 / 73 + + col2 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL col2, 18 AS col2 FROM tab2
----
23
18
40
18
58
18

query I rowsort
SELECT col0 - - 28 FROM tab0
----
115
125
43

query I rowsort
SELECT + 65 - col1 + 31 FROM tab2
----
19
29
45

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE + - 4 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col0 + - 82 AS col2 FROM tab0
----
-67
15
5

query I rowsort
SELECT ALL 64 FROM tab1 WHERE NOT - + col0 BETWEEN + col0 AND + + 29
----
64
64
64

query I rowsort
SELECT ALL - 6 FROM tab0 WHERE col0 BETWEEN col2 AND ( col2 )
----

query I rowsort
SELECT 82 + col1 AS col0 FROM tab1
----
129
87
96

query I rowsort
SELECT ALL + 17 + + 7 + - + col1 AS col0 FROM tab0
----
-57
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL - 79 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL - 79 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - MAX( - - 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8990
SELECT - MAX ( - - 4 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT - - 53 * + ( + col0 ) FROM tab0 AS cor0
----
4611
5141
795

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT + col2 * 66 DIV col0 FROM tab2 AS cor0
----
33
41
51

skipif mysql # not compatible
query I rowsort label-8992
SELECT + col2 * 66 / col0 FROM tab2 AS cor0
----
33
41
51

query I rowsort
SELECT col0 * + - 91 AS col1 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT ALL + ( + col2 ) * + 37 AS col0 FROM tab1 AS cor0
----
2183
2516
3552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + - col1 + - ( - 70 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - + col0 + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 21 * - 93 col0 FROM tab0 AS cor0
----
1953

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 81 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT + + COUNT( * ) * MIN( - - col1 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9000
SELECT + + COUNT ( * ) * MIN ( - - col1 ) FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 8 * - 88 col2 FROM tab2 AS cor0
----
627
637
653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) / - 69 + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) / - 69 + - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL + COUNT( * ) + + 67 * COUNT( - col0 ) col0 FROM tab0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9004
SELECT ALL + COUNT ( * ) + + 67 * COUNT ( - col0 ) col0 FROM tab0
----
204

query I rowsort
SELECT DISTINCT - 84 + + col2 FROM tab2
----
-26
-44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT DISTINCT CAST( - + col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + 43 + - col2 FROM tab1 AS cor0
----
-16
-25
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT DISTINCT + 53 * - + CAST( + 9 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + 53 * - + CAST ( + 9 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 48 * + col1 FROM tab1 AS cor0
----
2256
240
672

query II rowsort
SELECT - col2 AS col1, + col0 * 14 FROM tab1 AS cor0
----
-59
1190
-68
1274
-96
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT + 43 - + + col0 AS col1, col0 - + col2 AS col2 FROM tab0
----
-44
77
-54
-2
28
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT - col0 DIV - - col0 + - col0 + + - 84 * + + 29 FROM tab1 AS cor0
----
-2488
-2522
-2528

skipif mysql # not compatible
query I rowsort label-9016
SELECT - col0 / - - col0 + - col0 + + - 84 * + + 29 FROM tab1 AS cor0
----
-2488
-2522
-2528

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9018
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 58 + + - col1 + - col2 + ( - ( col1 ) ) + + - col1 / - + col1 + - col2 / 54 = + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9018
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 58 + + - col1 + - col2 + ( - ( col1 ) ) + + - col1 / - + col1 + - col2 / 54 = + col1 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 78 + - col0 AS col2 FROM tab0
----
-19
-9
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT COUNT( * ) DIV - 95 FROM tab0 WHERE - col1 IN ( - col0, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) / - 95 FROM tab0 WHERE - col1 IN ( - col0, - col1 )
----
0

query I rowsort
SELECT ALL 42 AS col2 FROM tab1
----
42
42
42

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - - col2 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9026
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9026
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT + col1 DIV - ( - col2 ) AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9028
SELECT + col1 / - ( - col2 ) AS col0 FROM tab2
----
1
1
2

query II rowsort
SELECT ALL 10, 92 * - - col2 AS col1 FROM tab0
----
10
4324
10
9108
10
920

query I rowsort
SELECT DISTINCT col2 * 94 AS col0 FROM tab0
----
4418
9306
940

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 50 + + - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - - col2 * 9 ) <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT DISTINCT COUNT( ALL 83 ) FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) / - col0 IN ( + + col1, col1 + + 79 / 12 + ( - + 5 ) * + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT COUNT ( ALL 83 ) FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) / - col0 IN ( + + col1, col1 + + 79 / 12 + ( - + 5 ) * + + col2 )
----
0

query I rowsort
SELECT col1 * 11 FROM tab1
----
154
517
55

query I rowsort
SELECT + - col1 + 83 - + col1 AS col1 FROM tab2 cor0
----
-19
-51
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + MIN( + col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9036
SELECT + MIN ( + col0 ) AS col2 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL - 15 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 + + col0 + + CAST( NULL AS SIGNED ) * + col0 * - 60 )
----

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - 15 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 + + col0 + + CAST ( NULL AS INTEGER ) * + col0 * - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9039
SELECT MIN( DISTINCT + ( + - col2 ) ) * MAX( DISTINCT - col1 ), + MIN( ALL - col0 ) DIV - 69 AS col0 FROM tab1
----
480
1

skipif mysql # not compatible
query II rowsort label-9039
SELECT MIN ( DISTINCT + ( + - col2 ) ) * MAX ( DISTINCT - col1 ), + MIN ( ALL - col0 ) / - 69 AS col0 FROM tab1
----
480
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 > NULL
----

query I rowsort
SELECT 10 FROM tab0 WHERE NULL IS NULL
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 - - 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9043
SELECT + col1 * + 36, 4 DIV col2 + - col2 AS col0 FROM tab1
----
1692
-68
180
-59
504
-96

skipif mysql # not compatible
query II rowsort label-9043
SELECT + col1 * + 36, 4 / col2 + - col2 AS col0 FROM tab1
----
1692
-68
180
-59
504
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT SUM( DISTINCT col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9044
SELECT SUM ( DISTINCT col0 ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL - 6 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - 6 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT col2 * - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9046
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT col2 * - + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 90 + - 74 * col0 FROM tab0 AS cor0 WHERE - col0 + - + 76 * - 64 + - - 15 < col2 OR - ( + 53 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL - - CAST( NULL AS SIGNED ) / - MAX( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - - CAST ( NULL AS INTEGER ) / - MAX ( + col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9049
SELECT ALL - - col0 DIV + + col1 AS col1, - col0 FROM tab2 cor0
----
0
-46
0
-64
1
-75

skipif mysql # not compatible
query II rowsort label-9049
SELECT ALL - - col0 / + + col1 AS col1, - col0 FROM tab2 cor0
----
0
-46
0
-64
1
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT COUNT( * ), + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-9050
SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col0 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / - + col0 + - ( - + col2 ) ) > ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT + - 13 - - - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9054
SELECT + - 13 - - - COUNT ( * ) FROM tab1 AS cor0
----
-16

query I rowsort
SELECT 41 * col2 * - 30 FROM tab2
----
-28290
-49200
-71340

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9056
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2, + CAST( NULL AS SIGNED ), - col1 + + 24 )
----

skipif mysql # not compatible
query III rowsort label-9056
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2, + CAST ( NULL AS INTEGER ), - col1 + + 24 )
----

query II rowsort
SELECT DISTINCT + 17 * col1 AS col0, - 97 AS col2 FROM tab1
----
238
-97
799
-97
85
-97

query I rowsort
SELECT ALL col1 * 87 FROM tab1
----
1218
4089
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col2 FROM tab2
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9060
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9060
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9061
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - 87 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - SUM( ALL + - col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9064
SELECT - SUM ( ALL + - col1 ) AS col0 FROM tab0
----
103

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 58 ) * col1 AS col2 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9067
SELECT MIN ( - col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 / - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + + SUM( - + col2 ) * + + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
14641

skipif mysql # not compatible
query I rowsort label-9069
SELECT + + SUM ( - + col2 ) * + + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
14641

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9070
SELECT - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT COUNT( * ) + + 21 AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT COUNT ( * ) + + 21 AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9073
SELECT ALL * FROM tab1 cor0 WHERE - col1 <> + col0 * + CAST( - 96 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9073
SELECT ALL * FROM tab1 cor0 WHERE - col1 <> + col0 * + CAST ( - 96 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 32 + + - col1 AS col1 FROM tab2
----
-19
-35
-45

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * + - 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 83 + - - COUNT( ALL 19 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 83 + - - COUNT ( ALL 19 ) FROM tab2
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + - col2 col2 FROM tab1 WHERE 9 IS NULL
----

query I rowsort
SELECT DISTINCT + 39 + + - col1 FROM tab1
----
-8
25
34

query II rowsort
SELECT - col1 AS col1, 94 - + 39 FROM tab0 WHERE - + 35 * + col1 + - 27 >= NULL
----

query I rowsort
SELECT - 30 * + - col2 FROM tab2
----
1200
1740
690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + ( - + 59 ) * 56 FROM tab0 AS cor0
----
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL MAX( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL MAX ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT ALL - col1 DIV - - col0 - + 80 + + + col2 + - col1 DIV - 86 FROM tab2
----
-22
-41
-58

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL - col1 / - - col0 - + 80 + + + col2 + - col1 / - 86 FROM tab2
----
-22
-41
-58

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL <= 34 AND 34 NOT BETWEEN + col1 * - col0 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 36 ) col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + col2 * + - col1 + - col2 + + - col0 - - - col2 * + - 29 * - col2 FROM tab0 AS cor0
----
-284524
-3207
-67930

query I rowsort
SELECT ALL 16 * + - col2 * + 38 FROM tab0 AS cor0
----
-28576
-60192
-6080

query I rowsort
SELECT DISTINCT - + 29 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT - CAST( + + 1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9091
SELECT - CAST ( + + 1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9093
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > - col1 * - 4
----

skipif mysql # not compatible
query III rowsort label-9093
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > - col1 * - 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT 62 DIV + + 3 col1 FROM tab2
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT 62 / + + 3 col1 FROM tab2
----
20
20
20

query I rowsort
SELECT ALL + ( + ( - 53 ) ) AS col2 FROM tab1 WHERE NOT + col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + COUNT( ( - 46 ) ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9096
SELECT + COUNT ( ( - 46 ) ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 13 + + 12 IS NOT NULL
----

query I rowsort
SELECT - 42 + 12 FROM tab1 WHERE NOT ( NULL NOT IN ( - 25 * col0 * + - col0, col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT CAST( + - ( col1 ) AS SIGNED ) * 63 AS col0 FROM tab0
----
-1323
-5103
-63

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT CAST ( + - ( col1 ) AS INTEGER ) * 63 AS col0 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT - 19 * col2 AS col2 FROM tab1
----
-1121
-1292
-1824

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT col2 DIV - - col0 * col0 * + - 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT col2 / - - col0 * col0 * + - 51 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - col0 ) * + col0 AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT 51 DIV + + COUNT( * ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9105
SELECT 51 / + + COUNT ( * ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT ALL ( - COUNT( * ) ) DIV COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL ( - COUNT ( * ) ) / COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9107
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 11 NOT BETWEEN col1 + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9107
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 11 NOT BETWEEN col1 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col2 + col1 - + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col2 + col1 - + col2 * + col1
----
0

query I rowsort
SELECT ALL - - 37 AS col2 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT DISTINCT MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT MAX ( - - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT - MAX( DISTINCT + - col0 ) AS col2, 53 * - SUM( - col2 ) FROM tab1 AS cor0
----
51
11819

skipif mysql # not compatible
query II rowsort label-9114
SELECT - MAX ( DISTINCT + - col0 ) AS col2, 53 * - SUM ( - col2 ) FROM tab1 AS cor0
----
51
11819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * col0 col0 FROM tab2 AS cor0
----
163840
326250
48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 / + col1 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 * - 51 AND ( 66 * ( - col0 ) - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT ALL + col2 DIV + + 95 + - 54 * + col2 AS col0 FROM tab0
----
-2538
-5345
-540

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + col2 / + + 95 + - 54 * + col2 AS col0 FROM tab0
----
-2538
-5345
-540

query I rowsort
SELECT ALL col2 + + col0 * 15 * + 54 FROM tab1
----
41406
68909
73778

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT + 67 - COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT + 67 - COUNT ( * ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + COUNT( DISTINCT - + col2 ) FROM tab0 WHERE NOT col0 + col1 * col2 * - col1 * - col0 / col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ) FROM tab0 WHERE NOT col0 + col1 * col2 * - col1 * - col0 / col2 <= NULL
----
0

query I rowsort
SELECT DISTINCT - - col0 * + col1 + - + 18 + - + 63 AS col0 FROM tab1 AS cor0
----
344
4196
633

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT COUNT( * ) + 71 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT COUNT ( * ) + 71 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT ALL - 93 * - CAST( 77 AS SIGNED ) + + 89 col2 FROM tab2
----
7250
7250
7250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9123
SELECT ALL - 93 * - CAST ( 77 AS INTEGER ) + + 89 col2 FROM tab2
----
7250
7250
7250

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9124
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - + 68 AS col2, - ( + 25 ) FROM tab1 AS cor0
----
-68
-25
-68
-25
-68
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 98 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + 1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9129
SELECT DISTINCT col0, col1 DIV - - col2 AS col0 FROM tab0 cor0
----
15
1
87
2
97
0

skipif mysql # not compatible
query II rowsort label-9129
SELECT DISTINCT col0, col1 / - - col2 AS col0 FROM tab0 cor0
----
15
1
87
2
97
0

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab0 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 + - col1 AS col1 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9132
SELECT - - col0 AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9132
SELECT - - col0 AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL col0 * 95 AS col2 FROM tab0
----
1425
8265
9215

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + SUM( + 47 ) AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-9135
SELECT + SUM ( + 47 ) AS col2 FROM tab0
----
141

query II rowsort
SELECT ALL + col2 * + col0 * - col0 AS col1, + 58 FROM tab2
----
-163840
58
-326250
58
-48668
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + COUNT( * ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT + COUNT ( * ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT - col2 * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT - col2 * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 7 FROM tab2 cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT - 84 DIV + col1 FROM tab0 cor0 WHERE NOT - 31 >= ( col1 )
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 84 / + col1 FROM tab0 cor0 WHERE NOT - 31 >= ( col1 )
----
-1
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9142
SELECT - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + + col2 + + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
752
880
9702

query I rowsort
SELECT ALL + ( - ( col2 ) ) + + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - ( ( - 8 ) ) AS col0 FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9147
SELECT - - 36 + + + col1 * + 1, + col1 - - + col1 - - + ( + - CAST( - col1 AS SIGNED ) ) * 63 AS col0 FROM tab1 AS cor0
----
41
325
50
910
83
3055

skipif mysql # not compatible
query II rowsort label-9147
SELECT - - 36 + + + col1 * + 1, + col1 - - + col1 - - + ( + - CAST ( - col1 AS INTEGER ) ) * 63 AS col0 FROM tab1 AS cor0
----
41
325
50
910
83
3055

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 53 + + 75 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT SUM( CAST( + ( + + col0 ) AS SIGNED ) ) FROM tab2 WHERE col1 NOT BETWEEN col2 * col2 AND NULL
----
185

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT SUM ( CAST ( + ( + + col0 ) AS INTEGER ) ) FROM tab2 WHERE col1 NOT BETWEEN col2 * col2 AND NULL
----
185

query III rowsort
SELECT * FROM tab1 WHERE + 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT ( - COUNT( - col1 ) ) * + SUM( ALL + - col0 ) AS col1 FROM tab0 WHERE + - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT ( - COUNT ( - col1 ) ) * + SUM ( ALL + - col0 ) AS col1 FROM tab0 WHERE + - col0 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL - col0 - + - 52 FROM tab2
----
-12
-23
6

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 - - col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 58 * col0 - - col1 AS col0 FROM tab0 cor0
----
-5025
-5625
-789

query I rowsort
SELECT DISTINCT - 71 + + + col2 FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9160
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT ALL + 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT 80 * + + col1 AS col1 FROM tab0
----
1680
6480
80

query I rowsort
SELECT + - 72 * + 79 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT + - col2 DIV + col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9165
SELECT + - col2 / + col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - - 54 AS col1 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + ( - COUNT( * ) ) col1 FROM tab1 cor0 WHERE NOT + col1 <= + + 5
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9167
SELECT + ( - COUNT ( * ) ) col1 FROM tab1 cor0 WHERE NOT + col1 <= + + 5
----
-2

query I rowsort
SELECT - - 93 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col2
----

query II rowsort
SELECT ALL - col2, 80 AS col1 FROM tab2
----
-23
80
-40
80
-58
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 76 / + - 69 * - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT COUNT( * ) * + ( - 59 ) AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT COUNT ( * ) * + ( - 59 ) AS col0 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT + COUNT( * ) * - 90 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + COUNT ( * ) * - 90 FROM tab1
----
-270

query I rowsort
SELECT col0 * + 35 * + col1 AS col2 FROM tab0
----
3395
42525
63945

query I rowsort
SELECT ALL col0 * - ( - col2 ) + 69 FROM tab0
----
774
939
9672

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT ALL - COUNT( * ), MAX( DISTINCT col2 ) col0 FROM tab2
----
-3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9176
SELECT ALL - COUNT ( * ), MAX ( DISTINCT col2 ) col0 FROM tab2
----
-3
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9177
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9177
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 18 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + + ( - - 3 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL COUNT( * ) + + + MAX( ALL + + col0 ) + + - 19 col1 FROM tab2
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9180
SELECT ALL COUNT ( * ) + + + MAX ( ALL + + col0 ) + + - 19 col1 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9182
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - col1 * - 76 + + + col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-9182
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - col1 * - 76 + + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL + ( - ( - - ( + COUNT( * ) ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + ( - ( - - ( + COUNT ( * ) ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( - - col2 ) * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT + COUNT( * ) DIV - COUNT( DISTINCT - - col2 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9185
SELECT + COUNT ( * ) / - COUNT ( DISTINCT - - col2 ) col0 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT DISTINCT + ( + - 7 ) DIV - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + ( + - 7 ) / - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + 7 IS NULL
----

query I rowsort
SELECT - ( col1 ) * - + 3 FROM tab2
----
153
201
231

query I rowsort
SELECT ( - col0 ) - col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT + + 50 FROM tab1 WHERE col2 * 24 IS NULL
----

query I rowsort
SELECT ALL - col2 + - + col2 + + ( 95 ) FROM tab2
----
-21
15
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT CAST( - + col2 AS SIGNED ) - + 89 + - 80 col0 FROM tab1
----
-228
-237
-265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9192
SELECT CAST ( - + col2 AS INTEGER ) - + 89 + - 80 col0 FROM tab1
----
-228
-237
-265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT CAST( - + 56 AS SIGNED ) - + COUNT( * ) AS col2 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT CAST ( - + 56 AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) + + + COUNT( * ) / 79 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) / 79 AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - ( 46 ) FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - MIN( ALL + 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9197
SELECT - MIN ( ALL + 91 ) FROM tab0 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT + + MAX( ALL - col2 ) AS col0 FROM tab1 WHERE NOT col0 * - col0 + - CAST( + CAST( - 1 AS SIGNED ) AS SIGNED ) * + col0 * + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT + + MAX ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT col0 * - col0 + - CAST ( + CAST ( - 1 AS INTEGER ) AS INTEGER ) * + col0 * + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL SUM ( col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9200
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col2 * + 95 * col0 AS col1 FROM tab2
----
100510
243200
413250

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9203
SELECT + MIN ( + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT + MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9204
SELECT + MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 70 + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 12 AS col0 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT 45 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( - 91 ) * - 79 FROM tab1 AS cor0
----
7189
7189
7189

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 81 * col2 * + - col1 + + 27 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 40 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT - MIN( + col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9212
SELECT DISTINCT - MIN ( + col2 ) col0 FROM tab0
----
-10

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9215
SELECT SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT + - col0 DIV - 82 * - - col0 * - 59 * - 33 * col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + - col0 / - 82 * - - col0 * - 59 * - 33 * col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT - COUNT( * ) * - - 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - COUNT ( * ) * - - 50 FROM tab1
----
-150

query I rowsort
SELECT 0 * ( + + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * 17 AS col2 FROM tab1
----
-12138
-7225
-72709

query I rowsort
SELECT - 74 + + + col0 FROM tab1 AS cor0
----
-23
11
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL + 85 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + 85 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL - SUM( ALL + 26 ) * + + COUNT( * ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - SUM ( ALL + 26 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL 67 + - + CAST( + col1 AS SIGNED ) - + - col1 * + ( 76 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 83 IS NOT NULL )
----
1117
3592
442

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL 67 + - + CAST ( + col1 AS INTEGER ) - + - col1 * + ( 76 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 83 IS NOT NULL )
----
1117
3592
442

query I rowsort
SELECT - - 27 + + col0 FROM tab0 AS cor0
----
114
124
42

query II rowsort
SELECT ALL - + col0 AS col2, 81 * + col2 FROM tab0 AS cor0
----
-15
3807
-87
810
-97
8019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + - col1 + + - 98 col1 FROM tab2 AS cor0
----
-172
-215
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT + 37 DIV + + col0 FROM tab0 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + 37 / + + col0 FROM tab0 cor0
----
0
2

query II rowsort
SELECT DISTINCT + col1 + + - 39, - 12 + ( - + 86 ) + - 84 * + + col1 AS col0 FROM tab0
----
-18
-1862
-38
-182
42
-6902

query II rowsort
SELECT DISTINCT col0 * col1, + col1 * - + col1 AS col2 FROM tab2
----
2346
-2601
4928
-5929
5025
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL COUNT( * ) * MAX( DISTINCT col1 ) AS col1 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( * ) * MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 9 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT DISTINCT - col0 DIV + - 57 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT - col0 / + - 57 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 84 + - + col1 / col1 * - - 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - + 63 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + col1 * + 72 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT + SUM( - 85 ) AS col1 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + SUM ( - 85 ) AS col1 FROM tab1
----
-255

query I rowsort
SELECT + 68 * - col2 FROM tab0
----
-3196
-6732
-680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9240
SELECT - col0 AS col0, col0 + col0 + + CAST( NULL AS SIGNED ) / + - 60 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9240
SELECT - col0 AS col0, col0 + col0 + + CAST ( NULL AS INTEGER ) / + - 60 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT + - 18 * 38 - - MAX( + col2 ) FROM tab2 AS cor0
----
-626

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + - 18 * 38 - - MAX ( + col2 ) FROM tab2 AS cor0
----
-626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT ALL ( - + col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9244
SELECT + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 21 * - col0 + - 69 * + + col1 * col2 AS col1 FROM tab1
----
-22140
-222435
-93807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + + 12 = + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + + 12 = + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col1 * - + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT CAST( NULL AS SIGNED ) * - - col2 FROM tab0 WHERE col1 BETWEEN 7 AND col2
----

skipif mysql # not compatible
query I rowsort label-9251
SELECT CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 WHERE col1 BETWEEN 7 AND col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 66 AS col2 FROM tab2 cor0
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9254
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query II rowsort
SELECT DISTINCT - col1 + 62 AS col1, col0 FROM tab1 cor0
----
15
91
48
51
57
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 23 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 54 / col0
----

query I rowsort
SELECT DISTINCT 21 + - 11 AS col0 FROM tab2
----
10

query I rowsort
SELECT ALL + col0 + - - col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT + 20 + + + COUNT( * ) AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT + 20 + + + COUNT ( * ) AS col2 FROM tab0
----
23

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE col2 BETWEEN + ( - + 88 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT - col2 - + CAST( + col0 AS SIGNED ) * + 6 FROM tab1 cor0
----
-402
-569
-614

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - col2 - + CAST ( + col0 AS INTEGER ) * + 6 FROM tab1 cor0
----
-402
-569
-614

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col2 NOT BETWEEN col0 AND + col1
----

query I rowsort
SELECT ALL - + 7 + - - 89 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - + 15 * + + 37 + - 31 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - + 73 FROM tab0 AS cor0
----
-26
-63
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 <> NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT - 4 - - 40 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT COUNT( ALL + ( + - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT COUNT ( ALL + ( + - col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 * + 72 * - col2 - + col1 - + + ( col1 ) * + col2 FROM tab1 AS cor0
----
20940
226869
95410

query I rowsort
SELECT - col1 * + col2 - + - col2 AS col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT - - 55 + - 10 * col1 * + ( + CAST( + col2 AS SIGNED ) ) + col2 FROM tab2 WHERE ( NOT - 77 IS NULL )
----
-11652
-30705
-38747

skipif mysql # not compatible
query I rowsort label-9273
SELECT - - 55 + - 10 * col1 * + ( + CAST ( + col2 AS INTEGER ) ) + col2 FROM tab2 WHERE ( NOT - 77 IS NULL )
----
-11652
-30705
-38747

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + 54 DIV col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 54 / col0 AS col2 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL col0, + ( + col1 ) AS col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT 7, 95 AS col0 FROM tab1
----
7
95
7
95
7
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + COUNT( + 66 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + COUNT ( + 66 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT ALL + 84 AS col1, MAX( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
84
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9280
SELECT ALL + 84 AS col1, MAX ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
84
75

query II rowsort
SELECT DISTINCT 41, col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - 64 * + 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT 5 * col0 + + + CAST( - + col1 AS SIGNED ) + - 25 FROM tab1 AS cor0
----
216
383
395

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT 5 * col0 + + + CAST ( - + col1 AS INTEGER ) + - 25 FROM tab1 AS cor0
----
216
383
395

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE - 14 * 37 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 53 + + 68 IS NOT NULL
----

query I rowsort
SELECT + 94 * - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT col0 + + ( - + ( - + 26 ) ) * + col0 AS col2 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT ALL + col0 * col2 - - col1 + col2 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT + CAST( NULL AS SIGNED ) * - 77 * MAX( ALL - col2 ) * COUNT( DISTINCT - 29 ) + - 14 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + CAST ( NULL AS INTEGER ) * - 77 * MAX ( ALL - col2 ) * COUNT ( DISTINCT - 29 ) + - 14 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 39 * 60 * + - 29 FROM tab1
----
67919
67928
67956

query II rowsort
SELECT DISTINCT + 79 AS col2, + col1 AS col0 FROM tab0
----
79
1
79
21
79
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9293
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT DISTINCT - COUNT( * ) AS col0, + 23 * - + COUNT( col1 ) col1 FROM tab1 WHERE NULL = NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9294
SELECT DISTINCT - COUNT ( * ) AS col0, + 23 * - + COUNT ( col1 ) col1 FROM tab1 WHERE NULL = NULL
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL CAST( NULL AS SIGNED ) + - ( ( + COUNT( * ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL CAST ( NULL AS INTEGER ) + - ( ( + COUNT ( * ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 WHERE NULL IN ( - 14 * + + col0 / + 99 / - col1 + - col0, 98, + col1 / col1 - 20, - 11 * + col2 / - col2, + ( ( + + col0 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IN ( - 14 * + + col0 / + 99 / - col1 + - col0, 98, + col1 / col1 - 20, - 11 * + col2 / - col2, + ( ( + + col0 ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT DISTINCT - col2 * - col0 + + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - col2 * - col0 + + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NULL BETWEEN - col0 AND - + 80 * - col1
----

query I rowsort
SELECT - 63 FROM tab0 WHERE 79 + ( - + col0 ) IS NOT NULL
----
-63
-63
-63

query I rowsort
SELECT col2 + - 33 + - + col0 * - + col2 + - 85 * col0 + - 57 FROM tab1
----
-1569
-2241
567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9301
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) * col1 AS col1, - 29 FROM tab2 WHERE NOT 90 NOT IN ( + - col2, col1, + col2, - ( - col0 ) )
----

skipif mysql # not compatible
query II rowsort label-9301
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) * col1 AS col1, - 29 FROM tab2 WHERE NOT 90 NOT IN ( + - col2, col1, + col2, - ( - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col1 IS NOT NULL ) OR NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + 24 * + + 37 FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE 60 <> col0
----
-59
-68
-96

query I rowsort
SELECT + 54 FROM tab1 cor0 WHERE NULL = col1 + + - col1
----

query II rowsort
SELECT - 23 AS col0, 67 AS col0 FROM tab0 WHERE - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL + ( - - SUM( DISTINCT - 26 ) ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + ( - - SUM ( DISTINCT - 26 ) ) AS col2 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT + 6 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9309
SELECT + 6 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT col0 + - 15 AS col1 FROM tab1 AS cor0
----
36
70
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - - col1 IS NULL OR NULL NOT BETWEEN + ( - + col2 ) + - + 85 AND - 7 + - col2
----

query I rowsort
SELECT + col1 * + 46 + + 22 + - col1 AS col2 FROM tab2 AS cor0
----
2317
3037
3487

query I rowsort
SELECT ALL col0 - - - col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - ( - 8 ) AS col2 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - MAX( 23 ) AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - MAX ( 23 ) AS col2 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT NULL >= 1 * - 13 + + col2 / 70 - 42 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 85 col0 FROM tab0
----
3995
8415
850

query I rowsort
SELECT 93 * - + col2 * + col1 FROM tab0
----
-19530
-354051
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - - COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9319
SELECT - - COUNT ( * ) col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL + COUNT( + + ( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + COUNT ( + + ( col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 4 FROM tab2 AS cor0 WHERE + ( + + col0 ) > - 87
----
4

query I rowsort
SELECT DISTINCT + col2 * - - 92 + col2 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT - 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col0 * + col0 + + - col1 + - ( 24 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT CAST( NULL AS SIGNED ) + + col1 + + - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT CAST ( NULL AS INTEGER ) + + col1 + + - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * - + col1 + - - col2 AS col1 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT ( - 38 ) AS col2 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT COUNT( - 50 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT COUNT ( - 50 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 + + + col1 AS col2 FROM tab1 cor0
----
10
28
94

query II rowsort
SELECT col1, - ( + + col0 ) + - - col0 + - + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT ALL + 74 + - - COUNT( * ) * 38 AS col0, 23 AS col1 FROM tab1
----
188
23

skipif mysql # not compatible
query II rowsort label-9333
SELECT ALL + 74 + - - COUNT ( * ) * 38 AS col0, 23 AS col1 FROM tab1
----
188
23

query III rowsort
SELECT * FROM tab0 WHERE NULL > - - col1
----

query II rowsort
SELECT DISTINCT 95 + - col0 + - col0 AS col1, col2 AS col0 FROM tab2
----
-33
40
-55
58
3
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT DISTINCT + col2 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 70 col1 FROM tab1 WHERE + 42 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9336
SELECT DISTINCT + col2 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 70 col1 FROM tab1 WHERE + 42 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col0 + + + 77 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 23 ) AS col0 FROM tab1 AS cor0
----
23

query I rowsort
SELECT col0 + col1 + + 55 FROM tab2 cor0
----
152
196
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9340
SELECT + CAST( NULL AS DECIMAL ) + + CAST( CAST( 51 AS DECIMAL ) AS SIGNED ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT + CAST ( NULL AS REAL ) + + CAST ( CAST ( 51 AS REAL ) AS INTEGER ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9341
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + COUNT( ALL - + 20 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9342
SELECT + COUNT ( ALL - + 20 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-9343
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 - - 93 * + 32 col0 FROM tab0
----
3075
3186
6783

query I rowsort
SELECT ALL 27 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + 33 ) col2 FROM tab0 cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 / - col0 col2, col1 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - 86 <= NULL
----

query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT MAX( DISTINCT col2 ) * 16 DIV 82 AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9351
SELECT MAX ( DISTINCT col2 ) * 16 / 82 AS col1 FROM tab0 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 93 * + - col2 * + + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - COUNT( * ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9354
SELECT ALL - COUNT ( * ) col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT col0 * - - 18 = + ( + + col2 )
----
59
68
96

query I rowsort
SELECT ALL - 14 * + - col1 AS col1 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT MIN( + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT MIN ( + + col0 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - ( + col0 ) ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT - 0 DIV - + col0 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT - 0 / - + col0 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + COUNT( - col1 ) * - 86 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + COUNT ( - col1 ) * - 86 FROM tab2 AS cor0
----
-258

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL + SUM( - 49 ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + SUM ( - 49 ) FROM tab1
----
-147

query I rowsort
SELECT 0 * + ( - - col1 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT ALL - 63 AS col0, - SUM( DISTINCT + 81 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-63
-81

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL - 63 AS col0, - SUM ( DISTINCT + 81 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-63
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT - + 0 / + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT - + 0 / + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - + 37 AND + - col1
----

query I rowsort
SELECT ALL + ( 23 ) FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + + 54 + - col2 AS col0 FROM tab0 AS cor0
----
-45
44
7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 49 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + + 42 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9371
SELECT + + 42 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 IS NULL OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 + 43 AS col0 FROM tab2 AS cor0
----
-24
-34
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9374
SELECT DISTINCT * FROM tab0 WHERE + CAST( - - 39 AS SIGNED ) + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9374
SELECT DISTINCT * FROM tab0 WHERE + CAST ( - - 39 AS INTEGER ) + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 72 * + col2 + - - 94 AS col1 FROM tab0
----
3478
7222
814

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * + + ( + 61 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - MIN( DISTINCT col1 ) * 2 AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9378
SELECT - MIN ( DISTINCT col1 ) * 2 AS col0 FROM tab1
----
-10

query I rowsort
SELECT - ( + 1 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 NOT BETWEEN NULL AND col2 ) )
----

query I rowsort
SELECT 54 AS col0 FROM tab1 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32, col0 col2 FROM tab2 AS cor0
----
-32
46
-32
64
-32
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col0 col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col0 col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 * + col0 - + - 53 * 0 AS col2 FROM tab0
----
-1067
-165
-957

query I rowsort
SELECT 70 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT COUNT( - 63 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT COUNT ( - 63 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + 50 * - + MIN( DISTINCT + 23 ) AS col1 FROM tab2 AS cor0
----
-1150

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 50 * - + MIN ( DISTINCT + 23 ) AS col1 FROM tab2 AS cor0
----
-1150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 86 AS col0, - col2 FROM tab1
----
86
-59
86
-68
86
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 > col2 * - col2
----

query II rowsort
SELECT DISTINCT 87 AS col1, col0 FROM tab0
----
87
15
87
87
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT - SUM( ALL + 49 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT - SUM ( ALL + 49 ) FROM tab0
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL COUNT( * ) AS col2, MAX( + - col1 ) col1 FROM tab2
----
3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9396
SELECT ALL COUNT ( * ) AS col2, MAX ( + - col1 ) col1 FROM tab2
----
3
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT MAX( ALL + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT MAX ( ALL + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + ( - + MAX( DISTINCT + col0 ) ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9399
SELECT ALL + ( - + MAX ( DISTINCT + col0 ) ) col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9400
SELECT 57, 11 * + COUNT( * ) AS col0 FROM tab0
----
57
33

skipif mysql # not compatible
query II rowsort label-9400
SELECT 57, 11 * + COUNT ( * ) AS col0 FROM tab0
----
57
33

query II rowsort
SELECT ALL + 52 AS col2, ( - col2 ) FROM tab1
----
52
-59
52
-68
52
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col1, col0 + + 34 AS col1 FROM tab2
----
-26
109
-26
80
-26
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT - col1 DIV + 20 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT - col1 / + 20 AS col0 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - col2 * - 31 AS col1 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT - ( + 39 ) + - col1 AS col0 FROM tab0
----
-120
-40
-60

query I rowsort
SELECT 48 AS col2 FROM tab0 WHERE NOT - 47 / - col2 NOT IN ( - ( - col2 ) )
----

query I rowsort
SELECT ALL - 64 + - col0 FROM tab0
----
-151
-161
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( + 89 + 7 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 87 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = 72 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL 67 + + COUNT( * ) AS col1 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL 67 + + COUNT ( * ) AS col1 FROM tab1
----
70

query I rowsort
SELECT DISTINCT + ( 32 ) AS col0 FROM tab1
----
32

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 11 * ( - col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + col2 FROM tab2 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT - 63 - - col0 DIV - 23 AS col1 FROM tab1
----
-65
-66
-66

skipif mysql # not compatible
query I rowsort label-9419
SELECT - 63 - - col0 / - 23 AS col1 FROM tab1
----
-65
-66
-66

query I rowsort
SELECT ( col1 ) - col1 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 53 + col1 = ( - ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT 19 - + CAST( + col1 AS SIGNED ) * col2 FROM tab2
----
-1154
-3061
-3867

skipif mysql # not compatible
query I rowsort label-9422
SELECT 19 - + CAST ( + col1 AS INTEGER ) * col2 FROM tab2
----
-1154
-3061
-3867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 29 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT + MAX( ALL + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + MAX ( ALL + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT - COUNT( + col2 ) * COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - COUNT ( + col2 ) * COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT MAX ( - col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT + 15 * COUNT( DISTINCT + col2 ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + 15 * COUNT ( DISTINCT + col2 ) AS col2 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT + ( + 2 ) DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT + ( + 2 ) / + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT COUNT( DISTINCT + col2 ) * ( 51 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * ( 51 ) FROM tab1
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9430
SELECT - 67 DIV COUNT( DISTINCT col2 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9430
SELECT - 67 / COUNT ( DISTINCT col2 ) FROM tab2
----
-22

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab0 WHERE NOT NULL IN ( 55 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT + col0 DIV + 9 FROM tab0
----
1
10
9

skipif mysql # not compatible
query I rowsort label-9432
SELECT + col0 / + 9 FROM tab0
----
1
10
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL + CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + 63 - - col1 FROM tab2
----
114
130
140

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 61 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN + 56 AND ( - 89 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT ALL - col0 DIV + 88 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9437
SELECT ALL - col0 / + 88 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 35 AS col0 FROM tab0 AS cor0 WHERE col2 IN ( + col0 * + 62 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT + 68 + COUNT( - col0 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9439
SELECT + 68 + COUNT ( - col0 ) FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT 55 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT 55 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ( 46 ) * 14 FROM tab0 AS cor0
----
644
644
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT ( - col1 ) IN ( col1 / - col2 + - CAST( col2 AS SIGNED ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT ( - col1 ) IN ( col1 / - col2 + - CAST ( col2 AS INTEGER ) )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 16 * + col2 ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 18 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9447
SELECT + AVG ( - col1 ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT + AVG ( - col1 ) / - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - COUNT( * ) - + 75 col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( col0 )
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9448
SELECT - COUNT ( * ) - + 75 col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( col0 )
----
-75

query I rowsort
SELECT DISTINCT - 34 * 10 AS col1 FROM tab2 AS cor0
----
-340

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9451
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9451
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND NULL
----

query I rowsort
SELECT ALL + + ( - col0 ) * + 86 FROM tab0 cor0
----
-1290
-7482
-8342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT ALL + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT - 65 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT - 65 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL SUM( ALL + 85 ) + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL SUM ( ALL + 85 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col0 AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9456
SELECT ALL MIN( col2 ) / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL MIN ( col2 ) / - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 NOT BETWEEN NULL AND 99 * + col1
----

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + COUNT( ALL - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9459
SELECT + COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 33 * col2 + col2 FROM tab1 cor0 WHERE NOT 96 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 BETWEEN col2 * - col1 AND + ( col2 )
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( ( 66 ) ) * + ( - 18 ) FROM tab1
----
-1188
-1188
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT MIN( + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT MIN ( + col1 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT 38 AS col1 FROM tab1 WHERE NOT col1 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 > - 86
----

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 85 IN ( ( 9 ) * col0 + - 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab2 WHERE NOT ( NULL ) > ( col2 * 81 )
----

query I rowsort
SELECT col1 + - + col2 * - col0 FROM tab2
----
1109
2637
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col1 FROM tab1 AS cor0 WHERE NOT + 69 = col2 * - ( + col0 )
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT + CAST( + col0 AS SIGNED ) + - 22 * col0 AS col0 FROM tab1 cor0
----
-1071
-1785
-1911

skipif mysql # not compatible
query I rowsort label-9474
SELECT + CAST ( + col0 AS INTEGER ) + - 22 * col0 AS col0 FROM tab1 cor0
----
-1071
-1785
-1911

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT ALL - ( 54 ) DIV + col1 FROM tab0 AS cor0
----
-2
-54
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - ( 54 ) / + col1 FROM tab0 AS cor0
----
-2
-54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + SUM( + + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9476
SELECT + SUM ( + + col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL + 42 + - col1 AS col2 FROM tab0 AS cor0
----
-39
21
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT 17 + - ( + col2 ) + 91 DIV col0 AS col0 FROM tab0 AS cor0
----
-24
-82
8

skipif mysql # not compatible
query I rowsort label-9478
SELECT 17 + - ( + col2 ) + 91 / col0 AS col0 FROM tab0 AS cor0
----
-24
-82
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9479
SELECT ALL + - 90 + ( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + - 90 + ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col1, + 95 FROM tab1 AS cor0
----
14
95
47
95
5
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9481
SELECT DISTINCT - col1 col2, CAST( + + 21 AS SIGNED ) FROM tab0 AS cor0
----
-1
21
-21
21
-81
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9481
SELECT DISTINCT - col1 col2, CAST ( + + 21 AS INTEGER ) FROM tab0 AS cor0
----
-1
21
-21
21
-81
21

query I rowsort
SELECT + 19 + + + col0 FROM tab0 cor0
----
106
116
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + col0 - - 77 FROM tab1 AS cor0
----
221
224
236

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + 76 ) / - 27 BETWEEN + col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 - + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL <> ( + col2 ) * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT ALL col0 + - col2 DIV col2 col2 FROM tab1
----
50
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9489
SELECT ALL col0 + - col2 / col2 col2 FROM tab1
----
50
84
90

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - + col1 > 92 + - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - - col2 AND col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 9 IS NULL
----

query I rowsort
SELECT 16 FROM tab2 WHERE ( - ( + - col0 ) / - col2 ) > - col1 * col0 + col1 * - col2
----
16
16
16

query I rowsort
SELECT ALL - 3 - + 46 + col0 + col2 * + 81 * col2 FROM tab1
----
281997
374586
746498

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT col1 * + - 8 * + 6 + - col1 DIV 10 FROM tab1
----
-2260
-240
-673

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT col1 * + - 8 * + 6 + - col1 / 10 FROM tab1
----
-2260
-240
-673

query I rowsort
SELECT DISTINCT ( + col1 ) - - col2 + - 79 AS col0 FROM tab0
----
-48
21
49

query I rowsort
SELECT ALL 99 - + - ( + 57 ) * 2 AS col1 FROM tab2
----
213
213
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT + MIN( + CAST( + 14 AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab1 WHERE col0 IN ( - + 28 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT + MIN ( + CAST ( + 14 AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab1 WHERE col0 IN ( - + 28 * col0 )
----
NULL

query I rowsort
SELECT DISTINCT + + col2 - 69 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + ( + - COUNT( + 12 ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + ( + - COUNT ( + 12 ) ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL 84 * + 77 FROM tab2
----
6468
6468
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT ( + - COUNT ( * ) ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT DISTINCT + 80 DIV + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT + 80 / + col0 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT col0 DIV + - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT col0 / + - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col1 * - col2 NOT IN ( + 16 + - + col0 + - col1 / col1 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL - SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT DISTINCT + 34 + + col2 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 + + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT + 34 + + col2 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 + + + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT DISTINCT - 97 DIV + + col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT - 97 / + + col1 FROM tab1
----
-19
-2
-6

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 WHERE NOT + col2 / col2 = - col2
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9516
SELECT DISTINCT col0 DIV - col0, + 98 AS col0 FROM tab1
----
-1
98

skipif mysql # not compatible
query II rowsort label-9516
SELECT DISTINCT col0 / - col0, + 98 AS col0 FROM tab1
----
-1
98

query I rowsort
SELECT AVG ( ALL ( - 22 ) ) FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT CAST( - COUNT( DISTINCT + + 58 ) AS SIGNED ) + + ( + 59 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT CAST ( - COUNT ( DISTINCT + + 58 ) AS INTEGER ) + + ( + 59 ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL - - MIN( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - - MIN ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) > col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT - - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT - - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT + - MIN( - - 55 ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + - MIN ( - - 55 ) AS col1 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL + COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL + COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 98 + - col1 FROM tab0
----
17
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + ( - - COUNT( * ) ) * + + 65 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
585

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + ( - - COUNT ( * ) ) * + + 65 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
585

query I rowsort
SELECT - 4 + - col0 - 65 FROM tab2
----
-115
-133
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT + COUNT( DISTINCT + 3 ) - - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + COUNT ( DISTINCT + 3 ) - - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - col0 - - - col1 - + col0 AS col1 FROM tab2 AS cor0
----
-143
-205
-217

query I rowsort
SELECT 46 - + - 24 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT col2 - + ( - 88 ) FROM tab0
----
135
187
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT - 22 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 22 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT + 70 - - 0 + + COUNT( * ) DIV - ( + 92 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 70 - - 0 + + COUNT ( * ) / - ( + 92 ) AS col0 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT - MIN( - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - MIN ( - col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL - 75 + 58 * ( - 55 ) + + 73 AS col0 FROM tab1
----
-3192
-3192
-3192

query I rowsort
SELECT ALL - 70 - col0 FROM tab0
----
-157
-167
-85

query I rowsort
SELECT DISTINCT + - 32 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND 3 - col2
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9541
SELECT 66 + CAST( NULL AS DECIMAL ) - - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT 66 + CAST ( NULL AS REAL ) - - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + 54 + COUNT( * ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 54 + COUNT ( * ) AS col1 FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 - - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 61 ) AS col2 FROM tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col2 FROM tab2
----
24
24
24

query I rowsort
SELECT ALL ( + - col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - - 85 * col1 AS col2 FROM tab2 AS cor0
----
4335
5695
6545

query I rowsort
SELECT ALL + - col2 * - col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + + MAX( ALL col2 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + + MAX ( ALL col2 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT SUM( + - 14 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-126

skipif mysql # not compatible
query I rowsort label-9551
SELECT SUM ( + - 14 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9555
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0
----
3

query I rowsort
SELECT - 52 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT + col1 DIV 42 * - + 25 FROM tab0 AS cor0
----
-25
0
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT + col1 / 42 * - + 25 FROM tab0 AS cor0
----
-25
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT + SUM( + col1 ), + ( + SUM( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
103
103

skipif mysql # not compatible
query II rowsort label-9558
SELECT + SUM ( + col1 ), + ( + SUM ( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9559
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - MIN( ALL col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9560
SELECT - MIN ( ALL col0 ) AS col2 FROM tab2 cor0
----
-46

query II rowsort
SELECT ALL + ( 64 ) AS col0, col2 - - 46 - col1 AS col0 FROM tab0 AS cor0
----
64
12
64
144
64
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT COUNT( * ) * - + ( 52 ) FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT COUNT ( * ) * - + ( 52 ) FROM tab2 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - col2 IN ( - + col1 )
----

query I rowsort
SELECT ALL + col2 + 92 * - 79 FROM tab1 AS cor0
----
-7172
-7200
-7209

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT - + 53 + + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - + 53 + + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT ALL COUNT( * ) * + COUNT( * ) DIV - - COUNT( ALL - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL COUNT ( * ) * + COUNT ( * ) / - - COUNT ( ALL - - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT SUM( ALL + + col2 ) + MIN( + - col0 ) col0 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT SUM ( ALL + + col2 ) + MIN ( + - col0 ) col0 FROM tab1
----
132

query I rowsort
SELECT DISTINCT - col2 + 73 - + col2 * 78 FROM tab1
----
-4588
-5299
-7511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + - col1 col0 FROM tab2
----
-10
0
16

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col2 NOT IN ( + col1, + col1 - 56 ) AND NOT - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 74 + - + col1 AS col2 FROM tab1
----
27
60
69

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT ( 54 ) NOT IN ( - - col0 + - col1 )
----

query I rowsort
SELECT ALL ( - - 52 ) AS col2 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL ( - col0 ) * - col0 * col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL + CAST( 28 AS SIGNED ) + COUNT( * ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + CAST ( 28 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1
----
31

query I rowsort
SELECT DISTINCT - 46 + + col1 AS col0 FROM tab2
----
21
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT COUNT( * ) - - + SUM( - col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-9579
SELECT COUNT ( * ) - - + SUM ( - col0 ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) - COUNT( * ) AS col1 FROM tab2 WHERE ( + - 18 ) IS NOT NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 WHERE ( + - 18 ) IS NOT NULL
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT ALL + 83 - + - 95 DIV - 72 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + 83 - + - 95 / - 72 FROM tab0 AS cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 36 NOT BETWEEN - col0 AND NULL )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9586
SELECT + SUM ( ALL + col0 ) FROM tab2
----
185

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 39 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT MIN( DISTINCT ( col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT MIN ( DISTINCT ( col1 ) ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT + - 43 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9591
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - 43 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT 4 * + col2 DIV col2 DIV - col1 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT 4 * + col2 / col2 / - col1 FROM tab0
----
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT - COUNT( * ) * - 79 * + 98 col0 FROM tab1 AS cor0
----
23226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9594
SELECT DISTINCT - COUNT ( * ) * - 79 * + 98 col0 FROM tab1 AS cor0
----
23226

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = 63
----

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT ALL 28, col2 AS col1 FROM tab1 AS cor0
----
28
59
28
68
28
96

query I rowsort
SELECT ALL col1 + - col1 + - 15 * col0 AS col2 FROM tab0 cor0
----
-1305
-1455
-225

query I rowsort
SELECT DISTINCT + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - - ( - col0 ) ) ) col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT + COUNT( ALL + - 93 ) * - 48 - - 19 AS col1 FROM tab2
----
-125

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + COUNT ( ALL + - 93 ) * - 48 - - 19 AS col1 FROM tab2
----
-125

query I rowsort
SELECT ALL - ( 50 ) FROM tab0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT SUM( - 74 ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9603
SELECT SUM ( - 74 ) FROM tab0
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9604
SELECT + MIN( - col1 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-9604
SELECT + MIN ( - col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-47
NULL

query II rowsort
SELECT ALL col1 * - + 71 + + 9 AS col0, - col2 FROM tab1 WHERE NULL >= col2 OR NOT NULL BETWEEN col2 * 40 AND - 12
----

query I rowsort
SELECT DISTINCT - 25 * + col2 AS col2 FROM tab1
----
-1475
-1700
-2400

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 59 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT COUNT( * ) * + - 49 + - + MIN( ALL + col1 ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-9608
SELECT COUNT ( * ) * + - 49 + - + MIN ( ALL + col1 ) FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9609
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 47 <= + 14 - - col0 * col1 / 46
----

query I rowsort
SELECT ALL 48 + + - col2 FROM tab2 cor0
----
-10
25
8

query I rowsort
SELECT DISTINCT - + 19 * - - 3 AS col1 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 AS col0 FROM tab0 cor0 WHERE col0 NOT BETWEEN - col2 AND - 79
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT ALL - 75 DIV + 95 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL - 75 / + 95 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 26 * - col0 * - 25 FROM tab1 AS cor0
----
33150
55250
59150

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + SUM( + col1 ) * - - ( 54 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
31590

skipif mysql # not compatible
query I rowsort label-9617
SELECT + SUM ( + col1 ) * - - ( 54 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
31590

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab2 AS cor0
----
-4

query II rowsort
SELECT - col2 AS col1, - 59 FROM tab1 AS cor0
----
-59
-59
-68
-59
-96
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9620
SELECT + COUNT ( col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT + 77, COUNT( DISTINCT 58 ) AS col2 FROM tab2
----
77
1

skipif mysql # not compatible
query II rowsort label-9621
SELECT + 77, COUNT ( DISTINCT 58 ) AS col2 FROM tab2
----
77
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * - - col1 col1 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT col2 * - 7 * + + col1 AS col2 FROM tab1
----
-2065
-22372
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT - 14 DIV + 77 * - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 14 / + 77 * - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 63 * - ( - col0 ) AS col0 FROM tab1
----
3213
5355
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col0 FROM tab0
----
-48

query I rowsort
SELECT DISTINCT 29 * - 46 FROM tab2
----
-1334

query II rowsort
SELECT col1 AS col1, + col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9629
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 / - ( + - CAST( NULL AS SIGNED ) ) + col2 / - col1 NOT IN ( + col2, - 39, col1, + + 12 )
----

skipif mysql # not compatible
query III rowsort label-9629
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 / - ( + - CAST ( NULL AS INTEGER ) ) + col2 / - col1 NOT IN ( + col2, - 39, col1, + + 12 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT - MAX( ALL + col1 ), 17 col0 FROM tab0
----
-81
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9630
SELECT - MAX ( ALL + col1 ), 17 col0 FROM tab0
----
-81
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - - COUNT( * ) * 70 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9631
SELECT - - COUNT ( * ) * 70 FROM tab1 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT + 45 DIV - col0 AS col2 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT + 45 / - col0 AS col2 FROM tab0 cor0
----
-3
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * ( - - col2 ) + - - col0 + + 79 * + col1 FROM tab0 AS cor0
----
-9625
1646
4205

query I rowsort
SELECT DISTINCT - 12 * + 10 + + col0 - - ( - col1 ) FROM tab2 AS cor0
----
-112
-125
-133

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col1 + - col0 + + + col2 + col2 * + ( - + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT ALL CAST( NULL AS SIGNED ) / - 33 + - + 65 + - col0 * 31 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL CAST ( NULL AS INTEGER ) / - 33 + - + 65 + - col0 * 31 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 + + ( col1 ) AS col1, - 68 + - col0 FROM tab0
----
100
-165
128
-83
31
-155

query I rowsort
SELECT DISTINCT - 47 + - - col2 FROM tab2
----
-24
-7
11

query I rowsort
SELECT + col0 * - 51 * col2 * + col0 * + 14 AS col0 FROM tab0
----
-54042660
-665084574
-7550550

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT COUNT( * ) * + 56 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT COUNT ( * ) * + 56 FROM tab0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9643
SELECT col0, + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT DISTINCT + - col2 - - 8 + ( + CAST( NULL AS SIGNED ) ) * + ( + col1 ) * + - col2 + + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + - col2 - - 8 + ( + CAST ( NULL AS INTEGER ) ) * + ( + col1 ) * + - col2 + + + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT SUM( - 91 ) AS col2 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9645
SELECT SUM ( - 91 ) AS col2 FROM tab0 AS cor0
----
-273

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9647
SELECT CAST( + 4 AS SIGNED ) AS col1, - col0 FROM tab2
----
4
-46
4
-64
4
-75

skipif mysql # not compatible
query II rowsort label-9647
SELECT CAST ( + 4 AS INTEGER ) AS col1, - col0 FROM tab2
----
4
-46
4
-64
4
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col2
----

query I rowsort
SELECT + ( - 55 ) FROM tab1 AS cor0 WHERE NOT col0 * col2 <> + col1
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT ( col0 IS NOT NULL ) )
----

query II rowsort
SELECT - 12 * - 96, 33 AS col0 FROM tab1 AS cor0
----
1152
33
1152
33
1152
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT ALL col2 DIV - col0 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL col2 / - col0 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9653
SELECT COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT ALL - - 48 DIV + COUNT( * ) FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - - 48 / + COUNT ( * ) FROM tab2 cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - 65 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-195

skipif mysql # not compatible
query I rowsort label-9657
SELECT - 65 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-195

query II rowsort
SELECT ( - col1 ) AS col1, col2 * - col2 AS col1 FROM tab1 AS cor0
----
-14
-9216
-47
-4624
-5
-3481

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 53 col0, + 72 FROM tab0
----
-53
72
-53
72
-53
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT col0 DIV - - col1 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9661
SELECT col0 / - - col1 AS col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( * ) * - 2 AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( * ) * - 2 AS col1 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( + - 14 AS SIGNED ) * col0 AS col2 FROM tab0
----
-1218
-1358
-210

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( + - 14 AS INTEGER ) * col0 AS col2 FROM tab0
----
-1218
-1358
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IN ( + ( - col0 ), - col0 * col0, + col1, + - 81, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT MAX( - 21 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT MAX ( - 21 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT + + col0 DIV + col2 + - 91 + - + 93 * + 69 AS col2 FROM tab0 AS cor0
----
-6500
-6508

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + + col0 / + col2 + - 91 + - + 93 * + 69 AS col2 FROM tab0 AS cor0
----
-6500
-6508

query I rowsort
SELECT DISTINCT - - col2 / col0 AS col1 FROM tab1 AS cor0 WHERE - col0 * 30 IS NULL
----

query I rowsort
SELECT + - 20 FROM tab2 WHERE NOT - col0 = 68
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT + 35 * COUNT( * ) * - 24 AS col1 FROM tab2
----
-2520

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT + 35 * COUNT ( * ) * - 24 AS col1 FROM tab2
----
-2520

onlyif mysql # DIV for integer division: 
query III rowsort label-9672
SELECT DISTINCT col1, col1 DIV - col2 + + 58 AS col0, + - col0 FROM tab0
----
9 values hashing to 7d5feb19484a3fe28884de6763fdd9d7

skipif mysql # not compatible
query III rowsort label-9672
SELECT DISTINCT col1, col1 / - col2 + + 58 AS col0, + - col0 FROM tab0
----
9 values hashing to 7d5feb19484a3fe28884de6763fdd9d7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9673
SELECT ALL - CAST( 34 AS SIGNED ) AS col1, + col0 + + - 25 FROM tab1
----
-34
26
-34
60
-34
66

skipif mysql # not compatible
query II rowsort label-9673
SELECT ALL - CAST ( 34 AS INTEGER ) AS col1, + col0 + + - 25 FROM tab1
----
-34
26
-34
60
-34
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT - 30 + col1 - 45 * col1 DIV 94 AS col1 FROM tab2
----
-3
11
5

skipif mysql # not compatible
query I rowsort label-9674
SELECT - 30 + col1 - 45 * col1 / 94 AS col1 FROM tab2
----
-3
11
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE col1 - col1 * - 62 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 - col1 * - 62 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 45 IS NULL
----

query I rowsort
SELECT ALL + col1 + - - col2 AS col2 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT + col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT CAST( 32 AS SIGNED ) AS col1 FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-9682
SELECT CAST ( 32 AS INTEGER ) AS col1 FROM tab0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL + COUNT( * ) - + 52 col0 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9684
SELECT ALL + COUNT ( * ) - + 52 col0 FROM tab1
----
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / 76 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 94 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - - 62 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9687
SELECT - - 62 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-186

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( col0 IS NOT NULL )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 >= + + col2 * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - col0 + - - col0 + + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL >= 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9692
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT - + COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9693
SELECT - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT - + SUM( ALL + 88 ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - + SUM ( ALL + 88 ) FROM tab0 AS cor0
----
-264

query I rowsort
SELECT - col2 - 67 AS col2 FROM tab0 AS cor0 WHERE NOT - 47 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
96

query II rowsort
SELECT col2, + 72 FROM tab2 AS cor0
----
23
72
40
72
58
72

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 45 col1, + 39 + + ( + col0 ) + - col0 * 58 * + col2 AS col0 FROM tab0 AS cor0
----
-45
-40836
-45
-50334
-45
-556838

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9702
SELECT ALL ( CAST( NULL AS DECIMAL ) ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL ( CAST ( NULL AS REAL ) ) * - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT 24 * col0, col0 AS col1 FROM tab2
----
1104
46
1536
64
1800
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * - ( ( - col2 ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT 71 DIV - 72 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT 71 / - 72 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + + 91 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT ALL - col0 * + 65 FROM tab0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - + ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NULL <= + + col0 * + col1 * 98
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NULL <= + + col0 * + col1 * 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT MIN( ALL + + ( + 41 ) ) AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9710
SELECT MIN ( ALL + + ( + 41 ) ) AS col2 FROM tab2 AS cor0
----
41

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 30 IS NULL
----

query I rowsort
SELECT ALL + col0 * + + ( - col2 ) + - - col0 FROM tab2
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9714
SELECT + + 29 * + - col2 + + - CAST( - 63 AS SIGNED ) * - - col2 AS col0, col2 FROM tab2 cor0
----
1360
40
1972
58
782
23

skipif mysql # not compatible
query II rowsort label-9714
SELECT + + 29 * + - col2 + + - CAST ( - 63 AS INTEGER ) * - - col2 AS col0, col2 FROM tab2 cor0
----
1360
40
1972
58
782
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 9 ) IS NULL
----

query I rowsort
SELECT + col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT + + 78 * col0 DIV + 49 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
312
348
53

skipif mysql # not compatible
query I rowsort label-9717
SELECT + + 78 * col0 / + 49 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
312
348
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9720
SELECT COUNT( * ) + + CAST( + ( + MIN( col0 ) ) AS SIGNED ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9720
SELECT COUNT ( * ) + + CAST ( + ( + MIN ( col0 ) ) AS INTEGER ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL - COUNT( * ) + 14 col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9721
SELECT ALL - COUNT ( * ) + 14 col1 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL - col0 + - 50 * col2 AS col0 FROM tab2
----
-1196
-2064
-2975

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 82 + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + 33 AS col0 FROM tab2
----
108
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT + 10 + - ( 94 ) * SUM( + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT + 10 + - ( 94 ) * SUM ( + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT 99 + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT 99 + COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT ALL + col0 * - 52 + - col2 FROM tab0
----
-4534
-5143
-827

query I rowsort
SELECT col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9730
SELECT SUM ( - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 col2 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL - - MAX( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - - MAX ( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 94 * col2 AS col0 FROM tab1 AS cor0
----
5546
6392
9024

query I rowsort
SELECT - col2 * - 73 FROM tab1
----
4307
4964
7008

query II rowsort
SELECT + col1 * - col2 AS col0, col1 FROM tab1
----
-1344
14
-295
5
-3196
47

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL >= ( - 91 ) )
----

query I rowsort
SELECT - - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + 76 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 76 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT - SUM( ALL 7 ) AS col2 FROM tab1, tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - SUM ( ALL 7 ) AS col2 FROM tab1, tab0 AS cor0
----
-63

query II rowsort
SELECT - ( - 54 ) AS col0, col1 AS col0 FROM tab0
----
54
1
54
21
54
81

query I rowsort
SELECT DISTINCT 52 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
52

query I rowsort
SELECT DISTINCT - - col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 <= - col0 * col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT + SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col1 OR + 97 + - ( 13 ) + 92 BETWEEN 32 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT ALL - col2 * col0 DIV - col1 AS col1 FROM tab1
----
1003
131
349

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - col2 * col0 / - col1 AS col1 FROM tab1
----
1003
131
349

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1, 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL + 84 FROM tab1 WHERE NOT col2 * 70 + 55 - + CAST( NULL AS SIGNED ) BETWEEN - col1 * col2 / 20 AND 78
----

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 84 FROM tab1 WHERE NOT col2 * 70 + 55 - + CAST ( NULL AS INTEGER ) BETWEEN - col1 * col2 / 20 AND 78
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + - 54 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + - 54 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT - 19 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT - 19 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * + + 35 AS col0 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT + 84 + - + CAST( - 80 AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab1 cor0
----
324

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 84 + - + CAST ( - 80 AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab1 cor0
----
324

query I rowsort
SELECT ALL - col2 * - 39 AS col1 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT + 47 DIV 99 + + 37 * col0 AS col1 FROM tab0
----
3219
3589
555

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + 47 / 99 + + 37 * col0 AS col1 FROM tab0
----
3219
3589
555

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT ALL 94 * - 28 * - CAST( NULL AS SIGNED ) + - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL 94 * - 28 * - CAST ( NULL AS INTEGER ) + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL CAST( - 94 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-4418
-9306
-940

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL CAST ( - 94 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT ALL + + col0 * + - 38 + - 58 AS col2 FROM tab0 AS cor0
----
-3364
-3744
-628

query I rowsort
SELECT DISTINCT - col0 * - 18 * - col1 AS col0 FROM tab0 AS cor0
----
-1746
-21870
-32886

query I rowsort
SELECT ALL 34 * - 48 + + col2 AS col2 FROM tab2 AS cor0
----
-1574
-1592
-1609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT col0 - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT col0 - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 25 + + col1 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT - SUM( col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - SUM ( col1 ) FROM tab1
----
-66

query I rowsort
SELECT 82 * 87 - - + col2 * + 81 FROM tab1
----
11913
12642
14910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9774
SELECT DISTINCT - col0 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT + ( - + col1 ) + - - col0 + col1 AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT CAST( NULL AS SIGNED ) - + col1 * + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT CAST ( NULL AS INTEGER ) - + col1 * + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - + col0 * + col2 FROM tab2
----
-1012
-2496
-4275

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT - COUNT( * ) + - 44 AS col1 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - COUNT ( * ) + - 44 AS col1 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - COUNT( ALL 36 ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9780
SELECT - COUNT ( ALL 36 ) FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 * col1 * + - col0 - + col0 + col1 * + + col2 - + + col0 * - - col0 * + col2 FROM tab0 AS cor0
----
-63888
-93837
-941092

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9783
SELECT ALL + col2, + 36 DIV col0 AS col1 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL + col2, + 36 / col0 AS col1 FROM tab1
----
59
0
68
0
96
0

query I rowsort
SELECT ALL - col1 * + col1 + - - col1 AS col0 FROM tab0 AS cor0 WHERE col0 BETWEEN - col1 AND + + 94
----
-420
-6480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9785
SELECT CAST( NULL AS SIGNED ) AS col0, + 53 FROM tab0 AS cor0
----
NULL
53
NULL
53
NULL
53

skipif mysql # not compatible
query II rowsort label-9785
SELECT CAST ( NULL AS INTEGER ) AS col0, + 53 FROM tab0 AS cor0
----
NULL
53
NULL
53
NULL
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col1 FROM tab2 AS cor0
----
-86

query II rowsort
SELECT DISTINCT - col2 AS col0, 47 + ( + col2 ) + 56 FROM tab1 AS cor0
----
-59
162
-68
171
-96
199

query II rowsort
SELECT col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT ALL - 21 AS col0, - col2 FROM tab2 AS cor0
----
-21
-23
-21
-40
-21
-58

query II rowsort
SELECT - 57, col2 FROM tab0 AS cor0
----
-57
10
-57
47
-57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - 33 * - 49 + + COUNT( * ) FROM tab0 cor0
----
1620

skipif mysql # not compatible
query I rowsort label-9791
SELECT - 33 * - 49 + + COUNT ( * ) FROM tab0 cor0
----
1620

query I rowsort
SELECT ( + 60 ) FROM tab2 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab2 WHERE NOT col1 <= col0
----
-46
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9794
SELECT AVG ( - CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9794
SELECT AVG ( - CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT DISTINCT - COUNT( * ) + + + 33 col1, + COUNT( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9795
SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - col2 + + + col1 AS col1 FROM tab2 WHERE NOT + 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL COUNT( * ) * + MAX( col1 ) * + ( + + 6 ) + SUM( - - col0 ) AS col1 FROM tab0
----
1657

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL COUNT ( * ) * + MAX ( col1 ) * + ( + + 6 ) + SUM ( - - col0 ) AS col1 FROM tab0
----
1657

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT + col1 * + 58 FROM tab0 AS cor0
----
1218
4698
58

query I rowsort
SELECT - 46 FROM tab2 AS cor0 WHERE col2 NOT IN ( + col2 * - + col0 )
----
-46
-46
-46

query I rowsort
SELECT ALL + 29 + 43 FROM tab1 AS cor0
----
72
72
72

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9804
SELECT ALL CAST( + col2 AS SIGNED ) AS col2, col0 * + - col0 FROM tab2 WHERE + col0 / - + 21 + + col2 + + col0 <> + col1
----
23
-2116
40
-4096
58
-5625

skipif mysql # not compatible
query II rowsort label-9804
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2, col0 * + - col0 FROM tab2 WHERE + col0 / - + 21 + + col2 + + col0 <> + col1
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9805
SELECT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT 41 - + COUNT( - + col1 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT 41 - + COUNT ( - + col1 ) FROM tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + col2 col1 FROM tab2 AS cor0
----
38
55
73

query I rowsort
SELECT col0 + 99 AS col1 FROM tab1 AS cor0
----
150
184
190

query I rowsort
SELECT DISTINCT - - 31 * - 94 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-2919
-2928
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + COUNT( + 40 ) + + 68 AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9810
SELECT + COUNT ( + 40 ) + + 68 AS col0 FROM tab0 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT ALL - 49 DIV + 9 + - col2 FROM tab1 AS cor0
----
-101
-64
-73

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL - 49 / + 9 + - col2 FROM tab1 AS cor0
----
-101
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + 34 + - - COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9812
SELECT + 34 + - - COUNT ( * ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT - col2 * col0 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-18249
-57024
-9602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT + COUNT( - 16 ) DIV + + 73 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT + COUNT ( - 16 ) / + + 73 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT 26 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT 26 ) FROM tab2
----
78

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = ( + ( - 81 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9818
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> 69 + col2
----

skipif mysql # not compatible
query III rowsort label-9818
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> 69 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + - MAX( - 64 ) * - 80 FROM tab2 AS cor0
----
-5120

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + - MAX ( - 64 ) * - 80 FROM tab2 AS cor0
----
-5120

query I rowsort
SELECT 11 + ( - col2 ) * - col1 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 78 * + col2 BETWEEN NULL AND - - col0
----
111
242
3899

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 81, 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT COUNT( * ) * + + 38 AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-9823
SELECT COUNT ( * ) * + + 38 AS col0 FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + - 64 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col0 FROM tab0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 16 col2 FROM tab0 AS cor0
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + - col1 - + + 38 FROM tab2 AS cor0 WHERE - col1 * - col0 - 77 + - col1 IS NOT NULL
----
-105
-115
-89

query II rowsort
SELECT + col1 AS col0, - col1 FROM tab2 cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - MAX( ALL - + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9832
SELECT - MAX ( ALL - + col0 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT MAX( ALL + 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9834
SELECT MAX ( ALL + 5 ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT 40 + - col0 - + 34 FROM tab2
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT - 93 * + COUNT( ALL col2 ) * - - ( - MIN( + 30 ) ) FROM tab0
----
8370

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - 93 * + COUNT ( ALL col2 ) * - - ( - MIN ( + 30 ) ) FROM tab0
----
8370

query I rowsort
SELECT DISTINCT 76 * + - col0 + + 47 AS col1 FROM tab1
----
-3829
-6413
-6869

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 43 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT + col0 * - col2 * + col1 - - col0 - + col1 * + 11 AS col2 FROM tab0 cor0
----
-18414
-57981
-9517

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - + COUNT( * ) + 37 AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - + COUNT ( * ) + 37 AS col2 FROM tab0 AS cor0
----
34

query II rowsort
SELECT + col0 AS col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ( - + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9846
SELECT ( - + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - ( - + col2 ) * col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT + 66 * + + COUNT( * ) AS col2 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + 66 * + + COUNT ( * ) AS col2 FROM tab0
----
198

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9849
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) / 84 + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + ( - CAST ( NULL AS REAL ) ) / 84 + - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 65 = + ( + col1 ) / - col2 * - - col2
----

query II rowsort
SELECT + col1, col2 * + + col0 + 37 FROM tab0 cor0
----
1
9640
21
907
81
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 * col1 col0 FROM tab1 AS cor0
----
-1081
-115
-322

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 15 + + 16 IS NOT NULL
----

query I rowsort
SELECT - + 33 AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9855
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9856
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + ( + 73 ) * + MAX( DISTINCT - 19 ) * + COUNT( * ) + + - 17 FROM tab0
----
-4178

skipif mysql # not compatible
query I rowsort label-9858
SELECT + ( + 73 ) * + MAX ( DISTINCT - 19 ) * + COUNT ( * ) + + - 17 FROM tab0
----
-4178

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT + MIN( DISTINCT col2 ) DIV + - 97 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT + MIN ( DISTINCT col2 ) / + - 97 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL + 93 + COUNT( * ) * - 53 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL + 93 + COUNT ( * ) * - 53 AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT - col2 DIV + 79 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT - col2 / + 79 AS col1 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + MIN( ALL col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9865
SELECT + MIN ( ALL col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + col2 + + 95 AS col0 FROM tab1 AS cor0
----
154
163
191

query I rowsort
SELECT + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND - col1 * col2 - + + 99
----

query I rowsort
SELECT ALL 22 + + 18 AS col2 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL - ( - - 5 ) FROM tab2
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col1 ) * + - col2 + + ( 63 ) < ( 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + + col0 - + col2 BETWEEN + col0 + + 54 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 / + col2 + col1 IS NULL
----

query II rowsort
SELECT DISTINCT - - col1, ( + col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT DISTINCT + col1, col2 + - - col1 * + - 72 FROM tab1 AS cor0
----
14
-912
47
-3316
5
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + SUM ( + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT + 28 - - col0 AS col0 FROM tab0
----
115
125
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + 74 + - 17 + COUNT( * ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 74 + - 17 + COUNT ( * ) AS col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + 40 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 40 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * + col1 + - col2 - - col0 col1 FROM tab2 AS cor0
----
-4363
-5745
-6598

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT DISTINCT - col1 DIV - - col0 * + + col0 - + 24 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT - col1 / - - col0 * + + col0 - + 24 FROM tab1 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col1 col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + ( - col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL + + CAST( 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + + CAST ( 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - - COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9887
SELECT - - COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 32 * - 20 + - - col1 - - 61 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT ALL 96 * + + COUNT( * ), - 71 AS col1 FROM tab0
----
288
-71

skipif mysql # not compatible
query II rowsort label-9889
SELECT ALL 96 * + + COUNT ( * ), - 71 AS col1 FROM tab0
----
288
-71

query I rowsort
SELECT DISTINCT - 38 * - col1 FROM tab0
----
3078
38
798

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT col0 DIV 74 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9891
SELECT col0 / 74 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT 80 * - - COUNT( * ) AS col2 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT 80 * - - COUNT ( * ) AS col2 FROM tab2
----
240

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT COUNT( * ) DIV - + 35 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT COUNT ( * ) / - + 35 FROM tab1
----
0

query I rowsort
SELECT - col0 * - 4 * - 46 AS col1 FROM tab0
----
-16008
-17848
-2760

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE 5 * col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 44 * + 88 + - ( - col2 ) FROM tab2
----
3895
3912
3930

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT + 66 + - + COUNT( * ) * + ( + 54 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 66 + - + COUNT ( * ) * + ( + 54 ) FROM tab1
----
-96

query I rowsort
SELECT - col1 * col1 + col1 + - 20 + - col0 FROM tab2 AS cor0
----
-2616
-4517
-5936

query I rowsort
SELECT ALL - - col0 + col0 AS col0 FROM tab0 AS cor0 WHERE 59 + + col2 * - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - MIN( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9901
SELECT - MIN ( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + + 48 AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9903
SELECT - + CAST( NULL AS DECIMAL ) - + 30 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9903
SELECT - + CAST ( NULL AS REAL ) - + 30 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL 89 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - col0 * + col1, col1 * 73, - col1 * + - col1, ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 10 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL - - col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - - col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - col1 * - col0 FROM tab0 AS cor0 WHERE - col0 * col0 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT COUNT( - + 95 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9909
SELECT COUNT ( - + 95 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 5 + + col2 AS col0 FROM tab2
----
28
45
63

query I rowsort
SELECT ALL + 72 + + col1 * - - col2 FROM tab2
----
1245
3152
3958

query I rowsort
SELECT 91 - + col0 AS col1 FROM tab2
----
16
27
45

query I rowsort
SELECT 37 * + col2 - - + col1 * + 62 * + - 25 FROM tab1
----
-18148
-5567
-70334

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT ( SUM( DISTINCT - - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT ( SUM ( DISTINCT - - col0 ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9917
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT - - col0 * - + 85 * + CAST( - 9 AS SIGNED ) + + 86 * + - 5 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9919
SELECT - - col0 * - + 85 * + CAST ( - 9 AS INTEGER ) + + 86 * + - 5 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9920
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9920
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT COUNT( ALL + ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT COUNT ( ALL + ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 83 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + 13 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL OR NOT ( - col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT - COUNT( * ) * - - 97 AS col1 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT - COUNT ( * ) * - - 97 AS col1 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT ALL ( - 76 ) * + + 71 FROM tab2 AS cor0
----
-5396
-5396
-5396

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL - 16 * 77 * + COUNT( * ) col1 FROM tab1
----
-3696

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT ALL - 16 * 77 * + COUNT ( * ) col1 FROM tab1
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT SUM( DISTINCT + - col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9927
SELECT SUM ( DISTINCT + - col1 ) col1 FROM tab1
----
-66

query I rowsort
SELECT ALL + 72 * + col1 AS col2 FROM tab1
----
1008
3384
360

query II rowsort
SELECT col1 * - col2, col1 AS col1 FROM tab1
----
-1344
14
-295
5
-3196
47

query II rowsort
SELECT + col0, + col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT col0 AS col1, - col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - 48 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT DISTINCT 68 AS col0, - ( + - COUNT( * ) ) AS col1 FROM tab2
----
68
3

skipif mysql # not compatible
query II rowsort label-9934
SELECT DISTINCT 68 AS col0, - ( + - COUNT ( * ) ) AS col1 FROM tab2
----
68
3

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab0 AS cor0 WHERE - 61 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9937
SELECT - - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

query II rowsort
SELECT col0, - col2 + ( + col2 ) * col1 + + 89 * - col0 FROM tab0 AS cor0
----
15
2425
87
-7543
97
-8633

query I rowsort
SELECT ALL - ( + 7 ) AS col1 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col0 + - + col1 * col0 AS col1 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL + - 43 + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab1bc5e2f6f0be65bdb55f5590ed33f3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT - col1 * col2 * - col2 + + + col0 + - 95 + + col0 FROM tab2 AS cor0
----
123233
225443
26976

query II rowsort
SELECT col2 + + 12 * - col2 AS col1, + col0 FROM tab0 cor0
----
-1089
97
-110
87
-517
15

query I rowsort
SELECT + col2 + + + 52 FROM tab1 AS cor0
----
111
120
148

query I rowsort
SELECT DISTINCT - col2 * - col0 + - 92 FROM tab0 AS cor0
----
613
778
9511

query I rowsort
SELECT DISTINCT + + 30 * - col0 - 95 FROM tab0 AS cor0
----
-2705
-3005
-545

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL - 50 + - COUNT( * ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - 50 + - COUNT ( * ) FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-9949
SELECT ALL - 10 DIV col0 AS col1, - col1 * - 1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-9949
SELECT ALL - 10 / col0 AS col1, - col1 * - 1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 = ( NULL )
----

query I rowsort
SELECT - col2 + col0 FROM tab1 WHERE + + ( + col1 ) * - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 64 * 93 + 39 AS col2, 72 + col0 FROM tab2
----
-5913
118
-5913
136
-5913
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col2 col2 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab0 WHERE - + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 88 - + 13 AS col2 FROM tab1
----
75
75
75

query I rowsort
SELECT ALL col0 + + - 99 * 86 + - col1 * col0 FROM tab1
----
-12700
-8854
-9177

query II rowsort
SELECT + col0, - col0 * + col0 AS col1 FROM tab2 AS cor0
----
46
-2116
64
-4096
75
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) NOT BETWEEN - + 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + 72 - - MAX( ALL + col2 ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 72 - - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9960
SELECT DISTINCT + col0 * + + CAST( col1 AS SIGNED ) * + - CAST( NULL AS DECIMAL ) * + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + col0 * + + CAST ( col1 AS INTEGER ) * + - CAST ( NULL AS REAL ) * + + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 FROM tab2 cor0 WHERE col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT ( col0 ) DIV - 78 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT ( col0 ) / - 78 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT CAST( + 97 AS SIGNED ) * col1 AS col0 FROM tab1
----
1358
4559
485

skipif mysql # not compatible
query I rowsort label-9963
SELECT CAST ( + 97 AS INTEGER ) * col1 AS col0 FROM tab1
----
1358
4559
485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT ( - 14 ) * CAST( NULL AS SIGNED ) + 18 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT ( - 14 ) * CAST ( NULL AS INTEGER ) + 18 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 70 AS col2 FROM tab1 WHERE NOT ( 50 ) = col2
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + CAST( NULL AS SIGNED ) + 7 FROM tab2 WHERE NOT NULL NOT IN ( col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + CAST ( NULL AS INTEGER ) + 7 FROM tab2 WHERE NOT NULL NOT IN ( col0 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT col2 + - col2 DIV 67 AS col2 FROM tab1
----
59
67
95

skipif mysql # not compatible
query I rowsort label-9967
SELECT col2 + - col2 / 67 AS col2 FROM tab1
----
59
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT COUNT( * ) + - 49 * + 46 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( 62 * + 43 )
----
-2254

skipif mysql # not compatible
query I rowsort label-9968
SELECT COUNT ( * ) + - 49 * + 46 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( 62 * + 43 )
----
-2254

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9969
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-9969
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT MIN( DISTINCT 12 ) / - 27 FROM tab2 WHERE NOT - 25 <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT MIN ( DISTINCT 12 ) / - 27 FROM tab2 WHERE NOT - 25 <= + col2
----
NULL

query I rowsort
SELECT + 15 FROM tab1 WHERE + col1 NOT IN ( col2 )
----
15
15
15

query III rowsort
SELECT * FROM tab1 WHERE NOT 51 BETWEEN NULL AND ( col1 + + 52 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab2
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 NOT BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 - - ( - col2 ) * - col0 col1 FROM tab1
----
4842
4961
6134

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL + SUM( 2 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + SUM ( 2 ) AS col2 FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 / - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE + ( - col1 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT ALL * FROM tab0 WHERE + col2 + col0 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9980
SELECT ALL * FROM tab0 WHERE + col2 + col0 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - 24 ) FROM tab1
----
24
24
24

query III rowsort
SELECT ALL * FROM tab1 WHERE - 62 NOT BETWEEN col2 + - 5 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + col1 * - col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT MAX( - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9985
SELECT MAX ( - col2 ) FROM tab1 cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * col1 col0 FROM tab1 cor0
----
1316
140
392

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT SUM( 32 ) + 63 * - ( 38 ) FROM tab1 AS cor0
----
-2298

skipif mysql # not compatible
query I rowsort label-9987
SELECT SUM ( 32 ) + 63 * - ( 38 ) FROM tab1 AS cor0
----
-2298

query I rowsort
SELECT DISTINCT - col0 + 61 AS col1 FROM tab0
----
-26
-36
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT - 74 + col1 DIV 4 FROM tab0
----
-54
-69
-74

skipif mysql # not compatible
query I rowsort label-9989
SELECT - 74 + col1 / 4 FROM tab0
----
-54
-69
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9990
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / - 15 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9990
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / - 15 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> 82 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 33 ) col1 FROM tab0
----
-33

query I rowsort
SELECT ALL - + 36 + + col2 AS col0 FROM tab1 AS cor0
----
23
32
60

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + col1
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT MAX( DISTINCT col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT MAX ( DISTINCT col2 ) FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) NOT IN ( col2, col2 + + col0 * col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9998
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) NOT IN ( col2, col2 + + col0 * col1 )
----

query II rowsort
SELECT 52 * col1, - col2 AS col2 FROM tab2 AS cor0
----
2652
-23
3484
-58
4004
-40

