sqllogictest
Artifact Content
Not logged in

Artifact cab6155ef1adba8151dcc73492411bb72e505ea3:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-0
SELECT ALL 77 * - + 18 * + COUNT( * ) - + COUNT( * ) * - 9 AS col0, COUNT( * ) * 67 - 21 DIV - MAX( - 35 ) col1 FROM tab1
----
-4131
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-0
SELECT ALL 77 * - + 18 * + COUNT ( * ) - + COUNT ( * ) * - 9 AS col0, COUNT ( * ) * 67 - 21 / - MAX ( - 35 ) col1 FROM tab1
----
-4131
201

query I rowsort
SELECT 40 FROM tab0 WHERE + col0 + 37 * - col2 - + 38 NOT IN ( 20, + col1 )
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT + col2 + - CAST( - 12 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
111
22
59

skipif mysql # not compatible
query I rowsort label-2
SELECT + col2 + - CAST ( - 12 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
111
22
59

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

skipif mysql # not compatible
query III rowsort label-3
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT + col1 + - 13, col0 FROM tab0 AS cor0
----
-12
97
68
15
8
87

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 80 col1 FROM tab1
----
4720
5440
7680

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT - SUM( + CAST( + 88 AS SIGNED ) ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9
SELECT - SUM ( + CAST ( + 88 AS INTEGER ) ) FROM tab2 AS cor0
----
-264

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

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

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

query I rowsort
SELECT + col0 * - + col2 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - 71 + col1 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN - - 6 AND NULL
----
-50
-70
10

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT col2 DIV ( - ( ( - col0 ) ) ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-14
SELECT col2 / ( - ( ( - col0 ) ) ) FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - MAX( - + 31 ) FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-17
SELECT - MAX ( - + 31 ) FROM tab1 cor0
----
31

query I rowsort
SELECT + 20 * 15 * - col1 - 4 FROM tab1 WHERE NULL > NULL
----

query II rowsort
SELECT 82, + 37 * + 8 AS col0 FROM tab1 AS cor0
----
82
296
82
296
82
296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT - col0 DIV col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-21
SELECT - col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * + col2 + 87 FROM tab1 AS cor0
----
3568
4711
9303

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + col0 NOT IN ( + 47 / + col2 * col1 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-25
SELECT ALL + - COUNT( * ) DIV + + 52 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + - COUNT ( * ) / + + 52 AS col1 FROM tab0 AS cor0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT - col0 + - ( - - ( + CAST( + - col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-28
SELECT - col0 + - ( - - ( + CAST ( + - col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT 51 * - 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-306
-306
-306

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT - 69 * + CAST( - col0 AS SIGNED ) + + col2 + col1 AS col0 FROM tab1 cor0
----
3629
5929
6394

skipif mysql # not compatible
query I rowsort label-31
SELECT - 69 * + CAST ( - col0 AS INTEGER ) + + col2 + col1 AS col0 FROM tab1 cor0
----
3629
5929
6394

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

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

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

query I rowsort
SELECT ALL 45 + + 97 AS col0 FROM tab2
----
142
142
142

query I rowsort
SELECT ALL 72 + + col1 - - + col0 * + + col2 FROM tab1
----
4982
5092
6307

query III rowsort
SELECT * FROM tab0 WHERE - 63 > - + 44
----

query II rowsort
SELECT 84, - 89 AS col1 FROM tab2
----
84
-89
84
-89
84
-89

query I rowsort
SELECT DISTINCT col2 + + - col2 - - col2 + - col0 - 74 FROM tab0
----
-151
-42
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-39
SELECT ALL - 8 col2, COUNT( * ) * - + COUNT( * ) + 42 AS col2 FROM tab1 cor0
----
-8
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-39
SELECT ALL - 8 col2, COUNT ( * ) * - + COUNT ( * ) + 42 AS col2 FROM tab1 cor0
----
-8
33

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - col0 + + 83 * + + 1 - + - col2, col2 * - 61 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-44
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-44
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 < + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ALL + - 28 * 43 DIV - col1 + col1 FROM tab2 AS cor0
----
74
84
92

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + - 28 * 43 / - col1 + col1 FROM tab2 AS cor0
----
74
84
92

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

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

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

query I rowsort
SELECT 76 * + 99 AS col1 FROM tab2 WHERE NOT 51 * col1 + - col2 IS NULL
----
7524
7524
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL - COUNT( DISTINCT + + 79 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + col2
----
0

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - COUNT ( DISTINCT + + 79 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL + COUNT( * ) * - + 94 * - 30 + + 66 FROM tab0
----
8526

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + COUNT ( * ) * - + 94 * - 30 + + 66 FROM tab0
----
8526

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 89 + - col2 >= - 37
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-60
SELECT ( 2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-61
SELECT DISTINCT 54 + + + MAX( 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-61
SELECT DISTINCT 54 + + + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT 37 - - - col1 FROM tab1
----
-10
23
32

query I rowsort
SELECT ALL col0 * - ( - col0 ) + - col1 FROM tab0
----
144
7548
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - 22 - col2 * - col2 col1 FROM tab0
----
-10
2099
9691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + + 74 col0 FROM tab2
----
109
109
109

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab0 cor0
----
-62
-62
-62

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

query II rowsort
SELECT ALL + 12, col2 AS col0 FROM tab1 AS cor0
----
12
59
12
68
12
96

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 75 FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT + - ( + + 42 ) DIV - MIN( col1 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-72
SELECT + - ( + + 42 ) / - MIN ( col1 ) FROM tab1 AS cor0
----
8

query II rowsort
SELECT + 96 AS col1, 5 FROM tab2 AS cor0
----
96
5
96
5
96
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / + + 5 <> + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 6 * + + 32 FROM tab2
----
-192
-192
-192

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

query II rowsort
SELECT DISTINCT 43 AS col1, + 65 AS col2 FROM tab1 cor0
----
43
65

query I rowsort
SELECT DISTINCT - + 37 * + 90 * - 5 + + 75 AS col0 FROM tab0 AS cor0
----
16725

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col1 * col1 * 7 FROM tab1 cor0
----
-19208
-726761
-875

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

query I rowsort
SELECT 49 * + col0 FROM tab1 AS cor0
----
2499
4165
4459

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <> - col2 * - col1 * col2 * - - 73
----

query II rowsort
SELECT ALL 93 + + + col2, col0 FROM tab2
----
116
46
133
64
151
75

query I rowsort
SELECT 43 + + ( + col1 ) FROM tab1
----
48
57
90

query II rowsort
SELECT DISTINCT col1 + - col2, + col1 FROM tab2
----
28
51
37
77
9
67

query I rowsort
SELECT - col2 * + + ( - col0 ) * - col1 + + 28 FROM tab1
----
-25047
-290808
-68516

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT - col0 DIV col0 * - - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-95
SELECT - col0 / col0 * - - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

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

query I rowsort
SELECT DISTINCT col0 + + - col0 * col0 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT ( - col0 ) + - + col0 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT - 22 + + col0 DIV - 62 + - + 41 * + 20 FROM tab0 AS cor0
----
-842
-843
-843

skipif mysql # not compatible
query I rowsort label-99
SELECT - 22 + + col0 / - 62 + - + 41 * + 20 FROM tab0 AS cor0
----
-842
-843
-843

onlyif mysql # DIV for integer division: 
query II rowsort label-100
SELECT 94 + + col0 DIV - col2, + col2 FROM tab1 AS cor0
----
93
59
93
68
94
96

skipif mysql # not compatible
query II rowsort label-100
SELECT 94 + + col0 / - col2, + col2 FROM tab1 AS cor0
----
93
59
93
68
94
96

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

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

query I rowsort
SELECT DISTINCT col2 * + 67 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT ALL + 30 * 58 AS col2 FROM tab2
----
1740
1740
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - MIN( col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-104
SELECT - MIN ( col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT - 70 * + 99 AS col2 FROM tab1
----
-6930
-6930
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT DISTINCT - AVG ( + CAST( + + 30 AS SIGNED ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT - AVG ( + CAST ( + + 30 AS INTEGER ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 BETWEEN + 28 AND NULL )
----

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + + 2 )
----

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

query I rowsort
SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT + col1 + - - ( - col0 ) AS col2, col0 + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
-96
96
66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT + + col1 DIV col2 * 46 * + 0 + - ( 17 ) + - - col2 + + - col0 + - 32 AS col2 FROM tab1 AS cor0
----
-4
-72
-75

skipif mysql # not compatible
query I rowsort label-115
SELECT + + col1 / col2 * 46 * + 0 + - ( 17 ) + - - col2 + + - col0 + - 32 AS col2 FROM tab1 AS cor0
----
-4
-72
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-117
SELECT - MAX ( ALL col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL + SUM( + col2 ) + - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + SUM ( + col2 ) + - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT SUM( col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-119
SELECT SUM ( col0 ) FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT ALL - col0 DIV - - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-33
-33
-34

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - col0 / - - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-33
-33
-34

query I rowsort
SELECT ALL + - col0 * + + 53 + - col2 FROM tab1 AS cor0
----
-2799
-4564
-4891

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

query I rowsort
SELECT DISTINCT + col2 * + + ( + - 46 ) AS col1 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT ALL - col1 + + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - col1 + + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8

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

skipif mysql # not compatible
query I rowsort label-125
SELECT + COUNT ( * ) / + 73 FROM tab0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL - col1 DIV - + col0 + - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - col1 / - + col0 + - col0 FROM tab2
----
-45
-63
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT - 67 * 24 DIV + SUM( ALL - col0 ) + - - COUNT( * ) * - + 15 AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-129
SELECT - 67 * 24 / + SUM ( ALL - col0 ) + - - COUNT ( * ) * - + 15 AS col2 FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT col2 ) - - - 11 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT col2 ) - - - 11 FROM tab2
----
-185

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - col1 <> 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL CAST( - MIN( + 36 ) AS SIGNED ) FROM tab0 AS cor0
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT + MAX( ALL - - 5 ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + MAX ( ALL - - 5 ) AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT + CAST( NULL AS SIGNED ) * + 14 + - 68 / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + CAST ( NULL AS INTEGER ) * + 14 + - 68 / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT ALL col2 DIV + 36 AS col1 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL col2 / + 36 AS col1 FROM tab1 AS cor0
----
1
1
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL - 30 + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col2 + - + col2 IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL - 30 + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col2 + - + col2 IS NULL
----
-27

query II rowsort
SELECT DISTINCT 31 AS col2, + col2 AS col1 FROM tab2
----
31
23
31
40
31
58

query I rowsort
SELECT ALL - 54 AS col1 FROM tab1
----
-54
-54
-54

query II rowsort
SELECT col1, 14 * - 69 FROM tab0
----
1
-966
21
-966
81
-966

query I rowsort
SELECT + 28 * - col1 AS col0 FROM tab0
----
-2268
-28
-588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - COUNT( * ) * COUNT( DISTINCT - 34 ) * - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT - 34 ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-27

query II rowsort
SELECT 33, + col2 FROM tab2 AS cor0 WHERE NOT - 84 NOT BETWEEN NULL AND - 63
----

query I rowsort
SELECT - 32 FROM tab0 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE ( 17 ) BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE ( 17 ) BETWEEN ( NULL ) AND + col0
----
0

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-150
SELECT - CAST( - col1 AS SIGNED ) AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-150
SELECT - CAST ( - col1 AS INTEGER ) AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

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

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

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

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * - - col2 * col2 col1 FROM tab2
----
107200
225388
35443

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

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

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + col1 * - col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT 10 IS NOT NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 11 AS col0 FROM tab2 AS cor0
----
253
440
638

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

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

query I rowsort
SELECT DISTINCT + col2 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + - col1 + - col1 + 67 AS col2 FROM tab0 AS cor0
----
-95
25
65

query II rowsort
SELECT DISTINCT + 2 AS col2, - col1 FROM tab0
----
2
-1
2
-21
2
-81

query II rowsort
SELECT + ( col0 ) + 96 AS col1, + 51 FROM tab0
----
111
51
183
51
193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT 86 + - COUNT( - 7 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT 86 + - COUNT ( - 7 ) FROM tab1
----
83

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT ALL + col0 + + - col0 + - - 86 + - col1 DIV - + col2 * - - col1 AS col2 FROM tab1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + col0 + + - col0 + - - 86 + - col1 / - + col2 * - - col1 AS col2 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT - col2 + 7 AS col1 FROM tab0
----
-3
-40
-92

query I rowsort
SELECT DISTINCT - 36 + + col0 - 94 * - 48 FROM tab0
----
4491
4563
4573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT DISTINCT col0 - + col0 + col2 + ( + + CAST( 49 AS SIGNED ) ) * - + col1 * 11 * + col0 AS col1 FROM tab2
----
-1264471
-2656152
-2708417

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT col0 - + col0 + col2 + ( + + CAST ( 49 AS INTEGER ) ) * - + col1 * 11 * + col0 AS col1 FROM tab2
----
-1264471
-2656152
-2708417

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

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

query I rowsort
SELECT 85 * - col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

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

query I rowsort
SELECT ALL + 19 + 97 FROM tab2
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT + + 40 - - 54 * - MIN( DISTINCT - + 90 ) AS col2 FROM tab2 AS cor0
----
4900

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + + 40 - - 54 * - MIN ( DISTINCT - + 90 ) AS col2 FROM tab2 AS cor0
----
4900

query I rowsort
SELECT col2 + + 8 AS col1 FROM tab2 AS cor0
----
31
48
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-179
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * + col1 + - - 27 * + col2 * - col2 - - 46 + + 2 + + CAST( + - col1 AS SIGNED ) * + 78 + + - 24 <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-179
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * + col1 + - - 27 * + col2 * - col2 - - 46 + + 2 + + CAST ( + - col1 AS INTEGER ) * + 78 + + - 24 <> ( NULL )
----

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

skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT - 54 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-54
3

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

query II rowsort
SELECT col2, 53 * - col0 FROM tab0 cor0
----
10
-4611
47
-795
99
-5141

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

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

query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-67
-77

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 77 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT 85 + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-189
SELECT 85 + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT + COUNT( DISTINCT - 61 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + COUNT ( DISTINCT - 61 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + MIN( DISTINCT + - 33 ) + - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-192
SELECT + MIN ( DISTINCT + - 33 ) + - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

query I rowsort
SELECT DISTINCT + col2 * 3 FROM tab2
----
120
174
69

query I rowsort
SELECT DISTINCT 50 * 72 FROM tab1 AS cor0
----
3600

query I rowsort
SELECT + - col1 + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-19
195
76

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

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

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

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

query I rowsort
SELECT ALL col2 + - + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT 3 * + - AVG ( + col1 ) * - COUNT( * ) + - - SUM( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE ( + col2 - - - col0 - + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT 3 * + - AVG ( + col1 ) * - COUNT ( * ) + - - SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE ( + col2 - - - col0 - + col0 ) IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-201
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

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

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

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

query I rowsort
SELECT DISTINCT 29 * 72 + - 10 * 80 + ( + col2 ) AS col2 FROM tab1
----
1347
1356
1384

query I rowsort
SELECT ALL col1 + + 77 FROM tab0
----
158
78
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 66 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-207
SELECT * FROM tab0 WHERE + col1 * - - 16 * - + 11 + - col0 / CAST( NULL AS SIGNED ) NOT IN ( + ( + col2 ), 13 + + 40 + ( - col1 ) - + 47 * ( - col0 ) * - col2, col1, + col2 / + col1, + col1 )
----

skipif mysql # not compatible
query III rowsort label-207
SELECT * FROM tab0 WHERE + col1 * - - 16 * - + 11 + - col0 / CAST ( NULL AS INTEGER ) NOT IN ( + ( + col2 ), 13 + + 40 + ( - col1 ) - + 47 * ( - col0 ) * - col2, col1, + col2 / + col1, + col1 )
----

query I rowsort
SELECT 59 * col1 AS col2 FROM tab1 AS cor0 WHERE ( + ( + 6 ) * + - 9 ) IS NOT NULL
----
2773
295
826

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 + + 8 + CAST( 56 AS SIGNED ) * col2 + - - 77 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 + + 8 + CAST ( 56 AS INTEGER ) * col2 + - - 77 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT COUNT( * ) * - 53 AS col2 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-212
SELECT COUNT ( * ) * - 53 AS col2 FROM tab2
----
-159

query I rowsort
SELECT DISTINCT 84 + + 31 AS col1 FROM tab0
----
115

query I rowsort
SELECT DISTINCT + 97 * + col1 FROM tab0
----
2037
7857
97

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

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

skipif mysql # not compatible
query I rowsort label-216
SELECT + + col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT ALL COUNT( * ) DIV + 13 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL COUNT ( * ) / + 13 AS col0 FROM tab1 cor0
----
0

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

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

query I rowsort
SELECT ( col1 ) * - 79 FROM tab0 AS cor0
----
-1659
-6399
-79

query I rowsort
SELECT DISTINCT + + col1 * 98 AS col2 FROM tab0 AS cor0
----
2058
7938
98

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-224
SELECT ALL - ( - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-225
SELECT + col2 AS col2, 90 DIV col1 + + + col2 FROM tab1
----
59
77
68
69
96
102

skipif mysql # not compatible
query II rowsort label-225
SELECT + col2 AS col2, 90 / col1 + + + col2 FROM tab1
----
59
77
68
69
96
102

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT col1 * - col0 * 6 DIV col0 FROM tab2
----
-306
-402
-462

skipif mysql # not compatible
query I rowsort label-226
SELECT col1 * - col0 * 6 / col0 FROM tab2
----
-306
-402
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + 65 col1 FROM tab1
----
3835
4420
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT - col2 DIV - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - col2 / - - col1 FROM tab2
----
0

query II rowsort
SELECT - 61 * + col0 * + col2 AS col2, - col0 / 8 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - - col0 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT + ( - 35 ) + + 82 + + col2 DIV + col2 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-234
SELECT + ( - 35 ) + + 82 + + col2 / + col2 FROM tab2 AS cor0
----
48
48
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT ALL - 78 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 + col2 AS col2 FROM tab0 AS cor0
----
112
23
60

query I rowsort
SELECT ( col0 ) + - + col1 FROM tab2
----
-13
-5
8

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

query II rowsort
SELECT DISTINCT 6 + ( - col0 ), - col0 * col0 AS col2 FROM tab0
----
-81
-7569
-9
-225
-91
-9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 = 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - MIN( ALL 34 ) col0 FROM tab2
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-241
SELECT - MIN ( ALL 34 ) col0 FROM tab2
----
-34

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

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

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

query I rowsort
SELECT ALL 11 + + col2 FROM tab1
----
107
70
79

query I rowsort
SELECT col1 + + ( col2 ) FROM tab0
----
100
128
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE - 19 <> + col2 + col2
----
3

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE - 19 <> + col2 + col2
----
3

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

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

query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) AS col0 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT * FROM tab2 WHERE col1 = + 19 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL - MIN( - CAST( + 29 AS SIGNED ) ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - MIN ( - CAST ( + 29 AS INTEGER ) ) AS col0 FROM tab2
----
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 40 NOT IN ( + col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT col2 + + col0 AS col1 FROM tab0 WHERE NOT - CAST( - 46 AS SIGNED ) * - 28 BETWEEN + 29 AND 30 * + 93 + col2
----
196
62
97

skipif mysql # not compatible
query I rowsort label-253
SELECT col2 + + col0 AS col1 FROM tab0 WHERE NOT - CAST ( - 46 AS INTEGER ) * - 28 BETWEEN + 29 AND 30 * + 93 + col2
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col2 * - col0 + + col1 / 96
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 >= - 12 * + col0
----

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

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

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

query I rowsort
SELECT - 11 + + col0 FROM tab2
----
35
53
64

query I rowsort
SELECT col0 + col0 * - 18 FROM tab1
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + COUNT( * ) + MIN( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 )
----
62

skipif mysql # not compatible
query I rowsort label-260
SELECT + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 )
----
62

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

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE ( NULL ) = - 45 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT ALL col2 * + 33 FROM tab2 WHERE NULL <> col0 / col1 + 94 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL col2 * + 33 FROM tab2 WHERE NULL <> col0 / col1 + 94 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 96 * + col2 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
5664
6528
9216

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

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

query I rowsort
SELECT DISTINCT ( 7 ) * 16 + col2 AS col2 FROM tab2
----
135
152
170

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 39 ) + - 82 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0 / col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 49 * col0 ) <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT 69 FROM tab0 WHERE 40 + col2 NOT IN ( col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-273
SELECT 69 FROM tab0 WHERE 40 + col2 NOT IN ( col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - ( ( 58 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 57 AS col1 FROM tab1
----
10
43
52

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT COUNT( * ) + 53 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-276
SELECT COUNT ( * ) + 53 FROM tab0
----
56

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 37 <> NULL
----

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

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

query I rowsort
SELECT + 37 * 90 AS col2 FROM tab0
----
3330
3330
3330

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

skipif mysql # not compatible
query I rowsort label-282
SELECT 91 * - COUNT ( * ) FROM tab1 AS cor0
----
-273

query I rowsort
SELECT + col0 * + 41 FROM tab2 cor0
----
1886
2624
3075

query I rowsort
SELECT ( - 74 ) * col2 AS col1 FROM tab2 AS cor0
----
-1702
-2960
-4292

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

query I rowsort
SELECT ( + col2 ) FROM tab0 AS cor0 WHERE 23 + - ( - col2 ) * - col2 NOT IN ( - col0 * col1 )
----
10
47
99

query I rowsort
SELECT - 69 AS col0 FROM tab1 WHERE NULL IN ( col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT DISTINCT + 51 DIV - 64 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT + 51 / - 64 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-289
SELECT col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 * + 23 + - col2 AS col0 FROM tab2
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL CAST ( - + 87 AS INTEGER ) FROM tab2
----
-87
-87
-87

query I rowsort
SELECT 89 - + - col0 AS col2 FROM tab0
----
104
176
186

query I rowsort
SELECT DISTINCT + col0 - + - 53 + + col2 AS col1 FROM tab0
----
115
150
249

query I rowsort
SELECT ALL - 85 - + 25 + - 89 * + col1 AS col1 FROM tab0
----
-1979
-199
-7319

query I rowsort
SELECT - 3 + + - col1 * + 31 AS col1 FROM tab0
----
-2514
-34
-654

query I rowsort
SELECT + col1 + - + 92 AS col2 FROM tab1
----
-45
-78
-87

query I rowsort
SELECT 76 + + + 30 * col2 AS col2 FROM tab1
----
1846
2116
2956

query I rowsort
SELECT col0 + col2 AS col2 FROM tab1 WHERE NULL > ( + 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT 8 DIV + 45 - - 44 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT 8 / + 45 - - 44 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

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

query I rowsort
SELECT ALL + 58 * + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5a31e878cc2bc550d4e0c92ef51811c

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 31 * + 12 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 31 * + 12 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 60 + - 15 - + 93 * - 25 BETWEEN - 39 AND NULL
----

query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1 / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1 / - 46
----
NULL

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 4 IS NOT NULL OR col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT ALL 73 DIV + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 73 / + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( ( col0 ) / col2 + - col2 ) OR - 28 <> ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT + COUNT ( * ) * + + 48 col1 FROM tab1 AS cor0
----
144

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

query I rowsort
SELECT DISTINCT + + 42 * + col0 FROM tab2 AS cor0
----
1932
2688
3150

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * 8 <= - ( col1 ) - 87 * 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + - col1 col2, - 88 FROM tab0
----
-1
-88
-441
-88
-6561
-88

query I rowsort
SELECT ALL - 91 + + col1 + - - col0 * + + 46 FROM tab0
----
3932
4372
680

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

query I rowsort
SELECT DISTINCT - col2 + + 95 FROM tab0
----
-4
48
85

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

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

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + MAX ( DISTINCT - + ( - col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT - COUNT( * ) * 96 AS col1 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - COUNT ( * ) * 96 AS col1 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL - - COUNT( * ) * MIN( col0 ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - - COUNT ( * ) * MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
138

query I rowsort
SELECT ALL - + col1 * + col2 * + 98 * + + col0 AS col0 FROM tab1 AS cor0
----
-2457350
-28501928
-6717312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT CAST( - col1 AS SIGNED ) DIV + col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-329
SELECT CAST ( - col1 AS INTEGER ) / + col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL 34 + 40 AS col1 FROM tab1
----
74
74
74

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT MIN( DISTINCT - 39 ) * - - 62 FROM tab2
----
-2418

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT MIN ( DISTINCT - 39 ) * - - 62 FROM tab2
----
-2418

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

query I rowsort
SELECT col2 + - 10 - - - 54 FROM tab1 AS cor0
----
-5
32
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-335
SELECT * FROM tab1 cor0 WHERE + col0 - - - CAST( + 25 AS SIGNED ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-335
SELECT * FROM tab1 cor0 WHERE + col0 - - - CAST ( + 25 AS INTEGER ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 64 * ( - 49 ) * + 73 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - ( 16 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 48 + - col0 - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1443
-3335
-428

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( + 58 ) AND NULL
----
51
85
91

query II rowsort
SELECT DISTINCT + col2 + - + 16, - 53 AS col2 FROM tab0
----
-6
-53
31
-53
83
-53

query I rowsort
SELECT DISTINCT - + ( + ( + 41 ) ) AS col1 FROM tab0 WHERE NOT col0 + - col0 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-344
SELECT - COUNT ( * ), - 15 AS col1 FROM tab0
----
-3
-15

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2 WHERE + 90 * - + col1 * - col0 + ( col1 ) <> col0
----
49

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab2 WHERE col1 IS NOT NULL
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT IN ( - col0, ( - col2 ) ) )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - 85 )
----

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

query I rowsort
SELECT DISTINCT - ( - 92 ) AS col0 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT ( - 45 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL col1 * - + 54 + + + 32 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-2722
-3586
-4126

query I rowsort
SELECT DISTINCT + + 16 FROM tab1 WHERE NOT col1 > + + col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT + col1 * + + col0 + 76 DIV col1 AS col1 FROM tab2 AS cor0
----
2347
4928
5026

skipif mysql # not compatible
query I rowsort label-355
SELECT + col1 * + + col0 + 76 / col1 AS col1 FROM tab2 AS cor0
----
2347
4928
5026

query I rowsort
SELECT ALL + - 89 FROM tab2 cor0
----
-89
-89
-89

query II rowsort
SELECT + col0, - 75 + - col2 AS col1 FROM tab2
----
46
-98
64
-115
75
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT 95 BETWEEN NULL AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT 95 BETWEEN NULL AND - col1
----
NULL

query I rowsort
SELECT + col0 * 45 * - 97 AS col0 FROM tab0
----
-379755
-423405
-65475

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL COUNT( * ) * + 40 col2 FROM tab0
----
120

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

query I rowsort
SELECT - 91 * - - col1 AS col2 FROM tab1
----
-1274
-4277
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT col0 DIV + ( + - col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-362
SELECT col0 / + ( + - col0 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col2 FROM tab2 WHERE - 27 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT + MAX( ALL - + col0 ) * - - COUNT( * ) + COUNT( * ) DIV + + 2 AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + MAX ( ALL - + col0 ) * - - COUNT ( * ) + COUNT ( * ) / + + 2 AS col2 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT col0 * ( + ( + col2 ) ) FROM tab2 WHERE + 97 <= - col2 OR - - 23 - + - col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col0 col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT + SUM( DISTINCT - col0 ) * - - 35 + - 74 FROM tab0 AS cor0
----
-7039

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT + SUM ( DISTINCT - col0 ) * - - 35 + - 74 FROM tab0 AS cor0
----
-7039

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT DISTINCT + col2 DIV ( + 41 ) + + 8 FROM tab0
----
10
8
9

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT + col2 / ( + 41 ) + + 8 FROM tab0
----
10
8
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col2 + col2 * 8 col0 FROM tab1
----
472
544
768

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

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

query I rowsort
SELECT DISTINCT 62 * + 92 - 91 AS col2 FROM tab2 AS cor0
----
5613

query I rowsort
SELECT DISTINCT - 19 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 77 * col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 cor0
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT ALL CAST( - ( - 38 ) AS SIGNED ) + + col1 col1 FROM tab1
----
43
52
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-382
SELECT ALL CAST ( - ( - 38 ) AS INTEGER ) + + col1 col1 FROM tab1
----
43
52
85

query I rowsort
SELECT - col1 - 73 FROM tab1
----
-120
-78
-87

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

skipif mysql # not compatible
query I rowsort label-384
SELECT - SUM ( + col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL + 74 DIV - 66 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + 74 / - 66 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL CAST( - + col0 AS SIGNED ) * col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL CAST ( - + col0 AS INTEGER ) * col0 FROM tab2
----
-2116
-4096
-5625

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

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

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

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

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

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

query I rowsort
SELECT + 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < + + 23 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47 AS col2, + 42 col2 FROM tab0 AS cor0
----
47
42

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - - COUNT( * ) * + SUM( ALL + col2 ) + COUNT( * ) + 98 AS col2 FROM tab0 cor0
----
569

skipif mysql # not compatible
query I rowsort label-397
SELECT - - COUNT ( * ) * + SUM ( ALL + col2 ) + COUNT ( * ) + 98 AS col2 FROM tab0 cor0
----
569

query I rowsort
SELECT ( col0 ) FROM tab1 cor0 WHERE NOT 19 + + - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + - col2 + - - col2 FROM tab2 cor0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 51 * + 86 - + col2
----

query I rowsort
SELECT DISTINCT col2 + + 54 FROM tab0
----
101
153
64

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

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

query I rowsort
SELECT DISTINCT col2 * - 10 * + col0 AS col1 FROM tab2
----
-10580
-25600
-43500

query I rowsort
SELECT - + col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT CAST( NULL AS SIGNED ) * + - 23 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT CAST ( NULL AS INTEGER ) * + - 23 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT + - 38 + 36 + - col2 FROM tab0 AS cor0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - COUNT( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0 + - 9
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - COUNT ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0 + - 9
----
0

query I rowsort
SELECT ALL - col2 * - col0 - + - col2 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT DISTINCT - 88, + col2 FROM tab2 AS cor0
----
-88
23
-88
40
-88
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT DISTINCT - COUNT( * ) * - 9 DIV + COUNT( * ) FROM tab1 AS cor0
----
9

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

query I rowsort
SELECT + 43 * 8 FROM tab2 AS cor0
----
344
344
344

query II rowsort
SELECT ALL - + 13 AS col1, 34 AS col1 FROM tab1 AS cor0
----
-13
34
-13
34
-13
34

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-422
SELECT * FROM tab1 WHERE NOT - 84 NOT IN ( - CAST( NULL AS SIGNED ) / - col0, col0 )
----

skipif mysql # not compatible
query III rowsort label-422
SELECT * FROM tab1 WHERE NOT - 84 NOT IN ( - CAST ( NULL AS INTEGER ) / - col0, col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0 * + 22 * + - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * - col0 * + col2 col1 FROM tab1
----
-100300
-123760
-97920

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

query I rowsort
SELECT 88 * - col0 FROM tab0
----
-1320
-7656
-8536

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT ALL COUNT( * ) * - 13 AS col0, 43 FROM tab1
----
-39
43

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL COUNT ( * ) * - 13 AS col0, 43 FROM tab1
----
-39
43

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( + CAST( 16 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( + CAST ( 16 AS REAL ) )
----

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

query I rowsort
SELECT DISTINCT - col0 * + 92 + - col0 FROM tab2 AS cor0
----
-4278
-5952
-6975

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT - - 69 * - - COUNT( * ) * + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4968

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - - 69 * - - COUNT ( * ) * + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4968

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT + 52 DIV 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT + 52 / 76 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ALL 47 DIV - 86 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 47 / - 86 FROM tab0
----
0
0
0

query I rowsort
SELECT - 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + MAX( 16 ) AS col2 FROM tab0, tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-438
SELECT + MAX ( 16 ) AS col2 FROM tab0, tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT COUNT( DISTINCT - - col1 ) + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-439
SELECT COUNT ( DISTINCT - - col1 ) + - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT + col1 * + 19 AS col0 FROM tab1 cor0
----
266
893
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE + col0 > NULL
----

query II rowsort
SELECT col2, 80 + 28 FROM tab1
----
59
108
68
108
96
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-443
SELECT ALL + 57 * CAST( NULL AS SIGNED ) + + 17 - + 38 / - MIN( DISTINCT col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + 57 * CAST ( NULL AS INTEGER ) + + 17 - + 38 / - MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT col0 AS col0, col0 * + ( + + 7 ) FROM tab1
----
51
357
85
595
91
637

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - 85
----

query III rowsort
SELECT * FROM tab0 WHERE + 96 + - col0 < col2
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 11 + + - col2 FROM tab1
----
-48
-57
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col1 + + 73 * + + col1 col2, col0 FROM tab0 WHERE - + col0 * + col1 BETWEEN + col2 + + - col0 AND + + col2
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT ALL 13 DIV col1 - + - 41 AS col2 FROM tab1
----
41
41
43

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 13 / col1 - + - 41 AS col2 FROM tab1
----
41
41
43

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
89

query I rowsort
SELECT DISTINCT - + col2 + 80 * + - col0 / 79 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT ALL + - MAX( DISTINCT + ( - + 40 ) ), ( + - 36 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
40
108

skipif mysql # not compatible
query II rowsort label-456
SELECT ALL + - MAX ( DISTINCT + ( - + 40 ) ), ( + - 36 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
40
108

query I rowsort
SELECT - 12 * + + 27 AS col1 FROM tab0 AS cor0
----
-324
-324
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT DISTINCT - + 75 DIV + 75 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - + 75 / + 75 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 22 * ( + col1 ) FROM tab1
----
1034
110
308

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <> 41 )
----

query II rowsort
SELECT col1 AS col1, 22 - + col2 FROM tab1
----
14
-74
47
-46
5
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT 27 * - COUNT( ( + col1 ) ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-465
SELECT 27 * - COUNT ( ( + col1 ) ) AS col1 FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-466
SELECT DISTINCT ( + - col0 ) DIV col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT ( + - col0 ) / col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-64
-75
-92

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 94 - + - 44 ) <> NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + 77 FROM tab1
----
-4543
-5236
-7392

query I rowsort
SELECT DISTINCT + 62 * + 14 - + + 2 FROM tab1 AS cor0
----
866

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT col2 DIV + 53 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-476
SELECT col2 / + 53 FROM tab0 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-477
SELECT CAST( + + col1 AS SIGNED ) DIV + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-477
SELECT CAST ( + + col1 AS INTEGER ) / + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT + col0 + - 43 + - 68 + col1 DIV - ( + + 75 ) FROM tab0 AS cor0
----
-14
-24
-97

skipif mysql # not compatible
query I rowsort label-478
SELECT + col0 + - 43 + - 68 + col1 / - ( + + 75 ) FROM tab0 AS cor0
----
-14
-24
-97

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

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

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

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

query I rowsort
SELECT col1 * col2 + 81 + + col1 AS col0 FROM tab2
----
1305
3238
4034

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - SUM( - col1 ) * + ( - ( - - ( - 49 ) ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - SUM ( - col1 ) * + ( - ( - - ( - 49 ) ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

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

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

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

query I rowsort
SELECT - col2 * - - col1 - + 87 AS col0 FROM tab0 AS cor0
----
-186
-297
-3894

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

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

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

query I rowsort
SELECT ALL ( + 38 ) FROM tab2
----
38
38
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT - CAST( + ( + col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-491
SELECT - CAST ( + ( + col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT - - 30, CAST( NULL AS SIGNED ) * - + 32 + + 42 + + col2 AS col0 FROM tab0 AS cor0
----
30
NULL
30
NULL
30
NULL

skipif mysql # not compatible
query II rowsort label-493
SELECT - - 30, CAST ( NULL AS INTEGER ) * - + 32 + + 42 + + col2 AS col0 FROM tab0 AS cor0
----
30
NULL
30
NULL
30
NULL

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE - 74 IS NULL
----

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

query I rowsort
SELECT DISTINCT - + col2 * + col0 - 48 - + - ( - - 87 ) + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-5001
-5053
-8358

query I rowsort
SELECT ALL - col0 * - + col0 FROM tab0 cor0
----
225
7569
9409

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-498
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) col1 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE NOT - col2 IS NULL
----
23
40
58

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + COUNT ( + 91 ) FROM tab1
----
3

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

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

query I rowsort
SELECT ALL + ( + - 55 ) * + + 15 FROM tab2
----
-825
-825
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT 88 DIV + 18 + + COUNT( DISTINCT + 25 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-504
SELECT 88 / + 18 + + COUNT ( DISTINCT + 25 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-505
SELECT MAX ( ALL + ( - 44 ) ) col1 FROM tab1 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - 51 DIV + col2 + + - col1 )
----

skipif mysql # not compatible
query I rowsort label-506
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - 51 / + col2 + + - col1 )
----

query I rowsort
SELECT - 55 + + 6 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT - 57 * + 41 + + col2 - - - 33 AS col2 FROM tab0
----
-2271
-2323
-2360

query I rowsort
SELECT DISTINCT + 36 * col0 * 82 FROM tab2 AS cor0
----
135792
188928
221400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-510
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 80 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-510
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 80 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 10 * - 38 FROM tab0 AS cor0
----
-380
-380
-380

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

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

query I rowsort
SELECT ALL 72 + - col0 FROM tab1
----
-13
-19
21

query I rowsort
SELECT ALL + 13 * - - col0 AS col1 FROM tab1 WHERE NOT + + 85 IS NULL
----
1105
1183
663

query I rowsort
SELECT + col1 - + 41 AS col0 FROM tab2
----
10
26
36

query I rowsort
SELECT ALL - col1 + - 12 + - col2 FROM tab0
----
-112
-140
-43

query II rowsort
SELECT ALL col2 + + col1 AS col2, 0 FROM tab2
----
117
0
125
0
74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT COUNT( * ) + - + 87 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-518
SELECT COUNT ( * ) + - + 87 FROM tab2
----
-84

query I rowsort
SELECT DISTINCT + ( + col0 ) * 14 FROM tab0
----
1218
1358
210

query I rowsort
SELECT - ( + - col2 ) + + col2 * + col1 FROM tab0 AS cor0
----
198
220
3854

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-524
SELECT + COUNT ( * ) / + - 34 AS col2 FROM tab0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT ALL + CAST( NULL AS SIGNED ), col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-526
SELECT ALL + CAST ( NULL AS INTEGER ), col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < + col2 * - 21
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT - MIN( col2 ) AS col0 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-529
SELECT - MIN ( col2 ) AS col0 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT - MIN( - ( + - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - MIN ( - ( + - col1 ) ) FROM tab1
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-532
SELECT ALL - COUNT( * ), + 75 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND + col2
----
-3
75

skipif mysql # not compatible
query II rowsort label-532
SELECT ALL - COUNT ( * ), + 75 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND + col2
----
-3
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = 24
----

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

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

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

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

query I rowsort
SELECT + + col2 * + + 93 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT DISTINCT 32 * ( - 65 ) + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT DISTINCT + col2 DIV + + col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + col2 / + + col1 FROM tab0 AS cor0
----
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT - - col2 + + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-542
SELECT - - col2 + + col2 / - col2 AS col0 FROM tab2 AS cor0
----
22
39
57

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - 76 AS col0 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT DISTINCT col2 + 52 AS col0 FROM tab0
----
151
62
99

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 * 85 IN ( col1 + 47 + col2 * col0, 85 )
----

query II rowsort
SELECT 37, - 66 * + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-551
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col0 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT col0 * col2 - - + 59 FROM tab1 cor0
----
4955
5074
6247

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

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

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

query II rowsort
SELECT DISTINCT + col1 * - + col0, - col0 - - col1 / - col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 53 AS col0, 62 * - 94 FROM tab1 AS cor0
----
-53
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 19 * + + 90 * - + col1 * + col1 col2 FROM tab2
----
-102297330
-405543600
-445219020

onlyif mysql # DIV for integer division: 
query II rowsort label-560
SELECT ALL + col0 * col0 AS col1, + col2 DIV col2 * col2 AS col0 FROM tab2
----
2116
23
4096
40
5625
58

skipif mysql # not compatible
query II rowsort label-560
SELECT ALL + col0 * col0 AS col1, + col2 / col2 * col2 AS col0 FROM tab2
----
2116
23
4096
40
5625
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT DISTINCT ( 86 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT ( 86 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2, tab1 cor0
----
NULL

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

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

query I rowsort
SELECT ALL - 49 + - col2 AS col0 FROM tab1
----
-108
-117
-145

onlyif mysql # DIV for integer division: 
query II rowsort label-567
SELECT 14 DIV + ( + - col0 ) col2, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-567
SELECT 14 / + ( + - col0 ) col2, col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT ALL COUNT( * ) DIV + + 28 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-568
SELECT ALL COUNT ( * ) / + + 28 col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 BETWEEN NULL AND + + 70
----

query I rowsort
SELECT col1 * + - 12 * 88 * - + 78 FROM tab2
----
4200768
5518656
6342336

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 31 FROM tab1 cor0
----
-28
-37
-65

query I rowsort
SELECT ALL col2 + + col0 + - col2 AS col0 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT DISTINCT - 62 * ( 76 ) - + col0 FROM tab2
----
-4758
-4776
-4787

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 III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + ( - MAX( DISTINCT - + col2 ) ) - - + 6 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-579
SELECT + ( - MAX ( DISTINCT - + col2 ) ) - - + 6 AS col1 FROM tab2
----
29

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

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

query II rowsort
SELECT 63 AS col2, 25 FROM tab0 WHERE - col0 + + 91 > NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col0 <= + col2 * - col1
----
10
47
99

query I rowsort
SELECT DISTINCT - col0 + - ( - - col0 ) * + col2 * + + 27 + - col1 FROM tab2
----
-117592
-28663
-69261

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

query I rowsort
SELECT ALL 92 + - - col1 FROM tab2
----
143
159
169

query I rowsort
SELECT - 80 * - col1 * + - 42 FROM tab2
----
-171360
-225120
-258720

query II rowsort
SELECT DISTINCT + 69 * 35, col2 FROM tab0 WHERE NULL BETWEEN - 13 AND NULL
----

query I rowsort
SELECT DISTINCT 18 * - AVG ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0 WHERE - 94 IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * + col1 * - col0 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab2 AS cor0
----
-33

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

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

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

query II rowsort
SELECT col2 / + col2 - - + col1, col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> col1 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - 27 + - col2 FROM tab0
----
-1316
-2772
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT CAST( - 66 AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT CAST ( - 66 AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2
----
-63

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-606
SELECT ALL + col0 DIV - col1, col2 AS col0 FROM tab1
----
-1
68
-17
59
-3
96

skipif mysql # not compatible
query II rowsort label-606
SELECT ALL + col0 / - col1, col2 AS col0 FROM tab1
----
-1
68
-17
59
-3
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + - 84 + + col2 col0 FROM tab2
----
7583
7600
7618

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT DISTINCT 52 * + - col0 + + + CAST( NULL AS SIGNED ) + + col0 / 85 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT 52 * + - col0 + + + CAST ( NULL AS INTEGER ) + + col0 / 85 FROM tab0
----
NULL

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - + 75 IS NOT NULL AND + ( - - col0 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-617
SELECT ALL + 90 * + 55 * + + SUM( ALL + CAST( - 22 AS SIGNED ) ), + COUNT( * ) + - 67 AS col2 FROM tab0 AS cor0
----
-326700
-64

skipif mysql # not compatible
query II rowsort label-617
SELECT ALL + 90 * + 55 * + + SUM ( ALL + CAST ( - 22 AS INTEGER ) ), + COUNT ( * ) + - 67 AS col2 FROM tab0 AS cor0
----
-326700
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - 57 * col2 / 58 )
----

query I rowsort
SELECT - 2 + + 63 AS col2 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT ALL + + 80 * + col1 AS col0 FROM tab0 AS cor0
----
1680
6480
80

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

skipif mysql # not compatible
query I rowsort label-621
SELECT 9 * COUNT ( ALL + col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT col2 * - 63 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT DISTINCT - COUNT( * ), + 67 AS col1 FROM tab2
----
-3
67

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT - COUNT ( * ), + 67 AS col1 FROM tab2
----
-3
67

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-628
SELECT + + col0 AS col0, 84 + - + CAST( NULL AS SIGNED ) + - - col2 + 22 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-628
SELECT + + col0 AS col0, 84 + - + CAST ( NULL AS INTEGER ) + - - col2 + 22 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0 WHERE 93 IS NOT NULL
----
-10
-47
-99

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

query II rowsort
SELECT DISTINCT + - col1 * 46 * - - ( - col1 ), 41 AS col1 FROM tab1 AS cor0
----
101614
41
1150
41
9016
41

query I rowsort
SELECT ALL col1 * - + col0 + col1 FROM tab1 cor0
----
-420
-4230
-700

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT 17 DIV - COUNT( * ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-636
SELECT 17 / - COUNT ( * ) FROM tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 24 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT ALL 43 AS col0, + COUNT( - 64 ) + 51 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
43
51

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL 43 AS col0, + COUNT ( - 64 ) + 51 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
43
51

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

query I rowsort
SELECT DISTINCT col1 + col1 + + col0 + - col0 AS col1 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT ALL - col1 + col2 DIV col2 * + col0 DIV + col0 + + 41 AS col1 FROM tab0 AS cor0
----
-39
21
41

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - col1 + col2 / col2 * + col0 / + col0 + + 41 AS col1 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT DISTINCT + - ( + + ( - - col2 ) ) FROM tab1 cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT col0 * + col1 * - col1 + + col1 FROM tab0 AS cor0
----
-38346
-96
-98334

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 49 BETWEEN + - col2 * - 40 + - + ( + + col0 ) + ( + col1 ) AND - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT + 19 + + + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
104
110
70

skipif mysql # not compatible
query I rowsort label-648
SELECT + 19 + + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
104
110
70

query I rowsort
SELECT DISTINCT + + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 = - + ( - + 41 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 12 / - col0
----

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

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

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

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

query I rowsort
SELECT col0 * + 92 * - 49 AS col0 FROM tab1
----
-229908
-383180
-410228

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT - 40 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-655
SELECT - 40 / + col0 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT - ( 1 ) FROM tab0
----
-1
-1
-1

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

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

query I rowsort
SELECT 30 * - - 32 FROM tab2
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT - MIN( - col0 ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - MIN ( - col0 ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT 54 DIV col2 + 10 FROM tab2 AS cor0
----
10
11
12

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT 54 / col2 + 10 FROM tab2 AS cor0
----
10
11
12

query I rowsort
SELECT ALL + col0 * 66 * ( 89 ) FROM tab0 AS cor0
----
511038
569778
88110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT - - AVG ( + - col0 ) + + COUNT( * ) - CAST( NULL AS SIGNED ) * - + MAX( col2 ) * - SUM( - 17 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-665
SELECT - - AVG ( + - col0 ) + + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - + MAX ( col2 ) * - SUM ( - 17 ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + + - 44 * + - ( - + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-3549
-837
53

query I rowsort
SELECT ALL - - 22 * + + col1 + + 2 AS col1 FROM tab0 AS cor0
----
1784
24
464

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-668
SELECT ALL - 19 * ( - + col0 ) + + ( + ( - col1 ) ) DIV + - col1 col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1217
NULL
1426
NULL
875
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-668
SELECT ALL - 19 * ( - + col0 ) + + ( + ( - col1 ) ) / + - col1 col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1217
NULL
1426
NULL
875
NULL

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

query I rowsort
SELECT - + col1 * - col1 + - + col2 FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT + - col0 + - ( - - 45 ) * col1 FROM tab2 AS cor0
----
-2341
-3090
-3529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT 32 * 59 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT 32 * 59 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 78 + - + col0 FROM tab2
----
14
3
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 34 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT 78 + + col2 FROM tab2
----
101
118
136

query II rowsort
SELECT ALL - col2 + - 24 + 56 AS col1, - ( 8 ) AS col1 FROM tab1 AS cor0
----
-27
-8
-36
-8
-64
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT DISTINCT + - 15 DIV - + COUNT( * ) - + - MIN( col2 ) - 12 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + - 15 / - + COUNT ( * ) - + - MIN ( col2 ) - 12 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + + 30 FROM tab2
----
53
70
88

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

skipif mysql # not compatible
query I rowsort label-680
SELECT MIN ( + - col2 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT col2 - - + 26 + + col2 * 60 - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * + + 18 AS col1 FROM tab1 AS cor0
----
-1062
-1224
-1728

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

query II rowsort
SELECT ALL + - col2 AS col0, - col2 * 83 FROM tab2 AS cor0
----
-23
-1909
-40
-3320
-58
-4814

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

query II rowsort
SELECT ALL + col2 AS col0, 18 - col1 - 92 * col2 FROM tab1 AS cor0
----
59
-5415
68
-6285
96
-8828

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

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

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

query I rowsort
SELECT + 2 * - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT + col2 * + 95 * + col2 AS col1 FROM tab2
----
152000
319580
50255

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL + MIN( + + 76 ) AS col2 FROM tab2 WHERE NOT - 36 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + MIN ( + + 76 ) AS col2 FROM tab2 WHERE NOT - 36 IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-694
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT - + col1 DIV + + 21 col0 FROM tab2 cor0
----
-2
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-696
SELECT - + col1 / + + 21 col0 FROM tab2 cor0
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT CAST( + ( - col2 ) AS SIGNED ) * - col1 + col1 FROM tab0 cor0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT CAST ( + ( - col2 ) AS INTEGER ) * - col1 + col1 FROM tab0 cor0
----
100
231
3888

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

skipif mysql # not compatible
query I rowsort label-698
SELECT MIN ( - 15 ) AS col0 FROM tab2 cor0
----
-15

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

query I rowsort
SELECT ALL - 58 + - + col2 + - + col2 FROM tab1 AS cor0
----
-176
-194
-250

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

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

query I rowsort
SELECT DISTINCT + 44 + + col1 FROM tab2
----
111
121
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 93 <> NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT - 67 + - 68 + + 43 FROM tab2 AS cor0
----
-92
-92
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT DISTINCT - 91 + + CAST( + + MAX( + 41 ) AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-707
SELECT DISTINCT - 91 + + CAST ( + + MAX ( + 41 ) AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

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

query I rowsort
SELECT + + 62 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT + 59 * 67 * 63 + - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-710
SELECT + 59 * 67 * 63 + - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif mysql # not compatible
query I rowsort label-711
SELECT SUM ( + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + col0 * + + col0 * col1 FROM tab1 AS cor0
----
36125
36414
389207

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + 62 + 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-715
SELECT DISTINCT col0 * + col1 / + col0 + + col0 + - 14 + - CAST( NULL AS SIGNED ) * + - col2 FROM tab2 AS cor0 WHERE NULL >= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT col0 * + col1 / + col0 + + col0 + - 14 + - CAST ( NULL AS INTEGER ) * + - col2 FROM tab2 AS cor0 WHERE NULL >= ( + col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-717
SELECT DISTINCT + MIN( ALL - - col0 ) AS col2, + 80 FROM tab0 AS cor0
----
15
80

skipif mysql # not compatible
query II rowsort label-717
SELECT DISTINCT + MIN ( ALL - - col0 ) AS col2, + 80 FROM tab0 AS cor0
----
15
80

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

query I rowsort
SELECT - ( + 96 ) * col1 FROM tab0
----
-2016
-7776
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-720
SELECT ALL - 70 * 99 DIV - - 64 col0, col2 col2 FROM tab1
----
-108
59
-108
68
-108
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-720
SELECT ALL - 70 * 99 / - - 64 col0, col2 col2 FROM tab1
----
-108
59
-108
68
-108
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 * - - 51 col1, col1 AS col2 FROM tab0
----
-4947
1
-61965
81
-93177
21

query I rowsort
SELECT DISTINCT - 76 * - 63 FROM tab0
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - col0 / + - col2 + col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - col0 / + - col2 + col1 IS NOT NULL )
----
0

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

query I rowsort
SELECT ALL ( + 8 ) FROM tab2, tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT + + ( ( + MIN( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-729
SELECT + + ( ( + MIN ( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT COUNT( * ) * ( - 38 ) * + SUM( ( col0 ) ) FROM tab2 AS cor0
----
-21090

skipif mysql # not compatible
query I rowsort label-730
SELECT COUNT ( * ) * ( - 38 ) * + SUM ( ( col0 ) ) FROM tab2 AS cor0
----
-21090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT - CAST( 38 AS SIGNED ) AS col2 FROM tab0 cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-731
SELECT - CAST ( 38 AS INTEGER ) AS col2 FROM tab0 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - 24 AS col0 FROM tab0 WHERE NOT + 90 * + col1 BETWEEN NULL AND + col2 + col2
----
-24
-24

query I rowsort
SELECT 26 + col2 FROM tab2
----
49
66
84

query I rowsort
SELECT ALL 70 * col1 FROM tab0
----
1470
5670
70

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

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

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

query I rowsort
SELECT - 5 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - MIN( col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-738
SELECT - MIN ( col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 23 * COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT 23 * COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL - MAX( ALL - col2 ) * - COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - MAX ( ALL - col2 ) * - COUNT ( * ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT col0 * - col2 + + 53 FROM tab0
----
-652
-817
-9550

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT COUNT( * ) * - 61 + 97 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-742
SELECT COUNT ( * ) * - 61 + 97 FROM tab1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT - col0 * + col1 + + CAST( 78 AS SIGNED ) AS col0 FROM tab2
----
-2268
-4850
-4947

skipif mysql # not compatible
query I rowsort label-743
SELECT - col0 * + col1 + + CAST ( 78 AS INTEGER ) AS col0 FROM tab2
----
-2268
-4850
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT 86 * SUM( DISTINCT + col2 ) + 73 FROM tab1
----
19251

skipif mysql # not compatible
query I rowsort label-744
SELECT 86 * SUM ( DISTINCT + col2 ) + 73 FROM tab1
----
19251

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT + COUNT( * ) * SUM( DISTINCT - 91 ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-745
SELECT + COUNT ( * ) * SUM ( DISTINCT - 91 ) FROM tab2
----
-273

query I rowsort
SELECT DISTINCT - col2 + - 70 AS col1 FROM tab1
----
-129
-138
-166

query I rowsort
SELECT ALL - 27 * 10 AS col0 FROM tab2
----
-270
-270
-270

query I rowsort
SELECT DISTINCT + col2 + col2 * - 4 FROM tab2
----
-120
-174
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-749
SELECT + COUNT( * ) + + 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-749
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT CAST( ( - col2 ) AS SIGNED ) * 26 + 42 FROM tab1
----
-1492
-1726
-2454

skipif mysql # not compatible
query I rowsort label-750
SELECT CAST ( ( - col2 ) AS INTEGER ) * 26 + 42 FROM tab1
----
-1492
-1726
-2454

query I rowsort
SELECT ALL col0 + 18 AS col2 FROM tab1
----
103
109
69

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL SUM( DISTINCT + 71 ) * SUM( ALL + col2 - 15 ) AS col0 FROM tab1
----
12638

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL SUM ( DISTINCT + 71 ) * SUM ( ALL + col2 - 15 ) AS col0 FROM tab1
----
12638

query I rowsort
SELECT ALL col2 * 23 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT SUM( DISTINCT 85 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-754
SELECT SUM ( DISTINCT 85 ) AS col0 FROM tab1
----
85

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

query I rowsort
SELECT DISTINCT + 49 * + col1 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT 83 + col1 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL SUM( ALL 89 ) FROM tab1 WHERE NOT col0 * col1 + col1 IS NULL
----
267

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL SUM ( ALL 89 ) FROM tab1 WHERE NOT col0 * col1 + col1 IS NULL
----
267

query I rowsort
SELECT DISTINCT - 72 * col0 FROM tab1
----
-3672
-6120
-6552

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col1 * + col2 IS NOT NULL
----
-51
-67
-77

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

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

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

query I rowsort
SELECT DISTINCT 15 * + 38 FROM tab2
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT DISTINCT CAST( - 61 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-61

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT CAST ( - 61 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT ALL ( - 54 ) DIV - 59 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL ( - 54 ) / - 59 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL MIN( ALL - 79 ) col0 FROM tab1 cor0 CROSS JOIN tab0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-767
SELECT ALL MIN ( ALL - 79 ) col0 FROM tab1 cor0 CROSS JOIN tab0
----
-79

query I rowsort
SELECT DISTINCT col1 * 58 FROM tab1
----
2726
290
812

query I rowsort
SELECT ALL + col2 * 18 AS col0 FROM tab2 AS cor0
----
1044
414
720

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

skipif mysql # not compatible
query I rowsort label-770
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * 32 + - col1 ) BETWEEN ( col1 ) AND ( + col0 + - CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-771
SELECT - COUNT ( * ) * 52 FROM tab1 AS cor0
----
-156

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 > + 95
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 < + col1 * + 48 + 58 * - col2
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 74 * + col1 NOT BETWEEN ( - 47 ) AND - 24
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 23 * + 96 FROM tab0 cor0
----
2208
2208
2208

query I rowsort
SELECT ALL 38 FROM tab1 AS cor0 WHERE + 54 * - col1 < + 89
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - 76 * SUM( ALL col0 ) FROM tab1
----
-17252

skipif mysql # not compatible
query I rowsort label-782
SELECT - 76 * SUM ( ALL col0 ) FROM tab1
----
-17252

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

query I rowsort
SELECT + col0 * + col1 * + col1 AS col0 FROM tab2
----
119646
336675
379456

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

query I rowsort
SELECT ALL - col1 * 67 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND - 62
----

query I rowsort
SELECT DISTINCT + + 86 * - 72 + + col0 * col1 FROM tab0 AS cor0
----
-4365
-4977
-6095

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT COUNT( * ) + - - SUM( DISTINCT - 32 ) AS col2 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-788
SELECT COUNT ( * ) + - - SUM ( DISTINCT - 32 ) AS col2 FROM tab2
----
-29

query I rowsort
SELECT 9 + - col1 AS col0 FROM tab0
----
-12
-72
8

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

query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab2
----
-8
13
5

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

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND 89
----

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

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

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

query I rowsort
SELECT - - 88 * + col1 * + - ( - col2 ) + col2 FROM tab0 AS cor0
----
18490
335063
8811

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 33 BETWEEN col0 AND - 12
----
0

skipif mysql # not compatible
query I rowsort label-797
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 33 BETWEEN col0 AND - 12
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT AVG ( + col1 ) + ( 70 ) FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT AVG ( + col1 ) + ( 70 ) FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL 72 + col1 FROM tab0 AS cor0
----
153
73
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 44 ) + + col0 <= col1 + col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT - COUNT( * ) - SUM( ALL - 71 ) + 70 AS col0 FROM tab1
----
280

skipif mysql # not compatible
query I rowsort label-803
SELECT - COUNT ( * ) - SUM ( ALL - 71 ) + 70 AS col0 FROM tab1
----
280

query I rowsort
SELECT DISTINCT - 82 + + ( - col1 ) AS col1 FROM tab2
----
-133
-149
-159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ( + 85 ) * - ( COUNT( * ) ) + MAX( DISTINCT + col2 ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-807
SELECT ( + 85 ) * - ( COUNT ( * ) ) + MAX ( DISTINCT + col2 ) FROM tab1
----
-159

query I rowsort
SELECT ALL - ( + col0 ) + - + 54 FROM tab0
----
-141
-151
-69

query I rowsort
SELECT 44 + col1 * - - col2 * col2 FROM tab1
----
129068
17449
217372

query I rowsort
SELECT DISTINCT - col0 * 39 + - + col2 FROM tab0
----
-3403
-3882
-632

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

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) <> + 35 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + col0
----
75
67
58

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

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

query I rowsort
SELECT 76 * - col2 AS col0 FROM tab2 AS cor0
----
-1748
-3040
-4408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 BETWEEN ( + col1 ) AND col1 + col0 * 92 )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL >= ( - + 41 ) )
----

query I rowsort
SELECT + 32 * + col0 AS col0 FROM tab2 AS cor0
----
1472
2048
2400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 NOT BETWEEN + col2 AND ( - col0 * - ( - col1 - - 25 ) + + col2 * col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT + ( + col0 ) DIV + + col1 + + 51 AS col2 FROM tab0
----
148
51
55

skipif mysql # not compatible
query I rowsort label-821
SELECT + ( + col0 ) / + + col1 + + 51 AS col2 FROM tab0
----
148
51
55

query I rowsort
SELECT DISTINCT - + col2 * 21 AS col2 FROM tab2 AS cor0 WHERE NOT ( 60 ) NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT DISTINCT - + col1 * + col2 + - + col2 DIV + col1 - 45 * + 77 FROM tab1 AS cor0
----
-3771
-4815
-6662

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - + col1 * + col2 + - + col2 / + col1 - 45 * + 77 FROM tab1 AS cor0
----
-3771
-4815
-6662

query I rowsort
SELECT ALL - col0 * 10 + - 6 FROM tab1 cor0
----
-516
-856
-916

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 + - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 * + 6 FROM tab2 cor0
----
276
384
450

query I rowsort
SELECT DISTINCT col0 * + 82 AS col2 FROM tab2 AS cor0
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT MIN( ALL col0 ) * 32 FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-830
SELECT MIN ( ALL col0 ) * 32 FROM tab1
----
1632

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

query I rowsort
SELECT DISTINCT col2 * 30 FROM tab1
----
1770
2040
2880

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - ( 56 ) FROM tab0 AS cor0
----
-137
-57
-77

query II rowsort
SELECT ALL + 70 + - 52 AS col2, 1 AS col0 FROM tab1
----
18
1
18
1
18
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT + col2 + + - 51 * col1 + - col2 + + 27 * CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-1944
-24
-504

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + col2 + + - 51 * col1 + - col2 + + 27 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-1944
-24
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - ( - col1 ) / - col1 col1 FROM tab0 AS cor0 WHERE col2 <= + - col1
----

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

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

query II rowsort
SELECT ALL + col1 - + col2 AS col2, col0 FROM tab1 AS cor0
----
-21
91
-54
85
-82
51

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

query I rowsort
SELECT + 59 + - 53 FROM tab2 cor0
----
6
6
6

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

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

query I rowsort
SELECT - - ( - + col0 ) + - - 26 FROM tab1 AS cor0
----
-25
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col2 <> - + col2 + - 47
----
-3

skipif mysql # not compatible
query I rowsort label-846
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col2 <> - + col2 + - 47
----
-3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-848
SELECT AVG ( + ( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 87 * - col2 / + - col1 * + 98 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT AVG ( + ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 87 * - col2 / + - col1 * + 98 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + - COUNT( * ) * 48 + - 88 FROM tab1 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-849
SELECT + - COUNT ( * ) * 48 + - 88 FROM tab1 AS cor0
----
-232

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

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

query II rowsort
SELECT ALL 55, + col0 FROM tab0
----
55
15
55
87
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT COUNT( * ) + - - 48 * - + COUNT( * ) AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT COUNT ( * ) + - - 48 * - + COUNT ( * ) AS col1 FROM tab2
----
-141

query I rowsort
SELECT DISTINCT - col2 + - - 56 FROM tab2
----
-2
16
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-854
SELECT 65, col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-854
SELECT 65, col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL - 14 * COUNT( * ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - 14 * COUNT ( * ) FROM tab1
----
-42

query I rowsort
SELECT DISTINCT 44 * + col1 FROM tab0
----
3564
44
924

query I rowsort
SELECT - + col1 - + col2 - + col1 * - + col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + + MAX( DISTINCT 0 ) col0 FROM tab0 WHERE NOT NULL > - 61
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-858
SELECT + + MAX ( DISTINCT 0 ) col0 FROM tab0 WHERE NOT NULL > - 61
----
NULL

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

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

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

query I rowsort
SELECT - col1 * - 12 FROM tab1 cor0
----
168
564
60

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

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

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

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51

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

skipif mysql # not compatible
query I rowsort label-865
SELECT + MIN ( + 89 ) FROM tab2 AS cor0
----
89

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

query II rowsort
SELECT - col1 * + 44, - 77 + col1 AS col0 FROM tab0 AS cor0
----
-3564
4
-44
-76
-924
-56

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col1 = - col0
----

query I rowsort
SELECT DISTINCT 10 + + 71 * + 51 AS col1 FROM tab2
----
3631

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT DISTINCT 77 + + + SUM( ALL col0 ) AS col0 FROM tab1
----
304

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT 77 + + + SUM ( ALL col0 ) AS col0 FROM tab1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT 87 * COUNT( * ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-873
SELECT 87 * COUNT ( * ) AS col2 FROM tab1
----
261

query I rowsort
SELECT DISTINCT + + 96 AS col2 FROM tab1 WHERE + + col2 / - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - MAX( DISTINCT 65 ) AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-875
SELECT - MAX ( DISTINCT 65 ) AS col1 FROM tab1
----
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col1 ) * 28 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + col0 + - col1 + + - 19 FROM tab2
----
-11
-24
-32

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

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

query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

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

query I rowsort
SELECT ALL - col2 - + 23 FROM tab0
----
-122
-33
-70

query I rowsort
SELECT col1 * - - col1 * + - col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT + ( - col2 ) + + + 2 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT 88 * COUNT( * ) AS col0 FROM tab0 cor0 WHERE + 52 + - - col2 + col1 - - + 12 NOT IN ( - 17 * + col0 + 19 )
----
264

skipif mysql # not compatible
query I rowsort label-886
SELECT 88 * COUNT ( * ) AS col0 FROM tab0 cor0 WHERE + 52 + - - col2 + col1 - - + 12 NOT IN ( - 17 * + col0 + 19 )
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 88 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-887
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 88 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL 42 - - + col0 DIV + col1 AS col0 FROM tab1 cor0
----
43
45
59

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 42 - - + col0 / + col1 AS col0 FROM tab1 cor0
----
43
45
59

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT - + 93 DIV - 44 - - + col2 FROM tab0 AS cor0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - + 93 / - 44 - - + col2 FROM tab0 AS cor0
----
101
12
49

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

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

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

query I rowsort
SELECT DISTINCT col2 * - + 39 FROM tab2
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-894
SELECT COUNT( * ) DIV + + 97 AS col0, 28 FROM tab0
----
0
28

skipif mysql # not compatible
query II rowsort label-894
SELECT COUNT ( * ) / + + 97 AS col0, 28 FROM tab0
----
0
28

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NULL NOT IN ( + col1 * ( + + col2 ), col0 ) )
----

query II rowsort
SELECT ( 62 ), col0 AS col1 FROM tab1 WHERE NOT 25 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * - col2 AS col1, 22 FROM tab0 AS cor0
----
-100
22
-2209
22
-9801
22

query I rowsort
SELECT - col1 * + + col1 + 93 AS col2 FROM tab2 AS cor0
----
-2508
-4396
-5836

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - - col0 col2 FROM tab2
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
-9

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

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

query II rowsort
SELECT + col1, ( + 41 ) FROM tab2 cor0
----
51
41
67
41
77
41

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-906
SELECT ALL - CAST( NULL AS SIGNED ), ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-906
SELECT ALL - CAST ( NULL AS INTEGER ), ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 * + 2 NOT BETWEEN ( col1 ) AND col2 * + col1 - + col0 - + col0 * + 2 / + col2 + 73
----

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

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

query I rowsort
SELECT DISTINCT - - 58 + + + 51 + - - col0 FROM tab1 AS cor0
----
160
194
200

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

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

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

query I rowsort
SELECT 76 + + 88 + - - col1 * + + col1 FROM tab2
----
2765
4653
6093

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col0 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col1 + + 65 FROM tab1
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT - COUNT( * ) + + - 68 AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT - COUNT ( * ) + + - 68 AS col1 FROM tab2
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-919
SELECT 35 + col2 AS col2, - col0 DIV col0 AS col2 FROM tab0
----
134
-1
45
-1
82
-1

skipif mysql # not compatible
query II rowsort label-919
SELECT 35 + col2 AS col2, - col0 / col0 AS col2 FROM tab0
----
134
-1
45
-1
82
-1

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

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

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - ( + - COUNT ( ALL + - 12 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-922
SELECT + col0 DIV + - col2 AS col0, + ( + col0 ) * - - col0 FROM tab0 AS cor0
----
-8
7569
0
225
0
9409

skipif mysql # not compatible
query II rowsort label-922
SELECT + col0 / + - col2 AS col0, + ( + col0 ) * - - col0 FROM tab0 AS cor0
----
-8
7569
0
225
0
9409

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) NOT IN ( + col1, + 47, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT 51 + - ( - - MAX( 69 ) ) col1 FROM tab0 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-925
SELECT 51 + - ( - - MAX ( 69 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT - 39 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT - + 96 + col2 AS col1 FROM tab1 AS cor0
----
-28
-37
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-932
SELECT + + col0 AS col2, - 2 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
49
64
75
75
65

skipif mysql # not compatible
query II rowsort label-932
SELECT + + col0 AS col2, - 2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
49
64
75
75
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col0 + + 51 <= + col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT 12 * MIN( - col0 ) AS col0 FROM tab2
----
-900

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT 12 * MIN ( - col0 ) AS col0 FROM tab2
----
-900

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 col2, col0 * + - col2 FROM tab2
----
74
-1058
74
-2560
74
-4350

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

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

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

query II rowsort
SELECT + - col2 AS col1, + 92 * - 69 AS col1 FROM tab0 cor0
----
-10
-6348
-47
-6348
-99
-6348

query II rowsort
SELECT DISTINCT + 10 AS col1, col1 + + col1 AS col2 FROM tab0 AS cor0
----
10
162
10
2
10
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT + MIN( - ( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT + MIN ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 + col1 col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-20
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL 85 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 85 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 39 + + 5 / - ( + col1 ) NOT IN ( + col0, - col0 / + 11 - - col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + + col2 * ( - 5 ) AS col2 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL <> 76 - - 39
----

skipif mysql # not compatible
query I rowsort label-947
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL <> 76 - - 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT 83 * - 87 * SUM( col1 ) AS col2 FROM tab0 AS cor0
----
-743763

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT 83 * - 87 * SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
-743763

query II rowsort
SELECT - 70 AS col0, col2 AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-70
59
-70
68
-70
96

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 >= NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN col1 AND col2 * + col1 * - - col2 + - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 69 + col2 AS col2 FROM tab1
----
128
137
165

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

query I rowsort
SELECT - col1 - - - 75 * col1 * + + col2 * col1 FROM tab1
----
-110630
-11265947
-1411214

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - col1 - - ( ( 27 ) ) * col0 * - + col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT + ( - 68 ) + + COUNT( * ) AS col2, ( + 54 ) AS col1 FROM tab1 AS cor0
----
-65
54

skipif mysql # not compatible
query II rowsort label-959
SELECT + ( - 68 ) + + COUNT ( * ) AS col2, ( + 54 ) AS col1 FROM tab1 AS cor0
----
-65
54

query I rowsort
SELECT ALL 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL - SUM( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - SUM ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----
NULL

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

query II rowsort
SELECT DISTINCT - col0, 36 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
36
-85
36
-91
36

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col0 ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col0 ) + col1
----
0

query II rowsort
SELECT col2 AS col0, col2 * - 76 FROM tab2
----
23
-1748
40
-3040
58
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT MAX( ALL - 50 ) * + - COUNT( * ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-966
SELECT MAX ( ALL - 50 ) * + - COUNT ( * ) FROM tab0
----
150

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

query I rowsort
SELECT + ( - 17 ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT 49 * + - col1 * col2 FROM tab0
----
-10290
-186543
-4851

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 29 / col1 <> - 55
----

query II rowsort
SELECT DISTINCT + 14, + col2 + + 67 AS col1 FROM tab0 AS cor0
----
14
114
14
166
14
77

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT MIN( - ( + - col2 ) ) + + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-972
SELECT DISTINCT MIN ( - ( + - col2 ) ) + + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13

query I rowsort
SELECT DISTINCT - col2 * + - 86 AS col0 FROM tab0 AS cor0
----
4042
8514
860

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

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

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

query I rowsort
SELECT DISTINCT - 17 * col1 FROM tab0 AS cor0
----
-1377
-17
-357

query II rowsort
SELECT col2 AS col0, - 67 + col1 - + - col0 FROM tab1
----
59
23
68
71
96
-2

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
8

query I rowsort
SELECT ALL - 44 - 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eb6bf5ade8a35ce86adf876ecc9d584e

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT ALL - - 88, - 18 * - - COUNT( + 60 ) AS col2 FROM tab1 AS cor0
----
88
-54

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - - 88, - 18 * - - COUNT ( + 60 ) AS col2 FROM tab1 AS cor0
----
88
-54

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 col2, - 35 AS col1 FROM tab1 cor0
----
21
-35
54
-35
82
-35

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

query I rowsort
SELECT - col2 + - 51 * + 12 AS col1 FROM tab0 AS cor0
----
-622
-659
-711

query I rowsort
SELECT DISTINCT 76 * - - col0 + + col2 + 97 FROM tab0
----
1284
6719
7568

query I rowsort
SELECT - col2 + + - col2 AS col2 FROM tab2
----
-116
-46
-80

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

query I rowsort
SELECT DISTINCT 86 - - + col0 AS col2 FROM tab2
----
132
150
161

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + COUNT( * ) - + - ( - MAX( + + 14 ) ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) - + - ( - MAX ( + + 14 ) ) FROM tab1 AS cor0
----
-11

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

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

query II rowsort
SELECT + - 48 - + - col0, 57 AS col0 FROM tab1 AS cor0
----
3
57
37
57
43
57

query I rowsort
SELECT - + col2 - + 11 FROM tab1 AS cor0
----
-107
-70
-79

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

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1
----
-45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + ( col1 ) ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + - 40 > ( + col0 - - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 30 AS col1, 19 AS col2 FROM tab1 AS cor0
----
30
19
30
19
30
19

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

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

query I rowsort
SELECT DISTINCT 73 * - col0 * col1 FROM tab2
----
-171258
-359744
-366825

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - 43 > col0
----
-3

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - 43 > col0
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT - ( + - col2 ) DIV + 50 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT - ( + - col2 ) / + 50 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - MIN( DISTINCT col0 ) + - 83 FROM tab1 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-1005
SELECT - MIN ( DISTINCT col0 ) + - 83 FROM tab1 AS cor0
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT - col1 DIV col1 * - 41 AS col1 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-1006
SELECT - col1 / col1 * - 41 AS col1 FROM tab1 AS cor0
----
41
41
41

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

query I rowsort
SELECT ALL + col0 * - + ( - - ( 51 ) ) - - col2 FROM tab1 AS cor0
----
-2505
-4276
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - SUM( col2 ) * - 92 AS col1 FROM tab1 AS cor0
----
20516

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - SUM ( col2 ) * - 92 AS col1 FROM tab1 AS cor0
----
20516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 * - col2 col1 FROM tab0 AS cor0
----
-3149
-6633
-670

query I rowsort
SELECT DISTINCT 9 FROM tab1 cor0 WHERE NOT NULL < 89 + - 29 + 30 * + col1 + - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT - + col2 DIV - col1 - + - 43 AS col2 FROM tab2 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-1012
SELECT - + col2 / - col1 - + - 43 AS col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT col2 * col1 * - + 74 + + + 89 - + - col0 AS col2 FROM tab0 cor0
----
-15364
-281614
-7140

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT ALL + ( + - col2 ) DIV col0 * - 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + ( + - col2 ) / col0 * - 96 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - 49 - SUM( ALL + col2 ) FROM tab0
----
-205

skipif mysql # not compatible
query I rowsort label-1017
SELECT - 49 - SUM ( ALL + col2 ) FROM tab0
----
-205

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1018
SELECT CAST( NULL AS DECIMAL ) + + - MIN( - - ( col2 ) ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT CAST ( NULL AS REAL ) + + - MIN ( - - ( col2 ) ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT - 11 + ( col1 ) / - - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 11 + ( col1 ) / - - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT - 28 * - col2 + - ( CAST( + - 14 AS SIGNED ) ) AS col2 FROM tab2
----
1134
1638
658

skipif mysql # not compatible
query I rowsort label-1020
SELECT - 28 * - col2 + - ( CAST ( + - 14 AS INTEGER ) ) AS col2 FROM tab2
----
1134
1638
658

query I rowsort
SELECT - 87 * col2 * col1 + + 65 * + + col0 + - col2 AS col2 FROM tab0
----
-12625
-2407
-330281

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT MIN( - col2 ) + - 20 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-1022
SELECT MIN ( - col2 ) + - 20 FROM tab1
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT DISTINCT + 21 DIV col0 + + + col0 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + 21 / col0 + + + col0 FROM tab0 AS cor0
----
16
87
97

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

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

query II rowsort
SELECT + + col1 * + col2, + col0 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1027
SELECT DISTINCT COUNT( - + 90 ) * - 81, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-243
-3

skipif mysql # not compatible
query II rowsort label-1027
SELECT DISTINCT COUNT ( - + 90 ) * - 81, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-243
-3

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

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

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

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

query I rowsort
SELECT + 22 * + - 27 AS col1 FROM tab2
----
-594
-594
-594

query II rowsort
SELECT + col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT 70 + + 94 + - + col1 AS col1, col1 FROM tab1
----
117
47
150
14
159
5

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

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 + 63 FROM tab0
----
15
144
87
84
97
64

query I rowsort
SELECT col2 * - + 56 AS col2 FROM tab0 cor0
----
-2632
-5544
-560

query I rowsort
SELECT DISTINCT + 21 * col0 FROM tab1 cor0
----
1071
1785
1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 col2, + 92 AS col2 FROM tab0 AS cor0
----
48
92

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

skipif mysql # not compatible
query II rowsort label-1038
SELECT - + col1 AS col2, CAST ( + - ( - + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

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

skipif mysql # not compatible
query II rowsort label-1039
SELECT ALL COUNT ( * ), 29 AS col1 FROM tab2 AS cor0
----
3
29

query I rowsort
SELECT ALL + - col1 * + col2 + - - col0 + - + col2 * + + col2 * + 74 FROM tab1 AS cor0
----
-257804
-345281
-683277

query I rowsort
SELECT ALL 67 * + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e6e8141e30ce2b02973f585ff7141e9a

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 + col2 < - - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - col1 - - col0 * - 9 * + - 58 AS col2 FROM tab1
----
26704
44424
47523

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT - 50 + - ( - + SUM( - 11 ) ) - + + 97 + + 39 + - MIN( ALL 77 ) AS col2 FROM tab1 AS cor0
----
-218

skipif mysql # not compatible
query I rowsort label-1044
SELECT - 50 + - ( - + SUM ( - 11 ) ) - + + 97 + + 39 + - MIN ( ALL 77 ) AS col2 FROM tab1 AS cor0
----
-218

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

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

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

query I rowsort
SELECT - 9 + + - 68 AS col1 FROM tab1 cor0
----
-77
-77
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT - CAST( NULL AS SIGNED ) / - 59 + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT - CAST ( NULL AS INTEGER ) / - 59 + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT + col0 DIV col2 * - + 32 * - + col1 FROM tab0 AS cor0
----
0
0
5376

skipif mysql # not compatible
query I rowsort label-1051
SELECT + col0 / col2 * - + 32 * - + col1 FROM tab0 AS cor0
----
0
0
5376

query I rowsort
SELECT 99 * 70 FROM tab2
----
6930
6930
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT - CAST( - - 40 AS SIGNED ) col0 FROM tab2
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1053
SELECT DISTINCT - CAST ( - - 40 AS INTEGER ) col0 FROM tab2
----
-40

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

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

query I rowsort
SELECT ALL + - 64 AS col1 FROM tab2 AS cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + col0 IS NOT NULL OR NOT - 59 < - col2
----
97
1
99

query I rowsort
SELECT ALL col2 * + 58 AS col0 FROM tab2
----
1334
2320
3364

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

query I rowsort
SELECT DISTINCT - 54 FROM tab0 WHERE + col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL - 2 * + col2 * - + col2 FROM tab0 AS cor0
----
19602
200
4418

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

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

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

skipif mysql # not compatible
query II rowsort label-1063
SELECT ALL - 3 AS col2, ( - 47 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
-50

query I rowsort
SELECT - + ( + 36 ) * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1517
-2155
-879

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - ( - - COUNT( * ) ) * - COUNT( ALL ( col2 ) ) - - SUM( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT NULL = + 91 * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT - ( - - COUNT ( * ) ) * - COUNT ( ALL ( col2 ) ) - - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT NULL = + 91 * + - 31
----
NULL

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

query I rowsort
SELECT ALL 11 + - ( + + col2 ) FROM tab0
----
-36
-88
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT col1 DIV ( 65 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1074
SELECT col1 / ( 65 ) AS col1 FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT DISTINCT ( - col2 ) + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

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

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

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

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

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

query I rowsort
SELECT - col2 + + - 19 * col0 AS col0 FROM tab0
----
-1663
-1942
-332

onlyif mysql # DIV for integer division: 
query II rowsort label-1082
SELECT DISTINCT + + 99 AS col2, + 70 + col1 DIV - 88 * col1 * col1 + col2 FROM tab1 AS cor0
----
99
129
99
138
99
166

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT + + 99 AS col2, + 70 + col1 / - 88 * col1 * col1 + col2 FROM tab1 AS cor0
----
99
129
99
138
99
166

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 >= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 88 + + - COUNT( * ) + 13 FROM tab2
----
-254

skipif mysql # not compatible
query I rowsort label-1085
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 88 + + - COUNT ( * ) + 13 FROM tab2
----
-254

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT + SUM( col0 ), COUNT( * ) AS col0 FROM tab2
----
185
3

skipif mysql # not compatible
query II rowsort label-1086
SELECT + SUM ( col0 ), COUNT ( * ) AS col0 FROM tab2
----
185
3

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

query I rowsort
SELECT DISTINCT - 98 * + ( - col2 ) FROM tab1
----
5782
6664
9408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT COUNT( * ) * + CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( * ) * + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab2
----
9

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

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

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 50 * - 50 AS col1 FROM tab0 AS cor0
----
-2401
-2453
-2490

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT ALL - 62 FROM tab2 AS cor0 WHERE NULL <= col2
----

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

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( * ) + - 74 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT + ( + col1 ) DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1097
SELECT + ( + col1 ) / - col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT MAX( - + 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND col1 * - col0 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT MAX ( - + 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND col1 * - col0 + + 4
----
NULL

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 <> - + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT + 87 + + + 97 - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT + 87 + + + 97 - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
187

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL + 98 + + COUNT( - + col0 ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 98 + + COUNT ( - + col0 ) FROM tab1
----
101

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

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

query I rowsort
SELECT ALL + col2 - + - ( + col1 ) FROM tab2
----
117
125
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT DISTINCT - ( - - col0 ) - col1 DIV + col1 + col0 * - col2 * 31 FROM tab1
----
-151828
-155551
-191920

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - ( - - col0 ) - col1 / + col1 + col0 * - col2 * 31 FROM tab1
----
-151828
-155551
-191920

query II rowsort
SELECT + 6 AS col2, 77 AS col2 FROM tab2
----
6
77
6
77
6
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT CAST( - - 57 AS SIGNED ) * 69 AS col2 FROM tab0 AS cor0
----
3933

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT CAST ( - - 57 AS INTEGER ) * 69 AS col2 FROM tab0 AS cor0
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL - 96 * - MAX( DISTINCT 65 ) + COUNT( * ) * - + 95 FROM tab2 AS cor0
----
5955

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - 96 * - MAX ( DISTINCT 65 ) + COUNT ( * ) * - + 95 FROM tab2 AS cor0
----
5955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT - CAST( - - 33 AS SIGNED ) FROM tab0 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-1117
SELECT - CAST ( - - 33 AS INTEGER ) FROM tab0 AS cor0
----
-33
-33
-33

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

query II rowsort
SELECT - + 93 AS col1, - 81 FROM tab1 AS cor0
----
-93
-81
-93
-81
-93
-81

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

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

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

query I rowsort
SELECT + - col1 * - - 26 FROM tab1 cor0
----
-1222
-130
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT - ( + - col0 ) DIV col0 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - ( - - MAX( - col1 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1124
SELECT - ( - - MAX ( - col1 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-153

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + + 45 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1131
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 1 >= col2
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 1 >= col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT + ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1134
SELECT + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query II rowsort
SELECT col1, + col0 * + - ( + - ( + col0 ) ) AS col1 FROM tab2
----
51
2116
67
5625
77
4096

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1138
SELECT + CAST ( NULL AS INTEGER ) * + ( - - 31 ) col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1141
SELECT DISTINCT - col2 * col1 + CAST( NULL AS SIGNED ), - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1141
SELECT DISTINCT - col2 * col1 + CAST ( NULL AS INTEGER ), - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

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

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

query II rowsort
SELECT - col0 + + - 57, 30 AS col0 FROM tab1
----
-108
30
-142
30
-148
30

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

query I rowsort
SELECT 23 + - + col0 FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT 58 + - - 28 AS col2 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 42 / MAX( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 96 IN ( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 42 / MAX ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 96 IN ( + 66 )
----
NULL

query I rowsort
SELECT ALL col2 + ( - - 2 ) AS col2 FROM tab2 cor0
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + MIN( DISTINCT + col1 ) * SUM( col0 ) col0 FROM tab2 AS cor0
----
9435

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT + MIN ( DISTINCT + col1 ) * SUM ( col0 ) col0 FROM tab2 AS cor0
----
9435

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

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

query I rowsort
SELECT ALL col1 + ( + - 55 ) AS col1 FROM tab0 AS cor0
----
-34
-54
26

query I rowsort
SELECT DISTINCT + 57 - - + 10 FROM tab2
----
67

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

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

query I rowsort
SELECT DISTINCT 67 - - col1 FROM tab1
----
114
72
81

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

query I rowsort
SELECT ALL - col2 - - col2 * - - 96 + + col2 + + 33 * - 72 FROM tab0
----
-1416
2136
7128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col1 col2 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT MAX( + + 89 ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1160
SELECT MAX ( + + 89 ) AS col1 FROM tab1
----
89

query I rowsort
SELECT ALL - 36 * + - 39 * - 33 * + col1 FROM tab2
----
-2362932
-3104244
-3567564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL - col2 * 22 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - col2 * 22 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 74 AS col2, col0 * - ( 44 ) FROM tab0
----
74
-3828
74
-4268
74
-660

query I rowsort
SELECT ALL - 19 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL - 51 * - 52 * + + col1 FROM tab1
----
124644
13260
37128

query I rowsort
SELECT DISTINCT + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
12

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 41 * - col2 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT + 71 * 2 * - 42 FROM tab1 AS cor0
----
-5964
-5964
-5964

query I rowsort
SELECT - col0 * + ( - + 56 ) FROM tab1
----
2856
4760
5096

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ( - col0 ) DIV + 90 + + + 84 AS col2 FROM tab0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-1178
SELECT ( - col0 ) / + 90 + + + 84 AS col2 FROM tab0
----
83
84
84

query I rowsort
SELECT ALL col0 * + col2 * - + col0 AS col0 FROM tab0
----
-10575
-75690
-931491

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

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

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

query I rowsort
SELECT - col1 + - - 92 FROM tab2
----
15
25
41

query I rowsort
SELECT + + col2 + - col2 * ( - - 56 ) AS col0 FROM tab0 AS cor0
----
-2585
-5445
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT - col2 DIV + col1 + + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1184
SELECT - col2 / + col1 + + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query IIIIII rowsort
SELECT ALL * 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 - col2 - col0 col0 FROM tab1 cor0
----
-144
-147
-159

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

query II rowsort
SELECT + col2 - + col0 * col0 AS col2, col1 AS col2 FROM tab0 cor0
----
-178
81
-7559
21
-9310
1

query I rowsort
SELECT ALL + + col2 * + + 39 AS col1 FROM tab0 AS cor0
----
1833
3861
390

query I rowsort
SELECT DISTINCT 55 + + + ( col0 ) * col0 FROM tab2 AS cor0
----
2171
4151
5680

query I rowsort
SELECT - col2 * - + col1 * col2 - - - 99 - + col2 * + 42 AS col0 FROM tab0 AS cor0
----
1581
176856
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT - - 31 * col0 DIV - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-16
-468
8

skipif mysql # not compatible
query I rowsort label-1193
SELECT - - 31 * col0 / - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-16
-468
8

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

query I rowsort
SELECT + 36 + + col1 AS col1 FROM tab1 cor0
----
41
50
83

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

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

query I rowsort
SELECT DISTINCT - - col1 + + 22 FROM tab1 AS cor0
----
27
36
69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE 90 - 73 + 87 IN ( + - col2 + + + CAST( NULL AS SIGNED ) * + ( + col0 ) * + - ( - + 74 ) + + col0 * - 11 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE 90 - 73 + 87 IN ( + - col2 + + + CAST ( NULL AS INTEGER ) * + ( + col0 ) * + - ( - + 74 ) + + col0 * - 11 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 20 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 >= - col1 * col1
----
51
14
96
91
47
68

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

query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 52 FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT MIN( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0
----
-1312

skipif mysql # not compatible
query I rowsort label-1206
SELECT MIN ( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1207
SELECT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1207
SELECT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT MAX( - col0 ) * + COUNT( * ) - 83 AS col1 FROM tab1
----
-236

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT MAX ( - col0 ) * + COUNT ( * ) - 83 AS col1 FROM tab1
----
-236

query I rowsort
SELECT 6 FROM tab0 WHERE NOT NULL > + col2 * + - ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1210
SELECT 38 * - col1 * + col1, CAST( - col1 AS SIGNED ) * - - col0 + - col0 AS col2 FROM tab0
----
-16758
-1914
-249318
-1230
-38
-194

skipif mysql # not compatible
query II rowsort label-1210
SELECT 38 * - col1 * + col1, CAST ( - col1 AS INTEGER ) * - - col0 + - col0 AS col2 FROM tab0
----
-16758
-1914
-249318
-1230
-38
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE NOT NULL BETWEEN 44 AND col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - - col2 ) > - col2 * + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT - 43 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1214
SELECT - 43 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-129

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

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

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

query I rowsort
SELECT ALL - col0 * + + ( col0 ) * 35 * - col1 + col1 + + + col0 FROM tab1 AS cor0
----
1264465
1274555
13622383

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1219
SELECT - + 16 / - col0 - - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - + 16 / - col0 - - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT ALL col1 DIV col0 + + col0 AS col2 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL col1 / col0 + + col0 AS col2 FROM tab0
----
20
87
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT DISTINCT + 70 + - col0 DIV - - col1 + col1 - + col0 FROM tab2
----
61
75
83

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + 70 + - col0 / - - col1 + col1 - + col0 FROM tab2
----
61
75
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 29, - col0 col2 FROM tab1
----
29
-51
29
-85
29
-91

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, 98 AS col2 FROM tab0
----
15
98
87
98
97
98

query II rowsort
SELECT - 74, 54 AS col0 FROM tab2
----
-74
54
-74
54
-74
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT - 2 DIV + 51 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 2 / + 51 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT + 50 * + - MAX( + - col0 ) AS col0 FROM tab1
----
2550

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 50 * + - MAX ( + - col0 ) AS col0 FROM tab1
----
2550

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

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

query I rowsort
SELECT ALL + + col2 * + 30 + - col2 FROM tab2 AS cor0
----
1160
1682
667

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1234
SELECT ALL * FROM tab0 WHERE ( NOT 85 NOT IN ( + ( + col2 ) + ( 15 ), - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1234
SELECT ALL * FROM tab0 WHERE ( NOT 85 NOT IN ( + ( + col2 ) + ( 15 ), - CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT 70 + + 24 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL + 31 - + 26 + + MIN( DISTINCT + col0 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + 31 - + 26 + + MIN ( DISTINCT + col0 ) FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT DISTINCT - col2 - + + col0 DIV + - col2 FROM tab0 AS cor0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT - col2 - + + col0 / + - col2 FROM tab0 AS cor0
----
-2
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT DISTINCT COUNT( * ) * ( + - COUNT( * ) ) + - MIN( + + 27 ), - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - ( + col1 ) * - col2 + + col0 + + 76 / - 66
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1239
SELECT DISTINCT COUNT ( * ) * ( + - COUNT ( * ) ) + - MIN ( + + 27 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - ( + col1 ) * - col2 + + col0 + + 76 / - 66
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + + 14 col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1240
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + + 14 col1 FROM tab0 AS cor0
----
11

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * 76 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 49 col0 FROM tab2 AS cor0 WHERE + 12 - - 80 IS NULL
----

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

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

query II rowsort
SELECT 58 AS col1, 46 FROM tab0
----
58
46
58
46
58
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1246
SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST( NULL AS SIGNED ) * - 59 col1 FROM tab0
----
100
NULL
2209
NULL
9801
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1246
SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST ( NULL AS INTEGER ) * - 59 col1 FROM tab0
----
100
NULL
2209
NULL
9801
NULL

query I rowsort
SELECT DISTINCT 22 * + + col2 FROM tab0
----
1034
2178
220

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT + COUNT( DISTINCT + col0 ) + + 17 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) + + 17 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
20

query I rowsort
SELECT DISTINCT - ( - 84 ) FROM tab2
----
84

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT + 31 * MIN( col1 ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + 31 * MIN ( col1 ) AS col2 FROM tab0
----
31

query II rowsort
SELECT col1 * + col1 AS col2, 83 FROM tab2
----
2601
83
4489
83
5929
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1256
SELECT ALL + col1 DIV + col1 AS col1, - 35 AS col2 FROM tab2
----
1
-35
1
-35
1
-35

skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL + col1 / + col1 AS col1, - 35 AS col2 FROM tab2
----
1
-35
1
-35
1
-35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT ALL col0 + + - 98 FROM tab1 AS cor0 WHERE - col2 + + - col1 NOT BETWEEN CAST( + 0 AS SIGNED ) AND col2
----
-13
-47
-7

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL col0 + + - 98 FROM tab1 AS cor0 WHERE - col2 + + - col1 NOT BETWEEN CAST ( + 0 AS INTEGER ) AND col2
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL + COUNT( * ) + - SUM( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + COUNT ( * ) + - SUM ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
230

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

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

query I rowsort
SELECT DISTINCT + 16 + col1 AS col2 FROM tab0 AS cor0
----
17
37
97

query I rowsort
SELECT DISTINCT + 52 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL 29 + 39 FROM tab2 cor0
----
68
68
68

query II rowsort
SELECT DISTINCT + 87 + - col0, col0 + - col0 AS col1 FROM tab2 AS cor0
----
12
0
23
0
41
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - + + 20 >= - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT COUNT( * ) * + 0 col2 FROM tab0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 col2, - col2 * + col1 FROM tab1
----
38
-1344
38
-295
38
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL - MIN( + - 48 ) + 61 FROM tab1
----
109

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - MIN ( + - 48 ) + 61 FROM tab1
----
109

query I rowsort
SELECT ALL ( + - col2 ) + + 29 AS col0 FROM tab2
----
-11
-29
6

query II rowsort
SELECT ALL 87, 97 * + col1 AS col2 FROM tab1
----
87
1358
87
4559
87
485

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 15 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 15 AS col0 FROM tab1
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT + 65 DIV COUNT( * ) + + COUNT( * ) FROM tab1
----
24

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

query II rowsort
SELECT DISTINCT - col2, + 33 AS col0 FROM tab1
----
-59
33
-68
33
-96
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT + 17 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 17 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
3

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

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT COUNT ( ALL - - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - ( - col1 ) + - col1 >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT ALL + MIN( - CAST( - 20 AS SIGNED ) ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + MIN ( - CAST ( - 20 AS INTEGER ) ) AS col1 FROM tab0
----
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT ALL - MAX( + + 20 ) AS col0, - COUNT( * ) FROM tab0
----
-20
-3

skipif mysql # not compatible
query II rowsort label-1289
SELECT ALL - MAX ( + + 20 ) AS col0, - COUNT ( * ) FROM tab0
----
-20
-3

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

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

query I rowsort
SELECT ALL col1 * - + 3 FROM tab2
----
-153
-201
-231

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

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

query I rowsort
SELECT + AVG ( + - col2 ) * + - 53 AS col0 FROM tab1 WHERE + col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - MIN( ALL - + 43 ) + - 34 AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1294
SELECT - MIN ( ALL - + 43 ) + - 34 AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + + 38 + + MIN( col0 ) + COUNT( * ) - - 36 AS col1 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-1295
SELECT + + 38 + + MIN ( col0 ) + COUNT ( * ) - - 36 AS col1 FROM tab1 AS cor0
----
128

query I rowsort
SELECT - + 23 + + - col0 FROM tab2 AS cor0
----
-69
-87
-98

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT col2 DIV + col1 + + + col0 + - 91 FROM tab1
----
-34
1
5

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT col2 / + col1 + + + col0 + - 91 FROM tab1
----
-34
1
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 91 - + + 29, - col0 col2 FROM tab2 WHERE NULL IS NULL
----
-120
-46
-120
-64
-120
-75

query I rowsort
SELECT - 4 AS col0 FROM tab2 WHERE NULL IS NULL
----
-4
-4
-4

query I rowsort
SELECT + 69 AS col0 FROM tab2
----
69
69
69

query I rowsort
SELECT 84 * 5 * - - 71 AS col0 FROM tab2
----
29820
29820
29820

query I rowsort
SELECT ALL col0 * - 23 AS col2 FROM tab1
----
-1173
-1955
-2093

query II rowsort
SELECT DISTINCT - ( col1 ) AS col2, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT - 39 * + 43 AS col1 FROM tab0 AS cor0
----
-1677

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE + 8 + + + col2 NOT IN ( + col1, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE + 8 + + + col2 NOT IN ( + col1, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COUNT( * ) * - COUNT( * ) + - 37 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( * ) * - COUNT ( * ) + - 37 FROM tab2
----
-46

query I rowsort
SELECT ALL 23 + col1 * + 20 FROM tab2
----
1043
1363
1563

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT - MAX( ALL + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1313
SELECT - MAX ( ALL + col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
40

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

query I rowsort
SELECT ALL + col1 * + col0 * + col1 FROM tab2 AS cor0
----
119646
336675
379456

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

query I rowsort
SELECT DISTINCT + + 98 * 23 AS col2 FROM tab1 AS cor0
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT - SUM( - 40 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - SUM ( - 40 ) FROM tab0 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT MAX( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT MAX ( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
80

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT ALL - COUNT( * ) AS col0, 18 AS col0 FROM tab0
----
-3
18

skipif mysql # not compatible
query II rowsort label-1323
SELECT ALL - COUNT ( * ) AS col0, 18 AS col0 FROM tab0
----
-3
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT + COUNT( * ) DIV + MIN( + 7 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT + COUNT ( * ) / + MIN ( + 7 ) AS col2 FROM tab0
----
0

query II rowsort
SELECT DISTINCT - 57, col2 * + 65 AS col0 FROM tab2
----
-57
1495
-57
2600
-57
3770

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT - 27 DIV + col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT - 27 / + col1 FROM tab1
----
-1
-5
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT - + 87 DIV col2 + + + col0 AS col0 FROM tab2 AS cor0
----
43
62
74

skipif mysql # not compatible
query I rowsort label-1328
SELECT - + 87 / col2 + + + col0 AS col0 FROM tab2 AS cor0
----
43
62
74

query I rowsort
SELECT ALL - AVG ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL + MIN( DISTINCT + 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + MIN ( DISTINCT + 46 ) FROM tab0
----
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT DISTINCT - + ( MAX( ALL - ( ( - - col0 ) ) ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - + ( MAX ( ALL - ( ( - - col0 ) ) ) ) FROM tab0 cor0
----
15

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

query I rowsort
SELECT ALL + 62 + + 13 AS col1 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT DISTINCT + 32 + - ( - col0 ) DIV 18 col1 FROM tab1 cor0
----
34
36
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1336
SELECT DISTINCT + 32 + - ( - col0 ) / 18 col1 FROM tab1 cor0
----
34
36
37

query I rowsort
SELECT col1 - - ( + col0 ) * + col1 + col1 FROM tab2 AS cor0
----
2448
5082
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT + MAX( DISTINCT - - col0 ) + - 37 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) + - 37 FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT col0 DIV + 15 + + 88 FROM tab1 cor0
----
91
93
94

skipif mysql # not compatible
query I rowsort label-1339
SELECT col0 / + 15 + + 88 FROM tab1 cor0
----
91
93
94

query II rowsort
SELECT ALL - 99 * - + 38 AS col1, col2 + - 61 + - col0 / col0 * - - col1 FROM tab2 WHERE NOT - 84 * + ( - col1 ) + + col2 = NULL
----

query I rowsort
SELECT DISTINCT + col1 - + + col0 FROM tab2
----
-8
13
5

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

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

query I rowsort
SELECT + col1 + - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col0 = - 30
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT MIN( DISTINCT - col1 ) - + CAST( + + 63 AS SIGNED ) * - 94 AS col0 FROM tab2 WHERE NOT + - ( - 63 ) * col1 <= col1
----
5845

skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( DISTINCT - col1 ) - + CAST ( + + 63 AS INTEGER ) * - 94 AS col0 FROM tab2 WHERE NOT + - ( - 63 ) * col1 <= col1
----
5845

query I rowsort
SELECT + 33 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT COUNT( * ) * COUNT( * ) * 28 AS col2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-1349
SELECT COUNT ( * ) * COUNT ( * ) * 28 AS col2 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1350
SELECT ALL + - COUNT( * ) DIV - - MIN( ALL 32 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + - COUNT ( * ) / - - MIN ( ALL 32 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT + COUNT( * ) DIV - SUM( ALL 63 ) + - + 62 - + 16 AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1351
SELECT + COUNT ( * ) / - SUM ( ALL 63 ) + - + 62 - + 16 AS col0 FROM tab1 AS cor0
----
-78

query II rowsort
SELECT ALL + col0, + 91 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1354
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 * - col2 + CAST( + 14 AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1354
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 * - col2 + CAST ( + 14 AS INTEGER ) * + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

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

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

query I rowsort
SELECT DISTINCT col2 * + 82 AS col2 FROM tab1
----
4838
5576
7872

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 = + col0 AND NULL = 1
----

query I rowsort
SELECT ALL - 41 + - - col2 FROM tab0
----
-31
58
6

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

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

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT + col2 DIV - 97 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + col2 / - 97 FROM tab0 AS cor0
----
-1
0

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

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

query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

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

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

query I rowsort
SELECT 84 * - col1 * col0 + - - ( col1 ) AS col0 FROM tab0 cor0
----
-101979
-153447
-8147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - - 44 * COUNT( * ) + + + COUNT( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT - - 44 * COUNT ( * ) + + + COUNT ( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

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

query I rowsort
SELECT ALL + col1 * + - 97 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT DISTINCT - 95 + col1 AS col0 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
-14
-74
-94

query I rowsort
SELECT ALL - col2 + 76 AS col2 FROM tab2 AS cor0
----
18
36
53

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

query I rowsort
SELECT + ( - + 62 ) AS col0 FROM tab1
----
-62
-62
-62

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL COUNT ( * ) * COUNT ( * ) * 41 FROM tab1
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT MIN( 83 ) AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT MIN ( 83 ) AS col1 FROM tab0
----
83

query I rowsort
SELECT DISTINCT - 10 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT - - 37 * + COUNT( * ) FROM tab1 cor0
----
111

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - - 37 * + COUNT ( * ) FROM tab1 cor0
----
111

query I rowsort
SELECT DISTINCT + + col0 * + 35 AS col0 FROM tab0 cor0
----
3045
3395
525

query I rowsort
SELECT + col1 * 41 FROM tab1 AS cor0
----
1927
205
574

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 31 < - col2
----
15
81
47
97
1
99

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

query I rowsort
SELECT - ( + 31 ) * + col1 * - + col0 * 97 AS col1 FROM tab1
----
1277975
12860939
2146998

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN - 81 AND NULL
----

query I rowsort
SELECT ALL - col0 * + 70 AS col0 FROM tab2
----
-3220
-4480
-5250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - col1 col0 FROM tab0
----
-126
-486
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1392
SELECT ALL 88 DIV - COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 88 / - COUNT ( * ) FROM tab1
----
-29

query I rowsort
SELECT DISTINCT col1 * 91 FROM tab2
----
4641
6097
7007

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 29 * - col0 * 25 AND NULL
----

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

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

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

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

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

query I rowsort
SELECT - col0 + + col0 + - - 88 FROM tab0 AS cor0
----
88
88
88

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

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

query I rowsort
SELECT col1 * - ( - 64 ) * - 2 * + 51 AS col0 FROM tab1
----
-306816
-32640
-91392

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 / - 6 NOT BETWEEN + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - 18 FROM tab1 AS cor0
----
1062
1224
1728

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 42 - - COUNT ( * ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT - 46 - col1 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT DISTINCT 13 + + col2 AS col1 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1408
SELECT + + CAST( col0 AS SIGNED ) - + CAST( - ( - + 51 ) AS SIGNED ), col0 + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
34
0
40
0

skipif mysql # not compatible
query II rowsort label-1408
SELECT + + CAST ( col0 AS INTEGER ) - + CAST ( - ( - + 51 ) AS INTEGER ), col0 + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
34
0
40
0

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

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

query I rowsort
SELECT - 98 + col0 FROM tab0 AS cor0
----
-1
-11
-83

query I rowsort
SELECT ALL - - ( col2 ) * 56 + + + 26 FROM tab0 AS cor0
----
2658
5570
586

query I rowsort
SELECT + col1 + 41 FROM tab0 AS cor0
----
122
42
62

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

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

query I rowsort
SELECT - 40 + col0 FROM tab0
----
-25
47
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - MAX( ALL + 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1415
SELECT - MAX ( ALL + 30 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT DISTINCT COUNT( * ), COUNT( * ) - + + 45 AS col2 FROM tab2
----
3
-42

skipif mysql # not compatible
query II rowsort label-1416
SELECT DISTINCT COUNT ( * ), COUNT ( * ) - + + 45 AS col2 FROM tab2
----
3
-42

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT - SUM( ALL 96 ) + - 26 FROM tab1 AS cor0
----
-314

skipif mysql # not compatible
query I rowsort label-1422
SELECT - SUM ( ALL 96 ) + - 26 FROM tab1 AS cor0
----
-314

query I rowsort
SELECT + + 15 + 23 + + col1 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT ALL - - col1 + ( + 44 ) AS col1 FROM tab2 AS cor0
----
111
121
95

query I rowsort
SELECT ALL - 53 * col0 AS col2 FROM tab0
----
-4611
-5141
-795

query II rowsort
SELECT DISTINCT 39 AS col1, col2 FROM tab2
----
39
23
39
40
39
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 col1, col0 + - - col0 AS col2 FROM tab2
----
62
128
62
150
62
92

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

query I rowsort
SELECT + col0 * 22 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 / 98 >= - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT 60 FROM tab0 WHERE + col1 NOT IN ( - col1 )
----
60

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

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

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

query I rowsort
SELECT ALL 85 + + 24 FROM tab2
----
109
109
109

query I rowsort
SELECT + 30 * + col1 AS col0 FROM tab0
----
2430
30
630

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

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

query I rowsort
SELECT + col0 * 7 AS col0 FROM tab0
----
105
609
679

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 29 * + 32 BETWEEN + col1 AND 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - 27 * - COUNT( DISTINCT + col0 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - 27 * - COUNT ( DISTINCT + col0 ) FROM tab2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL - MIN( - col0 ) * - 3 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - MIN ( - col0 ) * - 3 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL + 15 * + MAX( ALL col1 * + 11 ) col0 FROM tab1
----
7755

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1446
SELECT ALL + 15 * + MAX ( ALL col1 * + 11 ) col0 FROM tab1
----
7755

query I rowsort
SELECT ALL ( + col0 ) + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 31 * - ( col1 ) + 64 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT - col1 + - 19 DIV col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1449
SELECT - col1 + - 19 / col0 FROM tab1
----
-14
-47
-5

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL <= ( NULL )
----

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

query I rowsort
SELECT ALL + 24 * col2 FROM tab2 WHERE ( col1 ) <= ( 83 )
----
1392
552
960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 20
----

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

query I rowsort
SELECT 93 * + 24 FROM tab0 AS cor0
----
2232
2232
2232

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 )
----
5
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN 59 - - 39 AND col2
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1 AS cor0 WHERE ( + col2 + - col2 ) IN ( + col1 + + col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - COUNT( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - COUNT ( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab2 WHERE col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1471
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1471
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( col0 ) IN ( 66 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - SUM( ALL - + col0 ) * + ( + COUNT( * ) ) AS col0 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-1473
SELECT - SUM ( ALL - + col0 ) * + ( + COUNT ( * ) ) AS col0 FROM tab0
----
597

query I rowsort
SELECT col1 + + col2 + 45 FROM tab0
----
145
173
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 * col1 + col0 >= NULL
----

query I rowsort
SELECT ( - 62 ) * - 74 + - col0 * - col1 FROM tab2
----
6934
9516
9613

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - SUM( DISTINCT - + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - SUM ( DISTINCT - + col2 ) AS col0 FROM tab2
----
121

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND ( + 45 * + 46 + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + col2 col0 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT ALL - + 7 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - + 7 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + COUNT( * ) + - MAX( ALL - 7 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + COUNT ( * ) + - MAX ( ALL - 7 ) FROM tab2 AS cor0
----
10

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - 10 / col0 AND 88 * - col1 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + 16 - COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + 16 - COUNT ( * ) AS col1 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col0 + - - col1 col0 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT ALL col1 * 79 FROM tab1 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT - col0 - + + 18 FROM tab1
----
-103
-109
-69

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

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

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

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0 WHERE NULL < 57 * - + col0 - col0 * 1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0 + - 25
----

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

query I rowsort
SELECT DISTINCT + col0 * col2 * - + 28 FROM tab1 AS cor0
----
-137088
-140420
-173264

query I rowsort
SELECT - - ( + + col0 ) - + 72 - col2 FROM tab1 AS cor0
----
-117
-46
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1498
SELECT DISTINCT col1 * CAST( + col1 DIV - 17 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT ( col0 + col2 + col2 DIV 87 ) IS NULL
----
-94
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT col1 * CAST ( + col1 / - 17 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT ( col0 + col2 + col2 / 87 ) IS NULL
----
-94
0

query I rowsort
SELECT ALL - - 4 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL col1 DIV 88 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL col1 / 88 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT DISTINCT - + ( col0 ) DIV - - 22 - col2 col0 FROM tab0 AS cor0
----
-103
-13
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1501
SELECT DISTINCT - + ( col0 ) / - - 22 - col2 col0 FROM tab0 AS cor0
----
-103
-13
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 col0, - ( + 75 ) + 96 AS col2 FROM tab2 AS cor0
----
16
21
16
21
16
21

onlyif mysql # DIV for integer division: 
query II rowsort label-1503
SELECT DISTINCT col1 AS col0, - col0 + - + col2 + col2 DIV + 79 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104

skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT col1 AS col0, - col0 + - + col2 + col2 / + 79 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104

query II rowsort
SELECT - col2, col2 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
-59
64
-68
115
-96
110

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT ALL - col1 AS col2 FROM tab1 WHERE col2 NOT IN ( + CAST( - col1 AS SIGNED ) )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - col1 AS col2 FROM tab1 WHERE col2 NOT IN ( + CAST ( - col1 AS INTEGER ) )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT ALL - 59 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - 59 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 75 FROM tab0 WHERE - 87 BETWEEN - col0 / 3 AND col1
----

query I rowsort
SELECT ALL col0 * - 6 AS col0 FROM tab2 WHERE NULL <= ( - 64 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 * - - col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col2 - col1 < + col2 + - ( col1 )
----

query I rowsort
SELECT DISTINCT - - col1 * + - col0 * - col1 * - - 83 FROM tab0 AS cor0
----
3184461
8051
8168445

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

query I rowsort
SELECT ALL col0 + - - 44 + + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( 11 ) IS NULL
----
1148
2668
4469

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL + 94 DIV - col1 AS col0 FROM tab1 AS cor0
----
-18
-2
-6

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL + 94 / - col1 AS col0 FROM tab1 AS cor0
----
-18
-2
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT + + 70 DIV - - COUNT( * ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + + 70 / - - COUNT ( * ) AS col1 FROM tab2 cor0
----
23

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

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

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

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

query I rowsort
SELECT ALL - col2 + - col1 * + 37 FROM tab0 AS cor0
----
-136
-3044
-787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT - CAST( 22 AS SIGNED ) + - 71 + col2 AS col2 FROM tab1 AS cor0
----
-25
-34
3

skipif mysql # not compatible
query I rowsort label-1522
SELECT - CAST ( 22 AS INTEGER ) + - 71 + col2 AS col2 FROM tab1 AS cor0
----
-25
-34
3

query I rowsort
SELECT DISTINCT - + 44 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT 60 * - 69 + CAST( NULL AS SIGNED ) + - COUNT( * ) + - COUNT( * ) / - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT 60 * - 69 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
NULL

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

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

query II rowsort
SELECT col2, 20 / + 12 AS col0 FROM tab1 WHERE - 22 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL 78 + + ( - COUNT( * ) ) DIV + COUNT( * ) + - 52 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL 78 + + ( - COUNT ( * ) ) / + COUNT ( * ) + - 52 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + 71 * - - ( + MIN( + - col1 ) ) FROM tab0
----
-5751

skipif mysql # not compatible
query I rowsort label-1530
SELECT + 71 * - - ( + MIN ( + - col1 ) ) FROM tab0
----
-5751

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + - - col0 + + - 52 FROM tab1 AS cor0
----
59
118
68
130
96
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + col1 col0 FROM tab0
----
118
143
197

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL COUNT ( * ) - + 43 FROM tab0
----
-40

query I rowsort
SELECT + + col1 * col1 + + col0 FROM tab2 AS cor0
----
2647
4564
5993

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

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

query I rowsort
SELECT DISTINCT + col0 * col1 + 18 + - col0 AS col2 FROM tab0 AS cor0
----
1218
1758
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL - ( - SUM( 3 ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - ( - SUM ( 3 ) ) AS col1 FROM tab2 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT - SUM( DISTINCT + + 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - SUM ( DISTINCT + + 4 ) FROM tab2
----
-4

query I rowsort
SELECT + 45 * + 60 FROM tab1
----
2700
2700
2700

query II rowsort
SELECT col0 AS col1, + col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT COUNT( - col1 ) DIV + 73 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( - col1 ) / + 73 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT MAX( - + col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1544
SELECT MAX ( - + col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - ( - 51 ) ) IN ( - + col0 * + - col1 * - 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 IN ( col0 * - col2 * - col0 - - 2 * + - 92 * + 74 ) )
----

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT 57 DIV + 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1550
SELECT 57 / + 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

query I rowsort
SELECT - 42 * - col0 AS col2 FROM tab1 AS cor0
----
2142
3570
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
1

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

query II rowsort
SELECT DISTINCT + - col1 + - - col0, col2 AS col0 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT DISTINCT col1 * + col0 + + 62 FROM tab2 AS cor0
----
2408
4990
5087

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1559
SELECT ALL * FROM tab1 WHERE + col0 * - 7 BETWEEN NULL AND - 28 / CAST( + 53 AS SIGNED ) AND NOT ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1559
SELECT ALL * FROM tab1 WHERE + col0 * - 7 BETWEEN NULL AND - 28 / CAST ( + 53 AS INTEGER ) AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
92
NULL

query I rowsort
SELECT DISTINCT - 50 - + col1 - + 62 FROM tab0
----
-113
-133
-193

query II rowsort
SELECT DISTINCT col0 AS col0, - 5 + 68 AS col0 FROM tab2
----
46
63
64
63
75
63

query I rowsort
SELECT - 34 + + 90 AS col0 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT COUNT( col0 ) * ( + ( - COUNT( * ) ) ) + - 14 + 78 AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT COUNT ( col0 ) * ( + ( - COUNT ( * ) ) ) + - 14 + 78 AS col2 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1565
SELECT DISTINCT + col0 DIV CAST( + col1 AS SIGNED ) FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT + col0 / CAST ( + col1 AS INTEGER ) FROM tab1
----
1
17
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1568
SELECT ALL CAST( - + col1 AS SIGNED ), - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL CAST ( - + col1 AS INTEGER ), - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 63 + + 21 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT 65 * 87 + + 43 AS col2 FROM tab0 AS cor0
----
5698

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

skipif mysql # not compatible
query I rowsort label-1571
SELECT ( COUNT ( + col2 ) ) FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab0
----
100
470
990

query I rowsort
SELECT - 22 * + - ( - - 88 ) FROM tab2 AS cor0
----
1936
1936
1936

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

query I rowsort
SELECT - 28 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
1197
1691
695

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT - + SUM ( + ( + + 72 ) ) FROM tab0 AS cor0
----
-216

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL - col1 * col0 * + - 92 AS col1 FROM tab0 AS cor0
----
111780
168084
8924

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

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

query I rowsort
SELECT + 28 * + col2 AS col1 FROM tab0
----
1316
2772
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 - - ( - 24 ) NOT IN ( - + col0, - col2, + col1 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 - - ( - 24 ) NOT IN ( - + col0, - col2, + col1 + + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT + + COUNT( - 87 ) AS col2, COUNT( 93 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1584
SELECT + + COUNT ( - 87 ) AS col2, COUNT ( 93 ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - + col1 * - 89 col1, - ( - 2 ) + + 8 AS col2, col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 89331a2d72dc034913a82af28dc5d4ba

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT DISTINCT - MAX( 65 ) * COUNT( * ) * 54 FROM tab2 AS cor0
----
-10530

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - MAX ( 65 ) * COUNT ( * ) * 54 FROM tab2 AS cor0
----
-10530

query I rowsort
SELECT ALL + 26 * + col1 * + + col2 FROM tab2 AS cor0
----
101036
30498
80080

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

query II rowsort
SELECT col1 AS col1, col2 * col1 AS col0 FROM tab2
----
51
1173
67
3886
77
3080

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

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

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

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

query I rowsort
SELECT col2 + 22 AS col2 FROM tab0
----
121
32
69

query I rowsort
SELECT + + 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL - MIN( ALL + + col1 ) * - + SUM( DISTINCT + 42 ) + + SUM( + + 53 ) * + 46 * - + COUNT( * ) + + 50 * + - 37 FROM tab2 AS cor0
----
-21650

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - MIN ( ALL + + col1 ) * - + SUM ( DISTINCT + 42 ) + + SUM ( + + 53 ) * + 46 * - + COUNT ( * ) + + 50 * + - 37 FROM tab2 AS cor0
----
-21650

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT + ( - col2 ) DIV + - 56 + col2 AS col1 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-1596
SELECT + ( - col2 ) / + - 56 + col2 AS col1 FROM tab2 AS cor0
----
23
40
59

query I rowsort
SELECT + + col2 + - 46 AS col1 FROM tab1 AS cor0
----
13
22
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - 37 + + + 57
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + col1 * col2 < 43 )
----

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

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

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

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

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

query I rowsort
SELECT col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

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

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT + MIN( DISTINCT + 59 ) FROM tab0 WHERE ( NULL ) NOT IN ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT + MIN ( DISTINCT + 59 ) FROM tab0 WHERE ( NULL ) NOT IN ( 32 )
----
NULL

query I rowsort
SELECT ALL ( 90 ) AS col1 FROM tab2
----
90
90
90

query I rowsort
SELECT 67 - + + col1 AS col1 FROM tab1
----
20
53
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 93 AND + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1609
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 93 AND + CAST ( - col0 AS INTEGER )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT ALL - + MIN( - ( - col1 ) ) AS col2, 10 AS col1 FROM tab0 AS cor0
----
-1
10

skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL - + MIN ( - ( - col1 ) ) AS col2, 10 AS col1 FROM tab0 AS cor0
----
-1
10

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

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

query I rowsort
SELECT DISTINCT 77 * + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 WHERE + - col1 >= - 83 * + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT + COUNT( - 41 ), - 59 * + 57 AS col0 FROM tab2
----
3
-3363

skipif mysql # not compatible
query II rowsort label-1618
SELECT + COUNT ( - 41 ), - 59 * + 57 AS col0 FROM tab2
----
3
-3363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - col0 / - col1 + + col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) * + + col1 col1 FROM tab2
----
2346
4928
5025

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT col2 + + + col1 DIV - - 14 AS col1 FROM tab2 AS cor0
----
26
45
62

skipif mysql # not compatible
query I rowsort label-1623
SELECT col2 + + + col1 / - - 14 AS col1 FROM tab2 AS cor0
----
26
45
62

query I rowsort
SELECT + - col2 * + 59 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-2773
-5841
-590

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

skipif mysql # not compatible
query I rowsort label-1625
SELECT - COUNT ( * ) + - COUNT ( CAST ( 12 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-6

query I rowsort
SELECT DISTINCT + 77 * - - col2 AS col1 FROM tab2
----
1771
3080
4466

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

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

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

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

query I rowsort
SELECT DISTINCT - 84 FROM tab1 cor0
----
-84

query I rowsort
SELECT 97 - - col1 + col2 * - 31 AS col1 FROM tab0 cor0
----
-1279
-192
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - 88 - 11 * - + COUNT( * ) FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1632
SELECT - 88 - 11 * - + COUNT ( * ) FROM tab1 cor0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1633
SELECT ALL 3 * - 52 + - + 7, + 91 * + ( + 34 ) * + + COUNT( * ) col1 FROM tab2 AS cor0
----
-163
9282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1633
SELECT ALL 3 * - 52 + - + 7, + 91 * + ( + 34 ) * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-163
9282

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT - COUNT ( * ) + + SUM ( + + col2 ) FROM tab2 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT + 59 + + MAX( - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT + 59 + + MAX ( - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 + 26 AS col1 FROM tab2 AS cor0
----
101
72
90

query I rowsort
SELECT + col2 + col1 + + + col2 + - 14 FROM tab1
----
109
169
192

query II rowsort
SELECT ALL - 54 + - - col2 + + col1 + - ( + + 21 ) * - col2 AS col2, col2 AS col1 FROM tab2
----
1289
58
503
23
903
40

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

query II rowsort
SELECT - - col1 AS col0, - col1 + - col1 FROM tab0 AS cor0
----
1
-2
21
-42
81
-162

query II rowsort
SELECT - col1 AS col0, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT 56 DIV col1 AS col2 FROM tab0 cor0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-1642
SELECT 56 / col1 AS col2 FROM tab0 cor0
----
0
2
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + ( ( - col1 ) ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 88 / + col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - - 9 ) + - + 58 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 5 AND NULL
----

query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 + + col2 < + 34 + + 92 + + 1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE + 54 * + + CAST( 44 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE + 54 * + + CAST ( 44 AS INTEGER ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT + 86 + - - MIN( + + 87 ) AS col2 FROM tab1 cor0
----
173

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + 86 + - - MIN ( + + 87 ) AS col2 FROM tab1 cor0
----
173

query I rowsort
SELECT + col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + + 24 * - 12 FROM tab1 AS cor0
----
13536
1440
4032

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + + ( + - 77 ) * 16 AS col1 FROM tab2 WHERE NOT - col2 >= NULL
----

query II rowsort
SELECT ALL 22 AS col1, col1 FROM tab2
----
22
51
22
67
22
77

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 19 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 5 FROM tab0 WHERE NOT 49 > + - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL MIN( ALL - - 47 ) AS col2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL MIN ( ALL - - 47 ) AS col2 FROM tab2
----
47

query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT - 69 + + col2 + + + 75 + - - CAST( NULL AS SIGNED ) * 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 69 + + col2 + + + 75 + - - CAST ( NULL AS INTEGER ) * 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 33 AS col0 FROM tab2 AS cor0 WHERE NULL = - 1
----

query I rowsort
SELECT + col0 * - 63 FROM tab0 AS cor0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL COUNT( * ) + + + COUNT( * ) - + 55 AS col2 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - + 55 AS col2 FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT col1 * col0 * - col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + - col1 * - col2 * - ( + 60 ) FROM tab0 AS cor0
----
-12600
-228420
-5940

query I rowsort
SELECT DISTINCT - - ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - - col0 + - 14 FROM tab1 AS cor0
----
37
71
77

query I rowsort
SELECT ALL - col0 + 99 * - - col2 FROM tab2 AS cor0
----
2231
3896
5667

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL - + col2 - - 39 + 23 FROM tab2 AS cor0
----
22
39
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NULL IN ( + col1 * - + col1 * ( - 36 ), col2 )
----

query I rowsort
SELECT + ( - - ( - col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - - 15 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 * 89 * - 26 * ( + col0 ) * - col0 FROM tab2
----
29378544
56868864
78097500

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - SUM( ALL + 57 ) FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - SUM ( ALL + 57 ) FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL 77 * COUNT( * ) col2 FROM tab0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1680
SELECT ALL 77 * COUNT ( * ) col2 FROM tab0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + 91 * + COUNT( * ) AS col1 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-1681
SELECT + 91 * + COUNT ( * ) AS col1 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1682
SELECT ( - + COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL - 83 * + + col2 FROM tab2
----
-1909
-3320
-4814

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 + + 80 IN ( - 9, col1 * + col2, + + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ALL - CAST( - + CAST( + AVG ( DISTINCT + col1 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - CAST ( - + CAST ( + AVG ( DISTINCT + col1 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col0, 81 FROM tab2 cor0
----
51
81
67
81
77
81

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL MIN( + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL MIN ( + + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + + col2 + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1690
SELECT + col1, col0 DIV + - col2 FROM tab0 AS cor0
----
1
0
21
-8
81
0

skipif mysql # not compatible
query II rowsort label-1690
SELECT + col1, col0 / + - col2 FROM tab0 AS cor0
----
1
0
21
-8
81
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 20 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / + + col0 / - - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, - 35 FROM tab1 AS cor0
----
51
-35
85
-35
91
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT - col1 * + col1 / + ( - 46 ) * + + 57 + + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - col1 * + col1 / + ( - 46 ) * + + 57 + + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + col1 + + col1 * + 63 AS col1 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1697
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) + + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 * 71 FROM tab1 AS cor0
----
-13260
-14742
-6222

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT - 59 + + + ( SUM( + 19 ) ) DIV + 29 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - 59 + + + ( SUM ( + 19 ) ) / + 29 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + col0 * col0 + 13 FROM tab1 cor0
----
2614
7238
8294

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT COUNT( * ) + - 3 - + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) + - 3 - + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL - - COUNT( * ) + + - COUNT( 97 ) - + 35 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - - COUNT ( * ) + + - COUNT ( 97 ) - + 35 FROM tab1 AS cor0
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT MIN( - 70 ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT MIN ( - 70 ) FROM tab0
----
-70

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE 90 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT - CAST( - col0 AS SIGNED ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1708
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
46
64
75

query II rowsort
SELECT + col1, - 6 * - ( + 42 ) FROM tab1
----
14
252
47
252
5
252

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT COUNT( * ), 15 AS col2 FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-1710
SELECT COUNT ( * ), 15 AS col2 FROM tab0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL - SUM( DISTINCT - + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - SUM ( DISTINCT - + col2 ) FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 <> NULL
----

query I rowsort
SELECT - + ( 9 ) FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT ALL + 0 / 87 + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + 0 / 87 + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1715
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 56 + + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + + col2
----

query I rowsort
SELECT ALL + 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT - 22 * + MAX( col2 ) FROM tab2
----
-1276

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - 22 * + MAX ( col2 ) FROM tab2
----
-1276

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / + 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1721
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 1 * + col0 + - + col2 * 95 + + - col1 + col2 FROM tab2 AS cor0
----
-2167
-3773
-5444

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > CAST( - + col1 AS SIGNED ) / + 35
----

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > CAST ( - + col1 AS INTEGER ) / + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT DISTINCT - + col1 * - 19 * + - col0 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT - + col1 * - 19 * + - col0 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1727
SELECT - 4 + + COUNT( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0 cor0
----
-1
2112

skipif mysql # not compatible
query II rowsort label-1727
SELECT - 4 + + COUNT ( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0 cor0
----
-1
2112

query II rowsort
SELECT 32, - col1 AS col1 FROM tab2
----
32
-51
32
-67
32
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT MAX( ALL + 75 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT MAX ( ALL + 75 ) AS col0 FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, + col1 col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT DISTINCT + SUM( ALL + + col0 ) AS col0 FROM tab0 WHERE NOT + 36 = col2
----
199

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + SUM ( ALL + + col0 ) AS col0 FROM tab0 WHERE NOT + 36 = col2
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + col2
----

query I rowsort
SELECT ALL 54 * + col1 FROM tab0
----
1134
4374
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT 39 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1734
SELECT 39 / + - col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT ALL 39 DIV - - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 39 / - - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT 80 DIV + + COUNT( * ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1736
SELECT 80 / + + COUNT ( * ) AS col1 FROM tab1
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 27 * 9 > - col0
----

query II rowsort
SELECT ALL - 38 AS col2, + ( + - 25 ) FROM tab1 AS cor0
----
-38
-25
-38
-25
-38
-25

query I rowsort
SELECT DISTINCT 55 + + 91 FROM tab1 AS cor0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL - COUNT( * ) + 92 AS col1 FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - COUNT ( * ) + 92 AS col1 FROM tab0 cor0
----
89

query I rowsort
SELECT DISTINCT 11 + + 16 FROM tab2
----
27

query I rowsort
SELECT - 63 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - 55 * - + 59 + + col1 NOT IN ( - col1 / + 81 + col2 / + + col0, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 55 * - + 59 + + col1 NOT IN ( - col1 / + 81 + col2 / + + col0, col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col2 + - col2 col0 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT DISTINCT + 45 FROM tab0 cor0
----
45

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1749
SELECT ALL + COUNT( * ) AS col1, 2 * CAST( 83 AS SIGNED ) * + 92 AS col1 FROM tab1
----
3
15272

skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL + COUNT ( * ) AS col1, 2 * CAST ( 83 AS INTEGER ) * + 92 AS col1 FROM tab1
----
3
15272

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + COUNT( * ) * MAX( - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + COUNT ( * ) * MAX ( - col1 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 79 * + col2 FROM tab0
----
3713
7821
790

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 54 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT MIN( + - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1755
SELECT MIN ( + - col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT ALL col0 * + ( 99 ) * - 83 AS col2 FROM tab1
----
-419067
-698445
-747747

query II rowsort
SELECT ALL col0 AS col1, - col2 * + - col2 AS col1 FROM tab0
----
15
2209
87
100
97
9801

query I rowsort
SELECT DISTINCT + 54 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 3 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT col2 * - 71 FROM tab0 AS cor0
----
-3337
-7029
-710

query I rowsort
SELECT 17 * - col2 AS col2 FROM tab1
----
-1003
-1156
-1632

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL + COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

query II rowsort
SELECT col0, + col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT - + COUNT( * ) col1 FROM tab2 WHERE NOT - col2 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1766
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab2 WHERE NOT - col2 + - col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + - col1 BETWEEN + ( + - col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 62 - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 62 - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 + - col2 * col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 + - col2 * col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 63 - - col0 - col1 + - - col2 + 14 FROM tab1 AS cor0
----
3870
4410
6195

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT + + ( + - ( + - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1771
SELECT + + ( + - ( + - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - 10 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - 10 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT - 17 + - + col0 * - + col2 + + + 35 * - col0 AS col0 FROM tab2
----
-569
1708
303

query III rowsort
SELECT * FROM tab2 WHERE 53 * - - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + col1 IN ( col2 + col2 )
----

query I rowsort
SELECT + 83 + - - col1 FROM tab0
----
104
164
84

query I rowsort
SELECT - col0 + + 77 * + col2 * - - col0 AS col2 FROM tab2
----
197056
334875
81420

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 38 - - + col2 - - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + COUNT( * ) * + COUNT( * ) * - COUNT( ALL - col1 ) - - 67 AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( ALL - col1 ) - - 67 AS col0 FROM tab1
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + - 63 - - 75 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1783
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1783
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 col2, + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to bc08b0220b0e32bfad0ac61652631546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 41 / - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( 95 ) AS col2 FROM tab1 AS cor0
----
95

query II rowsort
SELECT ALL ( - ( + - 87 ) ), col2 FROM tab0 AS cor0
----
87
10
87
47
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT DISTINCT 80 AS col1, + 85 * + 23 - MIN( DISTINCT - col2 ) FROM tab0 cor0
----
80
2054

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT 80 AS col1, + 85 * + 23 - MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
80
2054

query I rowsort
SELECT col2 * - - 34 FROM tab0 cor0
----
1598
3366
340

query I rowsort
SELECT - 77 * + - 34 AS col1 FROM tab0 AS cor0
----
2618
2618
2618

query I rowsort
SELECT + col1 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 * - col1 col0 FROM tab2
----
132651
300763
456533

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab2 WHERE NOT ( + 97 ) + - - col2 >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1796
SELECT - CAST( + COUNT( * ) AS SIGNED ), 22 + + + 53 AS col0 FROM tab0
----
-3
75

skipif mysql # not compatible
query II rowsort label-1796
SELECT - CAST ( + COUNT ( * ) AS INTEGER ), 22 + + + 53 AS col0 FROM tab0
----
-3
75

query I rowsort
SELECT ALL + ( + 30 ) AS col0 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + ( - + 95 ) ) col0 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT ALL - col1 + - ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + col2 + - col1 FROM tab0 AS cor0 WHERE NOT ( + + 20 < - col0 )
----
624
849
9602

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 NOT BETWEEN NULL AND 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1802
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1803
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + col1 + + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + 42 + - ( + 94 ) + - 1 + - + col1 FROM tab0 AS cor0
----
-134
-54
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + COUNT( * ) + + - COUNT( - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT + COUNT ( * ) + + - COUNT ( - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL + COUNT( * ) + - 49 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + COUNT ( * ) + - 49 FROM tab2 cor0
----
-46

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL + col0 * + col0 - - 92 - - + 32, 4 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - + col2 / - + col1 * + col2 * - col2 * + + 1 * col0 - - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT ALL COUNT( * ) + + - COUNT( * ) col0, - 33 FROM tab2
----
0
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1814
SELECT ALL COUNT ( * ) + + - COUNT ( * ) col0, - 33 FROM tab2
----
0
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, - col0 + + col1 col0 FROM tab0 WHERE NOT + + col2 = + - 92 / - col0
----
15
66
87
-66
97
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1816
SELECT ALL * FROM tab1 WHERE - 25 * - - CAST( - 31 AS SIGNED ) NOT BETWEEN NULL AND + 91 - col0 * 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1816
SELECT ALL * FROM tab1 WHERE - 25 * - - CAST ( - 31 AS INTEGER ) NOT BETWEEN NULL AND + 91 - col0 * 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1, + col0 + - 91 - + col1 * col2 * + col1 FROM tab0
----
1
-93
21
-4414
81
-308443

query I rowsort
SELECT DISTINCT + 83 FROM tab0 WHERE NOT NULL <= col1 * + - col0
----

query II rowsort
SELECT ALL + col2 AS col0, + 53 * - 57 * - + 66 AS col2 FROM tab2
----
23
199386
40
199386
58
199386

query II rowsort
SELECT DISTINCT + col1 - + col2 AS col1, col0 + - - col2 FROM tab0
----
-98
196
11
97
34
62

query I rowsort
SELECT 24 * - + 42 AS col0 FROM tab2
----
-1008
-1008
-1008

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT 32 - ( COUNT( * ) ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-1823
SELECT 32 - ( COUNT ( * ) ) FROM tab0
----
29

query I rowsort
SELECT ALL - + 55 * - - 42 + col0 AS col1 FROM tab2 AS cor0
----
-2235
-2246
-2264

query I rowsort
SELECT ALL col2 * + col1 * - col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1826
SELECT DISTINCT * FROM tab0 WHERE + - col2 + - col1 + + CAST( NULL AS SIGNED ) + col2 * - 4 / + + col1 * - col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1826
SELECT DISTINCT * FROM tab0 WHERE + - col2 + - col1 + + CAST ( NULL AS INTEGER ) + col2 * - 4 / + + col1 * - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 2 AS col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL - ( + col1 ) * - + 25 - + col0 * + col2 * col1 - col0 + + - col0 + - + col0 AS col0 FROM tab1 AS cor0
----
-25205
-289934
-68347

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1830
SELECT COUNT ( * ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 40 / - ( col1 ) IN ( - 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - + 26 * + col0 * - + 10 FROM tab2 cor0
----
11960
16640
19500

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT ALL - - col0 DIV + - 6 AS col0 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - - col0 / + - 6 AS col0 FROM tab2 AS cor0
----
-10
-12
-7

query II rowsort
SELECT + 7 AS col2, ( + - 81 ) - + - col2 AS col0 FROM tab2
----
7
-23
7
-41
7
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT - COUNT( DISTINCT 61 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1837
SELECT - COUNT ( DISTINCT 61 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - ( COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1838
SELECT - ( COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL MAX( - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL MAX ( - col1 ) AS col2 FROM tab2
----
-51

query II rowsort
SELECT ALL + + 7, - col2 FROM tab1 WHERE NOT col2 NOT BETWEEN - col0 + + + col1 AND ( - 16 )
----

query II rowsort
SELECT DISTINCT + col0, + ( - 73 ) * - 10 * - + col0 + col2 + + 48 + + + col1 FROM tab0
----
15
-10774
87
-63431
97
-70662

query I rowsort
SELECT DISTINCT 92 * - col1 AS col2 FROM tab2
----
-4692
-6164
-7084

query I rowsort
SELECT + - 67 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT - + MAX( + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - + MAX ( + col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - 60 * - - col1 + + col1 * 22 * + - 22 FROM tab0 AS cor0
----
-11424
-44064
-544

query I rowsort
SELECT ALL + 4 + + col1 AS col0 FROM tab0 cor0
----
25
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT - 40 * col0 + - + 25 + + ( - col1 ) DIV - col1 col2 FROM tab1 AS cor0
----
-2064
-3424
-3664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1847
SELECT - 40 * col0 + - + 25 + + ( - col1 ) / - col1 col2 FROM tab1 AS cor0
----
-2064
-3424
-3664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN - col0 + - ( + col2 ) AND NULL
----

query I rowsort
SELECT - 5 * + 32 * 62 AS col2 FROM tab1
----
-9920
-9920
-9920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1851
SELECT - MAX( col0 ) FROM tab1 AS cor0 WHERE - 48 BETWEEN CAST( NULL AS DECIMAL ) * - col0 + + col1 / col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT - MAX ( col0 ) FROM tab1 AS cor0 WHERE - 48 BETWEEN CAST ( NULL AS REAL ) * - col0 + + col1 / col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1852
SELECT ALL + + CAST( NULL AS DECIMAL ) * 13 * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + + CAST ( NULL AS REAL ) * 13 * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT + CAST( + 48 AS SIGNED ) + col0 FROM tab1 AS cor0
----
133
139
99

skipif mysql # not compatible
query I rowsort label-1854
SELECT + CAST ( + 48 AS INTEGER ) + col0 FROM tab1 AS cor0
----
133
139
99

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 12 * + col0 * + col2 + - + col0 + + 83 FROM tab2
----
-12659
-30701
-52192

query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL col2 + + - 72 * CAST( - col2 AS SIGNED ) FROM tab2
----
1679
2920
4234

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL col2 + + - 72 * CAST ( - col2 AS INTEGER ) FROM tab2
----
1679
2920
4234

query I rowsort
SELECT DISTINCT 97 - col1 FROM tab1
----
50
83
92

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + ( - + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - ( 21 )
----

query II rowsort
SELECT col1 AS col2, - col1 * col2 AS col0 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

query I rowsort
SELECT col2 * - - col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT ALL + col0 * + + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT 7 * + col1 FROM tab0 AS cor0
----
147
567
7

query II rowsort
SELECT - 98, - col2 AS col2 FROM tab0
----
-98
-10
-98
-47
-98
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL MAX( ALL + 55 ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL MAX ( ALL + 55 ) FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT MIN( + ( + 63 ) ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1868
SELECT MIN ( + ( + 63 ) ) FROM tab1
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 <= NULL
----

query I rowsort
SELECT - + col0 * + 93 * col2 AS col1 FROM tab2 AS cor0
----
-238080
-404550
-98394

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL ( + 48 ) * col2 AS col0 FROM tab1 AS cor0
----
2832
3264
4608

query II rowsort
SELECT + col1 AS col0, 40 FROM tab0 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
1
40
21
40
81
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT + 24 * col0 DIV + col0 FROM tab1 cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1874
SELECT + 24 * col0 / + col0 FROM tab1 cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT DISTINCT - 46 DIV col1 DIV col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - 46 / col1 / col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 29 * - ( + 70 ) FROM tab0 AS cor0
----
2030
2030
2030

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 > + 26 * + col2 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 93 FROM tab2 cor0
----
-93
-93
-93

query II rowsort
SELECT ALL - 60, + col1 FROM tab2 AS cor0
----
-60
51
-60
67
-60
77

query II rowsort
SELECT ALL - + col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT COUNT( * ), + 33 AS col1 FROM tab0, tab1 AS cor0
----
9
33

skipif mysql # not compatible
query II rowsort label-1881
SELECT COUNT ( * ), + 33 AS col1 FROM tab0, tab1 AS cor0
----
9
33

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1883
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + - SUM( 67 ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - SUM ( 67 ) FROM tab0 AS cor0
----
-201

query I rowsort
SELECT DISTINCT + col2 + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT ALL - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - + ( + - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1890
SELECT - + col0 AS col0, col1 DIV col2 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0

skipif mysql # not compatible
query II rowsort label-1890
SELECT - + col0 AS col0, col1 / col2 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - MIN( - + 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1891
SELECT - MIN ( - + 43 ) FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL - 2 + + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 2 + + COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 73 + + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-4
31
60

query II rowsort
SELECT ALL - 33 + 11 + + + col2 * + ( + col1 ) + + col1 AS col1, col2 * col1 AS col1 FROM tab2 cor0
----
1202
1173
3135
3080
3931
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - 20 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - 20 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-57

query I rowsort
SELECT col0 - - col2 - + col0 * col0 AS col1 FROM tab1
----
-2454
-7081
-8122

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT col1 DIV - - col1 - + col2 AS col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-1897
SELECT col1 / - - col1 - + col2 AS col2 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT 90 - - 60 AS col1 FROM tab1
----
150
150
150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 76 < NULL
----

query II rowsort
SELECT ALL col1 - - col2 AS col1, + col1 AS col2 FROM tab1
----
110
14
115
47
64
5

query I rowsort
SELECT ALL col0 * 59 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT ALL - COUNT( * ), COUNT( ALL col0 ) * ( + 37 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL - COUNT ( * ), COUNT ( ALL col0 ) * ( + 37 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT 54 AS col0, + COUNT( DISTINCT + col2 ) FROM tab2
----
54
3

skipif mysql # not compatible
query II rowsort label-1904
SELECT 54 AS col0, + COUNT ( DISTINCT + col2 ) FROM tab2
----
54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - 93 ) AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - 93 ) AS col1 FROM tab2
----
279

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 * col1 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
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-1908
SELECT DISTINCT - - ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL + MAX( + - ( + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + MAX ( + - ( + col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 99 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + - col1 + 39 FROM tab2 AS cor0
----
2640
4528
5968

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0, + 58 FROM tab2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0, + 58 FROM tab2
----
NULL
58

query I rowsort
SELECT + 31 * - 99 * - + col2 FROM tab1
----
181071
208692
294624

query I rowsort
SELECT DISTINCT col0 * + 73 FROM tab0
----
1095
6351
7081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT 80 DIV COUNT( * ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 80 / COUNT ( * ) AS col1 FROM tab1
----
26

query II rowsort
SELECT ALL col2 AS col0, 85 + + 44 FROM tab2
----
23
129
40
129
58
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT - 98 / SUM( + - col2 ) AS col0 FROM tab2 WHERE NOT - + 2 + + col0 * - col0 NOT BETWEEN 44 + + 78 AND + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT - 98 / SUM ( + - col2 ) AS col0 FROM tab2 WHERE NOT - + 2 + + col0 * - col0 NOT BETWEEN 44 + + 78 AND + - col1
----
NULL

query I rowsort
SELECT ALL col1 * 22 AS col0 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT 53 * + COUNT( * ) AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-1920
SELECT 53 * + COUNT ( * ) AS col2 FROM tab1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL col1 * - - CAST( col2 AS SIGNED ) FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL col1 * - - CAST ( col2 AS INTEGER ) FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL + 48 - + COUNT( * ) + + AVG ( + 37 ) col1 FROM tab2 WHERE NOT + 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT ALL + 48 - + COUNT ( * ) + + AVG ( + 37 ) col1 FROM tab2 WHERE NOT + 79 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab1 cor0
----
4
4
4

query II rowsort
SELECT DISTINCT + col0, + col0 * - 35 * - col0 AS col1 FROM tab1 AS cor0
----
51
91035
85
252875
91
289835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * + - ( - col0 ) col2 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT + col1 + + - col0 * ( - col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT ALL - - col0 DIV + - 2 AS col2 FROM tab0 AS cor0
----
-43
-48
-7

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - - col0 / + - 2 AS col2 FROM tab0 AS cor0
----
-43
-48
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT + + COUNT( * ) + 4 AS col2, COUNT( * ) * - MIN( DISTINCT + 65 ) AS col1 FROM tab1 cor0
----
7
-195

skipif mysql # not compatible
query II rowsort label-1931
SELECT + + COUNT ( * ) + 4 AS col2, COUNT ( * ) * - MIN ( DISTINCT + 65 ) AS col1 FROM tab1 cor0
----
7
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 36 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT ( + + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT ( + + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 62 FROM tab2 cor0 WHERE - 0 IS NOT NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT + - COUNT( * ) + - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + - COUNT ( * ) + - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-124

query I rowsort
SELECT ALL col0 + - 75 + - 83 * - 78 AS col1 FROM tab2
----
6445
6463
6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT CAST( NULL AS SIGNED ) + + 10 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT CAST ( NULL AS INTEGER ) + + 10 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT 52 + + - COUNT( - 63 ), + 11 col0 FROM tab2
----
49
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1939
SELECT 52 + + - COUNT ( - 63 ), + 11 col0 FROM tab2
----
49
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + COUNT( * ) + - - ( - 15 ) + ( COUNT( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( * ) + - - ( - 15 ) + ( COUNT ( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
3

query II rowsort
SELECT 85 AS col0, 83 FROM tab1
----
85
83
85
83
85
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - COUNT( * ) * ( - - MAX( - col2 ) ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1943
SELECT - COUNT ( * ) * ( - - MAX ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
177

query II rowsort
SELECT - + col0 AS col2, + 47 AS col1 FROM tab0 AS cor0
----
-15
47
-87
47
-97
47

query II rowsort
SELECT DISTINCT - 49, 73 AS col2 FROM tab1 AS cor0
----
-49
73

query I rowsort
SELECT 95 + - 66 FROM tab0
----
29
29
29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 39 > NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE - 49 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col2 / - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 91 >= 41 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - 3 FROM tab1
----
-54
-88
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - COUNT( * ) - 54 FROM tab2 WHERE + ( 47 ) * + col2 IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - COUNT ( * ) - 54 FROM tab2 WHERE + ( 47 ) * + col2 IS NOT NULL
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT COUNT( * ) * 35 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) * 35 FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - 31 * - COUNT( * ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 31 * - COUNT ( * ) AS col0 FROM tab2
----
93

query I rowsort
SELECT ALL 10 * + col0 AS col0 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1957
SELECT ALL + 80 DIV + 44 + CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + 80 / + 44 + CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab2
----
-76

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 0 + 5 FROM tab1
----
5
5
5

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT - 8 DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1961
SELECT - 8 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 / 56 - + col0 <> col1
----
10
47
99

query I rowsort
SELECT DISTINCT - 47 + + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( + 96 ) - + 54 AS col2 FROM tab1
----
-150

query I rowsort
SELECT col0 + col0 AS col0 FROM tab1 WHERE ( - 48 ) IS NOT NULL
----
102
170
182

query I rowsort
SELECT DISTINCT col2 - + 36 FROM tab2
----
-13
22
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - col0 DIV + 19 AS col0 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - col0 / + 19 AS col0 FROM tab0
----
-4
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT col0 DIV col2 * col1 FROM tab1
----
0
47
5

skipif mysql # not compatible
query I rowsort label-1969
SELECT col0 / col2 * col1 FROM tab1
----
0
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
2601
7225
8281

query I rowsort
SELECT + ( + 41 ) AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE 20 * + col2 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + ( COUNT( col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1975
SELECT + ( COUNT ( col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + MIN( - + 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-1976
SELECT + MIN ( - + 27 ) FROM tab2
----
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - COUNT( col0 ) * - 13 col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT - COUNT ( col0 ) * - 13 col2 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1979
SELECT col0 + 34 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1979
SELECT col0 + 34 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) <= NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 20, - 2 - - + col1 col0 FROM tab1
----
20
12
20
3
20
45

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * - col2 + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 + - 48 FROM tab2 AS cor0
----
-112
-123
-94

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= + 79
----

query I rowsort
SELECT DISTINCT - 75 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1986
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 20 + + col2 + ( + 83 ) FROM tab0 AS cor0
----
110
162
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1988
SELECT ALL ( CAST( NULL AS DECIMAL ) ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL ( CAST ( NULL AS REAL ) ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - 75 + - - col0 * - 87 FROM tab0 AS cor0
----
-1365
-7557
-8417

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - + MIN( + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1991
SELECT - + MIN ( + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - + col2 + + col2 + - 21 FROM tab2 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 80 + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT + MIN( DISTINCT - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1995
SELECT + MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT - 33 + 24 + 30 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL col0 + - - col2 AS col2 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + - col1 col0 FROM tab1
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1999
SELECT ALL + COUNT ( * ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT + COUNT( ALL col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + COUNT ( ALL col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NULL > + + 3
----

query I rowsort
SELECT ALL - ( - + ( + col1 ) ) AS col0 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 / + col2 ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2004
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2004
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2005
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - 91 - - - col2 + - + col1 AS col1 FROM tab2
----
-216
-283
-285

query I rowsort
SELECT 50 * + + 77 AS col2 FROM tab2
----
3850
3850
3850

query I rowsort
SELECT ALL + col1 * + 61 AS col0 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 IN ( - col1 * - col0 * + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 IN ( - col1 * - col0 * + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT 30 - col2 / 17 NOT BETWEEN ( - - col2 + col1 * - 90 ) AND CAST( + col0 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2010
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT 30 - col2 / 17 NOT BETWEEN ( - - col2 + col1 * - 90 ) AND CAST ( + col0 AS INTEGER )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2011
SELECT COUNT ( * ) AS col1 FROM tab0 cor0
----
3

query II rowsort
SELECT - col0, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT 68 DIV SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 68 / SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 59 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT - 43 DIV col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 43 / col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

query I rowsort
SELECT DISTINCT + - 61 FROM tab0, tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0, tab2 AS cor0
----
-24

query I rowsort
SELECT ALL + + ( - col1 ) * - 45 AS col1 FROM tab2 WHERE ( + 69 ) = 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL < - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT + COUNT( * ) * + - 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + COUNT ( * ) * + - 81 FROM tab0
----
-243

query I rowsort
SELECT col0 * + 46 AS col0 FROM tab2
----
2116
2944
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 97 FROM tab1 AS cor0
----
14
97
47
97
5
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2027
SELECT ALL 99 DIV - - MIN( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 99 / - - MIN ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 - + col1 IS NULL
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2031
SELECT + MIN( - + CAST( - col1 AS SIGNED ) ) AS col0, 55 FROM tab2
----
51
55

skipif mysql # not compatible
query II rowsort label-2031
SELECT + MIN ( - + CAST ( - col1 AS INTEGER ) ) AS col0, 55 FROM tab2
----
51
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT + ( + - COUNT( * ) ) + + 41 AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2032
SELECT + ( + - COUNT ( * ) ) + + 41 AS col1 FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT + 40 + 64 - + - col0 DIV + col2 FROM tab2 AS cor0
----
105
105
106

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 40 + 64 - + - col0 / + col2 FROM tab2 AS cor0
----
105
105
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + + 7 + COUNT( * ) FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2034
SELECT + + 7 + COUNT ( * ) FROM tab2 cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + - 76 * + 22 ) > col1 * - - ( - 56 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 <= ( - + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( ( + col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 93 + col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 34, ( - col1 ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 32 + - col1 IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE - 15 - - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 79 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 33 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 * 57 + - - col0 < 11
----
-3

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 * 57 + - - col0 < 11
----
-3

query I rowsort
SELECT - ( - col1 ) * - + 86 + - 43 AS col2 FROM tab1
----
-1247
-4085
-473

query I rowsort
SELECT + 36 * - 56 FROM tab0
----
-2016
-2016
-2016

query I rowsort
SELECT ALL ( 10 ) AS col2 FROM tab0
----
10
10
10

query II rowsort
SELECT + col1, col1 * 91 AS col0 FROM tab0
----
1
91
21
1911
81
7371

query I rowsort
SELECT ( - 55 ) FROM tab2
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 WHERE - col1 <> - 25 + + + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 22 - - - 11 FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + COUNT( * ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2051
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT + 71 + + + 48 AS col0 FROM tab1 AS cor0
----
119
119
119

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2053
SELECT + 61 * + CAST( - + 35 AS SIGNED ) * col0 + + + col2 + + 97 DIV 48 FROM tab2 AS cor0
----
-136598
-160065
-98185

skipif mysql # not compatible
query I rowsort label-2053
SELECT + 61 * + CAST ( - + 35 AS INTEGER ) * col0 + + + col2 + + 97 / 48 FROM tab2 AS cor0
----
-136598
-160065
-98185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 - + + col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT 48 * + + COUNT( * ) AS col2 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT 48 * + + COUNT ( * ) AS col2 FROM tab0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL + 30 DIV - ( col2 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 30 / - ( col2 ) FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 * + - 63 * + col0 AS col1 FROM tab2 cor0
----
-133308
-258048
-354375

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 26
----

query I rowsort
SELECT ALL 27 * + col0 FROM tab1 AS cor0
----
1377
2295
2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 37 col1 FROM tab0 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 56 < - 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT 80 AS col2, col0 AS col1 FROM tab1
----
80
51
80
85
80
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab0
----
1

query II rowsort
SELECT col0 AS col1, 70 - - - col0 FROM tab0
----
15
55
87
-17
97
-27

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL >= 16 + + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL col2 DIV - + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col2 / - + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + col0 + col1 * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 28 - col0, - 64 + - col0 AS col2 FROM tab0 AS cor0
----
-59
-151
-69
-161
13
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT 76 * + 3 + MIN( + + col1 ) FROM tab0 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-2077
SELECT 76 * + 3 + MIN ( + + col1 ) FROM tab0 AS cor0
----
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT + - col0 + + + 3 - + col0 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + - col0 + + + 3 - + col0 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT col0 * + CAST( - - col1 AS SIGNED ) + + + 42 AS col0 FROM tab1 AS cor0
----
4319
467
756

skipif mysql # not compatible
query I rowsort label-2079
SELECT col0 * + CAST ( - - col1 AS INTEGER ) + + + 42 AS col0 FROM tab1 AS cor0
----
4319
467
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + + COUNT( * ) + - 59 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2080
SELECT + + COUNT ( * ) + - 59 FROM tab0 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2081
SELECT + COUNT( * ) + 40 + + ( - COUNT( * ) ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) <> + col2
----
40

skipif mysql # not compatible
query I rowsort label-2081
SELECT + COUNT ( * ) + 40 + + ( - COUNT ( * ) ) FROM tab0 WHERE + CAST ( NULL AS REAL ) <> + col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - col1 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - col1 ) FROM tab1
----
-2

query I rowsort
SELECT - col2 * - col0 + col1 + 10 FROM tab1
----
4920
5030
6245

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * + + ( + - col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 45 >= NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 * + - 76 col0 FROM tab0 AS cor0
----
-5396
-5396
-5396

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2088
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * 38 * 34 > + - CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2088
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * 38 * 34 > + - CAST ( + col1 AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - col0 ) * - - col0 ) NOT IN ( 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT - - ( 49 ) AS col2 FROM tab1 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 * + - 18 FROM tab0 AS cor0
----
-1
-1782
-21
-180
-81
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT col2 DIV + + col0 * - + 48 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT col2 / + + col0 * - + 48 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2096
SELECT DISTINCT col1 AS col2, 12 * CAST( NULL AS SIGNED ) - - 90 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT col1 AS col2, 12 * CAST ( NULL AS INTEGER ) - - 90 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - + 2 * - - 70 FROM tab0 AS cor0
----
-140
-140
-140

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 AS cor0 WHERE + col1 + - col1 IN ( + - col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT - 76 AS col1, COUNT( * ) + + 48 AS col0 FROM tab2 AS cor0
----
-76
51

skipif mysql # not compatible
query II rowsort label-2099
SELECT - 76 AS col1, COUNT ( * ) + + 48 AS col0 FROM tab2 AS cor0
----
-76
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT DISTINCT + + 90 * + MAX( + col2 ) AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8910
-3

skipif mysql # not compatible
query II rowsort label-2100
SELECT DISTINCT + + 90 * + MAX ( + col2 ) AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8910
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + + SUM( + 48 ) AS col2 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2101
SELECT + + SUM ( + 48 ) AS col2 FROM tab0 AS cor0
----
144

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 95 + + 27 + - + ( col1 )
----

query I rowsort
SELECT ALL col0 * - 73 * - + col2 FROM tab1
----
357408
366095
451724

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + - 8 - col2 >= + ( + col1 ) * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT + - 92 FROM tab0 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-2105
SELECT + - 92 FROM tab0 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT COUNT( * ) * MAX( + + 65 ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-2106
SELECT COUNT ( * ) * MAX ( + + 65 ) FROM tab0
----
195

query I rowsort
SELECT ALL col0 + + col0 * - col2 FROM tab2
----
-1012
-2496
-4275

query II rowsort
SELECT ALL + col2 AS col0, 40 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT col0 + - 53 DIV + - col1 AS col0 FROM tab1 AS cor0
----
54
92
95

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT col0 + - 53 / + - col1 AS col0 FROM tab1 AS cor0
----
54
92
95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 63 * col1 * 87 / - + 39 * - + col0 IS NOT NULL
----

query I rowsort
SELECT 19 + - - col0 FROM tab2 AS cor0
----
65
83
94

query I rowsort
SELECT ALL - - col1 + - + 41 * - col0 AS col2 FROM tab2 AS cor0
----
1937
2701
3142

query I rowsort
SELECT + 77 + - col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2114
SELECT - 80 + + MAX( DISTINCT col0 ) AS col0, COUNT( * ) + + + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
17
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2114
SELECT - 80 + + MAX ( DISTINCT col0 ) AS col0, COUNT ( * ) + + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - COUNT( * ) + 65 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2115
SELECT - COUNT ( * ) + 65 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2116
SELECT + 85 + + COUNT( * ) DIV + ( - 73 ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 85 + + COUNT ( * ) / + ( - 73 ) AS col0 FROM tab2 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 6 * - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + 1
----

query I rowsort
SELECT ALL 71 + - col0 AS col0 FROM tab0 cor0
----
-16
-26
56

query I rowsort
SELECT DISTINCT - ( - - 42 ) + 43 - - col0 * + + col0 FROM tab0
----
226
7570
9410

query I rowsort
SELECT ALL + 45 * + col1 + col1 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ALL col0 - + 84 * col0 FROM tab1
----
-4233
-7055
-7553

query III rowsort
SELECT * FROM tab2 WHERE + - ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT - CAST( NULL AS SIGNED ) - - 16 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT - CAST ( NULL AS INTEGER ) - - 16 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 - + - 98, col1 AS col0 FROM tab0
----
113
81
185
21
195
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 60 AS col0 FROM tab2
----
46
-60
64
-60
75
-60

query III rowsort
SELECT * FROM tab1 WHERE - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT SUM( ALL + col2 ) - + - COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-2128
SELECT SUM ( ALL + col2 ) - + - COUNT ( * ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT MIN( 72 ) AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT MIN ( 72 ) AS col0 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 >= 58 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + 95 * - 46 - + col0 AS col0 FROM tab2 AS cor0
----
-4416
-4434
-4445

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT 7 + + 74 <= - 78 * + - 68 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 col0 FROM tab2 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT MAX( + + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2137
SELECT MAX ( + + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 90
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 90
----
0

query I rowsort
SELECT 9 AS col2 FROM tab2 cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT + SUM( - + col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT DISTINCT + SUM ( - + col0 ) col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT - - ( + + 54 ) FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2141
SELECT - - ( + + 54 ) FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT MIN( - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT MIN ( - col0 ) FROM tab1
----
-91

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 + + col2 FROM tab0
----
15
32
87
-77
97
2

query I rowsort
SELECT - col0 * + + col1 * - col2 * + col0 AS col1 FROM tab0
----
1589490
856575
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT DISTINCT 80 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 80 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab1
----
21

query I rowsort
SELECT + col2 * 31 AS col2 FROM tab0
----
1457
3069
310

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT + ( - MAX( + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + ( - MAX ( + col1 ) ) FROM tab1
----
-47

query I rowsort
SELECT DISTINCT ( - col0 ) + - - 65 FROM tab0
----
-22
-32
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 + - col1 col0 FROM tab1 AS cor0
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT - 31 + - COUNT( - - 70 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - 31 + - COUNT ( - - 70 ) FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT CAST( 75 AS SIGNED ) FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2153
SELECT CAST ( 75 AS INTEGER ) FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 53 FROM tab1 AS cor0
----
2703
4505
4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN col2 + + - 80 + + col2 AND + - 3 / + 67
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + MAX( DISTINCT - 93 ) FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + MAX ( DISTINCT - 93 ) FROM tab0 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT DISTINCT + + CAST( col2 AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + col1 + - 31 + - col2 + + col0 * + 6 FROM tab2 AS cor0
----
273
390
428

query I rowsort
SELECT + col2 + - + 76 FROM tab0 AS cor0
----
-29
-66
23

query I rowsort
SELECT ALL - col2 + + 4 AS col0 FROM tab1 AS cor0
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT + - COUNT( * ) - - 12 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + - COUNT ( * ) - - 12 AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL col0 + + + col0 AS col1 FROM tab1
----
102
170
182

query I rowsort
SELECT + 65 + - col0 FROM tab0
----
-22
-32
50

query I rowsort
SELECT DISTINCT + 12 + - col1 * - col2 AS col0 FROM tab0
----
111
222
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT DISTINCT COUNT ( * ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL + COUNT( * ) * - 57 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + COUNT ( * ) * - 57 FROM tab2 AS cor0
----
-171

query I rowsort
SELECT DISTINCT + col2 * - 33 FROM tab1 AS cor0
----
-1947
-2244
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT + col0 * - CAST( + CAST( 9 AS SIGNED ) AS SIGNED ) * + + col1 AS col2 FROM tab2 AS cor0
----
-21114
-44352
-45225

skipif mysql # not compatible
query I rowsort label-2170
SELECT + col0 * - CAST ( + CAST ( 9 AS INTEGER ) AS INTEGER ) * + + col1 AS col2 FROM tab2 AS cor0
----
-21114
-44352
-45225

query I rowsort
SELECT DISTINCT 5 * 69 FROM tab1 AS cor0
----
345

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT ALL - + MIN( ( - 68 ) ), 97 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
68
-291

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL - + MIN ( ( - 68 ) ), 97 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
68
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT - ( - SUM( + col2 ) ) AS col1, - 48 col0 FROM tab1 AS cor0
----
223
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2173
SELECT - ( - SUM ( + col2 ) ) AS col1, - 48 col0 FROM tab1 AS cor0
----
223
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + + 98 * + 48 col2 FROM tab1 AS cor0
----
418656
418656
418656

query II rowsort
SELECT - col2 AS col1, 24 FROM tab1
----
-59
24
-68
24
-96
24

query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT - col1, ( col2 ) AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + 44 * COUNT( * ) * + 67 + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + 44 * COUNT ( * ) * + 67 + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT ALL - ( - 28 ) AS col0, MIN( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
28
51

skipif mysql # not compatible
query II rowsort label-2180
SELECT ALL - ( - 28 ) AS col0, MIN ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
28
51

query I rowsort
SELECT + 35 + + 49 AS col0 FROM tab1 AS cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 27 * col2 FROM tab2 AS cor0
----
46
-621
64
-1080
75
-1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL - CAST( + 39 AS SIGNED ) col1 FROM tab2 cor0
----
-39
-39
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT ALL - CAST ( + 39 AS INTEGER ) col1 FROM tab2 cor0
----
-39
-39
-39

query II rowsort
SELECT + col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT - MIN( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - MIN ( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT COUNT( DISTINCT - + 86 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT COUNT ( DISTINCT - + 86 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL CAST( + 11 AS SIGNED ) AS col1 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL CAST ( + 11 AS INTEGER ) AS col1 FROM tab2
----
11
11
11

onlyif mysql # DIV for integer division: 
query II rowsort label-2188
SELECT DISTINCT + col1 AS col0, ( - col2 ) DIV + col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-1
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2188
SELECT DISTINCT + col1 AS col0, ( - col2 ) / + col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-1
47
0
5
0

query I rowsort
SELECT - col0 * - + col2 * + ( ( - - 20 ) ) AS col0 FROM tab1
----
100300
123760
97920

query I rowsort
SELECT + 44 * + 83 FROM tab1
----
3652
3652
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT - ( + MIN( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - ( + MIN ( + col1 ) ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ( col0 ) FROM tab1 cor0 WHERE col0 * + + 27 / 56 * - + 15 * - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL + 9 * - MAX( - + col2 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 9 * - MAX ( - + col2 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
NULL

query I rowsort
SELECT col1 + + + 46 AS col1 FROM tab2
----
113
123
97

query II rowsort
SELECT ALL - col0, 49 AS col2 FROM tab0
----
-15
49
-87
49
-97
49

query I rowsort
SELECT - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL COUNT( * ) + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL COUNT ( * ) + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + col2 * - + 63 AS col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2201
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - ( - col2 ) + + 66, col0, - col1 )
----

query I rowsort
SELECT DISTINCT + 0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col0 * - 50 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT 55 * - + ( + + 42 ) AS col2 FROM tab2
----
-2310
-2310
-2310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col2 FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT COUNT( - 0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT COUNT ( - 0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 * + 80 + col2 * - - col2 BETWEEN + 53 AND + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0 cor0
----
-35

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - COUNT( DISTINCT + - 6 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT - COUNT ( DISTINCT + - 6 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL - COUNT( col2 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2214
SELECT ALL - COUNT ( col2 ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL + 92 DIV 47 + col1 * 59 * + col0 AS col1 FROM tab0 AS cor0
----
107794
5724
71686

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 92 / 47 + col1 * 59 * + col0 AS col1 FROM tab0 AS cor0
----
107794
5724
71686

query I rowsort
SELECT DISTINCT + 75 FROM tab2 cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT ALL - - 4 DIV - + ( - col2 ) * - 95 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - - 4 / - + ( - col2 ) * - 95 AS col2 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT - 24, + 84 AS col1 FROM tab0 AS cor0
----
-24
84
-24
84
-24
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + MAX( - + col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2220
SELECT + MAX ( - + col1 ) AS col2 FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0 WHERE NOT 67 * - - CAST( col2 AS SIGNED ) * + + col2 + col2 > ( + 42 )
----

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0 WHERE NOT 67 * - - CAST ( col2 AS INTEGER ) * + + col2 + col2 > ( + 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0
----
-21

query II rowsort
SELECT DISTINCT 33 * - + 26, col1 * - col1 AS col1 FROM tab1
----
-858
-196
-858
-2209
-858
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col0 col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT - 35 + col2 * col2 AS col1 FROM tab2
----
1565
3329
494

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 14
----

query I rowsort
SELECT DISTINCT - col1 + + + 37 AS col0 FROM tab0 AS cor0
----
-44
16
36

query II rowsort
SELECT - + col1, - col2 AS col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> 51
----

query II rowsort
SELECT ALL - - col2 * - + col1 + - + 55 + + col0, + col2 AS col0 FROM tab2 AS cor0
----
-1182
23
-3071
40
-3866
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT - 40 + 53 - + + COUNT( DISTINCT col0 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - 40 + 53 - + + COUNT ( DISTINCT col0 ) FROM tab2
----
10

query I rowsort
SELECT - col0 * - 91 FROM tab1
----
4641
7735
8281

query I rowsort
SELECT DISTINCT ( + + 94 ) FROM tab0 AS cor0 WHERE NOT + col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT 86 * col0 + + 36 - + + ( - 9 ) + - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT 86 * col0 + + 36 - + + ( - 9 ) + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 82 + - 43 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 58 ) IS NULL
----

query II rowsort
SELECT + + col2 * - + 10, + col2 * 45 AS col1 FROM tab0 cor0
----
-100
450
-470
2115
-990
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - 13 * + MAX( - col2 ) FROM tab2 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - 13 * + MAX ( - col2 ) FROM tab2 AS cor0
----
299

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) * 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT CAST( + 4 AS SIGNED ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT CAST ( + 4 AS INTEGER ) FROM tab2
----
4

query III rowsort
SELECT * FROM tab0 WHERE NOT + 10 * - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 45 = - 69 * col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2245
SELECT DISTINCT * FROM tab2 WHERE + + CAST( col0 AS SIGNED ) * + 72 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2245
SELECT DISTINCT * FROM tab2 WHERE + + CAST ( col0 AS INTEGER ) * + 72 IS NULL
----

query II rowsort
SELECT - col0 AS col1, + 74 FROM tab2
----
-46
74
-64
74
-75
74

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT DISTINCT col1 + + 21 FROM tab2 WHERE + col0 * - col0 IS NOT NULL
----
72
88
98

query I rowsort
SELECT ALL col0 * + ( - 76 ) AS col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT - MIN( DISTINCT - 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - MIN ( DISTINCT - 37 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT DISTINCT - ( col0 ) DIV + + col2 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - ( col0 ) / + + col2 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + - col0 * 58 - col1 FROM tab1 AS cor0
----
-2972
-4935
-5325

query I rowsort
SELECT DISTINCT - - col0 * - + 49 AS col1 FROM tab0 AS cor0
----
-4263
-4753
-735

query I rowsort
SELECT col1 * - col1 + - + 89 FROM tab0 AS cor0
----
-530
-6650
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 45 AND - ( col1 )
----

query I rowsort
SELECT ALL - 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + col1 + 8 FROM tab2 cor0
----
110
142
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + + col0 + + col0 col1 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT + ( - - col2 ) + - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL + 8 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 8 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 29 + + col0 FROM tab0 AS cor0
----
-14
58
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT col1 + col0 * + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT col1 + col0 * + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 + + col2 * + 51 + + col2 + + - col1 + - 71 * + 88 + col0 col2 FROM tab1 AS cor0
----
-1187
-2636
-3068

query I rowsort
SELECT ALL - 49 AS col0 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT ALL - col2 * col1 * col2 + + + col0 + - col2 FROM tab1
----
-129069
-17379
-217305

query I rowsort
SELECT ALL - 51 + - 28 FROM tab1, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT DISTINCT + 1 DIV - - col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + 1 / - - col2 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 63 * col1 = + + col1 - - 96 + 63
----

query I rowsort
SELECT col2 * 58 FROM tab0
----
2726
5742
580

query I rowsort
SELECT ( + 72 ) * col0 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT COUNT( * ) * + + 36 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) * + + 36 FROM tab0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + 86 - + ( + MIN( ALL + col2 ) ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 86 - + ( + MIN ( ALL + col2 ) ) FROM tab2 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - col0 DIV 11 + col0 AS col2 FROM tab0
----
14
80
89

skipif mysql # not compatible
query I rowsort label-2276
SELECT - col0 / 11 + col0 AS col2 FROM tab0
----
14
80
89

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 36 )
----

query I rowsort
SELECT DISTINCT + 64 * + col2 * - col0 AS col0 FROM tab0
----
-45120
-55680
-614592

query I rowsort
SELECT col1 + + + col1 * - + ( - + 33 ) FROM tab0 WHERE - col1 BETWEEN - col2 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, - col1 * - 38 + + col1 col1 FROM tab1 AS cor0
----
14
546
47
1833
5
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT COUNT( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col2 FROM tab1 cor0
----
49
49
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 64 + + + 51 >= - col0 + + - col2 + col0 * col1 - - + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2, col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2285
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT ALL SUM( - CAST( 49 AS SIGNED ) ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL SUM ( - CAST ( 49 AS INTEGER ) ) FROM tab1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2287
SELECT COUNT ( ALL + col1 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * - 13 * ( - - 69 ) col1 FROM tab2
----
-60996
-60996
-60996

query I rowsort
SELECT DISTINCT - col1 * - 95 AS col2 FROM tab1
----
1330
4465
475

query I rowsort
SELECT ALL 21 * + col0 FROM tab1
----
1071
1785
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2291
SELECT DISTINCT + MIN( DISTINCT - CAST( + ( + - col1 ) AS SIGNED ) ) * - 20 AS col1, + ( + COUNT( * ) ) AS col2 FROM tab1
----
-100
3

skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT + MIN ( DISTINCT - CAST ( + ( + - col1 ) AS INTEGER ) ) * - 20 AS col1, + ( + COUNT ( * ) ) AS col2 FROM tab1
----
-100
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2292
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + ( - 85 ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col2 FROM tab2 cor0
----
28
37
9

query II rowsort
SELECT ALL col0 AS col1, + 81 FROM tab2 cor0
----
46
81
64
81
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > 34
----

query I rowsort
SELECT DISTINCT + + col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + 78 + + + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 78 + + + COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT + col1 + + - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + MIN( DISTINCT + 74 ) + - 3 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + MIN ( DISTINCT + 74 ) + - 3 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + MIN( ALL - 0 ) col2 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT + MIN ( ALL - 0 ) col2 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT col1 + - + 30 + + + col1 * + col1 AS col1 FROM tab2
----
2622
4526
5976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT - COUNT( * ) * + ( SUM( DISTINCT + 89 ) ) + COUNT( * ) + + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) * + ( SUM ( DISTINCT + 89 ) ) + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT 18 + + col0 * - col1 FROM tab2
----
-2328
-4910
-5007

query I rowsort
SELECT ALL col0 * - col1 - + + 24 AS col0 FROM tab0
----
-121
-1239
-1851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2307
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2307
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT ALL 85 AS col0 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT 13 * + 94 FROM tab2 AS cor0
----
1222
1222
1222

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + col2 + 20 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * 45 + + + 36 / - col1 IS NOT NULL
----

query I rowsort
SELECT 30 * - 20 FROM tab0 AS cor0
----
-600
-600
-600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2315
SELECT - - ( 13 ) / + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - + CAST( - col2 AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - - ( 13 ) / + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - + CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - 93 + - - 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 WHERE + col1 <= - 78 - + + 4
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 48 FROM tab2 WHERE - col2 <> NULL
----

query II rowsort
SELECT ALL - 99 AS col1, - 7 FROM tab2
----
-99
-7
-99
-7
-99
-7

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( - col1 ) IS NULL
----

query II rowsort
SELECT - 6 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT SUM( - col2 ) * - COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT SUM ( - col2 ) * - COUNT ( * ) FROM tab1
----
669

query I rowsort
SELECT + 39 + + + 62 FROM tab1
----
101
101
101

query I rowsort
SELECT + + 4 + + col2 - - 79 AS col2 FROM tab2 AS cor0
----
106
123
141

query I rowsort
SELECT DISTINCT - 90 * AVG ( ALL + + 15 ) FROM tab1 AS cor0 WHERE 28 - + + 55 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT ALL + col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + + col1 * - + 19 FROM tab1 AS cor0 WHERE - col2 + - col2 >= - col2
----

query II rowsort
SELECT ALL - col2 * + + col2 + col1 AS col2, + ( 83 ) * + 32 FROM tab1
----
-3476
2656
-4577
2656
-9202
2656

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT - MAX( + - col1 ) - + - 6 - + + COUNT( * ) + - 57 col1 FROM tab0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2331
SELECT DISTINCT - MAX ( + - col1 ) - + - 6 - + + COUNT ( * ) + - 57 col1 FROM tab0
----
-53

query II rowsort
SELECT ALL - col0 AS col2, 14 AS col2 FROM tab2
----
-46
14
-64
14
-75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + + COUNT( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2333
SELECT + + COUNT ( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - 77 + - 39 AS col1, col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-116
51
-116
67
-116
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT + col2 DIV col1 - - - col2 DIV - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2335
SELECT + col2 / col1 - - - col2 / - col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - col0 - 35 AS col2 FROM tab0
----
-122
-132
-50

query I rowsort
SELECT + 89 - + + col0 FROM tab1
----
-2
38
4

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND ( ( - col0 ) ) + - col0 * - 33
----

query I rowsort
SELECT DISTINCT - col1 - - + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 84 * - 74 FROM tab0
----
-6216
-6216
-6216

query I rowsort
SELECT - 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT + - 72 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 73
----

query I rowsort
SELECT - - 34 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT ALL + + col2 * + 4 FROM tab0 AS cor0
----
188
396
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT 17 * + col1 + - - col2 DIV + col0 FROM tab0 AS cor0
----
1380
18
357

skipif mysql # not compatible
query I rowsort label-2350
SELECT 17 * + col1 + - - col2 / + col0 FROM tab0 AS cor0
----
1380
18
357

query I rowsort
SELECT + + 56 FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 * + 79, col2 col2 FROM tab1 AS cor0
----
4187
59
4187
68
4187
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT DISTINCT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT + 81 - + - 1 * + col0 + col0 * - col1 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT + 81 - + - 1 * + col0 + col0 * - col1 * - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2354
SELECT * FROM tab2 WHERE NOT + 53 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2354
SELECT * FROM tab2 WHERE NOT + 53 * - CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab1
----
55

query I rowsort
SELECT col0 * - + 96 FROM tab1
----
-4896
-8160
-8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col2 FROM tab1 WHERE NOT + ( 37 ) IS NULL
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT - col0 / + + CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT - col0 / + + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1, col2 - - col1 FROM tab0
----
1
100
21
31
81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2360
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col1 <= - 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab2
----
4

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + 79 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 79 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT + 77 + - col2 FROM tab2 AS cor0
----
19
37
54

query II rowsort
SELECT + col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT MAX( 25 ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT MAX ( 25 ) AS col1 FROM tab1
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2369
SELECT DISTINCT + col1 AS col0, CAST( NULL AS DECIMAL ) / + + 30 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2369
SELECT DISTINCT + col1 AS col0, CAST ( NULL AS REAL ) / + + 30 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT + ( 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT DISTINCT + - COUNT( DISTINCT - + ( + col0 ) ) + + 94 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + - COUNT ( DISTINCT - + ( + col0 ) ) + + 94 FROM tab0 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT - col0 DIV - + col0 + + 62 - - col2 + + 2 * - - col2 * + col1 + - - ( 51 ) * col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
11502681
1378361
6289463

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - col0 / - + col0 + + 62 - - col2 + + 2 * - - col2 * + col1 + - - ( 51 ) * col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
11502681
1378361
6289463

query I rowsort
SELECT 69 + + col2 * 59 FROM tab2
----
1426
2429
3491

query I rowsort
SELECT + 72 FROM tab2 WHERE NULL IS NULL
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 > - col1
----

onlyif mysql # aggregate syntax: 
query III rowsort label-2378
SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT( * ) col1, + SUM( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1
----
360
21
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2378
SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT ( * ) col1, + SUM ( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1
----
360
21
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2379
SELECT MIN( - - ( + + 76 ) ), + CAST( - MAX( DISTINCT col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
76
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2379
SELECT MIN ( - - ( + + 76 ) ), + CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
76
-81

query I rowsort
SELECT DISTINCT - 69 * - + col1 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT + 51 * - col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query I rowsort
SELECT DISTINCT + + 31 * - ( col1 ) * - ( + + col2 ) * - col0 + - - 19 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
-2124845
-777306
-9015897

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + ( + 65 ) * COUNT( * ) * + 66 FROM tab0 AS cor0
----
12870

skipif mysql # not compatible
query I rowsort label-2383
SELECT + ( + 65 ) * COUNT ( * ) * + 66 FROM tab0 AS cor0
----
12870

query II rowsort
SELECT + col2, + col1 - - - 93 FROM tab2
----
23
-42
40
-16
58
-26

query II rowsort
SELECT ALL + 14 AS col1, + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to d767d90baa25712fcddd67a25198d5e4

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT 45 AS col1, MIN( - 40 ) AS col1 FROM tab1 AS cor0
----
45
-40

skipif mysql # not compatible
query II rowsort label-2386
SELECT 45 AS col1, MIN ( - 40 ) AS col1 FROM tab1 AS cor0
----
45
-40

query I rowsort
SELECT ALL 44 * - + col1 FROM tab2 AS cor0
----
-2244
-2948
-3388

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + ( 35 )
----

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL + col1 DIV col0 * - col1 FROM tab0 AS cor0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + col1 / col0 * - col1 FROM tab0 AS cor0
----
-405
0
0

query I rowsort
SELECT + col1 * - 34 + col1 FROM tab0 AS cor0
----
-2673
-33
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ( + col0 ) * + - col2 * + + CAST( NULL AS SIGNED ) + - + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ( + col0 ) * + - col2 * + + CAST ( NULL AS INTEGER ) + - + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - + 61 AS col1 FROM tab1
----
-2867
-305
-854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2394
SELECT * FROM tab2 WHERE NOT + 91 * - col2 * - - col1 <= + CAST( NULL AS SIGNED ) * - + col2
----

skipif mysql # not compatible
query III rowsort label-2394
SELECT * FROM tab2 WHERE NOT + 91 * - col2 * - - col1 <= + CAST ( NULL AS INTEGER ) * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT MIN( ALL col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2397
SELECT MIN ( ALL col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT ALL COUNT ( * ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT MAX( - ( + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2399
SELECT MAX ( - ( + col1 ) ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT col1 DIV + - 63 * - - ( col1 ) * + col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2400
SELECT col1 / + - 63 * - - ( col1 ) * + col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL 75 + + col0 FROM tab1 AS cor0
----
126
160
166

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col1 FROM tab2 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - COUNT( * ) + - + 86 AS col1 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2404
SELECT - COUNT ( * ) + - + 86 AS col1 FROM tab2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT + + CAST( + - 78 AS SIGNED ) FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-2405
SELECT + + CAST ( + - 78 AS INTEGER ) FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL + col0 + + col1 * 42 AS col2 FROM tab0 AS cor0
----
139
3417
969

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2407
SELECT - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT - ( col0 ) DIV - ( + + col1 ) FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2409
SELECT - ( col0 ) / - ( + + col1 ) FROM tab1 AS cor0
----
1
17
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = NULL OR NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT - + ( + CAST( MIN( DISTINCT - - col1 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2411
SELECT - + ( + CAST ( MIN ( DISTINCT - - col1 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT + COUNT( * ) - 58 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + COUNT ( * ) - 58 FROM tab1
----
-55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2413
SELECT + 18 - - col2 + + col1 * CAST( NULL AS DECIMAL ) / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 18 - - col2 + + col1 * CAST ( NULL AS REAL ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT COUNT( * ) * + - 97 col2 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT COUNT ( * ) * + - 97 col2 FROM tab0
----
-291

query I rowsort
SELECT - col2 - + 64 AS col0 FROM tab1
----
-123
-132
-160

query I rowsort
SELECT - 98 * + col1 FROM tab2
----
-4998
-6566
-7546

query II rowsort
SELECT col1 AS col0, 62 FROM tab1
----
14
62
47
62
5
62

query I rowsort
SELECT col1 * + col1 * 12 * - - col1 FROM tab1
----
1245876
1500
32928

query I rowsort
SELECT col2 * - - 38 * - + col1 + + ( col1 ) FROM tab1 AS cor0
----
-11205
-121401
-51058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 * + 38 col0 FROM tab2 AS cor0
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT + 74 * - col0 AS col0 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + - COUNT( ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + - COUNT ( ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col0 * + + 62 AS col1 FROM tab0 AS cor0
----
-5394
-6014
-930

query I rowsort
SELECT ALL - + col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1 * + 79
----

query I rowsort
SELECT - col2 * + 47 FROM tab0
----
-2209
-4653
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - COUNT( * ) * + 41 * + ( + + 54 ) FROM tab1
----
-6642

skipif mysql # not compatible
query I rowsort label-2432
SELECT - COUNT ( * ) * + 41 * + ( + + 54 ) FROM tab1
----
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT SUM( col0 ) + 68, SUM( - col1 ) col2 FROM tab1
----
295
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2434
SELECT SUM ( col0 ) + 68, SUM ( - col1 ) col2 FROM tab1
----
295
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT - col0 + + col0 * CAST( NULL AS SIGNED ) * - + col1 + - 19 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT - col0 + + col0 * CAST ( NULL AS INTEGER ) * - + col1 + - 19 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT + col2 * 50 + + 26 DIV + col1 FROM tab1
----
2955
3400
4801

skipif mysql # not compatible
query I rowsort label-2436
SELECT + col2 * 50 + + 26 / + col1 FROM tab1
----
2955
3400
4801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL CAST( - col2 AS SIGNED ) * - 26 AS col2 FROM tab0
----
1222
2574
260

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL CAST ( - col2 AS INTEGER ) * - 26 AS col2 FROM tab0
----
1222
2574
260

query I rowsort
SELECT - col1 * col0 + + 0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 57 * col2 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL + col0 DIV 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + col0 / 79 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + 79 FROM tab0
----
166
176
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col1 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT - ( col1 ) DIV - 9 AS col0 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2446
SELECT - ( col1 ) / - 9 AS col0 FROM tab1
----
0
1
5

query I rowsort
SELECT DISTINCT - col1 * - col0 - 38 AS col2 FROM tab0
----
1177
1789
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT - 4 DIV + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 4 / + col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT + MAX( DISTINCT + col0 ) DIV 90 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2450
SELECT + MAX ( DISTINCT + col0 ) / 90 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT - ( - col2 ) DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT - ( - col2 ) / + col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT COUNT( * ) * COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * - col0 + col1 * - ( col0 ) col1 FROM tab2
----
-5290
-9024
-9825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT * FROM tab1 WHERE - col0 >= col2 + CAST( NULL AS SIGNED ) / ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2454
SELECT * FROM tab1 WHERE - col0 >= col2 + CAST ( NULL AS INTEGER ) / ( col0 )
----

query I rowsort
SELECT DISTINCT - 13 * ( col1 ) FROM tab0
----
-1053
-13
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL 73 + MAX( DISTINCT 58 ) AS col1 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL 73 + MAX ( DISTINCT 58 ) AS col1 FROM tab0
----
131

query I rowsort
SELECT - 1 * + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - MAX( DISTINCT - col1 ) * 30 col0 FROM tab1
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2458
SELECT - MAX ( DISTINCT - col1 ) * 30 col0 FROM tab1
----
150

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col1 ) ) + + col0 BETWEEN col2 * + col1 AND + col0 * - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT + col0 + col1 DIV ( - ( + ( - 13 ) ) ) AS col0 FROM tab0
----
21
88
97

skipif mysql # not compatible
query I rowsort label-2461
SELECT + col0 + col1 / ( - ( + ( - 13 ) ) ) AS col0 FROM tab0
----
21
88
97

query I rowsort
SELECT DISTINCT + col0 * + 7 AS col1 FROM tab2
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT - SUM( - col1 ) * - 85 FROM tab1
----
-5610

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - SUM ( - col1 ) * - 85 FROM tab1
----
-5610

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= + 97 / col0 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col1 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2466
SELECT * FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) * + ( col1 * col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2466
SELECT * FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) * + ( col1 * col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND ( - col1 - - 86 )
----

query I rowsort
SELECT col2 * - 91 + col1 FROM tab0
----
-4196
-889
-9008

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - 3 )
----

query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col0 * - col1 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT - col0 DIV 94 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT - col0 / 94 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 / 34 + col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT 27 * COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT 27 * COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NULL IN ( 28 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NULL IN ( 28 * - col0 )
----
0

query I rowsort
SELECT - 85 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + COUNT( col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2481
SELECT + COUNT ( col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-2482
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT 31 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2484
SELECT 31 / - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-3

query I rowsort
SELECT ALL 48 * + 26 AS col0 FROM tab1 cor0 WHERE ( col0 * ( 73 ) - - col1 ) NOT BETWEEN ( - ( col0 ) + col1 ) AND ( + 43 )
----
1248
1248
1248

query I rowsort
SELECT + col1 * + 64 + + 12 AS col0 FROM tab2 AS cor0
----
3276
4300
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL + 31 * + 31 + MIN( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 31 * + 31 + MIN ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
864

query I rowsort
SELECT 62 + - 39 AS col0 FROM tab0 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * - 49 col0 FROM tab2 AS cor0
----
-2499
-3283
-3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT ALL 2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < col1 * CAST( 4 * + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < col1 * CAST ( 4 * + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - COUNT( * ) + + 6 AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - COUNT ( * ) + + 6 AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col0 * col2 + + 83 FROM tab0 AS cor0
----
788
953
9686

query I rowsort
SELECT ALL + col1 * 19 FROM tab2
----
1273
1463
969

query I rowsort
SELECT ALL col0 * col1 * col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT 76 FROM tab2 WHERE 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2496
SELECT + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) * - + COUNT( * ) * COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT 11 * + 51 + - col0 + ( - 45 ) FROM tab1 AS cor0
----
425
431
465

query I rowsort
SELECT + ( + + 59 ) AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - 20 + col1 AS col1 FROM tab1 cor0
----
-15
-6
27

query I rowsort
SELECT 74 + + - col1 FROM tab1 AS cor0
----
27
60
69

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - col1 <> ( col0 )
----
51
67
77

query I rowsort
SELECT ALL - col0 + + - 93 AS col2 FROM tab0 AS cor0
----
-108
-180
-190

query I rowsort
SELECT ALL - ( - 0 ) - + col1 + col0 FROM tab1
----
37
44
80

query I rowsort
SELECT + col1 + - + 23 FROM tab2
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2506
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( ( col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2506
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( ( col0 ) AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / + col1 BETWEEN + col2 AND col1 + ( ( 75 ) ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL ( ( - + COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL ( ( - + COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT MAX( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2510
SELECT MAX ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL - MAX( + - col0 ) + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - MAX ( + - col0 ) + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2513
SELECT ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + ( + MIN( DISTINCT + + 12 ) ) * 59 AS col1 FROM tab1 cor0
----
708

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + ( + MIN ( DISTINCT + + 12 ) ) * 59 AS col1 FROM tab1 cor0
----
708

query I rowsort
SELECT DISTINCT + col2 * - 65 * + col0 * + 25 AS col1 FROM tab0 AS cor0
----
-1145625
-1413750
-15604875

onlyif mysql # DIV for integer division: 
query II rowsort label-2516
SELECT ALL - col1, 9 DIV col2 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2516
SELECT ALL - col1, 9 / col2 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - col0 * + col2, - 27 AS col2 FROM tab0
----
-705
-27
-870
-27
-9603
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + + col2 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 94 AND - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 < NULL
----

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 AS cor0 WHERE NOT 69 <> NULL
----

query I rowsort
SELECT ALL 88 * + 9 FROM tab1 AS cor0
----
792
792
792

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 15 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL MAX( DISTINCT + ( col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL MAX ( DISTINCT + ( col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT DISTINCT 42 AS col2, COUNT( * ) AS col1 FROM tab0
----
42
3

skipif mysql # not compatible
query II rowsort label-2528
SELECT DISTINCT 42 AS col2, COUNT ( * ) AS col1 FROM tab0
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT COUNT( * ) * - 88 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) * - col0 * - 59 <= + 44
----
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( * ) * - 88 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) * - col0 * - 59 <= + 44
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT - + col0 FROM tab0 AS cor0 WHERE + 19 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2531
SELECT - + col0 FROM tab0 AS cor0 WHERE + 19 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 57 + + + col0 + + - 88 * - col1 FROM tab1 AS cor0
----
1340
4284
582

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - MIN( + col0 ) + ( - SUM( + - 94 ) ) FROM tab0 cor0
----
267

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - MIN ( + col0 ) + ( - SUM ( + - 94 ) ) FROM tab0 cor0
----
267

query I rowsort
SELECT + - 91 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 39, + col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT + - COUNT( * ) + - - COUNT( * ) - 78 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + - COUNT ( * ) + - - COUNT ( * ) - 78 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT 10 + - COUNT( * ) * - 9 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT 10 + - COUNT ( * ) * - 9 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ( + COUNT( * ) ) + 40 col1 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2537
SELECT ( + COUNT ( * ) ) + 40 col1 FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2539
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2539
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT SUM( + 77 ) AS col0 FROM tab2, tab0 AS cor0
----
693

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT SUM ( + 77 ) AS col0 FROM tab2, tab0 AS cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + 2 * + COUNT( * ) + - 85 * - + 90 AS col0 FROM tab0
----
7656

skipif mysql # not compatible
query I rowsort label-2542
SELECT + 2 * + COUNT ( * ) + - 85 * - + 90 AS col0 FROM tab0
----
7656

query II rowsort
SELECT ALL col2, col0 - + 52 FROM tab0
----
10
35
47
-37
99
45

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + - col1 ) * + 63 + - - 56 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + - col1 ) * + 63 + - - 56 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, 11 col0 FROM tab0 AS cor0
----
15
11
87
11
97
11

query I rowsort
SELECT DISTINCT - + 41 * col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query II rowsort
SELECT col1 AS col0, 44 FROM tab2 cor0
----
51
44
67
44
77
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT CAST( - 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-2549
SELECT CAST ( - 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + + 89 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT - CAST( - COUNT( DISTINCT col1 ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2551
SELECT - CAST ( - COUNT ( DISTINCT col1 ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 WHERE ( + + col0 * col1 * + col2 - + 59 ) IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL col0 - - col2 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL col0 - - col2 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - 41 * + 25 * + + col2 FROM tab2 AS cor0
----
-23575
-41000
-59450

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 33 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 91 ) <> ( - 77 + - col2 * - + col0 * + 85 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2559
SELECT COUNT( * ) DIV + - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-2559
SELECT COUNT ( * ) / + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-1
3

query I rowsort
SELECT ALL - ( - 10 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 10 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT + COUNT( * ) DIV - ( COUNT( * ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2562
SELECT + COUNT ( * ) / - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + - 38 AS col0 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + 68 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT CAST( NULL AS SIGNED ) * col0 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT CAST ( NULL AS INTEGER ) * col0 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col1, 73 AS col0 FROM tab1
----
14
73
47
73
5
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - MIN( col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - MIN ( col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab2
----
92

query I rowsort
SELECT + col0 * + col0 + col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + COUNT( - 95 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2571
SELECT + COUNT ( - 95 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1, - col1 AS col2 FROM tab2 cor0
----
51
-51
67
-67
77
-77

query II rowsort
SELECT + 38 AS col1, col2 + - col2 - 16 * col2 FROM tab0 AS cor0
----
38
-1584
38
-160
38
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT ( - CAST( NULL AS SIGNED ) ) * - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT ( - CAST ( NULL AS INTEGER ) ) * - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 80 * 26 + col0 FROM tab2 AS cor0
----
2126
2144
2155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col1 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT COUNT( ALL - + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT COUNT ( ALL - + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2579
SELECT ALL - - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT DISTINCT + 7 / 37 / 3 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( + + col0 AS SIGNED ) - - + col0 * - + 7 AND + - 33
----

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + 7 / 37 / 3 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( + + col0 AS INTEGER ) - - + col0 * - + 7 AND + - 33
----

query I rowsort
SELECT 43 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT MIN( 67 ) FROM tab2, tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2582
SELECT MIN ( 67 ) FROM tab2, tab2 AS cor0
----
67

query II rowsort
SELECT + 40 + - + col1, col2 AS col2 FROM tab1 cor0
----
-7
68
26
96
35
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2584
SELECT + + col2 + col1 + - col2 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT + + col2 + col1 + - col2 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2585
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) + - 41 + - COUNT( * ) col0, 76 * 74 FROM tab0 AS cor0
----
-43
5624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2585
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) + - 41 + - COUNT ( * ) col0, 76 * 74 FROM tab0 AS cor0
----
-43
5624

query I rowsort
SELECT - col2 * + + 96 AS col1 FROM tab1 AS cor0 WHERE ( - 76 * col0 * + 45 ) IS NOT NULL
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) * CAST( + + col2 AS SIGNED ) + col2 - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) * CAST ( + + col2 AS INTEGER ) + col2 - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL + COUNT( - col0 ) * + 44 * + CAST( - ( - COUNT( * ) ) AS SIGNED ) + + 8 - + 20 AS col1 FROM tab1 AS cor0
----
384

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + COUNT ( - col0 ) * + 44 * + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + 8 - + 20 AS col1 FROM tab1 AS cor0
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 72 AS col0 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab2 WHERE col2 <> + col2 * - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / - col0 / + + col2 col1 FROM tab1 WHERE NULL BETWEEN + - col0 * - 57 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT + SUM( CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2595
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2596
SELECT - - ( CAST( NULL AS DECIMAL ) ) + - ( - COUNT( * ) ) * - - ( 42 ) + - ( - 38 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT - - ( CAST ( NULL AS REAL ) ) + - ( - COUNT ( * ) ) * - - ( 42 ) + - ( - 38 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ( col0 ) - + 39 FROM tab1 cor0
----
12
46
52

query II rowsort
SELECT + + col1 + ( - col1 ) AS col2, - 70 + - - 19 AS col0 FROM tab0 AS cor0
----
0
-51
0
-51
0
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT - COUNT( * ) + 63 col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT DISTINCT - COUNT ( * ) + 63 col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL 61 + - MAX( - ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL 61 + - MAX ( - ( + col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT col2 FROM tab1 WHERE col2 <> col0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2603
SELECT DISTINCT COUNT( * ) DIV - 68, 53 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2603
SELECT DISTINCT COUNT ( * ) / - 68, 53 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0
53

query I rowsort
SELECT + ( + + 55 ) * - col2 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT ALL col2 * ( - + col2 ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( * ) * 38 AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) * 38 AS col0 FROM tab1 AS cor0
----
114

query I rowsort
SELECT ALL + 1 * col2 * 35 * col1 AS col1 FROM tab2 cor0
----
107800
136010
41055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - 99 * + + 58 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - 99 * + + 58 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - - + 29 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2610
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2610
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT ALL - 83 DIV col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - 83 / col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT COUNT( * ) DIV - - 98 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT COUNT ( * ) / - - 98 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT + + col1 AS col0, - CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2614
SELECT + + col1 AS col0, - CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - - 87 * + 15 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 88 FROM tab1 WHERE NOT + ( - - ( + 65 ) ) <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT - 59 DIV - - SUM( + 98 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT DISTINCT - 59 / - - SUM ( + 98 ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + ( - COUNT( * ) ) * - 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-2619
SELECT + ( - COUNT ( * ) ) * - 64 FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 <> NULL
----
0

query I rowsort
SELECT + col1 / col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + ( col1 )
----

query I rowsort
SELECT ( + - 87 ) FROM tab2
----
-87
-87
-87

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1
----
25
25
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS 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-2625
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + 60 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + 60 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - - col2, col2 * + col2 + - col0, 45 * + col0 - + col0 * col2 * col1 * - col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - col1 + + 62 AS col1 FROM tab1 AS cor0
----
106
142
99

query II rowsort
SELECT DISTINCT + 12, col0 AS col2 FROM tab1 cor0
----
12
51
12
85
12
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT - 90 + - col0 / - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 90 + - col0 / - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2630
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2630
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2631
SELECT + ( + - col0 ) + - col1 AS col1, CAST( - ( col0 ) AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-142
-142
-97
-97

skipif mysql # not compatible
query II rowsort label-2631
SELECT + ( + - col0 ) + - col1 AS col1, CAST ( - ( col0 ) AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-142
-142
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT + SUM( DISTINCT - ( - + 58 ) ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT + SUM ( DISTINCT - ( - + 58 ) ) FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT + COUNT( * ) * CAST( + 36 AS SIGNED ) + CAST( NULL AS SIGNED ) * - + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT + COUNT ( * ) * CAST ( + 36 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT col0 + - col0 + - 9 DIV - - 13 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT col0 + - col0 + - 9 / - - 13 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT - 84 * - col2 * - + col0 + - col1 + col1 * + + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT - 84 * - col2 * - + col0 + - col1 + col1 * + + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( + 36 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( + 36 ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT col0 DIV col1 + ( - ( + - col0 ) ) + - - 81 FROM tab2
----
127
145
157

skipif mysql # not compatible
query I rowsort label-2638
SELECT col0 / col1 + ( - ( + - col0 ) ) + - - 81 FROM tab2
----
127
145
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - 17 + COUNT( * ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 17 + COUNT ( * ) FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col1 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT + 50 * 66 / COUNT( * ) - + CAST( NULL AS SIGNED ) + + + 25 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 50 * 66 / COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + + 25 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT COUNT( * ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2644
SELECT COUNT ( * ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT SUM( + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT SUM ( + + col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN + 85 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2647
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 54 * + col2 + - 75 * + 55 FROM tab2 AS cor0
----
-1965
-2883
-993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 9 + 43 col1 FROM tab2 AS cor0
----
-371
-533
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 66 col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + + ( - - col2 ) AS col2 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 77 col1 FROM tab2
----
46
77
64
77
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + MAX( ALL - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2654
SELECT + MAX ( ALL - 11 ) FROM tab2
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 98 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT - 4 DIV + col0 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT DISTINCT - 4 / + col0 col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) + 12 AS col0 FROM tab1 AS cor0
----
-2
-35
7

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) + 12 AS col0 FROM tab1 AS cor0
----
-2
-35
7

query II rowsort
SELECT - + 9 AS col1, col1 FROM tab0 AS cor0
----
-9
1
-9
21
-9
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT + AVG ( + CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT + AVG ( + CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + - col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - col0 * - 24 FROM tab2
----
1104
1536
1800

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - - 65 BETWEEN NULL AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - COUNT( * ) + - + SUM( - 17 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COUNT ( * ) + - + SUM ( - 17 ) AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT + ( + 38 ) * - MAX( ALL + - col1 ) AS col0, 83 AS col2 FROM tab2 AS cor0 WHERE col0 + col0 * - 19 / + col2 + + col1 IS NOT NULL
----
1938
83

skipif mysql # not compatible
query II rowsort label-2665
SELECT + ( + 38 ) * - MAX ( ALL + - col1 ) AS col0, 83 AS col2 FROM tab2 AS cor0 WHERE col0 + col0 * - 19 / + col2 + + col1 IS NOT NULL
----
1938
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT ALL ( - 88 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL ( - 88 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + + 72 col1 FROM tab1 AS cor0
----
154

query I rowsort
SELECT - - ( + 56 ) * + - col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT col0 * - col1 + - 83 FROM tab0 AS cor0
----
-1298
-180
-1910

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 < NULL
----

query I rowsort
SELECT ALL - 51 + 92 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= col1 + - + col1 - + 17
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 7 AND col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - 4 + - 86 + - col0 FROM tab1
----
-141
-175
-181

query I rowsort
SELECT DISTINCT - 98 - - col2 * + 80 + - - ( col1 ) + + 90 FROM tab0
----
3833
7913
813

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT 65 - - SUM( - 49 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2677
SELECT 65 - - SUM ( - 49 ) FROM tab1
----
-82

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + - + col1 IN ( + - col1 + - 17, col1, - + col0 ) )
----

query II rowsort
SELECT DISTINCT + col2, + col2 + + col2 FROM tab2
----
23
46
40
80
58
116

query II rowsort
SELECT + - col0 * + 64 + + col1 AS col1, col2 FROM tab0 cor0
----
-5547
10
-6207
99
-879
47

query II rowsort
SELECT 55 + + col2 + col1 AS col2, col0 AS col1 FROM tab2 cor0
----
129
46
172
64
180
75

query II rowsort
SELECT ALL col2, col0 * - col1 AS col2 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT - COUNT( * ), - 40 AS col2 FROM tab2 AS cor0
----
-3
-40

skipif mysql # not compatible
query II rowsort label-2683
SELECT - COUNT ( * ), - 40 AS col2 FROM tab2 AS cor0
----
-3
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT ALL - + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 99 DIV col1 * + 37 >= + col0
----
-9

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 99 / col1 * + 37 >= + col0
----
-9

query I rowsort
SELECT ALL - + ( - 76 ) AS col1 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT col1 * + - col0 * - col1 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2687
SELECT col1 * ( - + CAST( + col2 AS SIGNED ) ) DIV 75 AS col1 FROM tab2
----
-15
-41
-51

skipif mysql # not compatible
query I rowsort label-2687
SELECT col1 * ( - + CAST ( + col2 AS INTEGER ) ) / 75 AS col1 FROM tab2
----
-15
-41
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT - - 88 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2688
SELECT - - 88 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
-9

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 70 * + col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT - + COUNT( * ) + - - MIN( - col2 ) + 63 + 95 + + + CAST( NULL AS SIGNED ) / - - 52 FROM tab2 WHERE NOT - 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT - + COUNT ( * ) + - - MIN ( - col2 ) + 63 + 95 + + + CAST ( NULL AS INTEGER ) / - - 52 FROM tab2 WHERE NOT - 95 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT MIN( DISTINCT col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2693
SELECT MIN ( DISTINCT col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT DISTINCT col2 DIV col1 * + 54 col1 FROM tab1
----
324
54
594

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2694
SELECT DISTINCT col2 / col1 * + 54 col1 FROM tab1
----
324
54
594

query I rowsort
SELECT - col1 * col0 + col1 AS col0 FROM tab2
----
-2295
-4851
-4958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT DISTINCT - col0 DIV col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - col0 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL + 74 / + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + 74 / + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 3 * + + col1 FROM tab1
----
141
15
42

query I rowsort
SELECT DISTINCT - col1 + ( - 14 ) * + 16 FROM tab2
----
-275
-291
-301

query I rowsort
SELECT 40 * - - col2 FROM tab1
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - 85 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + ( - + 22 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query II rowsort
SELECT DISTINCT - col1 AS col1, 69 AS col2 FROM tab1 AS cor0
----
-14
69
-47
69
-5
69

query I rowsort
SELECT + + 89 FROM tab2 AS cor0 WHERE NULL >= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT - col2 + + col0 DIV col0 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - col2 + + col0 / col0 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL + col1 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - ( + - 74 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2710
SELECT - ( + - 74 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - col2 * col0 + - 15 FROM tab0 AS cor0
----
-720
-885
-9618

query I rowsort
SELECT + ( - + 15 ) * - col2 + col0 + + col2 FROM tab2
----
1003
414
704

query I rowsort
SELECT DISTINCT col1 - - 47 AS col1 FROM tab2
----
114
124
98

query I rowsort
SELECT DISTINCT - 44 + + col2 * - - 44 AS col0 FROM tab2
----
1716
2508
968

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 64 BETWEEN - col1 - + col0 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL SUM( - 39 ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL SUM ( - 39 ) FROM tab0
----
-117

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( 1, 41 - - col0, + - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT MIN( - col1 ) FROM tab1 AS cor0 WHERE NOT ( ( + ( + col2 ) * + col0 IS NULL ) )
----
-47

skipif mysql # not compatible
query I rowsort label-2718
SELECT MIN ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( ( + ( + col2 ) * + col0 IS NULL ) )
----
-47

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - + col1
----

query I rowsort
SELECT ALL - 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2721
SELECT DISTINCT col0 DIV + 57, col0 AS col2 FROM tab1 AS cor0
----
0
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-2721
SELECT DISTINCT col0 / + 57, col0 AS col2 FROM tab1 AS cor0
----
0
51
1
85
1
91

query I rowsort
SELECT + - col0 * + 0 + - + 7 FROM tab2 WHERE NOT - col2 - - 69 IS NULL
----
-7
-7
-7

query I rowsort
SELECT - + 94 * 85 AS col0 FROM tab0 AS cor0
----
-7990
-7990
-7990

query I rowsort
SELECT - ( 34 ) FROM tab2 AS cor0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( + + col0, + 67 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + - ( 74 ) + 86 + - 57 AS col1 FROM tab0 AS cor0
----
-3449
-711
-7297

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2727
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2727
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + + 47 IS NULL AND NOT col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - MIN( + ( col2 ) ) + + - COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2729
SELECT - MIN ( + ( col2 ) ) + + - COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + + 21 col1 FROM tab1 AS cor0
----
123
191
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL + col2 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT MAX( + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2733
SELECT MAX ( + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col2, + 54 AS col1 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2737
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1, col1 + - ( + CAST( NULL AS SIGNED ) ) + col0 * + + ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2737
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2738
SELECT CAST( NULL AS SIGNED ), col2 * - col0 FROM tab0 WHERE ( NOT col2 / + CAST( NULL AS DECIMAL ) * - 30 > NULL )
----

skipif mysql # not compatible
query II rowsort label-2738
SELECT CAST ( NULL AS INTEGER ), col2 * - col0 FROM tab0 WHERE ( NOT col2 / + CAST ( NULL AS REAL ) * - 30 > NULL )
----

query I rowsort
SELECT col0 * - 21 FROM tab0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2740
SELECT COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( + col2 ) + - - 17 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT ALL - col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
2295
4851
4958

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + col0 * + 25 FROM tab0
----
17625
21750
240075

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + MAX ( + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ( - COUNT( * ) ) * + 26 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2746
SELECT ( - COUNT ( * ) ) * + 26 FROM tab1
----
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 36 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 78 ) + + 33 FROM tab2 cor0
----
111

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 62 * + + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 9 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9
9
9

query II rowsort
SELECT ALL + col2 AS col2, + 65 + 20 FROM tab0
----
10
85
47
85
99
85

query II rowsort
SELECT + col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL - MAX( - 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL - MAX ( - 77 ) FROM tab2
----
77

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT + 34 AS col1, 78 - + col1 * + col2 FROM tab2
----
34
-1095
34
-3002
34
-3808

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2758
SELECT COUNT ( + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( * ) DIV MIN( + + col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + COUNT ( * ) / MIN ( + + col0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE ( col1 + + - 45 ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT - col0 * - CAST( + 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1196
1664
1950

skipif mysql # not compatible
query I rowsort label-2761
SELECT - col0 * - CAST ( + 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1196
1664
1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + CAST( - ( - + col0 ) AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + CAST ( - ( - + col0 ) AS INTEGER ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2763
SELECT DISTINCT + 68 col1, COUNT( * ) FROM tab2 AS cor0
----
68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2763
SELECT DISTINCT + 68 col1, COUNT ( * ) FROM tab2 AS cor0
----
68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT COUNT( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT COUNT ( + col1 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 48 < + + col1 * + col1 + - - 84 + - ( - ( 79 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT DISTINCT - - col2 + - - col2, 90 AS col0 FROM tab0 cor0
----
198
90
20
90
94
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT - COUNT( DISTINCT + 85 ) + - MIN( - 19 ) FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) + + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT - COUNT ( DISTINCT + 85 ) + - MIN ( - 19 ) FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) + + + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT 81 DIV - 14 + + COUNT( 31 ) AS col1 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT 81 / - 14 + + COUNT ( 31 ) AS col1 FROM tab1 cor0
----
-2

query I rowsort
SELECT ALL - - 85 + + - 45 AS col1 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - - ( - 17 ) AS col2 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ( + + 2 ) * + col2 + - col2 + + col1 * 73 * + - col1 FROM tab2 AS cor0
----
-189850
-327639
-432777

query I rowsort
SELECT + 59 + + + col0 FROM tab0
----
146
156
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + + col1 FROM tab1 WHERE NULL BETWEEN + 21 AND - + 77 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + - 39 * + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT ALL col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 99 * 59 + 18 + col0 + + 51 AS col1 FROM tab2 AS cor0
----
5956
5974
5985

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + - COUNT( * ) + 12 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + - COUNT ( * ) + 12 AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT + col0 + + + col1 DIV - 43 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2783
SELECT + col0 + + + col1 / - 43 FROM tab2 AS cor0
----
45
63
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2785
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 DIV + - ( col1 ) - + col2 * - col2 DIV + - 25 AS col1, + 14 * - 16 + + 3 DIV + 77 FROM tab2 AS cor0
----
NULL
-224
NULL
-224
NULL
-224

skipif mysql # not compatible
query II rowsort label-2785
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 / + - ( col1 ) - + col2 * - col2 / + - 25 AS col1, + 14 * - 16 + + 3 / + 77 FROM tab2 AS cor0
----
NULL
-224
NULL
-224
NULL
-224

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - - ( + + col1 ) IS NOT NULL AND NOT col1 = NULL
----

query II rowsort
SELECT 44 + col1, col0 AS col2 FROM tab0 AS cor0
----
125
15
45
97
65
87

query I rowsort
SELECT ALL - 44 * + col0 AS col1 FROM tab2 AS cor0
----
-2024
-2816
-3300

query I rowsort
SELECT DISTINCT - - ( + - 28 ) + - col1 - - 14 FROM tab1 AS cor0
----
-19
-28
-61

query I rowsort
SELECT + 5 * - col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + MIN( 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + MIN ( 97 ) AS col2 FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT ALL COUNT( * ), - SUM( col0 ) AS col2 FROM tab1
----
3
-227

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL COUNT ( * ), - SUM ( col0 ) AS col2 FROM tab1
----
3
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2795
SELECT ALL - MAX( col0 ) DIV - + COUNT( * ) col1, COUNT( * ) AS col0 FROM tab1
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2795
SELECT ALL - MAX ( col0 ) / - + COUNT ( * ) col1, COUNT ( * ) AS col0 FROM tab1
----
30
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL + - CAST( - 50 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + - CAST ( - 50 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT COUNT( * ) * 18 * 41 FROM tab0 AS cor0
----
2214

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT COUNT ( * ) * 18 * 41 FROM tab0 AS cor0
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL SUM( - 95 ) FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL SUM ( - 95 ) FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT - - COUNT( * ) DIV - 76 + 7 AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2799
SELECT - - COUNT ( * ) / - 76 + 7 AS col0 FROM tab0 AS cor0
----
7

query II rowsort
SELECT DISTINCT 17 * + col0 AS col2, + col0 AS col2 FROM tab0
----
1479
87
1649
97
255
15

query I rowsort
SELECT ALL + 37 * - col0 AS col1 FROM tab1
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT + 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-2802
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 20 + col1 FROM tab0
----
101
21
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * 72 * + + col2 + + ( + - col2 ) * - - col1 col2 FROM tab0
----
-135783
-278091
-28290

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - col1 DIV - 61 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - col1 / - 61 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT ( col2 ) + 36 AS col2 FROM tab1 AS cor0
----
104
132
95

query I rowsort
SELECT - 7 + - col0 + - ( + col2 ) FROM tab2 AS cor0
----
-111
-140
-76

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT col2 + + + ( + col0 ) FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 0, 29, + - col0 + + - col1 )
----

query I rowsort
SELECT ALL + - 81 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT col1 + col0 * 70 FROM tab1 AS cor0
----
3584
5955
6417

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2814
SELECT - MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL ( - col2 ) + + - col2 + ( + col1 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 12 IS NULL
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NULL < NULL
----

query II rowsort
SELECT + 75 * - col2 AS col2, 48 AS col1 FROM tab2
----
-1725
48
-3000
48
-4350
48

query I rowsort
SELECT ( + + 66 ) FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2820
SELECT COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 94 * - + col1 AS col1 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT + ( + + col0 ) - - col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ( - col1 ) + col0 AS col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL col0 - + - 7 AS col1 FROM tab1
----
58
92
98

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col1 ) BETWEEN + - 38 AND NULL
----

query I rowsort
SELECT + col2 * 15 FROM tab2
----
345
600
870

query I rowsort
SELECT ( + 86 ) AS col0 FROM tab2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT 69 + - COUNT( * ) AS col2 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-2829
SELECT 69 + - COUNT ( * ) AS col2 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * + col1 + - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + 67 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + 67 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2834
SELECT ALL * FROM tab1 AS cor0 WHERE + 75 * - 70 * - CAST( NULL AS DECIMAL ) + - col0 + - - ( - ( + 61 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2834
SELECT ALL * FROM tab1 AS cor0 WHERE + 75 * - 70 * - CAST ( NULL AS REAL ) + - col0 + - - ( - ( + 61 ) ) IS NOT NULL
----

query II rowsort
SELECT - col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT - MIN( DISTINCT ( 85 ) ) * - ( + + 72 ) col0 FROM tab0
----
6120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2836
SELECT - MIN ( DISTINCT ( 85 ) ) * - ( + + 72 ) col0 FROM tab0
----
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + 93 * + COUNT( * ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + 93 * + COUNT ( * ) FROM tab1
----
279

query I rowsort
SELECT DISTINCT 13 * - + 83 * ( col2 ) AS col2 FROM tab2
----
-24817
-43160
-62582

query I rowsort
SELECT 95 * + 15 AS col1 FROM tab0
----
1425
1425
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT - MAX( ALL - 16 ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2840
SELECT - MAX ( ALL - 16 ) AS col0 FROM tab2
----
16

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT ( - - 99 ) FROM tab0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 col0, 82 * - col1 AS col0 FROM tab0
----
-705
-6642
-870
-1722
-9603
-82

query I rowsort
SELECT + 95 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT 26 * - COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2846
SELECT 26 * - COUNT ( * ) FROM tab2 AS cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 14 <> 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT - col2 DIV + + 22 + + 63 AS col0 FROM tab0 AS cor0
----
59
61
63

skipif mysql # not compatible
query I rowsort label-2848
SELECT - col2 / + + 22 + + 63 AS col0 FROM tab0 AS cor0
----
59
61
63

query I rowsort
SELECT 90 * + - 26 + + 29 * + ( - + 14 ) FROM tab0 AS cor0
----
-2746
-2746
-2746

query I rowsort
SELECT ALL + col0 * - col0 + 86 * 5 * 61 AS col2 FROM tab0 AS cor0
----
16821
18661
26005

query II rowsort
SELECT DISTINCT + col1 * + col0 * 85, - 24 AS col2 FROM tab2 AS cor0
----
199410
-24
418880
-24
427125
-24

query II rowsort
SELECT col2 + - col2, + col1 FROM tab0
----
0
1
0
21
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + - 71 + col0 col0 FROM tab2
----
-1587
-2776
-4043

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT - COUNT( * ) + - - 31 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2854
SELECT - COUNT ( * ) + - - 31 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL + SUM( ALL + + col0 ) - - 54 FROM tab1
----
281

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + SUM ( ALL + + col0 ) - - 54 FROM tab1
----
281

query II rowsort
SELECT ALL col0, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2857
SELECT - col0 + + - CAST( NULL AS SIGNED ), - 29 AS col1 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29

skipif mysql # not compatible
query II rowsort label-2857
SELECT - col0 + + - CAST ( NULL AS INTEGER ), - 29 AS col1 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2858
SELECT col2 / + CAST( NULL AS DECIMAL ) - CAST( NULL AS SIGNED ) + - 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT col2 / + CAST ( NULL AS REAL ) - CAST ( NULL AS INTEGER ) + - 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 31 - + col2 FROM tab0 AS cor0
----
-130
-41
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT ( + - SUM( - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT ( + - SUM ( - col0 ) ) FROM tab0
----
199

query I rowsort
SELECT + col1 * + + 26 AS col0 FROM tab1 cor0
----
1222
130
364

query I rowsort
SELECT - ( + col1 ) * - ( col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 77 * col1 AS col1 FROM tab1
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + 56 * COUNT( * ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 56 * COUNT ( * ) FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT DISTINCT + COUNT( * ), - MIN( + 6 ) - - - ( + SUM( 15 ) ) * + 64 AS col0 FROM tab0
----
3
-2886

skipif mysql # not compatible
query II rowsort label-2868
SELECT DISTINCT + COUNT ( * ), - MIN ( + 6 ) - - - ( + SUM ( 15 ) ) * + 64 AS col0 FROM tab0
----
3
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2869
SELECT MAX ( - + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 5 + + 76 + - 6 * - 53 AS col1 FROM tab1 AS cor0
----
399
399
399

onlyif mysql # DIV for integer division: 
query II rowsort label-2873
SELECT + col2, + 31 DIV + + col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-2873
SELECT + col2, + 31 / + + col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2874
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT COUNT( * ) + + 35 FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-2876
SELECT COUNT ( * ) + + 35 FROM tab1 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - 85 * + COUNT( * ) + COUNT( * ) * 40 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT - 85 * + COUNT ( * ) + COUNT ( * ) * 40 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0

query I rowsort
SELECT ALL - ( - ( - col2 ) ) * + col0 + ( - 64 ) AS col1 FROM tab0
----
-769
-934
-9667

query I rowsort
SELECT DISTINCT - + 82 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-82

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 IS NULL
----

query I rowsort
SELECT - 83 - + 3 AS col0 FROM tab0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab1
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2884
SELECT ALL 30 + - - COUNT( ALL - + CAST( NULL AS DECIMAL ) ) col0 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT ALL 30 + - - COUNT ( ALL - + CAST ( NULL AS REAL ) ) col0 FROM tab2
----
30

query I rowsort
SELECT + 55 * + 84 + + col1 * col2 + + + ( + col1 ) AS col0 FROM tab1
----
4920
5978
7863

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT col0 + 29 AS col2 FROM tab0
----
116
126
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL - col2 DIV + + col0 * col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - col2 / + + col0 * col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT - MIN( ALL + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2890
SELECT - MIN ( ALL + col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL MAX( 75 ) * + + 12 * - 78 AS col0 FROM tab0
----
-70200

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL MAX ( 75 ) * + + 12 * - 78 AS col0 FROM tab0
----
-70200

query II rowsort
SELECT ALL col1 AS col1, ( 86 ) AS col2 FROM tab0 AS cor0
----
1
86
21
86
81
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT ALL COUNT( * ) * + 95 AS col0, 15 + 72 col2 FROM tab2
----
285
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2893
SELECT ALL COUNT ( * ) * + 95 AS col0, 15 + 72 col2 FROM tab2
----
285
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT + COUNT( ALL + - ( + + col0 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT + COUNT ( ALL + - ( + + col0 ) ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col1, + 25 col1 FROM tab1
----
-425
25
-4277
25
-714
25

onlyif mysql # DIV for integer division: 
query II rowsort label-2896
SELECT 47 DIV 76 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-2896
SELECT 47 / 76 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + MAX( ALL col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2898
SELECT + MAX ( ALL col1 ) FROM tab1
----
47

query I rowsort
SELECT 77 + + col0 + + - col1 FROM tab0
----
11
143
173

query I rowsort
SELECT DISTINCT - 0 * - + col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - 54 * col2 + + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + col1 NOT BETWEEN - col1 + - - ( + - col1 ) AND - + col1 + + col1
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - MIN( ALL + col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - MIN ( ALL + col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + + 82 + + col1 + 24 * + 54 * - - col0 AS col0 FROM tab2 cor0
----
102023
61553
86301

query II rowsort
SELECT DISTINCT col2, + 85 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT - 90 FROM tab1 AS cor0 WHERE - 80 * - 80 BETWEEN col0 - + 98 + + - CAST( NULL AS SIGNED ) + col1 * - 5 AND col2
----

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 90 FROM tab1 AS cor0 WHERE - 80 * - 80 BETWEEN col0 - + 98 + + - CAST ( NULL AS INTEGER ) + col1 * - 5 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + + col0 * - col0 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 + col2 col2 FROM tab2 cor0 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT DISTINCT MAX( - + 63 ) - - 8 * - 0, + COUNT( * ) AS col1 FROM tab2 cor0
----
-63
3

skipif mysql # not compatible
query II rowsort label-2914
SELECT DISTINCT MAX ( - + 63 ) - - 8 * - 0, + COUNT ( * ) AS col1 FROM tab2 cor0
----
-63
3

query I rowsort
SELECT + col2 + + 47 AS col0 FROM tab1 AS cor0
----
106
115
143

query I rowsort
SELECT + col1 + - 30 FROM tab2 AS cor0
----
21
37
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT col2 + + - col2 + + col0 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT col2 + + - col2 + + col0 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL - 3 + MIN( - col1 ) + + MIN( DISTINCT - col0 ) + - - MAX( col0 ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - 3 + MIN ( - col1 ) + + MIN ( DISTINCT - col0 ) + - - MAX ( col0 ) AS col0 FROM tab1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + 28 col2 FROM tab1
----
-2573
-7197
-8253

query I rowsort
SELECT DISTINCT + col0 - + + col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT MIN( ALL + col1 ) * + CAST( - - 64 AS SIGNED ) FROM tab2
----
3264

skipif mysql # not compatible
query I rowsort label-2921
SELECT MIN ( ALL + col1 ) * + CAST ( - - 64 AS INTEGER ) FROM tab2
----
3264

query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT + col1 DIV col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2923
SELECT + col1 / col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT ALL + col0 DIV - 32 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + col0 / - 32 FROM tab0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - 48 * + - COUNT( * ) * + COUNT( * ) * + - 44 FROM tab2, tab2 cor0
----
-171072

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - 48 * + - COUNT ( * ) * + COUNT ( * ) * + - 44 FROM tab2, tab2 cor0
----
-171072

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / + - col1 + - 42 * + - 90 BETWEEN NULL AND - 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 25 AS col0 FROM tab0 AS cor0
----
1
25
21
25
81
25

query I rowsort
SELECT - + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + + 64 / col1 + - - 46 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ( + col0 ) * + 98 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT 43 AS col0 FROM tab2 cor0 WHERE NOT col1 + - ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 49 AS col0 FROM tab0
----
-49
-49
-49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + - col2
----

query II rowsort
SELECT col2, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + 39 FROM tab2 WHERE NOT NULL IS NOT NULL
----
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT - + MIN( ALL - - col1 ) + + 41 * + 75 FROM tab0 WHERE + + 33 <= + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - + MIN ( ALL - - col1 ) + + 41 * + 75 FROM tab0 WHERE + + 33 <= + - col2
----
NULL

query II rowsort
SELECT col0, + 55 FROM tab0 AS cor0
----
15
55
87
55
97
55

query I rowsort
SELECT ALL + + 34 * - + 64 AS col0 FROM tab2 AS cor0
----
-2176
-2176
-2176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - CAST( NULL AS SIGNED ) / col1 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - CAST ( NULL AS INTEGER ) / col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + col2 * 78 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
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-2944
SELECT + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col0, ( 75 ) + - - 8 + + ( + - col2 ) - + + col0 * col1 col1 FROM tab1 AS cor0
----
59
-401
68
-4262
96
-727

query II rowsort
SELECT DISTINCT - col2 - + col1 + + col2, col2 AS col1 FROM tab0 AS cor0 WHERE col2 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + + COUNT( * ) + - MAX( DISTINCT - + col0 ) col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT DISTINCT + + COUNT ( * ) + - MAX ( DISTINCT - + col0 ) col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT - col0 + 99 AS col1 FROM tab1
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - MIN( col0 ) + + 84 AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2949
SELECT - MIN ( col0 ) + + 84 AS col0 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL + MIN( DISTINCT col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
59

query II rowsort
SELECT - + 27 * + 35, - col2 AS col0 FROM tab2 AS cor0
----
-945
-23
-945
-40
-945
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2952
SELECT - MIN ( - col1 ) FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col2 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT 50 * + ( 21 ) + + col2 * - - col0 * - 38 + col0 AS col1 FROM tab1 cor0
----
-184947
-189435
-234003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL + 3 / + CAST( NULL AS SIGNED ) + - 43 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + 3 / + CAST ( NULL AS INTEGER ) + - 43 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 54 - - col1 + - + col2 * col1 * + 0 * + - col0 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT ALL - - col0 + 91 + col1 + col2 FROM tab0 cor0
----
209
234
288

query I rowsort
SELECT ALL - col0 + - - 81 * + col1 FROM tab2
----
4085
5352
6173

query I rowsort
SELECT 89 - col0 AS col1 FROM tab2
----
14
25
43

query III rowsort
SELECT ALL * FROM tab2 WHERE + 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL - SUM( - - 35 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 + col1 AND + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - SUM ( - - 35 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 + col1 AND + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT MIN( + 44 ) - + COUNT( * ) AS col0 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2962
SELECT MIN ( + 44 ) - + COUNT ( * ) AS col0 FROM tab2
----
41

query II rowsort
SELECT - 21 * + col1 * 58 AS col2, + col2 AS col2 FROM tab2
----
-62118
23
-81606
58
-93786
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2964
SELECT DISTINCT 0 AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2964
SELECT DISTINCT 0 AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0
3

query II rowsort
SELECT + col0 AS col1, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( + col1 )
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + 53 AS col0 FROM tab2 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT MIN( ALL - ( 93 ) ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT MIN ( ALL - ( 93 ) ) AS col0 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL col0 - CAST( NULL AS SIGNED ) / 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL col0 - CAST ( NULL AS INTEGER ) / 56 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT MIN( col0 ) + + MIN( - col1 + + col1 * col2 ) AS col2 FROM tab2
----
1168

skipif mysql # not compatible
query I rowsort label-2971
SELECT MIN ( col0 ) + + MIN ( - col1 + + col1 * col2 ) AS col2 FROM tab2
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL SUM( DISTINCT col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT COUNT( * ) + - ( - MIN( + col1 ) + 2 * COUNT( * ) ) col2 FROM tab2
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2973
SELECT COUNT ( * ) + - ( - MIN ( + col1 ) + 2 * COUNT ( * ) ) col2 FROM tab2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2974
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2974
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND CAST ( col0 AS REAL )
----

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE NOT 98 BETWEEN 50 AND col1
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2976
SELECT * FROM tab0 WHERE NOT col1 / CAST( NULL AS DECIMAL ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2976
SELECT * FROM tab0 WHERE NOT col1 / CAST ( NULL AS REAL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 47 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT + COUNT( * ) + 35 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-2978
SELECT + COUNT ( * ) + 35 FROM tab1
----
38

query I rowsort
SELECT + ( - col1 ) + + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + ( col0 ) FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + SUM( DISTINCT 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + SUM ( DISTINCT 25 ) FROM tab1
----
25

query III rowsort
SELECT * FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - MAX( + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2984
SELECT - MAX ( + col2 ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / col2 + 83 NOT IN ( 37 * col1 )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - 54
----
23
40
58

query I rowsort
SELECT DISTINCT - 88 * - col2 AS col0 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT - 39 + - col0 FROM tab2
----
-103
-114
-85

query I rowsort
SELECT DISTINCT 28 * - col2 + + col1 * col1 FROM tab1
----
-1627
-2492
305

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2990
SELECT COUNT( * ) - - 77 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT COUNT ( * ) - - 77 * CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * 6 col2 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT col0 * - col2 - ( col0 ) AS col2 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT col1 * ( col2 * - ( 98 ) ) FROM tab1
----
-131712
-28910
-313208

query I rowsort
SELECT 18 * 12 FROM tab2
----
216
216
216

query I rowsort
SELECT DISTINCT col1 + + 66 FROM tab1 cor0
----
113
71
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < 76 / col2
----

query I rowsort
SELECT ALL col0 + 31 AS col2 FROM tab0 cor0
----
118
128
46

query I rowsort
SELECT DISTINCT 67 + 91 AS col1 FROM tab1 AS cor0
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT 30 / CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL >= col2 / col1
----

skipif mysql # not compatible
query I rowsort label-3000
SELECT 30 / CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL >= col2 / col1
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 WHERE ( ( 74 ) ) IS NULL
----

query I rowsort
SELECT ALL - 36 * + col1 + + 25 AS col2 FROM tab0 AS cor0
----
-11
-2891
-731

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 34 * col2 col1 FROM tab0 AS cor0
----
1679
3367
361

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT ( + col0 ) <> - col1 * + col2
----

query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT SUM( - ( + 83 ) ) FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-3010
SELECT SUM ( - ( + 83 ) ) FROM tab2
----
-249

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - 68 )
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 * - col2 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) < 45
----

query I rowsort
SELECT DISTINCT - col2 + 16 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL + 34 * - COUNT( DISTINCT + col0 ) FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + 34 * - COUNT ( DISTINCT + col0 ) FROM tab1
----
-102

query I rowsort
SELECT 8 + ( 48 + - 45 ) FROM tab1 WHERE NOT col1 IN ( + col0 * ( - col0 ) )
----
11
11
11

query I rowsort
SELECT - col2 * - + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - 18 * col1 + - col1 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-3019
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - 18 * col1 + - col1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + SUM( ALL + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT - - 91 * - - col1 * - 19 FROM tab0 AS cor0
----
-140049
-1729
-36309

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - ( + MAX( DISTINCT - col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3023
SELECT - ( + MAX ( DISTINCT - col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - - col0 * - 97 FROM tab0 AS cor0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT MAX( col2 ) AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) > 80 * + 76
----
58

skipif mysql # not compatible
query I rowsort label-3025
SELECT MAX ( col2 ) AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) > 80 * + 76
----
58

query I rowsort
SELECT ALL - ( + 34 ) AS col1 FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = 66
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT COUNT( * ) DIV ( 58 ) AS col2 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT COUNT ( * ) / ( 58 ) AS col2 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 77 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 42 ) >= ( col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3031
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT - 72 DIV - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
query I rowsort label-3032
SELECT - 72 / - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT * FROM tab2 WHERE NOT + 92 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL - - 43 AS col0 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL ( + - 31 ) + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL ( + - 31 ) + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + - 31 col1 FROM tab0 AS cor0
----
-130
-41
-78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + 40 FROM tab0 AS cor0
----
3480
3880
600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) BETWEEN col0 + 42 * - col1 AND 19 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - 2 * - col0 + col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3045
SELECT ALL 10 DIV - col2 AS col2, + col1 + + - col0 * - col2 AS col0 FROM tab2
----
0
1109
0
2637
0
4417

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL 10 / - col2 AS col2, + col1 + + - col0 * - col2 AS col0 FROM tab2
----
0
1109
0
2637
0
4417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) NOT IN ( 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) NOT IN ( 16 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT ALL SUM( + - col1 ) DIV - COUNT( * ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL SUM ( + - col1 ) / - COUNT ( * ) AS col0 FROM tab2
----
65

query III rowsort
SELECT * FROM tab0 WHERE 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT DISTINCT col2 DIV - 87 col0 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT DISTINCT col2 / - 87 col0 FROM tab1
----
-1
0

query I rowsort
SELECT + col2 FROM tab2 WHERE + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * - ( col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL col2 DIV + - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL col2 / + - col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT - ( + ( - COUNT( * ) ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - ( + ( - COUNT ( * ) ) ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT col0 - + col2 DIV - + 69 * + + 15 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3055
SELECT col0 - + col2 / - + 69 * + + 15 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col0 + + + col0 + - col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 93 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 92 * col1 AS col0 FROM tab2 AS cor0 WHERE 70 IN ( + - 41 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + - - col0 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( + col2 * col0 + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT - 0 + col1 FROM tab0 AS cor0 WHERE + col1 * + 23 + + CAST( 14 AS SIGNED ) >= - col1 * - ( col1 )
----
1
21

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 0 + col1 FROM tab0 AS cor0 WHERE + col1 * + 23 + + CAST ( 14 AS INTEGER ) >= - col1 * - ( col1 )
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + COUNT( DISTINCT - + 22 ) * + + 21 - - COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + COUNT ( DISTINCT - + 22 ) * + + 21 - - COUNT ( * ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT 3 * - - 20 AS col2 FROM tab1 AS cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 79 * col1 - + col0 ) AND ( 55 + - ( col1 + 23 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL + MIN( - 13 ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + MIN ( - 13 ) AS col2 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - 68 + col0 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3067
SELECT - col2 DIV - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT - col2 / - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT + 18 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + 18 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL - col0 - + 39 FROM tab0 AS cor0 WHERE NOT col1 * + ( - col0 ) * - col1 + 68 NOT BETWEEN - col1 AND ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col0 * col0 )
----

query I rowsort
SELECT DISTINCT + col0 - - col0 * - 47 AS col2 FROM tab1 WHERE ( NOT col1 / col1 - 48 IN ( - col2 * + col2 ) )
----
-2346
-3910
-4186

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL >= col0 * - + ( + 99 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - MIN( - + 37 ) AS col2 FROM tab2, tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3073
SELECT - MIN ( - + 37 ) AS col2 FROM tab2, tab0 AS cor0
----
37

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT ALL 29 DIV - col1 col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3075
SELECT ALL 29 / - col1 col1 FROM tab1
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) <= ( col1 + + col0 * col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT + MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3078
SELECT + MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL + SUM( ALL - + 27 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + SUM ( ALL - + 27 ) AS col1 FROM tab2
----
-81

query II rowsort
SELECT 75, 72 + + 51 AS col0 FROM tab0
----
75
123
75
123
75
123

query III rowsort
SELECT ALL * FROM tab2 WHERE - 58 * - + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3082
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST( - - 43 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3082
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST ( - - 43 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT - CAST( + - 33 AS SIGNED ) AS col1 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3083
SELECT - CAST ( + - 33 AS INTEGER ) AS col1 FROM tab1
----
33
33
33

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + ( - ( + col1 ) ) ) + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col0 AS col0, col1 + - - col2 * - - 17 AS col2 FROM tab0 AS cor0
----
15
880
87
191
97
1684

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 45 + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 - + + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT 81 + - + ( + 26 ) AS col2, - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3088
SELECT 81 + - + ( + 26 ) AS col2, - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT + MIN( ALL - 89 ) * + MIN( + col2 ) AS col0 FROM tab0
----
-890

skipif mysql # not compatible
query I rowsort label-3089
SELECT + MIN ( ALL - 89 ) * + MIN ( + col2 ) AS col0 FROM tab0
----
-890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3090
SELECT COUNT( * ) DIV + CAST( + - SUM( DISTINCT + 46 ) AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT COUNT ( * ) / + CAST ( + - SUM ( DISTINCT + 46 ) AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - COUNT( * ) * 17 col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT - COUNT ( * ) * 17 col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-138

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-138

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col1 FROM tab0 cor0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL - 5 + - COUNT( DISTINCT - 73 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - 5 + - COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 * + + col0 * - col2 * - - col1 BETWEEN NULL AND 11
----
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 * + + col0 * - col2 * - - col1 BETWEEN NULL AND 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT - 46 + + - COUNT( 91 ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - 46 + + - COUNT ( 91 ) AS col0 FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3097
SELECT - ( COUNT( DISTINCT col0 ) ) + + 93 + + 87 + + 88 DIV CAST( 88 AS SIGNED ) DIV + COUNT( * ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3097
SELECT - ( COUNT ( DISTINCT col0 ) ) + + 93 + + 87 + + 88 / CAST ( 88 AS INTEGER ) / + COUNT ( * ) FROM tab0 AS cor0
----
177

query I rowsort
SELECT + col2 + + 71 FROM tab0
----
118
170
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT COUNT( * ) * + + SUM( DISTINCT + ( - 70 ) ) + + MIN( - - col2 ) AS col0 FROM tab1
----
-151

skipif mysql # not compatible
query I rowsort label-3099
SELECT COUNT ( * ) * + + SUM ( DISTINCT + ( - 70 ) ) + + MIN ( - - col2 ) AS col0 FROM tab1
----
-151

query I rowsort
SELECT + ( - 21 ) + - col2 FROM tab2
----
-44
-61
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3101
SELECT + COUNT( * ) AS col2, + COUNT( * ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3101
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL - COUNT( * ) * - 27 + - CAST( NULL AS SIGNED ) + + ( - - COUNT( * ) ) * - SUM( 75 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - COUNT ( * ) * - 27 + - CAST ( NULL AS INTEGER ) + + ( - - COUNT ( * ) ) * - SUM ( 75 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3103
SELECT DISTINCT col2, col1 * - 1 DIV + - ( + 79 ) AS col2 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-3103
SELECT DISTINCT col2, col1 * - 1 / + - ( + 79 ) AS col2 FROM tab1
----
59
0
68
0
96
0

query I rowsort
SELECT + col2 + + - col1 * - col0 AS col0 FROM tab0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL - MIN( + 30 ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - MIN ( + 30 ) AS col0 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 1 + + col2 AS col0 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col1 FROM tab1 WHERE NOT + + 69 + col1 * - 8 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 + + 17 + - col0 FROM tab1 cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( + CAST( - col2 AS SIGNED ) / - 64 )
----

skipif mysql # not compatible
query III rowsort label-3110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( + CAST ( - col2 AS INTEGER ) / - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT + SUM( + 97 ) + + 33 col0 FROM tab1 AS cor0
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT DISTINCT + SUM ( + 97 ) + + 33 col0 FROM tab1 AS cor0
----
324

query II rowsort
SELECT + col2 - + - col2, 14 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
198
14
20
14
94
14

query I rowsort
SELECT + - col1 - + - 5 AS col2 FROM tab0 AS cor0
----
-16
-76
4

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3115
SELECT col2 * + CAST( NULL AS DECIMAL ) - - 38 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT col2 * + CAST ( NULL AS REAL ) - - 38 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col0 FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT ALL + - ( 29 ) FROM tab1 cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3118
SELECT SUM( ALL col1 ) / + MIN( col1 / - 74 ) + 87 AS col1 FROM tab0 AS cor0 WHERE NOT + 97 + - + 14 + - CAST( - col0 AS DECIMAL ) + col1 > ( + ( + col0 ) + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT SUM ( ALL col1 ) / + MIN ( col1 / - 74 ) + 87 AS col1 FROM tab0 AS cor0 WHERE NOT + 97 + - + 14 + - CAST ( - col0 AS REAL ) + col1 > ( + ( + col0 ) + - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT - - 68 * MIN( 80 ) FROM tab0 AS cor0
----
5440

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - - 68 * MIN ( 80 ) FROM tab0 AS cor0
----
5440

query I rowsort
SELECT ALL - - 71 * - col1 AS col2 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3121
SELECT + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT - 10 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 10 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT + col2, - col0 + col2 AS col2, col2 FROM tab2
----
9 values hashing to c6b369564649f9e1af73d83ae9d5439b

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / + col0 = - + 87 + col2
----

query I rowsort
SELECT col0 * - 87 AS col0 FROM tab0 cor0
----
-1305
-7569
-8439

query I rowsort
SELECT ALL - + 76 AS col1 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - 52 * + - MIN( - - 95 ) - - 92 FROM tab0 AS cor0
----
5032

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 52 * + - MIN ( - - 95 ) - - 92 FROM tab0 AS cor0
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL + COUNT( - - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + COUNT ( - - col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col1 + + + col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - col0 + - col0 + - col1 * + - col1 FROM tab1
----
-145
2027
94

query II rowsort
SELECT ALL + col1 * col1 + - ( 29 ) AS col0, 32 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
2572
-1472
4460
-2400
5900
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT 0, - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 <= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3134
SELECT 0, - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 <= NULL
----
0
0

query II rowsort
SELECT DISTINCT 50 AS col0, + 54 AS col0 FROM tab0 AS cor0
----
50
54

query I rowsort
SELECT - ( + + col0 ) * - 17 AS col1 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT DISTINCT - - col0 + - - col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3138
SELECT 47 AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3138
SELECT 47 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
47
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 63 + + - 21 + + 47 + + - col2 * - col2 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + MIN( ALL + - 16 ) AS col1 FROM tab1 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3140
SELECT + MIN ( ALL + - 16 ) AS col1 FROM tab1 cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT + ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + 45 ) / + + col1 / col2 - - 92 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + 45 ) / + + col1 / col2 - - 92 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 27 + + + col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT + COUNT( * ) * + 48 - - + 23 + - + 71 AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + COUNT ( * ) * + 48 - - + 23 + - + 71 AS col2 FROM tab1
----
96

query I rowsort
SELECT 17 * col1 FROM tab0 WHERE ( - col1 * + - col2 ) IS NOT NULL
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT + SUM( ALL + ( col0 ) ) / + - 11 / - - 68 FROM tab1 WHERE NULL NOT IN ( col2 / - col1, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + SUM ( ALL + ( col0 ) ) / + - 11 / - - 68 FROM tab1 WHERE NULL NOT IN ( col2 / - col1, col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT 73 DIV - + col2 col1 FROM tab0 WHERE NOT col0 + col0 * + col0 - - col2 - col2 * 11 IN ( + col1 )
----
-1
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3146
SELECT DISTINCT 73 / - + col2 col1 FROM tab0 WHERE NOT col0 + col0 * + col0 - - col2 - col2 * 11 IN ( + col1 )
----
-1
-7
0

query II rowsort
SELECT ALL + 55 * col2 - col1 AS col0, col0 * - col1 FROM tab1
----
3240
-425
3693
-4277
5266
-714

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-3149
SELECT 90 - + 36 AS col0, - col1 DIV - 53 AS col0 FROM tab0
----
54
0
54
0
54
1

skipif mysql # not compatible
query II rowsort label-3149
SELECT 90 - + 36 AS col0, - col1 / - 53 AS col0 FROM tab0
----
54
0
54
0
54
1

query III rowsort
SELECT * FROM tab1 WHERE 16 NOT BETWEEN 10 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT CAST( NULL AS SIGNED ) * 46 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 46 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL - COUNT( - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - COUNT ( - col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3153
SELECT ALL + 23 * col1, col0 + 99 DIV + - 87 - 83 AS col1 FROM tab1
----
1081
7
115
1
322
-33

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL + 23 * col1, col0 + 99 / + - 87 - 83 AS col1 FROM tab1
----
1081
7
115
1
322
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3154
SELECT ALL * FROM tab2 WHERE NOT + - CAST( col1 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3154
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( col1 AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + ( + 58 ) AS col0 FROM tab1 AS cor0
----
2726
290
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col2, + col0 col0 FROM tab1 AS cor0
----
-118
85
-136
91
-192
51

query I rowsort
SELECT ALL 63 * col1 FROM tab1 AS cor0
----
2961
315
882

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL col2 + col2 DIV - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 = + col1
----
10
46
97

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL col2 + col2 / - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 = + col1
----
10
46
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - - ( + + 58 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3161
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-1534
-1564
4320

query I rowsort
SELECT DISTINCT ( 20 ) * col0 + + col0 - col2 AS col1 FROM tab2 AS cor0
----
1304
1517
943

query II rowsort
SELECT ALL + - col2 AS col1, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT ALL - - col1, 75 AS col1 FROM tab2 cor0
----
51
75
67
75
77
75

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL

query II rowsort
SELECT col1 * - col2, col2 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ( - - 69 ) FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 AS col1 FROM tab0 WHERE NOT col2 / + - col0 = NULL
----

query I rowsort
SELECT ALL + col2 + col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL + 69 + - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + 69 + - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT - 5 * col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-306
-402
-462

query I rowsort
SELECT ALL 85 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT DISTINCT ( + 26 ) + + 59 FROM tab1 cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT 30 + - ( - - col1 ) * + col1, - 70 AS col1 FROM tab0 AS cor0
----
-411
-70
-6531
-70
29
-70

query I rowsort
SELECT DISTINCT 76 * + + 74 * + col0 AS col2 FROM tab0
----
489288
545528
84360

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 47 * 97 AS col0 FROM tab0 AS cor0 WHERE 50 + + ( + col1 ) NOT IN ( - + col1 )
----
4559

query I rowsort
SELECT ALL 61 + col1 - - ( + + col2 ) FROM tab2 cor0
----
135
178
186

query I rowsort
SELECT - col0 * 3 + + col2 AS col0 FROM tab1 AS cor0
----
-196
-205
-57

query I rowsort
SELECT - 42 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + - col2 + - - col1 + - + col0 FROM tab1 AS cor0
----
-3561
-4668
-9253

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + + 48 FROM tab1 AS cor0
----
1
34
43

query I rowsort
SELECT ALL col0 + + ( + 73 ) FROM tab0
----
160
170
88

query II rowsort
SELECT DISTINCT - 44 AS col0, + 79 FROM tab2
----
-44
79

query I rowsort
SELECT ALL - 22 - + col2 FROM tab2
----
-45
-62
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT - col0 + - + col2 + col0 + CAST( 54 AS SIGNED ) FROM tab1
----
-14
-42
-5

skipif mysql # not compatible
query I rowsort label-3193
SELECT - col0 + - + col2 + col0 + CAST ( 54 AS INTEGER ) FROM tab1
----
-14
-42
-5

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT - col1 * + col0 <= - col1 + col0
----

query I rowsort
SELECT DISTINCT col0 - - - 35 AS col2 FROM tab2
----
11
29
40

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col0 * + col2 - - col0 AS col1 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT ALL + col2 * + 46 FROM tab0
----
2162
4554
460

query I rowsort
SELECT ALL col0 * + 87 FROM tab2
----
4002
5568
6525

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col1 * col2
----

query I rowsort
SELECT DISTINCT + + 36 AS col2 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + 16 * COUNT( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 16 * COUNT ( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + + 64 AS col0 FROM tab0 AS cor0
----
64
64
64

query II rowsort
SELECT - col1, - col1 * + 12 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1188
-21
-2520
-81
-45684

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + COUNT( * ) * + COUNT( ALL col0 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3205
SELECT + COUNT ( * ) * + COUNT ( ALL col0 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT - - col0 * 88 AS col0 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab1 AS cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3210
SELECT 52 DIV + CAST( + col0 AS SIGNED ), col1 col1 FROM tab0 cor0
----
0
1
0
21
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3210
SELECT 52 / + CAST ( + col0 AS INTEGER ), col1 col1 FROM tab0 cor0
----
0
1
0
21
3
81

query I rowsort
SELECT - + 33 AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - + 70 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL + 62 DIV 13 AS col2 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + 62 / 13 AS col2 FROM tab0
----
4
4
4

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / col2 <> - - 16
----

query I rowsort
SELECT DISTINCT col1 * + col2 * - - col1 AS col0 FROM tab2
----
237160
260362
59823

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT DISTINCT col0 + + + 20 DIV + - 7 AS col2 FROM tab0
----
13
85
95

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT col0 + + + 20 / + - 7 AS col2 FROM tab0
----
13
85
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-3219
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT - col1 * + + CAST( col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-3220
SELECT - col1 * + + CAST ( col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - - ( + 1 ) * 30 + - + 91 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - + 5 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT + 57 + + + col1 AS col0 FROM tab2
----
108
124
134

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN - col2 * + - col2 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + SUM( ALL - col0 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - 12 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT + SUM ( ALL - col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - 12 IS NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - - ( 51 ) + - COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - - ( 51 ) + - COUNT ( * ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 4 >= col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3231
SELECT DISTINCT 91 - - ( + 4 ), - 15 DIV + + COUNT( * ) col1 FROM tab0
----
95
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3231
SELECT DISTINCT 91 - - ( + 4 ), - 15 / + + COUNT ( * ) col1 FROM tab0
----
95
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT + 57 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT + 57 - - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 94 - + col2 FROM tab1
----
1220
411
4350

query I rowsort
SELECT - 3 + + col1 AS col2 FROM tab1
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - COUNT( ALL col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3235
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT - + col2 AS col1 FROM tab0 cor0 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL - 25 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1, - 92 FROM tab1
----
14
-92
47
-92
5
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT COUNT( * ) * - 21 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3241
SELECT COUNT ( * ) * - 21 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL ( + + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL ( + + COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT COUNT( * ) AS col2, + COUNT( * ) * - MIN( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3243
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 * + 45 col2 FROM tab0
----
4275
4275
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * col2 col2 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3246
SELECT ALL COUNT( * ) - + + 17 FROM tab0 WHERE NOT CAST( - 59 AS DECIMAL ) * - + col0 <> - - col1
----
-17

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) - + + 17 FROM tab0 WHERE NOT CAST ( - 59 AS REAL ) * - + col0 <> - - col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3247
SELECT DISTINCT 9 DIV - 56 AS col2, CAST( NULL AS SIGNED ) - - col2 FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3247
SELECT DISTINCT 9 / - 56 AS col2, CAST ( NULL AS INTEGER ) - - col2 FROM tab2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + col2 DIV 20 AS col0 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3248
SELECT + col2 / 20 AS col0 FROM tab2
----
1
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - col1 + + col0 + - - col0 * - col2 * + + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 10 + 64 FROM tab0
----
54
54
54

query I rowsort
SELECT + col1 + - col2 * - 62 FROM tab1
----
3663
4263
5966

query I rowsort
SELECT DISTINCT + col0 * + ( - + 6 ) AS col2 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT ALL - 53 * col0 * - - 58 + col2 AS col2 FROM tab2
----
-141381
-196696
-230492

query I rowsort
SELECT - col2 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT ALL col2 DIV + + col1 AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL col2 / + + col1 AS col2 FROM tab0
----
0
0
99

query I rowsort
SELECT ALL - ( + ( - + col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + COUNT( * ) + + 3 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + COUNT ( * ) + + 3 AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + COUNT( * ) + + 62 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3258
SELECT + COUNT ( * ) + + 62 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 11 + + + col2 + - 97 AS col0 FROM tab2 AS cor0
----
-50
-68
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE - col1 <> + + col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT DISTINCT col2 + - CAST( col2 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT col2 + - CAST ( col2 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT ( - + col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < + col0
----

query I rowsort
SELECT + - 92 + - - col2 FROM tab2 AS cor0
----
-34
-52
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 39 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + CAST( NULL AS SIGNED ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT + CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - - 48 - + col0 AS col0 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT + ( - col1 ) * + 98 AS col0 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT col1 * - col0 + - 3 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 29 / + 75 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT MIN ( + col0 ) FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 5 ) col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + MAX( col1 ) * 42 AS col1 FROM tab0 AS cor0
----
3402

skipif mysql # not compatible
query I rowsort label-3275
SELECT + MAX ( col1 ) * 42 AS col1 FROM tab0 AS cor0
----
3402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + 90 ) col2 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL COUNT( * ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3278
SELECT ALL COUNT ( * ) col2 FROM tab2
----
3

query I rowsort
SELECT + + 48 + + col2 AS col2 FROM tab2 WHERE NOT col2 + + col0 IS NULL
----
106
71
88

query II rowsort
SELECT - col0, + 22 AS col2 FROM tab2 cor0
----
-46
22
-64
22
-75
22

query I rowsort
SELECT ALL col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT - - col2 AS col0, col0 AS col0 FROM tab0 cor0 WHERE NOT col1 - + col1 > - 32
----

query I rowsort
SELECT DISTINCT - 69 * 66 FROM tab2 AS cor0
----
-4554

query I rowsort
SELECT ( - 32 ) FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT 8 + col0 FROM tab0 AS cor0
----
105
23
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3286
SELECT 68, 18 DIV + ( - - col1 ) col2 FROM tab0
----
68
0
68
0
68
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3286
SELECT 68, 18 / + ( - - col1 ) col2 FROM tab0
----
68
0
68
0
68
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 54
----

query I rowsort
SELECT ALL + ( 98 ) AS col0 FROM tab0
----
98
98
98

query I rowsort
SELECT + ( + 11 ) AS col2 FROM tab0
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - col2 * 49 * col2 >= - - col2
----

query I rowsort
SELECT DISTINCT col0 * 72 * - - 44 * + col1 + + col1 FROM tab1 AS cor0
----
1346405
13549583
2261966

query II rowsort
SELECT - 72 + - - ( - 67 ) + + col1, 89 AS col2 FROM tab0 AS cor0
----
-118
89
-138
89
-58
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 + + col2 col2 FROM tab1 AS cor0
----
123
183
206

query I rowsort
SELECT - col0 + - 10 AS col0 FROM tab2 AS cor0
----
-56
-74
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 39 + - 32 * - col1 * + col0 * - 38 + - 64 = + + col2
----

query I rowsort
SELECT DISTINCT + 49 * + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
931

query I rowsort
SELECT DISTINCT - - 9 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3299
SELECT col0 / - + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL + 55 + - + col1 + + 56 DIV col2 DIV col1 FROM tab1 AS cor0
----
41
50
8

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 55 + - + col1 + + 56 / col2 / col1 FROM tab1 AS cor0
----
41
50
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 40 FROM tab0
----
3240
40
840

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + 95 IS NOT NULL
----

query I rowsort
SELECT ALL + 78 * - 15 * + 6 AS col2 FROM tab1
----
-7020
-7020
-7020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3306
SELECT - CAST( NULL AS SIGNED ) col1, COUNT( * ) * COUNT( * ) + + + 48 AS col0 FROM tab0
----
NULL
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3306
SELECT - CAST ( NULL AS INTEGER ) col1, COUNT ( * ) * COUNT ( * ) + + + 48 AS col0 FROM tab0
----
NULL
57

query II rowsort
SELECT - col1 AS col1, col1 * - 98 AS col2 FROM tab2
----
-51
-4998
-67
-6566
-77
-7546

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT COUNT( * ) AS col0, + COUNT( * ) + - 63 FROM tab1
----
3
-60

skipif mysql # not compatible
query II rowsort label-3308
SELECT COUNT ( * ) AS col0, + COUNT ( * ) + - 63 FROM tab1
----
3
-60

query II rowsort
SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT MIN( col0 ) + - - COUNT( + 57 ) + 10 * - + ( + ( SUM( ALL + 8 ) ) ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT MIN ( col0 ) + - - COUNT ( + 57 ) + 10 * - + ( + ( SUM ( ALL + 8 ) ) ) FROM tab0 AS cor0
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT + - col0 + - 34 FROM tab1 cor0
----
-119
-125
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 * + - 34 + ( - - col1 ) FROM tab0
----
-1517
-319
-3365

query I rowsort
SELECT col0 + col0 + + 3 AS col0 FROM tab2
----
131
153
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT col2 DIV col1 + + - 55 AS col1 FROM tab0
----
-55
-55
44

skipif mysql # not compatible
query I rowsort label-3316
SELECT col2 / col1 + + - 55 AS col1 FROM tab0
----
-55
-55
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT + col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3317
SELECT + col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + 36 + + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3319
SELECT + 36 + + COUNT ( * ) FROM tab1
----
39

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 5
----

query I rowsort
SELECT ALL + 16 AS col2 FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT - COUNT( * ) + + 72 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - COUNT ( * ) + + 72 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL + 78, MIN( ALL 27 ) AS col1 FROM tab2
----
78
27

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + 78, MIN ( ALL 27 ) AS col1 FROM tab2
----
78
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT COUNT( ALL - - 4 ) + + + 19 AS col2, + 12 * ( - COUNT( * ) ) FROM tab1
----
22
-36

skipif mysql # not compatible
query II rowsort label-3324
SELECT COUNT ( ALL - - 4 ) + + + 19 AS col2, + 12 * ( - COUNT ( * ) ) FROM tab1
----
22
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT 22 * - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
4290

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT 22 * - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
4290

query II rowsort
SELECT ALL + 87, + col2 AS col0 FROM tab1 cor0
----
87
59
87
68
87
96

query I rowsort
SELECT ALL + col2 + + + 84 * + col1 FROM tab2 AS cor0
----
4307
5686
6508

query I rowsort
SELECT ALL + col1 * col0 + + - col0 - col2 FROM tab0 AS cor0
----
-99
1153
1730

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col0 / - + col1 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT - col0 DIV + + 11 - - - 10 FROM tab2
----
-14
-15
-16

skipif mysql # not compatible
query I rowsort label-3330
SELECT - col0 / + + 11 - - - 10 FROM tab2
----
-14
-15
-16

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT 8 FROM tab0 WHERE + 27 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 48 ) BETWEEN 53 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT + + col0 + - + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3334
SELECT + + col0 + - + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL + COUNT( * ) * + 2 + - 28 col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3335
SELECT ALL + COUNT ( * ) * + 2 + - 28 col1 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT + col0 DIV - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3337
SELECT + col0 / - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + 66 NOT BETWEEN NULL AND + 87 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - 60 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT DISTINCT col2 DIV 14 FROM tab1 AS cor0
----
4
6

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT col2 / 14 FROM tab1 AS cor0
----
4
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3341
SELECT - + col1, - col2 DIV col1 AS col1 FROM tab0 cor0
----
-1
-99
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-3341
SELECT - + col1, - col2 / col1 AS col1 FROM tab0 cor0
----
-1
-99
-21
0
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 * - col0 - - - col0 * - col2 - col2 - - - col1 * - + col2 * - col0 * col0 AND + + col0
----
46
51
23
64
77
40

query I rowsort
SELECT + 72 * + col2 FROM tab0 AS cor0
----
3384
7128
720

query II rowsort
SELECT DISTINCT - col0 * + - 44 AS col2, 60 AS col0 FROM tab0 AS cor0
----
3828
60
4268
60
660
60

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / col2 <= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - MIN( DISTINCT + 20 ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3350
SELECT - MIN ( DISTINCT + 20 ) FROM tab1 AS cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 39 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col1 + - col0 * + 5 / - col1 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 38 / + ( - col1 ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 39 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT DISTINCT - - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 66 * - MIN( + 7 ) FROM tab0
----
-462

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 66 * - MIN ( + 7 ) FROM tab0
----
-462

query I rowsort
SELECT - + 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - - COUNT( * ) * 39 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-3359
SELECT - - COUNT ( * ) * 39 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
351

query I rowsort
SELECT ALL col0 + + + col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT - COUNT( - 44 ) * - 46 * CAST( NULL AS SIGNED ) / 13 + - 10 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( - 44 ) * - 46 * CAST ( NULL AS INTEGER ) / 13 + - 10 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + - - 96 AS col1 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT col1 + - 41 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 39 AS col0, col0 AS col2 FROM tab0 AS cor0
----
39
15
39
87
39
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + SUM( - + col0 ) + + 68 - - 95 + + COUNT( * ) + - 25 AS col0 FROM tab2 AS cor0 WHERE - col0 + + 80 IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-3367
SELECT + SUM ( - + col0 ) + + 68 - - 95 + + COUNT ( * ) + - 25 AS col0 FROM tab2 AS cor0 WHERE - col0 + + 80 IS NOT NULL
----
-44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT COUNT( + col0 ) + - - COUNT( + - 62 ) * 86 col2 FROM tab1
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT DISTINCT COUNT ( + col0 ) + - - COUNT ( + - 62 ) * 86 col2 FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT 55 DIV - + ( + - 42 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT 55 / - + ( + - 42 ) FROM tab2
----
1
1
1

query II rowsort
SELECT ALL col0 * - col0, - col2 AS col0 FROM tab1
----
-2601
-96
-7225
-59
-8281
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT - CAST( 40 AS SIGNED ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - CAST ( 40 AS INTEGER ) FROM tab0
----
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * - ( + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 8 + + ( col2 ) FROM tab2 cor0
----
15
32
50

query I rowsort
SELECT - 12 + col1 FROM tab1 AS cor0
----
-7
2
35

query I rowsort
SELECT ALL + + col1 * - - 65 + 53 * + 34 AS col1 FROM tab0 AS cor0
----
1867
3167
7067

query I rowsort
SELECT DISTINCT - 61 + - col2 FROM tab2 AS cor0
----
-101
-119
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT 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-3379
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - 46 AS col2, + 0 AS col2 FROM tab2 cor0
----
-46
0
-46
0
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - - COUNT( * ) * + 57 + - 99 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3381
SELECT - - COUNT ( * ) * + 57 + - 99 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT + + ( - - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + + ( - - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 29 * + col0 * + col2 * + 58 AS col2 FROM tab2 AS cor0
----
1779556
4305920
7316700

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3385
SELECT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + col2 * ( - + col0 ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ( - + 31 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 47 * ( col1 ) FROM tab1 AS cor0
----
2209
235
658

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL + MIN( col0 ) * + 73 FROM tab2
----
3358

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + MIN ( col0 ) * + 73 FROM tab2
----
3358

query I rowsort
SELECT ALL col2 * 40 * + + col0 FROM tab1
----
195840
200600
247520

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT ALL + ( - col0 ) DIV + - col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + ( - col0 ) / + - col2 AS col0 FROM tab0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col1 col2 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT + MIN( DISTINCT + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3395
SELECT + MIN ( DISTINCT + col0 ) FROM tab2
----
46

query II rowsort
SELECT - 46, + col0 AS col2 FROM tab1
----
-46
51
-46
85
-46
91

query I rowsort
SELECT DISTINCT + 56 * - col0 * col1 FROM tab2
----
-131376
-275968
-281400

query I rowsort
SELECT DISTINCT + 75 * + - 49 FROM tab2 AS cor0
----
-3675

query I rowsort
SELECT ALL - + 99 AS col1 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3400
SELECT ALL - col0 + col0, + col2 + + col2 + 34 DIV - - ( + - 56 ) col1 FROM tab0 cor0
----
0
198
0
20
0
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3400
SELECT ALL - col0 + col0, + col2 + + col2 + 34 / - - ( + - 56 ) col1 FROM tab0 cor0
----
0
198
0
20
0
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + COUNT ( + col2 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col1 FROM tab1
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + ( + CAST( col2 AS SIGNED ) ) + - + col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + ( + CAST ( col2 AS INTEGER ) ) + - + col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - 30 * + - col1 FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
1410
150
420

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + col1 * + col2 )
----

query I rowsort
SELECT DISTINCT + col2 + col0 + - col2 * + ( + col0 ) * - + col0 FROM tab0 AS cor0
----
10637
75787
931687

query I rowsort
SELECT ALL 36 - + - col0 FROM tab2 AS cor0
----
100
111
82

query I rowsort
SELECT - col1 * 20 + + 51 AS col0 FROM tab1 cor0
----
-229
-49
-889

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3410
SELECT col1 + - CAST( + + col1 AS SIGNED ), + 95 AS col2 FROM tab0
----
0
95
0
95
0
95

skipif mysql # not compatible
query II rowsort label-3410
SELECT col1 + - CAST ( + + col1 AS INTEGER ), + 95 AS col2 FROM tab0
----
0
95
0
95
0
95

query I rowsort
SELECT DISTINCT col2 - + + 84 + + 94 FROM tab1
----
106
69
78

query I rowsort
SELECT 86 + - - col0 AS col1 FROM tab0
----
101
173
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT DISTINCT col0 DIV - 10 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT col0 / - 10 FROM tab2
----
-4
-6
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT SUM( - CAST( + - 53 AS SIGNED ) ) AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT SUM ( - CAST ( + - 53 AS INTEGER ) ) AS col2 FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9 col2, 38 FROM tab1
----
9
38
9
38
9
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col1 * + + ( + col2 ) - - 33 - + CAST( + - col2 AS SIGNED ) IN ( + - col1 - + col2, 72 * + + col0 * - + CAST( + col2 AS SIGNED ) + - 99 )
----
3

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col1 * + + ( + col2 ) - - 33 - + CAST ( + - col2 AS INTEGER ) IN ( + - col1 - + col2, 72 * + + col0 * - + CAST ( + col2 AS INTEGER ) + - 99 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 + 71 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3419
SELECT DISTINCT - col1 - + col2 DIV ( col0 ) col1, 37 + - 9 - - + 36 AS col1, - 1 FROM tab2
----
9 values hashing to 1fce30417cb36f922191749ea6ce2f1f

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3419
SELECT DISTINCT - col1 - + col2 / ( col0 ) col1, 37 + - 9 - - + 36 AS col1, - 1 FROM tab2
----
9 values hashing to 1fce30417cb36f922191749ea6ce2f1f

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3420
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 > NULL
----

query II rowsort
SELECT ( - col2 ) AS col0, + col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
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-3424
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 27 AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + - MAX( 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + - MAX ( 21 ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL COUNT ( - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT col1 * - + ( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3428
SELECT col1 * - + ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + ( + 65 ) AS col2 FROM tab0 cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT - 12 * - - CAST( NULL AS SIGNED ) * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 12 * - - CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - COUNT( * ) * + - 15 AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - COUNT ( * ) * + - 15 AS col1 FROM tab0
----
45

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) <> 89
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - + col1 * + col2 IN ( 27 * - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col2 FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT + MIN( + col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3436
SELECT DISTINCT + MIN ( + col0 ) col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col1 + - 40 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT - col1 * 49 / - + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - col1 * 49 / - + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - + col2 - + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT - COUNT( - 21 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3441
SELECT - COUNT ( - 21 ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab0 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 33 * - - col1 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1 WHERE + col0 * + - col2 IS NULL
----

query I rowsort
SELECT - col2 * - 21 + + + col0 - + col1 FROM tab0
----
2175
276
921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 WHERE + col2 * + + col2 + - - 32 * - CAST( ( 8 ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE + col2 * + + col2 + - - 32 * - CAST ( ( 8 ) AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT 64 * COUNT( * ) + SUM( col2 ) AS col2 FROM tab2
----
313

skipif mysql # not compatible
query I rowsort label-3448
SELECT 64 * COUNT ( * ) + SUM ( col2 ) AS col2 FROM tab2
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - 43 + - 40 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - 43 + - 40 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3450
SELECT - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT + ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT + ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT - - 31 AS col2, ( - COUNT( ALL - ( - + 67 ) ) ) FROM tab2 AS cor0
----
31
-3

skipif mysql # not compatible
query II rowsort label-3452
SELECT - - 31 AS col2, ( - COUNT ( ALL - ( - + 67 ) ) ) FROM tab2 AS cor0
----
31
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT 33 DIV + 87 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT 33 / + 87 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col1 col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL + - col2 - - - ( - - col1 ) FROM tab0 AS cor0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 * + col1 / - + ( - 37 ) + - 15 col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL ( - col0 ) + + col1 * - col1 + + col1 + + CAST( - - ( - ( + col2 ) ) AS SIGNED ) * col0 FROM tab0
----
-1377
-7200
-9700

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL ( - col0 ) + + col1 * - col1 + + col1 + + CAST ( - - ( - ( + col2 ) ) AS INTEGER ) * col0 FROM tab0
----
-1377
-7200
-9700

query I rowsort
SELECT DISTINCT - col1 * + col2 + 73 AS col0 FROM tab2
----
-1100
-3007
-3813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab1
----
-4

query I rowsort
SELECT - col2 * - ( 45 ) + + 3 FROM tab1 WHERE ( col1 IS NOT NULL )
----
2658
3063
4323

query I rowsort
SELECT - col2 * + col1 + - - col2 * + 62 FROM tab1
----
1020
3363
4608

query III rowsort
SELECT * FROM tab2 WHERE + 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3463
SELECT col1 DIV CAST( + + col0 AS SIGNED ) + + col1 col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3463
SELECT col1 / CAST ( + + col0 AS INTEGER ) + + col1 col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - col0 + - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3465
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col0 - + col0 * - - 0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - 74 ) FROM tab0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + ( + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + ( + COUNT ( * ) ) FROM tab2
----
3

query II rowsort
SELECT - col1 AS col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL + 90 AS col2, + 34 FROM tab1 cor0
----
90
34
90
34
90
34

query I rowsort
SELECT - col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT + + SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + + SUM ( col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL COUNT( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT ALL COUNT ( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 95 NOT IN ( + CAST( NULL AS SIGNED ) * - col0, - col1 )
----

skipif mysql # not compatible
query III rowsort label-3477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 95 NOT IN ( + CAST ( NULL AS INTEGER ) * - col0, - col1 )
----

query II rowsort
SELECT - + col2, + col2 * - + 53 AS col2 FROM tab2 AS cor0
----
-23
-1219
-40
-2120
-58
-3074

query I rowsort
SELECT + col2 + 92 FROM tab1
----
151
160
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ( 89 ) + + COUNT( * ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3480
SELECT ( 89 ) + + COUNT ( * ) AS col2 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3481
SELECT ALL * FROM tab0 WHERE NOT NULL = - CAST( + + 44 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3481
SELECT ALL * FROM tab0 WHERE NOT NULL = - CAST ( + + 44 AS INTEGER )
----

query I rowsort
SELECT ALL ( + - col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 83 AS col1 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3485
SELECT + SUM ( col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3489
SELECT * FROM tab1 AS cor0 WHERE + 36 / - + col0 BETWEEN - - col0 * - col2 AND - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3489
SELECT * FROM tab1 AS cor0 WHERE + 36 / - + col0 BETWEEN - - col0 * - col2 AND - col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL + - col2 + - CAST( NULL AS SIGNED ) * - col2 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-3490
SELECT ALL + - col2 + - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - - col0 + + col0 col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col2 * - + col1 * - - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3494
SELECT * FROM tab1 AS cor0 WHERE + 66 * col0 - col2 / - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + 1
----

skipif mysql # not compatible
query III rowsort label-3494
SELECT * FROM tab1 AS cor0 WHERE + 66 * col0 - col2 / - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + 1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT - col2 * + col0 * - - col0 + 51 + - 32 DIV col2 AS col0 FROM tab0 AS cor0
----
-10524
-75642
-931440

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - col2 * + col0 * - - col0 + 51 + - 32 / col2 AS col0 FROM tab0 AS cor0
----
-10524
-75642
-931440

query I rowsort
SELECT DISTINCT 76 - + col0 FROM tab1 AS cor0
----
-15
-9
25

query I rowsort
SELECT - 53 * - + col1 + - + col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT ALL + - col1 + + CAST( - 47 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-114
-124
-98

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + - col1 + + CAST ( - 47 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-114
-124
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= - + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 * col0 FROM tab2 AS cor0 WHERE - col2 + - 77 * + + 83 + - 46 NOT BETWEEN - col1 AND - + col0
----
2116
4096
5625

query I rowsort
SELECT - + 44 + + col1 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3505
SELECT ALL CAST( - col1 AS SIGNED ) DIV col2 - - col0 FROM tab0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL CAST ( - col1 AS INTEGER ) / col2 - - col0 FROM tab0
----
14
85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT SUM( DISTINCT + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3506
SELECT SUM ( DISTINCT + - col0 ) FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 - + - col2 col1 FROM tab0
----
115
26
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 83 col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * - - col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1 AS cor0
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT - 96 * - + col0 + 71 * - ( - + col1 ) - - CAST( + ( col1 ) AS SIGNED ) * 31 + + - 21 AS col2 FROM tab0 AS cor0
----
10473
9393
9681

skipif mysql # not compatible
query I rowsort label-3514
SELECT - 96 * - + col0 + 71 * - ( - + col1 ) - - CAST ( + ( col1 ) AS INTEGER ) * 31 + + - 21 AS col2 FROM tab0 AS cor0
----
10473
9393
9681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT ALL + - COUNT( * ) DIV COUNT( DISTINCT + 29 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT ALL + - COUNT ( * ) / COUNT ( DISTINCT + 29 ) col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 25 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT - col1, + 47 * - 1 + - + col1 AS col0, - 86 * - col2 * - col1 + - col2 + + + 79 * - col1 + - - col1 AS col1 FROM tab1
----
9 values hashing to ecc46b3d7ff51a77cfec9327e1c10c2e

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 WHERE NOT + col1 + + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT + MAX( ALL - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + MAX ( ALL - + col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL + - col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + SUM( DISTINCT - 2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3522
SELECT + SUM ( DISTINCT - 2 ) FROM tab2 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - 17 AS col0, + 18 AS col0 FROM tab2 AS cor0
----
17
18
17
18
17
18

query I rowsort
SELECT - col0 * 66 + + col2 AS col0 FROM tab1 AS cor0
----
-3270
-5551
-5938

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT DISTINCT - + COUNT( col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - + COUNT ( col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 64 * col0 AS col1 FROM tab1
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL COUNT( * ) * COUNT( ALL + 96 ) FROM tab0 WHERE + 82 + - 13 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL COUNT ( * ) * COUNT ( ALL + 96 ) FROM tab0 WHERE + 82 + - 13 * col1 IS NULL
----
0

query I rowsort
SELECT ALL + col1 * 80 FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - 15 + + COUNT( DISTINCT + ( + 82 ) ) FROM tab0 WHERE ( col1 ) <= + col1 + col1
----
-14

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - 15 + + COUNT ( DISTINCT + ( + 82 ) ) FROM tab0 WHERE ( col1 ) <= + col1 + col1
----
-14

query I rowsort
SELECT ALL - 8 + col2 FROM tab0 WHERE col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - COUNT( * ) * 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( * ) * 63 FROM tab2
----
-189

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col2 / + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT CAST( - 46 AS SIGNED ) * + 80 + - col1 AS col1 FROM tab2
----
-3731
-3747
-3757

skipif mysql # not compatible
query I rowsort label-3536
SELECT CAST ( - 46 AS INTEGER ) * + 80 + - col1 AS col1 FROM tab2
----
-3731
-3747
-3757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ( CAST( NULL AS SIGNED ) ) * - col2 + + 36 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT ( CAST ( NULL AS INTEGER ) ) * - col2 + + 36 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 74 FROM tab1 WHERE NOT ( + col2 - col0 ) IN ( col0 )
----
74
74
74

query I rowsort
SELECT ALL + 35 * 21 FROM tab0
----
735
735
735

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3540
SELECT 43 FROM tab0 WHERE ( - col2 + ( 68 ) * CAST( NULL AS DECIMAL ) ) IS NULL
----
43
43
43

skipif mysql # not compatible
query I rowsort label-3540
SELECT 43 FROM tab0 WHERE ( - col2 + ( 68 ) * CAST ( NULL AS REAL ) ) IS NULL
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ( CAST( NULL AS SIGNED ) ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ( CAST ( NULL AS INTEGER ) ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 + 89 FROM tab1
----
101
101
101

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab2
----
70
70
70

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT MIN( ALL - col1 ) + - 53 AS col1 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT MIN ( ALL - col1 ) + - 53 AS col1 FROM tab0
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3547
SELECT + SUM( 43 ) DIV 13 + - 19 AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3547
SELECT + SUM ( 43 ) / 13 + - 19 AS col0 FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL 47 * + SUM( - 36 ) FROM tab2
----
-5076

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL 47 * + SUM ( - 36 ) FROM tab2
----
-5076

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> col1 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT + 26 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3550
SELECT + 26 / - col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 32 <= ( NULL )
----

query I rowsort
SELECT - col2 + 88 FROM tab1
----
-8
20
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT - 26 DIV + COUNT( * ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3553
SELECT - 26 / + COUNT ( * ) AS col2 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 62 * + 47 + + 12 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < + 26 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( 91 ) col2 FROM tab0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT SUM( - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3557
SELECT SUM ( - col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT ALL 55 + - col2 AS col0 FROM tab0
----
-44
45
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND ( + 65 + + 95 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT col2 - + CAST( CAST( + 97 AS SIGNED ) AS SIGNED ) col0 FROM tab0
----
-50
-87
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT col2 - + CAST ( CAST ( + 97 AS INTEGER ) AS INTEGER ) col0 FROM tab0
----
-50
-87
2

query I rowsort
SELECT ALL + col1 * 16 + - 27 * 0 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab1
----
60
60
60

query I rowsort
SELECT ALL + 59 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( col0 ) ) NOT IN ( col2 - col2 * + 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT ALL - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 95 * col2 AS col2 FROM tab1 AS cor0
----
5605
6460
9120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3569
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) + - 67 BETWEEN ( col1 * - col0 + col2 ) AND - 91
----

skipif mysql # not compatible
query III rowsort label-3569
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) + - 67 BETWEEN ( col1 * - col0 + col2 ) AND - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT MAX( + 30 ) col1 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3571
SELECT MAX ( + 30 ) col1 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT - 21 * col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( + 39 ) FROM tab0
----
39
39
39

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT + 66 * + CAST( - col1 / col0 - - 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2046
2376

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + 66 * + CAST ( - col1 / col0 - - 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2046
2376

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL - 21 * + COUNT( * ) FROM tab2 AS cor0 WHERE - 9 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - 21 * + COUNT ( * ) FROM tab2 AS cor0 WHERE - 9 < NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 9 / - 50 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( 19 * 73 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 87 / 8 - col1 ) IN ( - col1 )
----

query I rowsort
SELECT ALL + col0 * + col1 + 41 FROM tab0 AS cor0
----
1256
138
1868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT ALL - 99 AS col2 FROM tab0 AS cor0 WHERE col1 + + col0 * - CAST( col2 AS SIGNED ) < + col2 + - 56 * col0
----
-99

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - 99 AS col2 FROM tab0 AS cor0 WHERE col1 + + col0 * - CAST ( col2 AS INTEGER ) < + col2 + - 56 * col0
----
-99

query I rowsort
SELECT + - 63 * col1 FROM tab0 AS cor0
----
-1323
-5103
-63

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + + col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + - ( col1 ) AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT ( + 84 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 89 col0 FROM tab0
----
-42
-79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT COUNT( * ) + - - 2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( * ) + - - 2 FROM tab0
----
5

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * - col0 * - col2 + + col0 FROM tab1
----
249747
426360
563199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - col0 col0 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab1 WHERE NOT col1 IS NULL
----
72
72
72

query I rowsort
SELECT col2 * - col0 * col2 + col1 FROM tab0
----
-33054
-8679
-950696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col0 col0 FROM tab1
----
102
170
182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 71 )
----

query I rowsort
SELECT - + 22 FROM tab0 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT MAX( + 61 ) - 41 FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT MAX ( + 61 ) - 41 FROM tab0 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT + - ( - COUNT( * ) ) * 24 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3603
SELECT + - ( - COUNT ( * ) ) * 24 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT MIN( DISTINCT 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 <> 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT MIN ( DISTINCT 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 <> 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT - 18 - 15 DIV col2 FROM tab0
----
-18
-18
-19

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 18 - 15 / col2 FROM tab0
----
-18
-18
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - COUNT( * ) + - MAX( - col2 ) col1 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT - COUNT ( * ) + - MAX ( - col2 ) col1 FROM tab2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + COUNT( * ) * + 69 AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + COUNT ( * ) * + 69 AS col1 FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3609
SELECT + + CAST( NULL AS DECIMAL ) + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + + CAST ( NULL AS REAL ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + col2 AS col1, col0 * - 25 AS col1 FROM tab0 AS cor0
----
-10
-2175
-47
-375
-99
-2425

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + COUNT( * ) + - COUNT( 54 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + COUNT ( * ) + - COUNT ( 54 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 58 * + - 51 + + col1 AS col1 FROM tab0 AS cor0
----
-2877
-2937
-2957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT + + col2 + + CAST( 1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + + col2 + + CAST ( 1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3614
SELECT col1 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT col1 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 * - - col1 > col2
----

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3617
SELECT ALL + 86 * CAST( NULL AS SIGNED ) col0, + col0 DIV + col0 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3617
SELECT ALL + 86 * CAST ( NULL AS INTEGER ) col0, + col0 / + col0 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( ( - + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3619
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL MAX( + col0 ) * + + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL MAX ( + col0 ) * + + COUNT ( * ) FROM tab2
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + 88 col1 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT - - ( + 76 ) FROM tab2 WHERE NOT col0 IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT MAX( DISTINCT col0 ) * + COUNT( * ) + - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT MAX ( DISTINCT col0 ) * + COUNT ( * ) + - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( + col1 )
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( col0 ) ) <> ( - col0 )
----

query I rowsort
SELECT + ( + ( + 4 ) ) FROM tab2 cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT 2 + + col0 + - col0 * - col2 FROM tab1
----
4949
5102
6281

query I rowsort
SELECT + 43 + + col1 + + col2 + col0 + - col2 - - ( 87 ) AS col0 FROM tab1 AS cor0
----
195
220
268

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * 1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3631
SELECT + CAST( NULL AS SIGNED ), - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
-227

skipif mysql # not compatible
query II rowsort label-3631
SELECT + CAST ( NULL AS INTEGER ), - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT 55 DIV + col2 + 81 + col0 FROM tab1 AS cor0
----
132
166
172

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT 55 / + col2 + 81 + col0 FROM tab1 AS cor0
----
132
166
172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3633
SELECT ALL + + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 4 * + + col0 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE col0 + + + col1 <= ( - ( col0 ) / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL + 38 FROM tab0 cor0 WHERE NOT 65 / - 32 + + col1 = + CAST( col2 AS SIGNED )
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + 38 FROM tab0 cor0 WHERE NOT 65 / - 32 + + col1 = + CAST ( col2 AS INTEGER )
----
38
38
38

query I rowsort
SELECT DISTINCT - 26 + col0 AS col0 FROM tab0 AS cor0
----
-11
61
71

query II rowsort
SELECT 63 AS col2, - ( + col2 ) FROM tab1
----
63
-59
63
-68
63
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3640
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3640
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 18 IN ( col2, - 27 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 * 75 / ( - 9 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 30 AS col1 FROM tab2 WHERE NOT + + col2 = + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT - 97 DIV - 37 + col0 AS col0 FROM tab1 WHERE ( - 41 IS NOT NULL )
----
53
87
93

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 97 / - 37 + col0 AS col0 FROM tab1 WHERE ( - 41 IS NOT NULL )
----
53
87
93

query I rowsort
SELECT - col2 + 57 AS col0 FROM tab0
----
-42
10
47

query II rowsort
SELECT ALL + - col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NULL ) <= ( - 43 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + ( + 56 ) + + - 15 * - + 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 * - 10 * + col1 + - 34 * + - 57 col1 FROM tab1 AS cor0
----
-1288302
-172112
-2171342

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3653
SELECT + + CAST( NULL AS DECIMAL ) * + + col1 col1, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3653
SELECT + + CAST ( NULL AS REAL ) * + + col1 col1, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 < - + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3655
SELECT DISTINCT - + COUNT( * ) AS col2, 74 DIV + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL
----
0
305

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3655
SELECT DISTINCT - + COUNT ( * ) AS col2, 74 / + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL
----
0
305

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + + COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3656
SELECT + + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 25 AS col0 FROM tab0 cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + - 2 )
----

query I rowsort
SELECT + 29 FROM tab1 AS cor0 WHERE NOT - col2 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + col0 * col2 AS col1 FROM tab1 WHERE - - 49 * - col2 <= - col2 + - + 92
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 > NULL
----

query II rowsort
SELECT DISTINCT + col1, + 24 AS col0 FROM tab1
----
14
24
47
24
5
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3663
SELECT DISTINCT - col0 col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3663
SELECT DISTINCT - col0 col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 NOT BETWEEN - + 50 AND col1 * ( + ( + + col1 ) )
----

query I rowsort
SELECT - 85 - col0 AS col2 FROM tab1 WHERE ( 81 * + + col2 ) IS NOT NULL OR + 72 + + 2 <> col0 - 88
----
-136
-170
-176

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 82 * + col0 - - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + COUNT( * ) * + - MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3667
SELECT + COUNT ( * ) * + - MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col1 * - ( + col1 ) NOT BETWEEN + col2 AND - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 97 <> NULL
----

query I rowsort
SELECT + col1 * - 40 FROM tab0 AS cor0
----
-3240
-40
-840

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + ( + + col1 ) )
----

query I rowsort
SELECT - col1 + - 14 * + col1 AS col2 FROM tab1 AS cor0 WHERE - 41 <= + - 40
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT DISTINCT col0 + - - col0 DIV - - col2 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT col0 + - - col0 / - - col2 FROM tab0 AS cor0
----
15
95
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT ALL - 78 + - 99 AS col0, CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-177
23
-177
40
-177
58

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL - 78 + - 99 AS col0, CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-177
23
-177
40
-177
58

query I rowsort
SELECT - col0 + + + 91 * - col2 * - col1 FROM tab1 AS cor0
----
122253
26760
290745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL ( 47 ) FROM tab0 WHERE - + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + MAX( DISTINCT + 79 ) + - COUNT( * ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-3678
SELECT + MAX ( DISTINCT + 79 ) + - COUNT ( * ) AS col1 FROM tab0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT - 4 DIV + + 4 + - 71 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-3679
SELECT - 4 / + + 4 + - 71 FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + SUM( + - 79 ) AS col0 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + SUM ( + - 79 ) AS col0 FROM tab1
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT MAX( 31 ) * 46 FROM tab1 WHERE NOT ( + ( - col1 ) + + 85 ) >= ( + col1 ) * - col0 * col2 * + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT MAX ( 31 ) * 46 FROM tab1 WHERE NOT ( + ( - col1 ) + + 85 ) >= ( + col1 ) * - col0 * col2 * + + col0
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 3 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 4 col1 FROM tab2 AS cor0
----
-160
-232
-92

query I rowsort
SELECT DISTINCT - col1 + - - 53 - - col0 AS col2 FROM tab0 AS cor0
----
-13
119
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - ( + col0 ) col2, - col0 FROM tab2 AS cor0
----
-104
-64
-133
-75
-69
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= ( NULL )
----

query I rowsort
SELECT + 63 - + 77 FROM tab0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT col1 * + col0 + - 57 + + + CAST( NULL AS SIGNED ) AS col1, - ( 25 ) FROM tab1
----
NULL
-25
NULL
-25
NULL
-25

skipif mysql # not compatible
query II rowsort label-3689
SELECT col1 * + col0 + - 57 + + + CAST ( NULL AS INTEGER ) AS col1, - ( 25 ) FROM tab1
----
NULL
-25
NULL
-25
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT + COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( col1 / col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3692
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 >= - - col1
----

skipif mysql # not compatible
query III rowsort label-3692
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 >= - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 * + - 52 + ( - + col0 ) + col2 BETWEEN - - col1 AND ( NULL )
----

query I rowsort
SELECT + ( - 72 ) AS col1 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT - MAX( ALL - col0 ) DIV - 83 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT - MAX ( ALL - col0 ) / - 83 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 99 * + col1 + 63 - + ( + - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
1596
4875
702

query II rowsort
SELECT DISTINCT + + col0 AS col2, - col1 * - - col0 * + col0 FROM tab2 AS cor0
----
46
-107916
64
-315392
75
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + col0 DIV - - 4 + - 7 * + col2 AS col2 FROM tab2 cor0
----
-150
-264
-388

skipif mysql # not compatible
query I rowsort label-3698
SELECT + col0 / - - 4 + - 7 * + col2 AS col2 FROM tab2 cor0
----
-150
-264
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - MAX( DISTINCT - 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3699
SELECT - MAX ( DISTINCT - 48 ) FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 + - - 75 - - 75 / - col0 col0 FROM tab1 WHERE NOT col1 NOT IN ( + col2 / - + col0 + - - 25 + + - 4 + - col2 + 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3701
SELECT DISTINCT col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3701
SELECT DISTINCT col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT MIN( - + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT MIN ( - + col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - MAX( + - 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - MAX ( + - 4 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT + ( - 4 ) * - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col0 * - col2 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 17 * - + col0 + - + 7 col0 FROM tab2 AS cor0
----
51
-789
67
-1282
77
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - SUM( + + col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT - SUM ( + + col1 ) col0 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> 66
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 + - col0 NOT IN ( 39, - col1 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + col2 ) - + 0 AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + COUNT( * ) FROM tab0 WHERE NULL > + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( * ) FROM tab0 WHERE NULL > + col2 * + col1
----
0

query I rowsort
SELECT DISTINCT - 81 * - ( + col2 ) AS col2 FROM tab1
----
4779
5508
7776

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + 23 * + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT 50 + + 86 * col0 DIV col0 * + + col1 * col0 col0 FROM tab1 AS cor0
----
36600
367872
61454

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3718
SELECT 50 + + 86 * col0 / col0 * + + col1 * col0 col0 FROM tab1 AS cor0
----
36600
367872
61454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT - ( + ( col0 ) ) * col1 + - - ( - col0 ) + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 75 ) * 55 + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3719
SELECT - ( + ( col0 ) ) * col1 + - - ( - col0 ) + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 75 ) * 55 + CAST ( - col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * col0 * - col0 col2 FROM tab0
----
-317898
-395178
-9450

query III rowsort
SELECT * FROM tab0 WHERE NOT 94 BETWEEN NULL AND + - 92 - - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL + + col1 DIV + 3 FROM tab1 AS cor0
----
1
15
4

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + + col1 / + 3 FROM tab1 AS cor0
----
1
15
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab1 AS cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT ALL col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 82 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT COUNT( + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT COUNT ( + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT DISTINCT - col2 DIV col0 + col1 * + col1 FROM tab1 cor0
----
195
2209
25

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - col2 / col0 + col1 * + col1 FROM tab1 cor0
----
195
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT + - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT + - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 9 * 58 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT col1 DIV - 32 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3732
SELECT col1 / - 32 AS col2 FROM tab2
----
-1
-2
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3734
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + + 37 + - + 87 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3734
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + + 37 + - + 87 FROM tab2
----
3
NULL

query I rowsort
SELECT + ( - col2 ) * col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3736
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3736
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL

query I rowsort
SELECT - col1 * - col1 * col2 + + col1 AS col0 FROM tab0
----
100
308448
4431

query II rowsort
SELECT - col0, col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - + col0 AND - col1
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + COUNT( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3740
SELECT + COUNT ( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1, col2 * + col1 col2 FROM tab1 cor0
----
10
295
28
1344
94
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT - CAST( + + 62 AS SIGNED ) + col1 + + + 86 * - - col1 FROM tab0 AS cor0
----
1765
25
6985

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - CAST ( + + 62 AS INTEGER ) + col1 + + + 86 * - - col1 FROM tab0 AS cor0
----
1765
25
6985

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 5 + 8 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 3 - + col1 + - - col0 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 62 - 32 AS col0 FROM tab1 WHERE + - col1 > - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + - MIN( - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + - MIN ( - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 28 + - col1 )
----

query I rowsort
SELECT col1 + - 4 * 98 FROM tab1
----
-345
-378
-387

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT - 36 AS col1, COUNT( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-36
0

skipif mysql # not compatible
query II rowsort label-3749
SELECT - 36 AS col1, COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-36
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL - col0 / 7 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - col0 / 7 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT 85 + - - CAST( + 23 AS SIGNED ) + - + COUNT( * ) + - ( - 2 ) AS col1 FROM tab2 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-3751
SELECT 85 + - - CAST ( + 23 AS INTEGER ) + - + COUNT ( * ) + - ( - 2 ) AS col1 FROM tab2 AS cor0
----
107

query I rowsort
SELECT - + col2 + + col1 * + - ( - 63 ) AS col0 FROM tab0 AS cor0
----
-36
1313
5056

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3753
SELECT 17 + - - 61 / + CAST( NULL AS DECIMAL ) col0, 74 AS col2 FROM tab2
----
NULL
74
NULL
74
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3753
SELECT 17 + - - 61 / + CAST ( NULL AS REAL ) col0, 74 AS col2 FROM tab2
----
NULL
74
NULL
74
NULL
74

query I rowsort
SELECT DISTINCT - + col1 * + 59 + 19 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + col1 * - 17 - col0 FROM tab1 WHERE NOT + ( 42 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL COUNT( ALL + + 24 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL COUNT ( ALL + + 24 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 + 80 FROM tab1 WHERE NOT - col1 + + 86 <= - 13 * col1 + - + 69 * + col2
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT + COUNT( * ) * + 41 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + COUNT ( * ) * + 41 FROM tab1 AS cor0
----
123

query I rowsort
SELECT DISTINCT 6 + 54 AS col1 FROM tab0 AS cor0
----
60

query II rowsort
SELECT ALL + col2, 98 FROM tab2 AS cor0
----
23
98
40
98
58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - MAX( ALL + col1 ) * + COUNT( * ) + - - MAX( ALL 61 ) AS col0 FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-3763
SELECT - MAX ( ALL + col1 ) * + COUNT ( * ) + - - MAX ( ALL 61 ) AS col0 FROM tab2 AS cor0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 col0 FROM tab0 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3766
SELECT + MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + 42 * - col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COUNT( * ) * 76 AS col2 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) * 76 AS col2 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT - MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3769
SELECT - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT + + col1 DIV + - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT + + col1 / + - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2 col1, + col0 AS col1 FROM tab2
----
2
46
2
64
2
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT ALL COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT ALL col0 * + - col0 * + col1, 13 AS col2 FROM tab0
----
-158949
13
-18225
13
-9409
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT ALL 77 * + MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2
----
1771

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 77 * + MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2
----
1771

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= - col1 * - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE 28 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT COUNT( * ) DIV - 96 + 10 * - + 59 AS col1 FROM tab1
----
-590

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT COUNT ( * ) / - 96 + 10 * - + 59 AS col1 FROM tab1
----
-590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT DISTINCT - - COUNT( * ) DIV + 60 + - 8 + + MIN( - col0 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - - COUNT ( * ) / + 60 + - 8 + + MIN ( - col0 ) / - COUNT ( * ) FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-3780
SELECT + 0 DIV + + 38 + - col0 + - + 74 * col0, col0 FROM tab2 cor0
----
-3450
46
-4800
64
-5625
75

skipif mysql # not compatible
query II rowsort label-3780
SELECT + 0 / + + 38 + - col0 + - + 74 * col0, col0 FROM tab2 cor0
----
-3450
46
-4800
64
-5625
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT + CAST( NULL AS SIGNED ) * + + 13 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT + CAST ( NULL AS INTEGER ) * + + 13 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * + + 77 + + + 79 AS col1 FROM tab0 AS cor0
----
3698
7702
849

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 + - 63 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL SUM( ALL - - 44 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL SUM ( ALL - - 44 ) FROM tab1 AS cor0
----
132

query II rowsort
SELECT col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - - COUNT( * ) * + + MAX( + 13 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3786
SELECT - - COUNT ( * ) * + + MAX ( + 13 ) FROM tab1 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3787
SELECT - + 92 AS col0, ( - - col0 ) DIV 57 AS col0 FROM tab2 AS cor0
----
-92
0
-92
1
-92
1

skipif mysql # not compatible
query II rowsort label-3787
SELECT - + 92 AS col0, ( - - col0 ) / 57 AS col0 FROM tab2 AS cor0
----
-92
0
-92
1
-92
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, 82 col0 FROM tab0 AS cor0
----
15
82
87
82
97
82

query I rowsort
SELECT ALL + - col0 + - col0 + + + 58 * 49 FROM tab2 AS cor0
----
2692
2714
2750

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT - 82 + - + COUNT( * ) AS col1 FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - 82 + - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-85

query I rowsort
SELECT ALL + col0 + + + col0 * + + col2 * + + col1 AS col2 FROM tab0
----
18357
57120
9700

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL + 13 - ( - col2 ) - + col1 + + col0 DIV + col2 - - ( 68 ) * + 82 + + col1 FROM tab2
----
5614
5630
5648

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 13 - ( - col2 ) - + col1 + + col0 / + col2 - - ( 68 ) * + 82 + + col1 FROM tab2
----
5614
5630
5648

query I rowsort
SELECT DISTINCT - ( + - col2 ) - + + col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT ( + + 61 ) FROM tab1
----
61

query III rowsort
SELECT * FROM tab1 WHERE - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 92 ) + 35 - 52 * + - col1 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL - SUM( - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - SUM ( - col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT - ( - CAST( - col1 AS SIGNED ) ) - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3798
SELECT - ( - CAST ( - col1 AS INTEGER ) ) - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT ( SUM( ALL + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT ( SUM ( ALL + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + ( - 37 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3802
SELECT COUNT( * ) AS col1, - CAST( COUNT( * ) AS SIGNED ) DIV - 9 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-3802
SELECT COUNT ( * ) AS col1, - CAST ( COUNT ( * ) AS INTEGER ) / - 9 FROM tab2
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3803
SELECT + CAST( ( + - 88 ) AS SIGNED ), - col2 AS col1 FROM tab0
----
-88
-10
-88
-47
-88
-99

skipif mysql # not compatible
query II rowsort label-3803
SELECT + CAST ( ( + - 88 ) AS INTEGER ), - col2 AS col1 FROM tab0
----
-88
-10
-88
-47
-88
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - - COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - COUNT ( - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - MIN( + 20 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - MIN ( + 20 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - 2 * 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 69 ) FROM tab1 AS cor0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 70 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 79 * - - col2 AS col2 FROM tab1
----
4661
5372
7584

query I rowsort
SELECT col1 * + col0 + + col2 + col0 * + - col2 AS col0 FROM tab1
----
-1843
-4086
-4531

query I rowsort
SELECT DISTINCT - ( col2 ) * + - ( - + col2 ) * + - 47 AS col1 FROM tab2
----
158108
24863
75200

query I rowsort
SELECT col2 + col1 + col1 AS col2 FROM tab2
----
125
192
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT + CAST( + col0 AS SIGNED ) + 58 + CAST( NULL AS SIGNED ) * - + col0 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT + CAST ( + col0 AS INTEGER ) + 58 + CAST ( NULL AS INTEGER ) * - + col0 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab1
----
-2726
-290
-812

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 54 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 54 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT MIN( ALL col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3819
SELECT MIN ( ALL col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL col1 + + - 30 FROM tab1 AS cor0
----
-16
-25
17

query I rowsort
SELECT DISTINCT + col1 + - + 74 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-72
388
6568

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT - SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3822
SELECT - SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3823
SELECT 58 DIV - CAST( ( - 91 ) AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT 58 / - CAST ( ( - 91 ) AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 NOT BETWEEN - - 35 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT DISTINCT + 2 DIV 85 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + 2 / 85 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col2 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL + MAX( DISTINCT 65 ) AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + MAX ( DISTINCT 65 ) AS col0 FROM tab0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 5 * + CAST( 49 AS SIGNED ) + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 5 * + CAST ( 49 AS INTEGER ) + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL ( - - MAX( - + 4 ) ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL ( - - MAX ( - + 4 ) ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + + 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT + MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3831
SELECT + MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT 87 FROM tab1, tab1 AS cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + + COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3837
SELECT + + COUNT ( * ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3838
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3840
SELECT MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3841
SELECT ALL COUNT ( * ) col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT - SUM( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 * 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT 98 * SUM( + 75 ) AS col0 FROM tab2
----
22050

skipif mysql # not compatible
query I rowsort label-3844
SELECT 98 * SUM ( + 75 ) AS col0 FROM tab2
----
22050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT MIN( + 6 ) DIV - 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT MIN ( + 6 ) / - 96 FROM tab1
----
0

query I rowsort
SELECT - 63 + - col0 AS col0 FROM tab1 AS cor0
----
-114
-148
-154

query II rowsort
SELECT DISTINCT + - 53, - 80 AS col1 FROM tab1 cor0 WHERE ( NOT ( ( NOT - + col1 * + - 38 NOT BETWEEN NULL AND + col0 + col2 + col2 * + col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT + col2 + - col0 DIV + 64 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3848
SELECT + col2 + - col0 / + 64 FROM tab1 AS cor0
----
58
67
96

query I rowsort
SELECT + col2 + + 86 AS col2 FROM tab0 AS cor0
----
133
185
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + - 57 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) + - 86 + - 20 AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) + - 86 + - 20 AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - 38 - + col2 FROM tab2 cor0
----
-61
-78
-96

query I rowsort
SELECT DISTINCT - 63 * + col1 * 59 - 35 + - - 97 + - - 35 * - - col2 AS col1 FROM tab1
----
-16458
-172257
-48616

query I rowsort
SELECT DISTINCT 55 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( ( - ( 74 ) ) ) * 82 col2 FROM tab0 AS cor0
----
6068

query I rowsort
SELECT - col1 * 62 * - col2 FROM tab0 AS cor0
----
13020
236034
6138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT - 42 DIV - - COUNT( * ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - 42 / - - COUNT ( * ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL + MIN( + ( - 30 ) ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + MIN ( + ( - 30 ) ) AS col0 FROM tab2
----
-30

query II rowsort
SELECT 71 * col0 * + 31, + 19 AS col2 FROM tab1
----
112251
19
187085
19
200291
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT ALL 11 AS col1, - COUNT( ALL - col0 ) col2 FROM tab0
----
11
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3860
SELECT ALL 11 AS col1, - COUNT ( ALL - col0 ) col2 FROM tab0
----
11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - MIN( + 49 ) AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3861
SELECT - MIN ( + 49 ) AS col0 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3862
SELECT + ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT - MAX( - 72 ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3863
SELECT - MAX ( - 72 ) AS col0 FROM tab2
----
72

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT CAST( - - ( - + ( + col1 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3865
SELECT CAST ( - - ( - + ( + col1 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 5 AS col0 FROM tab2 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + - MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + - MIN ( + col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 8 * - 9 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 * + 6 + - ( + 27 ) * 16 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 * + 6 + - ( + 27 ) * 16 IS NULL
----

query I rowsort
SELECT - col0 / - - ( - 99 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query II rowsort
SELECT DISTINCT col0, col2 * + 7 * + + col0 AS col2 FROM tab0
----
15
4935
87
6090
97
67221

query I rowsort
SELECT ALL + - col0 + + col0 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT ALL - 27 AS col2 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL 85 + col1 AS col2 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT + - col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
1
441
6561

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( + col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col2 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 76 + + 32 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - col0 + + col0 + - - col1 * + col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab1
----
5

query I rowsort
SELECT ALL 73 * 24 + + col1 * - + col0 AS col1 FROM tab2
----
-3176
-3273
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - - COUNT( * ) * + COUNT( * ) * - ( + 73 ) FROM tab1 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT - - COUNT ( * ) * + COUNT ( * ) * - ( + 73 ) FROM tab1 WHERE NULL <= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3883
SELECT * FROM tab1 WHERE - col1 / 73 * + - col2 >= col1 / + col1 * 49 * - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT * FROM tab1 WHERE - col1 / 73 * + - col2 >= col1 / + col1 * 49 * - col1 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 90 = 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT - SUM( - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - SUM ( - col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT ALL col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT DISTINCT - MIN( 0 ) DIV + COUNT( * ) + + 36 AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - MIN ( 0 ) / + COUNT ( * ) + + 36 AS col0 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3888
SELECT + MAX( ALL - + 94 ) DIV 85 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3888
SELECT + MAX ( ALL - + 94 ) / 85 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT + - 9 * + - SUM( ALL ( - + ( + + 92 ) ) ) + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-7412

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT + - 9 * + - SUM ( ALL ( - + ( + + 92 ) ) ) + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-7412

query I rowsort
SELECT ALL 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL 11 * - - col2 FROM tab0
----
1089
110
517

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 * - col0 * 92 AS col2 FROM tab1 AS cor0
----
450432
461380
569296

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - COUNT( * ) * MAX( ALL - 71 ) AS col1 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COUNT ( * ) * MAX ( ALL - 71 ) AS col1 FROM tab2 cor0
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT - COUNT( * ) * - 2 + + 96 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT DISTINCT - COUNT ( * ) * - 2 + + 96 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL COUNT( + 43 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL COUNT ( + 43 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 AS col2, col0 + + col0 col1 FROM tab2 AS cor0 WHERE NOT - col0 / - col2 IS NULL
----
-63
128
-63
150
-63
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + MIN( + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3901
SELECT + MIN ( + + col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col1 col0, col2 * + 70 FROM tab0
----
1215
3290
1827
700
97
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - ( - - COUNT( DISTINCT + - 8 ) ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - ( - - COUNT ( DISTINCT + - 8 ) ) AS col1 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL 18 * 51 DIV + - col0 FROM tab1
----
-10
-10
-18

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 18 * 51 / + - col0 FROM tab1
----
-10
-10
-18

query I rowsort
SELECT ( - ( - col2 ) ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT - col1 * - - col2 + - - 86 FROM tab0 AS cor0
----
-124
-13
-3721

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + 22 + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 / + - col1 - - col1 AND NULL
----
22

skipif mysql # not compatible
query I rowsort label-3907
SELECT + 22 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 / + - col1 - - col1 AND NULL
----
22

query I rowsort
SELECT ALL + + 27 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
104922
31671
83160

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3911
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT 75 + 47 AS col1 FROM tab0
----
122
122
122

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3914
SELECT + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3915
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
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-3916
SELECT - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3917
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3917
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT ALL + + col2 + + 17 DIV + 11 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + col2 + + 17 / + 11 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT - col2 + - + 99 + - + col0 * col0 * 94 AS col0 FROM tab1 AS cor0
----
-244689
-679308
-778581

query I rowsort
SELECT DISTINCT - ( + ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 / col0 + - - col1 + - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3922
SELECT * FROM tab0 WHERE - + col2 + + CAST( + 78 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3922
SELECT * FROM tab0 WHERE - + col2 + + CAST ( + 78 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT SUM( ALL + 68 ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT SUM ( ALL + 68 ) FROM tab1
----
204

query I rowsort
SELECT + 43 - - ( - 5 ) FROM tab1
----
38
38
38

query I rowsort
SELECT 72 + - 91 FROM tab0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab1 WHERE - ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + col1 + + 30 + + CAST( NULL AS SIGNED ) * col0 + + 40 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT + col1 + + 30 + + CAST ( NULL AS INTEGER ) * col0 + + 40 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT + - 21 + - + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 889c1e493d5975e9cd2cf41f90342a92

query I rowsort
SELECT DISTINCT + 49 - ( + - 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT MIN( col1 ) DIV - MIN( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT MIN ( col1 ) / - MIN ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + - COUNT( * ) * 36 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3933
SELECT + - COUNT ( * ) * 36 FROM tab1 AS cor0
----
-108

query II rowsort
SELECT DISTINCT - ( col2 ) AS col2, + 96 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96

query II rowsort
SELECT DISTINCT - 78 * - col2, 65 * col0 AS col1 FROM tab2 AS cor0
----
1794
2990
3120
4160
4524
4875

query I rowsort
SELECT DISTINCT - + 31 FROM tab1 cor0
----
-31

query I rowsort
SELECT + + col0 * - ( + 6 ) FROM tab1 cor0
----
-306
-510
-546

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 81 * + col1 IS NULL
----
0
0
0

query II rowsort
SELECT - col0, + 20 + - + col1 AS col1 FROM tab1
----
-51
6
-85
15
-91
-27

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL <> + - col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT COUNT( + 6 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( + 6 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 91 ) * 64 AS col1 FROM tab0
----
-5824

query II rowsort
SELECT ALL 23 AS col2, + 1 FROM tab1
----
23
1
23
1
23
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT ALL 15 * + col1 DIV - col1 FROM tab2
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL 15 * + col1 / - col1 FROM tab2
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + col2 * - col1 * - 26 + + col0 FROM tab2 WHERE NULL IS NULL
----
101111
30544
80144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 - - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IN ( - 99 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 99 * + - col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 * ( - 2 ) + - col0 FROM tab0 AS cor0
----
-67
101
79

query I rowsort
SELECT DISTINCT - 15 + - col1 FROM tab0 AS cor0
----
-16
-36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT 7 + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3954
SELECT 7 + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-3956
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 DIV col2 * + col2 NOT BETWEEN - 41 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 / col2 * + col2 NOT BETWEEN - 41 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 + - + col2 AS col1 FROM tab1
----
-3
25
34

query I rowsort
SELECT + col1 + + 52 FROM tab2
----
103
119
129

query I rowsort
SELECT 69 + + col2 FROM tab1
----
128
137
165

query I rowsort
SELECT 33 * - col0 * col0 * - 35 FROM tab0
----
10867395
259875
8742195

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT 82 * - COUNT( * ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-3961
SELECT 82 * - COUNT ( * ) FROM tab2
----
-246

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - 46 IS NULL
----

query II rowsort
SELECT ALL - + ( - - col1 ) AS col2, - col2 * - - 93 + 37 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - 88 AND - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - + col0 - + col2 * - + col1 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * - + 45 + + + 49 col0 FROM tab0 AS cor0
----
454

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * - + 45 + + + 49 col0 FROM tab0 AS cor0
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT SUM( DISTINCT 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3967
SELECT SUM ( DISTINCT 23 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT + CAST( - 60 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-3968
SELECT + CAST ( - 60 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3969
SELECT * FROM tab0 WHERE ( NOT ( NOT col1 <= NULL ) ) OR NOT 45 * - CAST( NULL AS DECIMAL ) * + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3969
SELECT * FROM tab0 WHERE ( NOT ( NOT col1 <= NULL ) ) OR NOT 45 * - CAST ( NULL AS REAL ) * + + col0 IS NULL
----

query II rowsort
SELECT 86, + 89 * - col1 * + col0 AS col0 FROM tab1
----
86
-37825
86
-380653
86
-63546

query I rowsort
SELECT ALL col0 * - ( 19 ) * - col1 FROM tab0
----
1843
23085
34713

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + - col2 - + + col2 - - col0 - - col0 * col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL - COUNT( ALL + 41 ) * - + 19 AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - COUNT ( ALL + 41 ) * - + 19 AS col0 FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + 19 * - + col1 AS col2 FROM tab0 AS cor0
----
-1539
-19
-399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, col1 * - + col0 col2 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3977
SELECT + col0 DIV - - col0 AS col2, ( + CAST( NULL AS DECIMAL ) ) * col2 FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-3977
SELECT + col0 / - - col0 AS col2, ( + CAST ( NULL AS REAL ) ) * col2 FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT + + col1 * + 76 FROM tab1 AS cor0
----
1064
3572
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col2, 68 FROM tab2 AS cor0
----
-94
68
-94
68
-94
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL - - col2 * - CAST( + - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3982
SELECT ALL - - col2 * - CAST ( + - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50, - col2 * + 47 col0 FROM tab1 AS cor0
----
50
-2773
50
-3196
50
-4512

query I rowsort
SELECT - - col0 * - + 78 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3985
SELECT ALL - ( - CAST( - 46 AS SIGNED ) ) * - 61 + 81 DIV - 29 AS col1 FROM tab1
----
2804
2804
2804

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - ( - CAST ( - 46 AS INTEGER ) ) * - 61 + 81 / - 29 AS col1 FROM tab1
----
2804
2804
2804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab2 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 + + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + - MAX( - ( col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3988
SELECT + - MAX ( - ( col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 38 * col0 * + ( + 89 ) FROM tab2 AS cor0
----
-155572
-216448
-253650

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 43 AS col1, + 8 FROM tab1
----
43
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3992
SELECT ALL * FROM tab2 WHERE NOT NULL < - CAST( - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3992
SELECT ALL * FROM tab2 WHERE NOT NULL < - CAST ( - col1 AS REAL )
----

query I rowsort
SELECT ALL col0 + - - ( - col1 ) FROM tab1
----
37
44
80

query II rowsort
SELECT + 22, col0 FROM tab2 AS cor0
----
22
46
22
64
22
75

query I rowsort
SELECT + ( - + 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + + 32 + + 43 AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT + 19 NOT BETWEEN + - col2 + - - 37 AND + col1 * col1 + col2 * + + col0 ) )
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - 37 + col2 FROM tab2 AS cor0
----
-14
21
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3999
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - 94 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT + CAST ( NULL AS REAL ), - 94 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

query II rowsort
SELECT - col0 AS col1, 94 FROM tab1 AS cor0
----
-51
94
-85
94
-91
94

query I rowsort
SELECT DISTINCT 96 + col0 AS col0 FROM tab2 AS cor0
----
142
160
171

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + col1 * + col0 * + + ( + 4 ) AS col1 FROM tab1 AS cor0
----
1695
17061
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4004
SELECT + + COUNT ( * ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + - col2 + col1 - - col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab2 cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + - ( + col2 ) col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL CAST( - 62 AS SIGNED ) + - ( + 69 ) AS col0 FROM tab0
----
-131
-131
-131

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL CAST ( - 62 AS INTEGER ) + - ( + 69 ) AS col0 FROM tab0
----
-131
-131
-131

onlyif mysql # DIV for integer division: 
query II rowsort label-4009
SELECT ALL + col2 + - 14 DIV + col0 + + col2 AS col2, 9 * - col1 AS col2 FROM tab2
----
116
-603
46
-459
80
-693

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + col2 + - 14 / + col0 + + col2 AS col2, 9 * - col1 AS col2 FROM tab2
----
116
-603
46
-459
80
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COUNT( * ) - 38 col0 FROM tab1
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT COUNT ( * ) - 38 col0 FROM tab1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab0
----
1

query I rowsort
SELECT + 27 * 37 + col2 FROM tab2
----
1022
1039
1057

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT DISTINCT - + col2 * + col2 AS col1, 70 - - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-3481
365
-4624
3266
-9216
1414

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( ( col1 ) ), 73 FROM tab2
----
51
73
67
73
77
73

query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * + col0 * - 90 * 9 * + col1 + + - 31 + - 24 AS col0 FROM tab2 AS cor0
----
-255467575
-305268805
-87412015

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
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-4020
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * + col1 col1 FROM tab0 AS cor0
----
1533
5913
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab0
----
69
69
69

query II rowsort
SELECT ALL col1 AS col0, - 53 FROM tab0
----
1
-53
21
-53
81
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + col0 col1 FROM tab1
----
145
179
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 12 col1, col0 - + - col0 AS col1 FROM tab2
----
-12
128
-12
150
-12
92

query I rowsort
SELECT col1 * + col0 * ( + 43 ) + + col0 FROM tab0
----
4268
52260
78648

query I rowsort
SELECT ALL 1 * + col0 FROM tab0
----
15
87
97

query II rowsort
SELECT + col1 + 58, ( + col1 ) FROM tab0
----
139
81
59
1
79
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT - 49 + + MAX( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT - 49 + + MAX ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 + + - col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + ( - 79 ) FROM tab1
----
-79

query I rowsort
SELECT - 34 + + - col0 FROM tab1
----
-119
-125
-85

query I rowsort
SELECT col0 + + 67 FROM tab2
----
113
131
142

query II rowsort
SELECT DISTINCT + col1, + 0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT + AVG ( + + 45 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT - 88 * col0 * - 36 FROM tab0
----
275616
307296
47520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4038
SELECT 6 DIV - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT 6 / - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ( 78 ) + + col2 AS col2 FROM tab1 AS cor0
----
137
146
174

query I rowsort
SELECT + 8 AS col0 FROM tab0 AS cor0 WHERE - col2 = 1 * + 86
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT - - col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE ( col0 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 + - - col0 AS col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - SUM( DISTINCT col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4046
SELECT - SUM ( DISTINCT col2 ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab2 WHERE col2 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 95 + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT + 38 * CAST( NULL AS SIGNED ) * - + col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT + 38 * CAST ( NULL AS INTEGER ) * - + col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 56 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
56
23
56
40
56
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4051
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * ( col1 ) BETWEEN ( NULL ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + 19 FROM tab2
----
-21
-39
-4

query I rowsort
SELECT ( col2 ) FROM tab0 WHERE NOT + 37 * - col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 / - ( - 23 ) + 81 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * 1 ) > + col2 + - 44 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab2 WHERE + col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4060
SELECT - col1 + - col0 col1 FROM tab0 WHERE col1 + - CAST( NULL AS DECIMAL ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4060
SELECT - col1 + - col0 col1 FROM tab0 WHERE col1 + - CAST ( NULL AS REAL ) * + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * - 6 + + col2 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT 17 * + 74 + - COUNT( ALL col0 + - col2 ) AS col1 FROM tab0
----
1255

skipif mysql # not compatible
query I rowsort label-4062
SELECT 17 * + 74 + - COUNT ( ALL col0 + - col2 ) AS col1 FROM tab0
----
1255

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 85 + col2 * 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT COUNT( - 98 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT COUNT ( - 98 ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL 13 * ( col2 * - 61 ) FROM tab1 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 * - 87 FROM tab2
----
-4437
-5829
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT 50 + col0 * - CAST( col1 * col0 AS SIGNED ) AS col2 FROM tab0
----
-158899
-18175
-9359

skipif mysql # not compatible
query I rowsort label-4068
SELECT 50 + col0 * - CAST ( col1 * col0 AS INTEGER ) AS col2 FROM tab0
----
-158899
-18175
-9359

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - col0 < NULL
----

query I rowsort
SELECT col2 * - 73 - col1 FROM tab0
----
-3512
-7228
-751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT - col1 * CAST( 38 AS SIGNED ) + col2 FROM tab0
----
-3031
-788
61

skipif mysql # not compatible
query I rowsort label-4071
SELECT - col1 * CAST ( 38 AS INTEGER ) + col2 FROM tab0
----
-3031
-788
61

query III rowsort
SELECT * FROM tab2 WHERE NOT 51 + col1 >= 36 / - col0
----

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + 82 + COUNT( * ) FROM tab2 WHERE NOT col0 + 67 IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + 82 + COUNT ( * ) FROM tab2 WHERE NOT col0 + 67 IS NULL
----
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - 95 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ( ( - COUNT( DISTINCT + 49 ) ) ) + 16 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( ( - COUNT ( DISTINCT + 49 ) ) ) + 16 FROM tab1 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT MAX( + col0 ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-4077
SELECT MAX ( + col0 ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
97

query I rowsort
SELECT ALL 70 * + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3570
4690
5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT - col0 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT - col0 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 8 * col0 + col1 AS col2 FROM tab1 AS cor0
----
422
685
775

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT + SUM( DISTINCT 51 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
51

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + SUM ( DISTINCT 51 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT - 71 DIV 6 FROM tab1 WHERE col0 <> - 31 + - 39
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4083
SELECT - 71 / 6 FROM tab1 WHERE col0 <> - 31 + - 39
----
-11
-11
-11

query I rowsort
SELECT - col0 * 82 AS col1 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL - SUM( 50 ) * 85 FROM tab0 AS cor0
----
-12750

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - SUM ( 50 ) * 85 FROM tab0 AS cor0
----
-12750

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - 59
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab2 cor0 WHERE NULL IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT + 85 * - 25 - SUM( ALL - col0 ) FROM tab1 cor0
----
-1898

skipif mysql # not compatible
query I rowsort label-4090
SELECT + 85 * - 25 - SUM ( ALL - col0 ) FROM tab1 cor0
----
-1898

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 69 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 69 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 39 + + 24 AS col1 FROM tab0 cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 col0 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT + AVG ( 2 ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT + AVG ( 2 ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT ALL - col1 DIV 38 + col0 FROM tab2 AS cor0
----
45
62
74

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - col1 / 38 + col0 FROM tab2 AS cor0
----
45
62
74

query I rowsort
SELECT ALL + 56 * + ( col0 ) FROM tab1 WHERE NULL BETWEEN ( ( 28 ) + + col1 ) AND ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col1 ) >= col1 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + 18 + - 31 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4101
SELECT + 18 + - 31 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL COUNT( * ) * 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL COUNT ( * ) * 27 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NULL BETWEEN + col2 / col2 AND ( 10 )
----

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NULL BETWEEN + col2 / col2 AND ( 10 )
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4107
SELECT DISTINCT + COUNT( * ) DIV - 84 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT + COUNT ( * ) / - 84 AS col0 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 19 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 19 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * + col0 col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT + - ( - SUM( DISTINCT 69 ) ) DIV 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-4112
SELECT + - ( - SUM ( DISTINCT 69 ) ) / 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8

query II rowsort
SELECT DISTINCT - 89 AS col0, 12 AS col0 FROM tab0
----
-89
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT MAX( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 33 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT MAX ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 33 ) ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + MIN( + col0 ) + - 51 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT + MIN ( + col0 ) + - 51 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT + 9 + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 9 + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4118
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( + col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4118
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( + col2 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4120
SELECT ALL - + 13 AS col0, CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

skipif mysql # not compatible
query II rowsort label-4120
SELECT ALL - + 13 AS col0, CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + ( + 67 ) + COUNT( * ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + ( + 67 ) + COUNT ( * ) FROM tab1
----
70

query I rowsort
SELECT DISTINCT 5 - 22 FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4124
SELECT * FROM tab1 WHERE + 5 * - - ( + col1 ) + - col2 BETWEEN CAST( NULL AS SIGNED ) * col1 AND col1
----

skipif mysql # not compatible
query III rowsort label-4124
SELECT * FROM tab1 WHERE + 5 * - - ( + col1 ) + - col2 BETWEEN CAST ( NULL AS INTEGER ) * col1 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT col0 * 73 + - + CAST( col2 AS SIGNED ) FROM tab1
----
3627
6146
6575

skipif mysql # not compatible
query I rowsort label-4125
SELECT col0 * 73 + - + CAST ( col2 AS INTEGER ) FROM tab1
----
3627
6146
6575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT - COUNT( * ) DIV - CAST( - + 68 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - COUNT ( * ) / - CAST ( - + 68 AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT col1 DIV + 42 FROM tab2 WHERE NOT ( 27 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col1 / + 42 FROM tab2 WHERE NOT ( 27 ) IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - 42 + + + COUNT( * ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4128
SELECT - 42 + + + COUNT ( * ) AS col2 FROM tab0
----
-39

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN ( col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT 94 DIV + col0 + + 23 FROM tab2 AS cor0
----
24
25

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT 94 / + col0 + + 23 FROM tab2 AS cor0
----
24
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - - 47 * COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 + - + col0 IS NOT NULL
----
144

skipif mysql # not compatible
query I rowsort label-4131
SELECT - - 47 * COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 + - + col0 IS NOT NULL
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL col0 * - col2 * 79 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL col0 * - col2 * 79 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT DISTINCT ( - col2 ) DIV - col2 + + + 31 + 59 + ( col2 ) AS col0 FROM tab0 AS cor0
----
101
138
190

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT ( - col2 ) / - col2 + + + 31 + 59 + ( col2 ) AS col0 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT ALL + ( col1 ) * - - 0 + 12 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + ( col1 ) * - - 0 + 12 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 20 FROM tab1 WHERE + ( - 0 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE col0 * 39 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4138
SELECT CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE col0 * 39 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL + 79 + - 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 79 + - 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + - 52 * + col0 * + col2 FROM tab1 AS cor0
----
-254592
-260780
-321776

query I rowsort
SELECT DISTINCT - col0 * + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - - MIN( col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4144
SELECT - - MIN ( col0 ) FROM tab1 cor0
----
51

query II rowsort
SELECT - + 29 AS col0, ( + col0 ) * col2 + ( 4 + col1 ) / col1 FROM tab2 AS cor0 WHERE NOT - 99 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT MIN( + col0 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4147
SELECT MIN ( + col0 ) col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4148
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 32 IN ( + - ( + + 93 ) * + 46 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + col0 ) * col1 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT + col2 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT - 87 * + + ( SUM( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 87 * + + ( SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + 1 * - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 1 * - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 * + - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT DISTINCT 71, COUNT( * ) AS col1 FROM tab2 AS cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-4157
SELECT DISTINCT 71, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query III rowsort label-4159
SELECT - col2 AS col2, + col2 DIV - - ( + - 31 ), + + 75 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 03c6df2bc7963421fd30bf42b07a1f32

skipif mysql # not compatible
query III rowsort label-4159
SELECT - col2 AS col2, + col2 / - - ( + - 31 ), + + 75 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 03c6df2bc7963421fd30bf42b07a1f32

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + MAX( DISTINCT - 79 ) AS col0 FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL BETWEEN NULL AND 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT + MAX ( DISTINCT - 79 ) AS col0 FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL BETWEEN NULL AND 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL - CAST( - MIN( - + col1 ) AS SIGNED ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - CAST ( - MIN ( - + col1 ) AS INTEGER ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab1
----
-1530
-1638
-918

query II rowsort
SELECT ( 65 ), + 5 * 89 AS col2 FROM tab1 AS cor0
----
65
445
65
445
65
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT - col1 * - + 42 * col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - col1 * - + 42 * col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL - 8 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - 8 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-11

query II rowsort
SELECT DISTINCT - 98 * 3 AS col0, - 8 FROM tab0 AS cor0
----
-294
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + + col0 * + CAST( + 79 AS SIGNED ) FROM tab1 AS cor0
----
4029
6715
7189

skipif mysql # not compatible
query I rowsort label-4167
SELECT + + col0 * + CAST ( + 79 AS INTEGER ) FROM tab1 AS cor0
----
4029
6715
7189

query II rowsort
SELECT DISTINCT - 58 + + col2, col2 AS col2 FROM tab1 AS cor0
----
1
59
10
68
38
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + - col2 * col2 FROM tab1 AS cor0
----
205379
314432
884736

query II rowsort
SELECT - col2, + 20 AS col1 FROM tab2
----
-23
20
-40
20
-58
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 19 * + col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 * col1 / col0 ) IN ( 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col0 / + - 10 + - + 90 + + col1 * - col1 * + col1 * - col0 / - 48 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col0 / + - 10 + - + 90 + + col1 * - col1 * + col1 * - col0 / - 48 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL + + COUNT( * ) AS col1, + 88 col1 FROM tab0 AS cor0
----
3
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4175
SELECT ALL + + COUNT ( * ) AS col1, + 88 col1 FROM tab0 AS cor0
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / - - col1 = + 77
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col2 NOT BETWEEN ( + col0 + + col0 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 91 - 92 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN + - 76 AND col0 / + 11 + + + 62
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL + col1 - + + col1 DIV - + col0 AS col2 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + col1 - + + col1 / - + col0 AS col2 FROM tab0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT COUNT( * ) FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT COUNT ( * ) FROM tab2, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + COUNT( ALL + - 57 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4183
SELECT + COUNT ( ALL + - 57 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - COUNT( DISTINCT - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - 38 * - MIN( col1 ) FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - 38 * - MIN ( col1 ) FROM tab1
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT ( + MAX( + 20 ) ), - 68 AS col2 FROM tab0
----
20
-68

skipif mysql # not compatible
query II rowsort label-4186
SELECT ( + MAX ( + 20 ) ), - 68 AS col2 FROM tab0
----
20
-68

query I rowsort
SELECT ALL + - ( + - 92 ) AS col2 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4188
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( - 62 AS SIGNED ), 82 )
----

skipif mysql # not compatible
query III rowsort label-4188
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( - 62 AS INTEGER ), 82 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + col0 / col2 + - 3 + - col2 - - - col0 / - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + col0 * col2 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + col0 * col2 <> NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT + 81 DIV - - COUNT( DISTINCT col0 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 81 / - - COUNT ( DISTINCT col0 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT ALL - 78 * + col2 AS col0 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT + COUNT( * ) DIV - ( 56 ) * 70 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT + COUNT ( * ) / - ( 56 ) * 70 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - + 29 = ( ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + 59 FROM tab0 AS cor0
----
-22
38
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT + col1 FROM tab1 AS cor0 WHERE - 2 - - - ( - - CAST( - col1 AS SIGNED ) ) <= + col0 / CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4196
SELECT + col1 FROM tab1 AS cor0 WHERE - 2 - - - ( - - CAST ( - col1 AS INTEGER ) ) <= + col0 / CAST ( - - col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL - col0 * - col0 DIV - ( - col0 ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - col0 * - col0 / - ( - col0 ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + ( - + col2 ), - col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT COUNT( * ) + 9 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT COUNT ( * ) + 9 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + + 17 + + 91 FROM tab2 cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + COUNT( * ) * + 57 + 78 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-4201
SELECT + COUNT ( * ) * + 57 + 78 FROM tab2
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT ALL - 32 DIV 15 col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT ALL - 32 / 15 col2 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( * ) + - MAX( ALL - col0 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) + - MAX ( ALL - col0 ) FROM tab0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 87 ) * + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 87 ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + ( + col2 ) * col1 * - 80 * - col2 FROM tab2
----
18031107
2158371
9856077

query II rowsort
SELECT ALL 15 - + col0 AS col1, col0 AS col1 FROM tab2
----
-31
46
-49
64
-60
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT ALL + COUNT( ALL + - 6 ) AS col1, MAX( col2 ) AS col0 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL + COUNT ( ALL + - 6 ) AS col1, MAX ( col2 ) AS col0 FROM tab1
----
3
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT DISTINCT COUNT( * ) DIV 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT COUNT ( * ) / 95 FROM tab1
----
0

query I rowsort
SELECT - 3 * - col1 AS col0 FROM tab0
----
243
3
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT 75 DIV 34 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4210
SELECT 75 / 34 AS col2 FROM tab2
----
2
2
2

query I rowsort
SELECT - 53 AS col2 FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) - + col1 * + + col2 FROM tab2 AS cor0
----
-1242
-3184
-4019

query I rowsort
SELECT - - 7 - + 80 + - 3 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL 28 + - 94 AS col0 FROM tab1 AS cor0
----
-66
-66
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4216
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / CAST( + col1 AS SIGNED ) * - col1 ) >= 61 * - 9
----

skipif mysql # not compatible
query III rowsort label-4216
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / CAST ( + col1 AS INTEGER ) * - col1 ) >= 61 * - 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 2 AS col0 FROM tab1 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-4219
SELECT DISTINCT + 2 DIV - - ( - - 29 ), col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT + 2 / - - ( - - 29 ), col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT - + 12 DIV + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT - + 12 / + + col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col1, col1 * 87 FROM tab0 AS cor0
----
1
87
21
1827
81
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - MAX( 75 ) AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4223
SELECT - MAX ( 75 ) AS col1 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ALL 70 AS col0 FROM tab0 WHERE col1 * col2 + + col2 >= ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL 70 AS col0 FROM tab0 WHERE col1 * col2 + + col2 >= ( - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= - - 7 / col1 * - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4227
SELECT ALL + + col2 + + - col1, + col0 DIV + col2 + + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
21
-6187
54
-5014
82
-4896

skipif mysql # not compatible
query II rowsort label-4227
SELECT ALL + + col2 + + - col1, + col0 / + col2 + + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
21
-6187
54
-5014
82
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4228
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT - - MIN( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - - MIN ( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query I rowsort
SELECT col1 * - 71 + + 16 * 82 FROM tab0
----
-179
-4439
1241

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 78 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 49 AS col2 FROM tab0 AS cor0
----
-50
2
39

query I rowsort
SELECT ALL - - ( - + col0 ) + - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4234
SELECT + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col1 AS col2, 95 AS col1 FROM tab0 AS cor0
----
1
95
21
95
81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL MIN( ALL + 36 ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL MIN ( ALL + 36 ) AS col1 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT 37 + - COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4237
SELECT 37 + - COUNT ( * ) FROM tab1
----
34

query I rowsort
SELECT ( 29 ) + 1 AS col2 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT ALL - MAX( ALL 87 ) AS col2, - MIN( DISTINCT - - col1 ) * - 95 FROM tab0
----
-87
95

skipif mysql # not compatible
query II rowsort label-4239
SELECT ALL - MAX ( ALL 87 ) AS col2, - MIN ( DISTINCT - - col1 ) * - 95 FROM tab0
----
-87
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT COUNT( ALL 38 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT COUNT ( ALL 38 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * - col2 * - 82 AS col1 FROM tab2 AS cor0
----
209920
356700
86756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + - - 85 col2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT col1 + - 13 * col1 + - + col1 FROM tab1 AS cor0
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + 9 + + SUM( + 28 ) + - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + 9 + + SUM ( + 28 ) + - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 BETWEEN 30 * - ( 9 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT + SUM( + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + SUM ( + col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4250
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col2 col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col2 col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT ALL + col0 * - 21 * - + col1 - - + col0 AS col1 FROM tab1 AS cor0
----
15045
89908
9010

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + ( + col2 ), col1, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT + 18 * CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + 18 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT CAST( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) / + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT CAST ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) / + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4255
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= col0 + + CAST( 90 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4255
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= col0 + + CAST ( 90 AS INTEGER )
----

query II rowsort
SELECT ALL - col2, col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 7 AS col2 FROM tab0
----
106
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) + + - COUNT( * ) + - COUNT( * ) * - + 43 + - - ( - 14 ) * + - 73 FROM tab1
----
1145

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) * - + 43 + - - ( - 14 ) * + - 73 FROM tab1
----
1145

query I rowsort
SELECT ALL - 43 * col0 * + col2 AS col0 FROM tab0
----
-30315
-37410
-412929

query I rowsort
SELECT 75 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT + col1 + + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + col1 + + col2 / + col2 AS col2 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT - - ( + col1 ) * + 22 AS col0 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT 14 + - 71 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT DISTINCT + 32 + - col1 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + 32 + - col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + 23 * COUNT( * ) * - + 58 FROM tab1
----
-4002

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 23 * COUNT ( * ) * - + 58 FROM tab1
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT + SUM( ALL + 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-4272
SELECT + SUM ( ALL + 48 ) FROM tab0
----
144

query I rowsort
SELECT DISTINCT - col0 - + 64 AS col0 FROM tab2
----
-110
-128
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + 37 - + - COUNT( + col2 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + 37 - + - COUNT ( + col2 ) FROM tab1
----
40

query II rowsort
SELECT + col2 AS col0, 59 AS col1 FROM tab1
----
59
59
68
59
96
59

query I rowsort
SELECT DISTINCT 8 - + 7 AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - 10 - - 81 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT MIN( + col0 ) * + - COUNT( * ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT MIN ( + col0 ) * + - COUNT ( * ) AS col2 FROM tab1
----
-153

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab2 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 23 AS col0 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + + 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query II rowsort label-4284
SELECT + 40 AS col0, 73 DIV + col2 + - - 70 + + 26 + col1 AS col1 FROM tab2
----
40
150
40
164
40
174

skipif mysql # not compatible
query II rowsort label-4284
SELECT + 40 AS col0, 73 / + col2 + - - 70 + + 26 + col1 AS col1 FROM tab2
----
40
150
40
164
40
174

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT DISTINCT MAX( ALL + col0 ) DIV - + ( - 79 ) * - 1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT MAX ( ALL + col0 ) / - + ( - 79 ) * - 1 AS col0 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 79 * - ( + 45 ) IS NULL )
----

query I rowsort
SELECT ALL 44 * + 49 * + col2 * col2 + + col0 FROM tab2 AS cor0
----
1140570
3449664
7252859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT col2 * - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT col2 * - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT COUNT( DISTINCT - 38 ) FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT COUNT ( DISTINCT - 38 ) FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT - - MAX( + 40 ) AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - - MAX ( + 40 ) AS col1 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab1 cor0 WHERE + 84 + + - col0 IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query II rowsort label-4295
SELECT DISTINCT - 58 DIV col0 * col2 * 77 AS col1, col0 FROM tab0 AS cor0
----
-10857
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-4295
SELECT DISTINCT - 58 / col0 * col2 * 77 AS col1, col0 FROM tab0 AS cor0
----
-10857
15
0
87
0
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT - COUNT( - - 50 ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT - COUNT ( - - 50 ) / - + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - COUNT( * ) * + - MAX( - - col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4297
SELECT - COUNT ( * ) * + - MAX ( - - col2 ) FROM tab1
----
288

query I rowsort
SELECT DISTINCT - 77 * - col0 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN ( - 73 ) AND 17 + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN - 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT COUNT( DISTINCT + col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT COUNT ( DISTINCT + col2 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * - col1 + - 97 AS col0 FROM tab1 AS cor0
----
-72
2112
99

query I rowsort
SELECT - 30 * - ( + + 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d52de07bab766030599066fba6fac2d0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4305
SELECT CAST( NULL AS DECIMAL ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69

skipif mysql # not compatible
query II rowsort label-4305
SELECT CAST ( NULL AS REAL ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT - 72 DIV - col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4306
SELECT - 72 / - col1 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - ( + + col1 ) * - col2 * - col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT - 2 - + 89 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - + COUNT( DISTINCT - 25 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4309
SELECT - + COUNT ( DISTINCT - 25 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - MIN( - 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4310
SELECT - MIN ( - 61 ) FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + - MAX( + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4311
SELECT + - MAX ( + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT - col0 DIV - - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4312
SELECT - col0 / - - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT ALL - 34 - col1 DIV - ( col2 ) col0 FROM tab1 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT ALL - 34 - col1 / - ( col2 ) col0 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT 78 + + ( - - col2 ) FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
101
118
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + col2 - col1 AS col0, col2 col1 FROM tab0 AS cor0
----
-121
10
-2290
47
-9802
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL + - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT DISTINCT - 20 DIV + + col1 - + 35 AS col1 FROM tab0 AS cor0
----
-35
-55

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - 20 / + + col1 - + 35 AS col1 FROM tab0 AS cor0
----
-35
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + - col0 + - + col1 col2 FROM tab0
----
-172
-174
-184

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col2 / + col1 + col2 + + col0 / - 51 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 * + col2 - - col2 FROM tab2
----
1081
2600
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT col0 - - - col2 DIV - 2 AS col1 FROM tab1
----
114
125
99

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT col0 - - - col2 / - 2 AS col1 FROM tab1
----
114
125
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT col2 * ( col1 ) * - + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-4324
SELECT col2 * ( col1 ) * - + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT 20 * col2 AS col0 FROM tab0
----
1980
200
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 44 * - + col0 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT ALL - 39 * col0 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT + 44 * - ( + - 5 ) AS col2 FROM tab2
----
220
220
220

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT - 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - MAX( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-4332
SELECT - MAX ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + + COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + + COUNT ( - col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 40 ) * 89 FROM tab1 AS cor0
----
-3560
-3560
-3560

query II rowsort
SELECT ALL + 64 AS col1, 2 FROM tab0 AS cor0
----
64
2
64
2
64
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT DISTINCT - ( - 90 ) DIV col1 + + 40 * + 62 * 7 FROM tab0 AS cor0
----
17361
17364
17450

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - ( - 90 ) / col1 + + 40 * + 62 * 7 FROM tab0 AS cor0
----
17361
17364
17450

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 > + col2 + - col1 / col2 / - 24
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= ( col2 )
----

query I rowsort
SELECT col2 + + + col0 AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - 49 * + col0 * - - col0 FROM tab2
----
-103684
-200704
-275625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT ALL COUNT( * ) DIV - MAX( ALL - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL COUNT ( * ) / - MAX ( ALL - col0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT CAST( - col1 AS SIGNED ) * - 94 + - 79 FROM tab1
----
1237
391
4339

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( - col1 AS INTEGER ) * - 94 + - 79 FROM tab1
----
1237
391
4339

query II rowsort
SELECT + col1 + + col0 * - - 30 - - + col2, - col1 AS col1 FROM tab2
----
1454
-51
2037
-77
2375
-67

query II rowsort
SELECT + - col1 + + 51, + ( - 22 ) AS col2 FROM tab1 WHERE - col1 * - 53 IS NOT NULL
----
37
-22
4
-22
46
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + 76 * - + COUNT( * ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-4346
SELECT + 76 * - + COUNT ( * ) FROM tab1
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT DISTINCT CAST( MIN( - 87 ) AS SIGNED ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT CAST ( MIN ( - 87 ) AS INTEGER ) FROM tab2
----
-87

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col1 + - + col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 26 + - col1 * + - col1 AS col0 FROM tab2 AS cor0
----
2627
4515
5955

query II rowsort
SELECT + 48 AS col2, col2 * - col1 AS col2 FROM tab1 AS cor0
----
48
-1344
48
-295
48
-3196

query I rowsort
SELECT + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT + COUNT( ALL + col1 ) AS col1, SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-4357
SELECT + COUNT ( ALL + col1 ) AS col1, SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT - COUNT( * ) * + 97 + SUM( ALL col0 ) * - - 22 FROM tab0 AS cor0 WHERE col2 * + col0 * - col2 <= col0
----
4087

skipif mysql # not compatible
query I rowsort label-4358
SELECT - COUNT ( * ) * + 97 + SUM ( ALL col0 ) * - - 22 FROM tab0 AS cor0 WHERE col2 * + col0 * - col2 <= col0
----
4087

query I rowsort
SELECT ALL - ( col0 ) + + 88 AS col0 FROM tab0 AS cor0
----
-9
1
73

query II rowsort
SELECT ALL - 60 AS col0, - ( + + 63 ) FROM tab1
----
-60
-63
-60
-63
-60
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT col0 AS col2, + 48 DIV + - col0 * 83 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4361
SELECT col0 AS col2, + 48 / + - col0 * 83 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT CAST( 21 AS SIGNED ) FROM tab0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4362
SELECT CAST ( 21 AS INTEGER ) FROM tab0
----
21
21
21

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - ( - - col1 ) * + col2 * - col2 + + - col0 * + ( + + col0 ), + col2, - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4364
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
3
3

query II rowsort
SELECT ALL - col2, + col2 * 14 AS col0 FROM tab1
----
-59
826
-68
952
-96
1344

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN + ( - + 43 ) AND 81
----

query I rowsort
SELECT - col2 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT DISTINCT - + 53, 4 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-53
7

skipif mysql # not compatible
query II rowsort label-4368
SELECT DISTINCT - + 53, 4 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-53
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4369
SELECT + - 59 DIV - ( - MAX( - - 21 ) ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4369
SELECT + - 59 / - ( - MAX ( - - 21 ) ) AS col0 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL - MIN( + 31 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - MIN ( + 31 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 + - - col0, + col1 col1 FROM tab0 WHERE NULL NOT BETWEEN + 40 + - col1 + - - 98 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4374
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + MIN( - col2 ) + - 30 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + MIN ( - col2 ) + - 30 FROM tab0 cor0
----
-129

query I rowsort
SELECT + + ( - ( + 65 ) ) AS col2 FROM tab1 cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT col0 * + - ( + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 * + 3 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4382
SELECT + 74 DIV col2 AS col2, - 75 FROM tab0 AS cor0
----
0
-75
1
-75
7
-75

skipif mysql # not compatible
query II rowsort label-4382
SELECT + 74 / col2 AS col2, - 75 FROM tab0 AS cor0
----
0
-75
1
-75
7
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) + + + 92 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) + + + 92 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ( + + col2 ) FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 64 < 94 * - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 48 ) AS col1 FROM tab1
----
-48

query II rowsort
SELECT ALL col1, + 58 FROM tab1
----
14
58
47
58
5
58

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 61 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4390
SELECT DISTINCT + 99 + + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + 99 + + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT col2 + + 30 AS col0 FROM tab0 AS cor0
----
129
40
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, + col1 * - 32 AS col0 FROM tab0 AS cor0
----
10
-672
47
-2592
99
-32

query I rowsort
SELECT ALL col1 + - + 49 AS col2 FROM tab2 AS cor0
----
18
2
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 - - 59 AS col1 FROM tab1 AS cor0
----
151
151
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4397
SELECT ALL CAST( - - 12 AS SIGNED ) + - + col0 + col2, col2 * - col2 AS col1 FROM tab2 AS cor0
----
-11
-529
-12
-1600
-5
-3364

skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL CAST ( - - 12 AS INTEGER ) + - + col0 + col2, col2 * - col2 AS col1 FROM tab2 AS cor0
----
-11
-529
-12
-1600
-5
-3364

query I rowsort
SELECT + + 95 * - - 99 FROM tab2 AS cor0
----
9405
9405
9405

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 NOT IN ( - col1, + col2, - col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT DISTINCT - COUNT( DISTINCT col1 ) DIV + COUNT( ALL col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - COUNT ( DISTINCT col1 ) / + COUNT ( ALL col1 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL COUNT( ALL + 11 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL COUNT ( ALL + 11 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT + MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab0
----
10

query I rowsort
SELECT + col1 * + - col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT DISTINCT - COUNT( ALL + col1 ) AS col0, + 22 + + + SUM( ALL + 41 ) FROM tab2
----
-3
145

skipif mysql # not compatible
query II rowsort label-4404
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col0, + 22 + + + SUM ( ALL + 41 ) FROM tab2
----
-3
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT + 66 * + COUNT( + 55 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + 66 * + COUNT ( + 55 ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - 24 * - 73 * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - - col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT - 24 * - 73 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - - col0 ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4407
SELECT - + ( col0 ) AS col0, - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-15
-3
-87
0
-97
-1

skipif mysql # not compatible
query II rowsort label-4407
SELECT - + ( col0 ) AS col0, - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-15
-3
-87
0
-97
-1

query I rowsort
SELECT - 23 FROM tab1 AS cor0 WHERE NOT - 64 + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ( + ( + + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4409
SELECT ( + ( + + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL - COUNT( + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - COUNT ( + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL < 93 + - 38 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - MAX( ALL + 77 ) AS col2 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4412
SELECT - MAX ( ALL + 77 ) AS col2 FROM tab1 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + - col1 + + col1 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 28 * - col0 + + - 16 FROM tab1 AS cor0
----
-1444
-2396
-2564

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND - col1
----

query II rowsort
SELECT - col1 * col2 * + + ( + col2 ) + - col0 * - 39 + - col2 + + 96, col1 FROM tab2 AS cor0
----
-120648
77
-222425
67
-25112
51

query I rowsort
SELECT DISTINCT - col0 + - 49 FROM tab2 AS cor0
----
-113
-124
-95

query I rowsort
SELECT + col2 + + - 77 AS col1 FROM tab0 AS cor0
----
-30
-67
22

query I rowsort
SELECT col1 * - col1 + ( - col1 ) AS col2 FROM tab1
----
-210
-2256
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4420
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 WHERE 56 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - CAST ( NULL AS REAL ) FROM tab2 WHERE 56 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 64 + - 75 * 94 AS col0 FROM tab2
----
-11146
-11850
-9994

query I rowsort
SELECT - col1 + - - col0 AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT 58 * + 90 * 30 FROM tab2
----
156600
156600
156600

query I rowsort
SELECT ALL - col1 * col1 + col1 * + + 9 FROM tab0 cor0
----
-252
-5832
8

query I rowsort
SELECT ALL + col2 + - - col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + col2 - col0 * + 67 AS col1 FROM tab0 AS cor0
----
-5819
-6400
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT COUNT( * ) * - MAX( - - 19 ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT COUNT ( * ) * - MAX ( - - 19 ) FROM tab0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + COUNT( * ) * - + 16 + - + 44 + + MIN( ALL 76 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4429
SELECT + COUNT ( * ) * - + 16 + - + 44 + + MIN ( ALL 76 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - - COUNT( * ) * - MAX( + 26 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - COUNT ( * ) * - MAX ( + 26 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234

query I rowsort
SELECT ALL col0 * 63 * 64 * - - col0 - - - 50 - + col2 AS col0 FROM tab1 AS cor0
----
10487086
29131091
33388874

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 col0 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT + col0 * - - 41 + col0 FROM tab0 cor0
----
3654
4074
630

query I rowsort
SELECT col0 * + ( - col1 ) + + 59 FROM tab0 AS cor0
----
-1156
-1768
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4436
SELECT - - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + - col0 * + col2 - col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
92
92
92

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE col1 * + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT ALL - COUNT( * ), COUNT( * ) col0 FROM tab0 WHERE + 88 IS NOT NULL
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4440
SELECT ALL - COUNT ( * ), COUNT ( * ) col0 FROM tab0 WHERE + 88 IS NOT NULL
----
-3
3

query II rowsort
SELECT + col0, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL 10 * - - col0 AS col0 FROM tab1
----
510
850
910

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab1 WHERE - + col0 * + col2 IS NULL
----

query I rowsort
SELECT ALL 76 * col2 FROM tab1
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + MAX( + + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + MAX ( + + col1 ) AS col2 FROM tab2 AS cor0
----
77

query II rowsort
SELECT + col1 AS col0, col1 * col1 FROM tab1 AS cor0
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL - ( + COUNT( ALL - 4 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - ( + COUNT ( ALL - 4 ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, ( + col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-51
-2116
-67
-5625
-77
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL = col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + SUM( DISTINCT + 76 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-4452
SELECT + SUM ( DISTINCT + 76 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + MIN( col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4453
SELECT + MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col2 + + + 68 FROM tab2 AS cor0
----
108
126
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ( + MIN( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4455
SELECT ( + MIN ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < + col1
----
0

query I rowsort
SELECT ALL col2 * + ( + + col2 ) FROM tab0 AS cor0 WHERE - col1 * col2 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT ALL + col2 * CAST( - 28 AS SIGNED ) + + ( - - 46 ) col0 FROM tab2
----
-1074
-1578
-598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT ALL + col2 * CAST ( - 28 AS INTEGER ) + + ( - - 46 ) col0 FROM tab2
----
-1074
-1578
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT SUM( 3 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT SUM ( 3 ) AS col2 FROM tab0
----
9

query I rowsort
SELECT + 62 FROM tab2 WHERE - ( + col0 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT DISTINCT col0 * - - 67 * + col2 * + + col0 + + + col2 DIV + ( + col1 ) FROM tab2 AS cor0
----
10977280
21858750
3260756

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT col0 * - - 67 * + col2 * + + col0 + + + col2 / + ( + col1 ) FROM tab2 AS cor0
----
10977280
21858750
3260756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL + col2 + - + CAST( + - 21 AS SIGNED ) col2 FROM tab0 cor0
----
120
31
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4463
SELECT ALL + col2 + - + CAST ( + - 21 AS INTEGER ) col2 FROM tab0 cor0
----
120
31
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4464
SELECT ALL + SUM( + CAST( + 70 AS SIGNED ) ), + ( - 93 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
210
-93

skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL + SUM ( + CAST ( + 70 AS INTEGER ) ), + ( - 93 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
210
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT - COUNT( * ) - - 75 AS col1 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - COUNT ( * ) - - 75 AS col1 FROM tab1 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 38 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL + CAST( + 94 AS SIGNED ) FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + CAST ( + 94 AS INTEGER ) FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT COUNT( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4471
SELECT COUNT ( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
15
87
97

query I rowsort
SELECT col1 * - + col0 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - - 18 * - - ( + col2 ) AS col2 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT - 1 * - - 8 + col2 + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - 1 * - - 8 + col2 + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4476
SELECT ALL col1 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL col1 * + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL + COUNT( * ) DIV 87 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + COUNT ( * ) / 87 FROM tab2
----
0

query I rowsort
SELECT ALL col0 * - ( + 62 ) FROM tab2
----
-2852
-3968
-4650

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT + 86 DIV + 97 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 86 / + 97 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 59 * - col2 FROM tab0
----
-2773
-5841
-590

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT DISTINCT + col0 DIV + + col1 col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4481
SELECT DISTINCT + col0 / + + col1 col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT ALL + 74 AS col1, COUNT( * ) FROM tab0 AS cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL + 74 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - - MAX( col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4483
SELECT - - MAX ( col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT col2, + 34 AS col0 FROM tab2 AS cor0
----
23
34
40
34
58
34

query I rowsort
SELECT + - col2 * + + 26 + - 70 AS col1 FROM tab0 cor0
----
-1292
-2644
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + col2 + - col1 col0 FROM tab1 cor0
----
5128
5869
8338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT - + CAST( + - col2 AS SIGNED ) * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4489
SELECT - + CAST ( + - col2 AS INTEGER ) * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT - col2, + col0, - + ( + col1 ) AS col2 FROM tab0
----
9 values hashing to 6b07b08d9ce4608121be301acf870388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL + CAST( NULL AS SIGNED ) * - 54 * + 32 + + COUNT( * ) * + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + CAST ( NULL AS INTEGER ) * - 54 * + 32 + + COUNT ( * ) * + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + col2 * + + 70 AS col2 FROM tab2
----
1610
2800
4060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT col2 + + 75 FROM tab2 AS cor0
----
115
133
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4495
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 60 col2, 53 col1 FROM tab0 AS cor0 WHERE 18 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4497
SELECT ALL + col0 * + CAST( col1 AS SIGNED ) + 28 * col0 * - col0, + 43 DIV + + col2 + - 34 AS col2 FROM tab1 AS cor0
----
-201875
-34
-227591
-34
-72114
-34

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + col0 * + CAST ( col1 AS INTEGER ) + 28 * col0 * - col0, + 43 / + + col2 + - 34 AS col2 FROM tab1 AS cor0
----
-201875
-34
-227591
-34
-72114
-34

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
95
95

query I rowsort
SELECT + col2 * - + 22 * col0 AS col1 FROM tab0
----
-15510
-19140
-211266

query I rowsort
SELECT DISTINCT 58 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - COUNT( * ) + + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - COUNT ( * ) + + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT + - ( + - MAX( ALL - col2 ) ) + + COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + - ( + - MAX ( ALL - col2 ) ) + + COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
-50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 98 > ( col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT + + col2 - + 84 + + col0 * + 52 * col2 - + 92 * col2 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT + + col2 - + 84 + + col0 * + 52 * col2 - + 92 * col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT COUNT( * ) + - CAST( - 70 AS SIGNED ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT COUNT ( * ) + - CAST ( - 70 AS INTEGER ) FROM tab1 AS cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT - + col1 NOT BETWEEN - - col2 * + - col2 AND 81
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + 51 AS col2, - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 37 * - + col2 * - col0 AS col1 FROM tab0 AS cor0
----
2800530
34465167
391275

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + ( + COUNT( * ) ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4510
SELECT + ( + COUNT ( * ) ) col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + COUNT( DISTINCT col2 ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4511
SELECT + COUNT ( DISTINCT col2 ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - col2 * - - 74 FROM tab1 cor0
----
-4366
-5032
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - - COUNT( + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - - COUNT ( + + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT MIN( - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4515
SELECT MIN ( - + col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4516
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4516
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - 21 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4518
SELECT + col1 DIV col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

skipif mysql # not compatible
query II rowsort label-4518
SELECT + col1 / col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

query I rowsort
SELECT DISTINCT - 19 * 37 AS col2 FROM tab2 AS cor0
----
-703

query I rowsort
SELECT + 21 + + 31 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT + - 0 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 + + 58 AS col2 FROM tab0
----
-23
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4523
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - 78 * - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-4524
SELECT - 78 * - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
234

query I rowsort
SELECT ALL - col0 * col1 + - col0 * 70 * + 1 * + - col1 AS col1 FROM tab1 AS cor0
----
29325
295113
49266

query I rowsort
SELECT + + 95 * - - 37 AS col0 FROM tab2 AS cor0
----
3515
3515
3515

query II rowsort
SELECT 48, 29 AS col2 FROM tab0 AS cor0
----
48
29
48
29
48
29

query I rowsort
SELECT ALL + 32 * 5 + + + 33 FROM tab0 AS cor0
----
193
193
193

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 <= + - col0 + - 21 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4530
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 / col2 IS NULL
----
9

query I rowsort
SELECT DISTINCT + 14 FROM tab1 WHERE ( NULL ) IS NULL AND NOT NULL >= + col1
----

query I rowsort
SELECT + 41 + + + col1 FROM tab2
----
108
118
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT ALL COUNT( * ), - 76 * - COUNT( * ) col0 FROM tab2
----
3
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4535
SELECT ALL COUNT ( * ), - 76 * - COUNT ( * ) col0 FROM tab2
----
3
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + COUNT( - - col1 ) + 37 + + 57 + - 16 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4536
SELECT + COUNT ( - - col1 ) + 37 + + 57 + - 16 FROM tab1
----
81

query II rowsort
SELECT DISTINCT + col2 + + col1, col2 - - col2 + - col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + ( - col2 ) IS NULL
----
100
297
128
3901
31
230

query I rowsort
SELECT - 0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 + 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, ( - 72 ) FROM tab0 AS cor0
----
1
-72
21
-72
81
-72

query I rowsort
SELECT - - 44 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT - MAX( 22 ) FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - MAX ( 22 ) FROM tab0 cor0
----
-22

query I rowsort
SELECT DISTINCT + - col0 * - - 66 + - + 20 + - + col2 AS col0 FROM tab0 AS cor0
----
-1057
-5772
-6521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT - - CAST( NULL AS SIGNED ) * + 78 * - col0 - + 87 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 90, 1, 78 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-4544
SELECT - - CAST ( NULL AS INTEGER ) * + 78 * - col0 - + 87 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 90, 1, 78 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT + MIN( + ( - 40 ) ) / COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT + MIN ( + ( - 40 ) ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT 26 * + 24 * + COUNT( * ) AS col1 FROM tab1
----
1872

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT 26 * + 24 * + COUNT ( * ) AS col1 FROM tab1
----
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL + ( - 33 ) * - 91 + CAST( + + CAST( + col0 AS SIGNED ) AS SIGNED ) * + + col0 AS col0 FROM tab1
----
10228
11284
5604

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + ( - 33 ) * - 91 + CAST ( + + CAST ( + col0 AS INTEGER ) AS INTEGER ) * + + col0 AS col0 FROM tab1
----
10228
11284
5604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT 22 + + ( - CAST( - + AVG ( ALL - col1 ) AS SIGNED ) ) * - 67 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1496

skipif mysql # not compatible
query I rowsort label-4549
SELECT 22 + + ( - CAST ( - + AVG ( ALL - col1 ) AS INTEGER ) ) * - 67 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1496

query I rowsort
SELECT col1 + + 61 - col1 + + + 93 AS col0 FROM tab1
----
154
154
154

query I rowsort
SELECT + 45 + + + col0 AS col1 FROM tab0
----
132
142
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT CAST( NULL AS SIGNED ) * 4 + 80 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT CAST ( NULL AS INTEGER ) * 4 + 80 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + + col0 ) + + 24 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + + col0 ) + + 24 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL 23 AS col1, - col0 AS col2 FROM tab1
----
23
-51
23
-85
23
-91

query II rowsort
SELECT ALL col2 + + col0 + + ( 21 ) AS col0, + 12 AS col0 FROM tab2
----
125
12
154
12
90
12

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( + + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE 64 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE 64 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT ALL + + col0 * + + col2 * - - CAST( NULL AS SIGNED ) + + 79 + col0 * + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + + col0 * + + col2 * - - CAST ( NULL AS INTEGER ) + + 79 + col0 * + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 * - col1 * + 66 AS col0, - 73 FROM tab1 AS cor0
----
28050
-73
282282
-73
47124
-73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - COUNT( DISTINCT ( 23 ) ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4562
SELECT - COUNT ( DISTINCT ( 23 ) ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ( 43 ) * - col0 + col1 AS col2 FROM tab2
----
-1927
-2675
-3158

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT 77 * col2 - ( col2 + col0 ) DIV 64 FROM tab1 WHERE - 49 IS NOT NULL
----
4541
5234
7390

skipif mysql # not compatible
query I rowsort label-4564
SELECT 77 * col2 - ( col2 + col0 ) / 64 FROM tab1 WHERE - 49 IS NOT NULL
----
4541
5234
7390

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 64 + + ( col2 ) FROM tab1
----
123
132
160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4567
SELECT DISTINCT col0 * + 65 col2 FROM tab0 WHERE col1 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT DISTINCT col0 * + 65 col2 FROM tab0 WHERE col1 * + CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 / col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * + col0 col1 FROM tab2
----
1104
2624
4425

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN ( NULL ) AND - col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + COUNT( col0 ) * COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT + COUNT ( col0 ) * COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT - COUNT( * ) + + MIN( - col0 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - COUNT ( * ) + + MIN ( - col0 ) FROM tab0
----
-100

query I rowsort
SELECT DISTINCT - col0 * + 1 + - col0 AS col2 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - SUM( 99 ) + ( - 5 + + MIN( ALL - col0 ) ) FROM tab2
----
-377

skipif mysql # not compatible
query I rowsort label-4574
SELECT - SUM ( 99 ) + ( - 5 + + MIN ( ALL - col0 ) ) FROM tab2
----
-377

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT - ( col0 ) DIV + 33 + - 61 FROM tab0
----
-61
-63
-63

skipif mysql # not compatible
query I rowsort label-4575
SELECT - ( col0 ) / + 33 + - 61 FROM tab0
----
-61
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT + col1 / - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT + col1 / - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - SUM( - col1 ) * + 7 AS col1 FROM tab1 WHERE NULL IS NULL
----
462

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - SUM ( - col1 ) * + 7 AS col1 FROM tab1 WHERE NULL IS NULL
----
462

query I rowsort
SELECT 93 * + 85 AS col2 FROM tab1
----
7905
7905
7905

query I rowsort
SELECT ALL 76 FROM tab0 WHERE NOT ( 23 ) <> 9
----

query I rowsort
SELECT 30 + - 72 AS col2 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT ALL + 25 * col2 AS col0 FROM tab2
----
1000
1450
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - 55 + ( SUM( col2 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - 55 + ( SUM ( col2 ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT col0 - CAST( - ( - 84 ) AS SIGNED ) FROM tab2
----
-20
-38
-9

skipif mysql # not compatible
query I rowsort label-4583
SELECT col0 - CAST ( - ( - 84 ) AS INTEGER ) FROM tab2
----
-20
-38
-9

query I rowsort
SELECT ( 70 ) * - col2 FROM tab1 WHERE NOT + col2 < ( + col2 + 90 * 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT ALL + col2 DIV 61 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + col2 / 61 FROM tab0
----
0
0
1

query I rowsort
SELECT - col1 - 59 FROM tab2
----
-110
-126
-136

query I rowsort
SELECT - col0 / col0 AS col2 FROM tab2 WHERE 60 >= NULL
----

query I rowsort
SELECT 66 - + col0 AS col2 FROM tab0
----
-21
-31
51

query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 WHERE NOT ( - 95 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 99 * 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT DISTINCT ( - 63 ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT ( - 63 ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 1 col2 FROM tab0 WHERE ( col0 * col0 ) BETWEEN col1 - 55 * - col0 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( col2 ) + 31 FROM tab0
----
130
41
78

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) IN ( 97 * + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT MIN( ALL - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4597
SELECT MIN ( ALL - col0 ) AS col1 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab2 cor0
----
55

query I rowsort
SELECT ALL col0 * 16 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT MIN( ALL 57 ) * 36 FROM tab2 cor0
----
2052

skipif mysql # not compatible
query I rowsort label-4600
SELECT MIN ( ALL 57 ) * 36 FROM tab2 cor0
----
2052

query I rowsort
SELECT 6 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col2 * 17 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 + + 81 * col0 AND + col2 / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ( 57 ) DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4603
SELECT ( 57 ) / + col2 FROM tab2
----
0
1
2

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT ALL - - 35 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - - 35 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 65 IS NOT NULL
----

query I rowsort
SELECT - - 9 * - col2 AS col1 FROM tab2 AS cor0
----
-207
-360
-522

query I rowsort
SELECT ALL 35 + 22 * col0 FROM tab1 AS cor0
----
1157
1905
2037

query I rowsort
SELECT ALL + ( 19 ) AS col0 FROM tab0 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 35 col2 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4611
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col0 * + col2 * col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4613
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col0 * col1 + + col2 * CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4613
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col0 * col1 + + col2 * CAST ( NULL AS INTEGER ) AND - col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 90 col0 FROM tab1
----
149
158
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - COUNT( * ) FROM tab1 WHERE + ( + 27 ) >= col1
----
-2

skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( * ) FROM tab1 WHERE + ( + 27 ) >= col1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 10 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + + + col0 * - 79 AS col2 FROM tab1 cor0
----
-4043
-6720
-7236

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4619
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT COUNT( * ) * SUM( + col1 ) * + 97 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) * SUM ( + col1 ) * + 97 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( + col0 + ( + 10 ) ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 - - 20 AS col2 FROM tab0 AS cor0
----
3395
658523
912693

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT ALL COUNT( * ) col2, 25 FROM tab0
----
3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4623
SELECT ALL COUNT ( * ) col2, 25 FROM tab0
----
3
25

query I rowsort
SELECT - col2 * - 7 AS col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + - 48 + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-39

skipif mysql # not compatible
query I rowsort label-4625
SELECT + - 48 + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-39

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL > col0
----

query I rowsort
SELECT ALL 41 - - col2 AS col2 FROM tab1
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) > ( + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col0 col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + - + col2 col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT - col1 IS NULL OR ( - col0 ) / + col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - - 1 - + COUNT( * ) + MAX( ALL col1 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4633
SELECT - - 1 - + COUNT ( * ) + MAX ( ALL col1 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT + col0 + - col0 + 74 AS col2 FROM tab0 cor0
----
74

query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab2 AS cor0 WHERE ( - 51 + - col2 ) IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4636
SELECT 32 * COUNT( DISTINCT + 50 ) DIV 2 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4636
SELECT 32 * COUNT ( DISTINCT + 50 ) / 2 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - + col2 col0 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT - + 27 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN - 25 AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT 82 * 52 DIV 81 col2 FROM tab2
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4640
SELECT DISTINCT 82 * 52 / 81 col2 FROM tab2
----
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - col0 * + col2
----

query I rowsort
SELECT ALL col0 * + + ( - col0 ) FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 + - col1 + - col2 ) = + 11 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 9 * + + col0 AS col0 FROM tab1
----
459
765
819

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 0 AND + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT col1 * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL 66 * + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 66 * + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 95 + - 70 + + 80 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT 71 * COUNT( * ) * + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
47499

skipif mysql # not compatible
query I rowsort label-4650
SELECT 71 * COUNT ( * ) * + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
47499

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL 78 * 68 * COUNT( DISTINCT + 63 ) FROM tab2 AS cor0
----
5304

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL 78 * 68 * COUNT ( DISTINCT + 63 ) FROM tab2 AS cor0
----
5304

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - COUNT( * ) * - 70 AS col0 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-4653
SELECT - COUNT ( * ) * - 70 AS col0 FROM tab2
----
210

query I rowsort
SELECT DISTINCT 46 * - 74 * 21 AS col0 FROM tab2
----
-71484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT COUNT( * ) DIV - - 15 + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( * ) / - - 15 + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT ALL col1 * - col2 - col1 - col2 + + col1 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-2047
-295
-5069

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT DISTINCT - 46 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - 46 / - col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 49 + - ( col0 ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT + COUNT ( * ) col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * col1 * - - 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - - 75 - - col1 col1, + 2 AS col2 FROM tab2 AS cor0
----
177
2
209
2
229
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + + ( 27 ) + + - 79 col1 FROM tab2 AS cor0
----
2162
2162
2162

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE 47 + col0 < + 59 * - col2
----

query I rowsort
SELECT col2 + + + col1 AS col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + COUNT( * ) + - 87 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4666
SELECT + COUNT ( * ) + - 87 FROM tab1
----
-84

query I rowsort
SELECT + 65 * - col0 AS col1 FROM tab2
----
-2990
-4160
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4668
SELECT col1 col0, CAST( 20 AS SIGNED ) FROM tab2
----
51
20
67
20
77
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4668
SELECT col1 col0, CAST ( 20 AS INTEGER ) FROM tab2
----
51
20
67
20
77
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT MAX( 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT MAX ( 7 ) FROM tab1
----
7

query II rowsort
SELECT ALL col2 AS col0, 32 AS col1 FROM tab0
----
10
32
47
32
99
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4671
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
-3
3

query I rowsort
SELECT DISTINCT 22 * + col2 FROM tab2 WHERE ( ( ( + 17 * col0 ) IN ( 57 + + 14 ) ) )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 + - 91 + 54 AS col2 FROM tab1 AS cor0
----
107
110
122

query I rowsort
SELECT + ( - col2 ) + - 80 * + + col2 / - col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 WHERE ( col2 + ( 16 ) ) IS NOT NULL
----
-13
-13
-13

query I rowsort
SELECT - 33 * - 14 + - - col1 - - 44 AS col1 FROM tab2 AS cor0
----
557
573
583

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT + 86 - - - ( - - col0 ) + - + col1 * - 66 * + col0 FROM tab2
----
154876
325270
331661

query I rowsort
SELECT 64 + - 71 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT col0 * + col0 - CAST( NULL AS SIGNED ) + + 73 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT col0 * + col0 - CAST ( NULL AS INTEGER ) + + 73 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 - 89 col2 FROM tab2 AS cor0 WHERE NOT ( - + ( col0 ) ) <= - col2 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL + + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT + 78 AS col1, 66 FROM tab1
----
78
66
78
66
78
66

query I rowsort
SELECT DISTINCT - ( - 3 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + 66 AS col1 FROM tab2
----
66
66
66

query II rowsort
SELECT - col1, - ( - + col1 ) FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT - 51 * - + ( + - ( CAST( + col1 AS SIGNED ) ) ) FROM tab0
----
-1071
-4131
-51

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - 51 * - + ( + - ( CAST ( + col1 AS INTEGER ) ) ) FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4689
SELECT 50 AS col0, + COUNT( * ) FROM tab2
----
50
3

skipif mysql # not compatible
query II rowsort label-4689
SELECT 50 AS col0, + COUNT ( * ) FROM tab2
----
50
3

query I rowsort
SELECT DISTINCT col2 * - col2 * - - col1 FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( - 60 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + SUM( col2 ) FROM tab1 AS cor0 WHERE NOT ( + col2 * - 31 ) IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-4693
SELECT + SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT ( + col2 * - 31 ) IS NULL
----
223

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) < + ( - 41 ) - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + - COUNT( - 66 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4696
SELECT + - COUNT ( - 66 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 * col1 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
237224
260437
59869

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4698
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 16 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4698
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 16 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT - 27 * + 12 * - + CAST( NULL AS SIGNED ) * AVG ( DISTINCT + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 27 * + 12 * - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - + col0 AS col2 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL CAST( 99 AS SIGNED ) * + col2 FROM tab2
----
2277
3960
5742

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL CAST ( 99 AS INTEGER ) * + col2 FROM tab2
----
2277
3960
5742

query II rowsort
SELECT col1, col0 - + col2 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
51
23
67
17
77
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 70 + col2 AS col2 FROM tab1 AS cor0
----
129
138
166

query I rowsort
SELECT + - 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - - ( + 16 ) AS col1 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - 81 AS col2 FROM tab0 AS cor0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - MIN( 43 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1, 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - MIN ( 43 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1, 49 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - + col0 * + + col0 col1, col0 * - + 6 * col0 AS col1 FROM tab0
----
-3375
-1350
-658503
-45414
-912673
-56454

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IS NOT NULL AND col1 BETWEEN ( - col0 ) AND ( NULL )
----

query I rowsort
SELECT 39 + + col1 FROM tab1
----
44
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL + 91 + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + 91 + - COUNT ( * ) FROM tab1
----
88

query I rowsort
SELECT ( col0 ) + + 88 AS col0 FROM tab1
----
139
173
179

query I rowsort
SELECT + col0 + - - col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - COUNT( * ) * - 24 + - 96 AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4718
SELECT - COUNT ( * ) * - 24 + - 96 AS col1 FROM tab2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL 29 + + CAST( MIN( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 29 + + CAST ( MIN ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - 1 * + 63 * SUM( DISTINCT + 85 ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4721
SELECT - 1 * + 63 * SUM ( DISTINCT + 85 ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + 41 + + - COUNT( * ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4722
SELECT + 41 + + - COUNT ( * ) FROM tab1 AS cor0
----
38

query I rowsort
SELECT - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - + col1 + - 94 AS col1 FROM tab0 AS cor0
----
-115
-175
-95

query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT COUNT( DISTINCT - + 50 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( DISTINCT - + 50 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT - 17 AS col0, + SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-17
199

skipif mysql # not compatible
query II rowsort label-4727
SELECT - 17 AS col0, + SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-17
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + COUNT( + 24 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 13 / + + col2 + - 75
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT + COUNT ( + 24 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 13 / + + col2 + - 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4729
SELECT DISTINCT 74 AS col0, CAST( NULL AS SIGNED ) * + 51 FROM tab1 cor0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT 74 AS col0, CAST ( NULL AS INTEGER ) * + 51 FROM tab1 cor0
----
74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4730
SELECT + col0 AS col0, + col2 * + 50 FROM tab0 WHERE NOT NULL BETWEEN - CAST( + 60 AS SIGNED ) AND + col2 * - col0 + + 15
----

skipif mysql # not compatible
query II rowsort label-4730
SELECT + col0 AS col0, + col2 * + 50 FROM tab0 WHERE NOT NULL BETWEEN - CAST ( + 60 AS INTEGER ) AND + col2 * - col0 + + 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT col0 * col0 DIV - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4731
SELECT col0 * col0 / - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - 63 * col2 FROM tab1
----
-3717
-4284
-6048

query III rowsort
SELECT * FROM tab2 WHERE NOT + 11 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT MAX ( + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + SUM( DISTINCT - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4735
SELECT + SUM ( DISTINCT - col1 ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col0 + - col1
----

query II rowsort
SELECT ALL 74 * 95 * - - col0, + col2 FROM tab0
----
105450
47
611610
10
681910
99

query I rowsort
SELECT ALL - 74 * - col0 AS col0 FROM tab2
----
3404
4736
5550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4739
SELECT DISTINCT * FROM tab0 cor0 WHERE 82 + + col1 - - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4739
SELECT DISTINCT * FROM tab0 cor0 WHERE 82 + + col1 - - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + + COUNT( * ) + - 29 AS col1 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + + COUNT ( * ) + - 29 AS col1 FROM tab0 AS cor0
----
-26

query II rowsort
SELECT col0 * - - col2 + + col2 AS col0, + 10 * col2 FROM tab0 AS cor0
----
752
470
880
100
9702
990

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 16 >= + col1 * - col1 + - col0
----
-14
-47
-5

query I rowsort
SELECT 81 + - col2 AS col0 FROM tab1 AS cor0
----
-15
13
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL + CAST( - - CAST( 85 AS SIGNED ) AS SIGNED ) + + 26 AS col1 FROM tab0
----
111
111
111

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + CAST ( - - CAST ( 85 AS INTEGER ) AS INTEGER ) + + 26 AS col1 FROM tab0
----
111
111
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT + 57 DIV + ( - 13 ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + 57 / + ( - 13 ) AS col2 FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT CAST( - col1 AS SIGNED ) + - col2 FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-4746
SELECT CAST ( - col1 AS INTEGER ) + - col2 FROM tab0
----
-100
-128
-31

query II rowsort
SELECT DISTINCT 7 + - 47, ( + col0 ) AS col0 FROM tab2
----
-40
46
-40
64
-40
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT 25 DIV - + COUNT( * ) AS col2 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 25 / - + COUNT ( * ) AS col2 FROM tab1
----
-8

query I rowsort
SELECT col1 * + + 91 FROM tab1
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + + ( - ( - 50 ) ) ) ) col0 FROM tab1
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT ALL COUNT( DISTINCT + col0 ), - 68 AS col2 FROM tab0
----
3
-68

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL COUNT ( DISTINCT + col0 ), - 68 AS col2 FROM tab0
----
3
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4752
SELECT + ( - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT ALL MAX( DISTINCT - 46 ), - 89 + - COUNT( * ) AS col1 FROM tab2
----
-46
-92

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL MAX ( DISTINCT - 46 ), - 89 + - COUNT ( * ) AS col1 FROM tab2
----
-46
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT DISTINCT COUNT( ALL - col1 ) col1, + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4754
SELECT DISTINCT COUNT ( ALL - col1 ) col1, + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
3
5

query I rowsort
SELECT ALL - col1 * - 37 + - + col1 AS col1 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT + + col1 - 13 AS col0 FROM tab1 AS cor0
----
-8
1
34

query I rowsort
SELECT col2 - - 11 FROM tab0 AS cor0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT MAX( DISTINCT - 56 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-56

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT MAX ( DISTINCT - 56 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-56

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4760
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4760
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 = - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL - + CAST( - 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - + CAST ( - 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE NOT NULL >= col2 / - + col1
----

query I rowsort
SELECT + 63 * + col1 FROM tab0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + COUNT( * ) * - 1 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + COUNT ( * ) * - 1 AS col2 FROM tab1
----
-3

query II rowsort
SELECT - 7 AS col1, 78 FROM tab0
----
-7
78
-7
78
-7
78

query I rowsort
SELECT + 79 * 28 AS col0 FROM tab1
----
2212
2212
2212

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col0 + - + col0
----

query I rowsort
SELECT DISTINCT - col1 + + 97 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT col0 + + CAST( - - 32 AS SIGNED ) + CAST( NULL AS SIGNED ) / - - col2 col2 FROM tab0 AS cor0 WHERE NOT + 46 * + - col2 * + col0 + + col0 > + + col0 * + - 30 + ( + 93 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT col0 + + CAST ( - - 32 AS INTEGER ) + CAST ( NULL AS INTEGER ) / - - col2 col2 FROM tab0 AS cor0 WHERE NOT + 46 * + - col2 * + col0 + + col0 > + + col0 * + - 30 + ( + 93 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( ( + col0 ) ) + + - col2 col1 FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4772
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 cor1 ON ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif mysql # not compatible
query IIIIII rowsort label-4772
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 cor1 ON ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < ( + col0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT - 1 + + + 31 + + + col2 DIV - col0 FROM tab0 AS cor0
----
27
29
30

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - 1 + + + 31 + + + col2 / - col0 FROM tab0 AS cor0
----
27
29
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL COUNT( + col0 ) * + + COUNT( * ) + 43 * + + COUNT( * ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL COUNT ( + col0 ) * + + COUNT ( * ) + 43 * + + COUNT ( * ) FROM tab0 AS cor0
----
138

query I rowsort
SELECT ALL + - col0 + - col2 + + 58 AS col2 FROM tab2 AS cor0
----
-11
-46
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + ( + COUNT( * ) ) - + COUNT( * ) + - - COUNT( * ) - - + 7 + - 85 col0 FROM tab0 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4779
SELECT ALL + ( + COUNT ( * ) ) - + COUNT ( * ) + - - COUNT ( * ) - - + 7 + - 85 col0 FROM tab0 cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4781
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) * + + col2 * - 11 * col0 + - col1 + + + col1 <> + 48
----

skipif mysql # not compatible
query III rowsort label-4781
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) * + + col2 * - 11 * col0 + - col1 + + + col1 <> + 48
----

query III rowsort
SELECT * FROM tab0 WHERE + 77 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT col0 * - CAST( + col0 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-306
-7590
-9410

skipif mysql # not compatible
query I rowsort label-4783
SELECT col0 * - CAST ( + col0 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-306
-7590
-9410

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + 64 + + + 76 + + + 60 + - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT col0 DIV col2 + col0 AS col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-4786
SELECT col0 / col2 + col0 AS col0 FROM tab1
----
51
86
92

query I rowsort
SELECT DISTINCT + 96 * + - 21 FROM tab0
----
-2016

query I rowsort
SELECT ALL - ( - + 54 ) FROM tab2 cor0
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4790
SELECT col0 * 59 AS col2, CAST( - col2 AS SIGNED ) FROM tab2
----
2714
-23
3776
-40
4425
-58

skipif mysql # not compatible
query II rowsort label-4790
SELECT col0 * 59 AS col2, CAST ( - col2 AS INTEGER ) FROM tab2
----
2714
-23
3776
-40
4425
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4791
SELECT ALL + CAST( NULL AS DECIMAL ) * + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + CAST ( NULL AS REAL ) * + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - 14 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - 14 * - col1
----
0

query II rowsort
SELECT ALL col2 * - - col0 AS col0, 13 FROM tab0 AS cor0
----
705
13
870
13
9603
13

query I rowsort
SELECT - 48 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT ALL - 47 * + ( col2 ) + + - col0 FROM tab0 AS cor0
----
-2224
-4750
-557

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 55 * col2 >= NULL
----

query II rowsort
SELECT ALL + - col1 * - 71 AS col0, - col2 * - col1 FROM tab0 AS cor0
----
1491
210
5751
3807
71
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - col0 ) + - + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 AND - col1
----

query I rowsort
SELECT DISTINCT + col0 * 96 FROM tab1 WHERE NOT + 54 * 11 + - 25 IS NULL
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab1
----
-223

query II rowsort
SELECT ALL + col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - SUM( + col0 ) AS col1 FROM tab1 WHERE NOT NULL = + 14 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT - SUM ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL = + 14 - + col1
----
NULL

query I rowsort
SELECT + col1 * - - 59 FROM tab1
----
2773
295
826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL + + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - + col0, + col1 * + col2 * - col1 / - col2 )
----

query I rowsort
SELECT + 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT - + 7 + + col0 * - col1 FROM tab1 AS cor0
----
-4284
-432
-721

query I rowsort
SELECT - + col1 + + 63 FROM tab0 AS cor0
----
-18
42
62

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL < 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL COUNT( * ) / + MAX( + col2 ) + + - CAST( - CAST( + MAX( DISTINCT - + ( + - col1 ) ) AS SIGNED ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 99 * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL COUNT ( * ) / + MAX ( + col2 ) + + - CAST ( - CAST ( + MAX ( DISTINCT - + ( + - col1 ) ) AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 99 * + COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 94 + - + col2 + - col0 FROM tab1 cor0
----
-50
-53
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL - 4 * + col1 + CAST( 20 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-304
-64
16

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 4 * + col1 + CAST ( 20 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-304
-64
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT DISTINCT - 70 DIV - col0 + col0 AS col0 FROM tab0 AS cor0
----
19
87
97

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - 70 / - col0 + col0 AS col0 FROM tab0 AS cor0
----
19
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - 90 + + - 88 + + col0 * + 22 * 4 - 80 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT - + COUNT( 4 ), 17 AS col2 FROM tab1 AS cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-4818
SELECT - + COUNT ( 4 ), 17 AS col2 FROM tab1 AS cor0
----
-3
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - COUNT( * ) - - + COUNT( * ) + - MIN( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) + - MIN ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab1 WHERE + 80 > - col0 - 24 * + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab1 WHERE + 80 > - col0 - 24 * + col2 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT - col2 DIV col0 - 81 DIV col1 col2 FROM tab0
----
-3
-4
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4823
SELECT - col2 / col0 - 81 / col1 col2 FROM tab0
----
-3
-4
-82

query I rowsort
SELECT DISTINCT - 85 * col0 AS col2 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT DISTINCT + col2 - + 93 AS col0 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL - col1 * + col2 / CAST( NULL AS SIGNED ) - + 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - col1 * + col2 / CAST ( NULL AS INTEGER ) - + 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4828
SELECT col1 * - 45 FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4828
SELECT col1 * - 45 FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS REAL ) ) IS NULL
----

query II rowsort
SELECT DISTINCT ( - col2 ), - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT ALL 20 * - + col0 AS col2 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4831
SELECT * FROM tab2 WHERE NOT ( col1 + - col1 ) BETWEEN col1 AND - - 80 / - col0 + + col2 - + - col1 - - CAST( NULL AS DECIMAL ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4831
SELECT * FROM tab2 WHERE NOT ( col1 + - col1 ) BETWEEN col1 AND - - 80 / - col0 + + col2 - + - col1 - - CAST ( NULL AS REAL ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT + CAST( + + 79 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + CAST ( + + 79 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT DISTINCT + 39 DIV + + col2 col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4833
SELECT DISTINCT + 39 / + + col2 col1 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4834
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + - col1 ) AND - col1 * + - CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4834
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + - col1 ) AND - col1 * + - CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 37 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT col1, - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + - 10 AS col2 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT COUNT( * ) * + COUNT( - + col2 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4840
SELECT COUNT ( * ) * + COUNT ( - + col2 ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL + 29 * ( + CAST( - 21 AS SIGNED ) ) FROM tab0
----
-609
-609
-609

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + 29 * ( + CAST ( - 21 AS INTEGER ) ) FROM tab0
----
-609
-609
-609

query I rowsort
SELECT DISTINCT col1 * + col0 * col0 AS col0 FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query II rowsort label-4843
SELECT col0 * + - col1 AS col1, 0 + - - col2 DIV + col0 FROM tab2
----
-2346
0
-4928
0
-5025
0

skipif mysql # not compatible
query II rowsort label-4843
SELECT col0 * + - col1 AS col1, 0 + - - col2 / + col0 FROM tab2
----
-2346
0
-4928
0
-5025
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 18 * - col0 - - col0, + col0 - + + col0 + - + col0 * + col2 )
----

query I rowsort
SELECT 26 FROM tab2, tab2 AS cor0 WHERE + 5 <> - 87
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT + col2 DIV + col1 * + col1 + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9508

skipif mysql # not compatible
query I rowsort label-4846
SELECT + col2 / + col1 * + col1 + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9508

query I rowsort
SELECT ALL ( + + ( 83 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= 15
----
51
14
96
85
5
59

query I rowsort
SELECT + col2 * - 63 AS col2 FROM tab2 cor0
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT + 26 * - col0 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT + 92 - 68 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL - 54 * CAST( NULL AS SIGNED ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 54 * CAST ( NULL AS INTEGER ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4853
SELECT DISTINCT - ( - + CAST( NULL AS DECIMAL ) ) - + col0 + 55 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - ( - + CAST ( NULL AS REAL ) ) - + col0 + 55 * + col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 12 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT ALL col2 - + + col0 * 8 FROM tab2
----
-345
-472
-542

query I rowsort
SELECT DISTINCT + col1 * - 29 * + + 2 * col2 FROM tab0
----
-12180
-220806
-5742

query I rowsort
SELECT ALL - 25 * - col0 FROM tab1
----
1275
2125
2275

query II rowsort
SELECT col2, 34 + + col1 FROM tab1
----
59
39
68
81
96
48

query I rowsort
SELECT ALL 29 * + ( 91 ) FROM tab2
----
2639
2639
2639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT - COUNT( * ) * 34 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-4862
SELECT - COUNT ( * ) * 34 FROM tab1
----
-102

query I rowsort
SELECT DISTINCT - + ( - 13 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - COUNT( * ) + - + ( 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-4864
SELECT - COUNT ( * ) + - + ( 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col0 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL col0 DIV 6 * ( col1 ) * 53 + 11 FROM tab0 AS cor0
----
15593
859
8597

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL col0 / 6 * ( col1 ) * 53 + 11 FROM tab0 AS cor0
----
15593
859
8597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 34 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - 79 * col2 * + 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 67 * - 48 + + + col2 + - - col1 * - - 88 * + col1 < NULL
----

query I rowsort
SELECT col2 + 7 * + col0 FROM tab2
----
345
488
583

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT ALL - 92 DIV - col2 AS col1 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - 92 / - col2 AS col1 FROM tab0
----
0
1
9

query I rowsort
SELECT 76 + - col0 * - 83 AS col0 FROM tab0
----
1321
7297
8127

query III rowsort
SELECT * FROM tab2 WHERE + 10 IS NULL
----

query I rowsort
SELECT ( - 24 ) * - 18 * + 19 AS col1 FROM tab2
----
8208
8208
8208

query I rowsort
SELECT 83 * + - 19 AS col0 FROM tab1
----
-1577
-1577
-1577

query I rowsort
SELECT ALL + 73 * col1 AS col0 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT 73 * - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
657

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 73 * - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
657

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE - - 82 NOT BETWEEN ( + - 35 ) AND - col1 * + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 94
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 89 + - + col0 AS col2 FROM tab0 AS cor0
----
-104
-176
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 - - - col1 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 44 <= - col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT - 20 + - 16 - + - col2 * - CAST( - 82 AS SIGNED ) * col0 FROM tab0
----
57774
71304
787410

skipif mysql # not compatible
query I rowsort label-4889
SELECT - 20 + - 16 - + - col2 * - CAST ( - 82 AS INTEGER ) * col0 FROM tab0
----
57774
71304
787410

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT 43 * + + MAX( col0 ) * - + 28 + + - COUNT( * ), SUM( col0 ) AS col1 FROM tab1
----
-109567
227

skipif mysql # not compatible
query II rowsort label-4890
SELECT 43 * + + MAX ( col0 ) * - + 28 + + - COUNT ( * ), SUM ( col0 ) AS col1 FROM tab1
----
-109567
227

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT DISTINCT col1 DIV - col1 - + 60 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT col1 / - col1 - + 60 FROM tab2
----
-61

query I rowsort
SELECT + col2 + - + col2 - + col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4893
SELECT * FROM tab2 WHERE ( CAST( NULL AS DECIMAL ) / col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4893
SELECT * FROM tab2 WHERE ( CAST ( NULL AS REAL ) / col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) >= col0
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) >= col0
----
0

query I rowsort
SELECT - col2 * - 37 - - col1 AS col2 FROM tab0 AS cor0 WHERE + col1 >= - col1
----
1820
3664
391

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT - + SUM( - 92 ) col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4896
SELECT DISTINCT - + SUM ( - 92 ) col0 FROM tab0 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - ( + COUNT( ALL + ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4897
SELECT - ( + COUNT ( ALL + ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + ( 80 ) * + col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT MAX( - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4900
SELECT MAX ( - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL - MIN( ALL + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - MIN ( ALL + col0 ) FROM tab0
----
-15

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4903
SELECT * FROM tab1 WHERE NOT NULL IN ( 50 / + col0 * - + 35 * - 97 - + 73, CAST( NULL AS SIGNED ) * - col0 + + 12, col2 )
----

skipif mysql # not compatible
query III rowsort label-4903
SELECT * FROM tab1 WHERE NOT NULL IN ( 50 / + col0 * - + 35 * - 97 - + 73, CAST ( NULL AS INTEGER ) * - col0 + + 12, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT + 73 DIV - col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + 73 / - col2 FROM tab2
----
-1
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 29 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT SUM( ALL - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT SUM ( ALL - col1 ) AS col0 FROM tab1
----
-66

query II rowsort
SELECT ALL 28, col1 FROM tab0 AS cor0
----
28
1
28
21
28
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT + - 90 DIV - 98 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT + - 90 / - 98 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + - 75 * - col1 FROM tab2 cor0
----
3825
5025
5775

query I rowsort
SELECT ALL - col2 * 34 AS col2 FROM tab0 AS cor0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - COUNT( * ) * 59 * + 81 FROM tab1
----
-14337

skipif mysql # not compatible
query I rowsort label-4912
SELECT - COUNT ( * ) * 59 * + 81 FROM tab1
----
-14337

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT ALL - COUNT( * ) AS col1, 88 AS col2 FROM tab0
----
-3
88

skipif mysql # not compatible
query II rowsort label-4913
SELECT ALL - COUNT ( * ) AS col1, 88 AS col2 FROM tab0
----
-3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 23 >= - ( 86 )
----

query II rowsort
SELECT col0 AS col2, + col0 * + + 33 AS col2 FROM tab2 AS cor0
----
46
1518
64
2112
75
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT + COUNT( * ) + - - ( 31 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + COUNT ( * ) + - - ( 31 ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT - + ( 68 ) FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + col1 * + + col2 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
1148
270
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT - + COUNT( * ) - 18 FROM tab2 AS cor0 WHERE 80 < NULL
----
-18

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - + COUNT ( * ) - 18 FROM tab2 AS cor0 WHERE 80 < NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 + - col1 col2, 59 FROM tab1 AS cor0
----
-110
59
-115
59
-64
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4922
SELECT + + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4923
SELECT ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + MIN( ALL col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + MIN ( ALL col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT col2 DIV - col2 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4926
SELECT DISTINCT col2 / - col2 col2 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT - + 54 - - col0 - - ( + + ( col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + 58 * - 86 + - COUNT( * ) AS col1 FROM tab2
----
-4991

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 58 * - 86 + - COUNT ( * ) AS col1 FROM tab2
----
-4991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 + 31 col2, col2 FROM tab1 AS cor0
----
-28
59
-37
68
-65
96

query I rowsort
SELECT ALL + + 12 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) + + CAST( - 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) + + CAST ( - 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 col0, ( - 62 ) + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 - - + col1 AS col1 FROM tab1 cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab2
----
75

query I rowsort
SELECT ALL 4 - - col0 * + 62 AS col1 FROM tab0
----
5398
6018
934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT COUNT( * ) DIV - + 58 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( * ) / - + 58 FROM tab1
----
0

query II rowsort
SELECT col1 AS col2, + 21 - - + col2 FROM tab1 AS cor0 WHERE + 18 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT col0 DIV - col1 - + col1 FROM tab0 AS cor0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-4939
SELECT col0 / - col1 - + col1 FROM tab0 AS cor0
----
-25
-81
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT - CAST( - + 12 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-2
-35
7

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( - + 12 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-2
-35
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4942
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * + 8 + + 77, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4942
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * + 8 + + 77, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * - col1 + col2 - - col0 * 42 col1 FROM tab1 AS cor0
----
1230
3269
506

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 67 ) IS NOT NULL
----

query I rowsort
SELECT col0 * - 6 * - - col0 AS col1 FROM tab2 AS cor0
----
-12696
-24576
-33750

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL col1 AS col1, ( col2 ) * 31 AS col0 FROM tab1 cor0
----
14
2976
47
2108
5
1829

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT ALL - COUNT( * ) AS col2, - MIN( ALL 74 ) FROM tab2 WHERE NULL <= col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4948
SELECT ALL - COUNT ( * ) AS col2, - MIN ( ALL 74 ) FROM tab2 WHERE NULL <= col0
----
0
NULL

query I rowsort
SELECT ALL ( 32 ) AS col1 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT + MIN( ( - 33 ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + MIN ( ( - 33 ) ) FROM tab2
----
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT - CAST( CAST( + - col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4952
SELECT - CAST ( CAST ( + - col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT MAX( DISTINCT + 84 ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4953
SELECT MAX ( DISTINCT + 84 ) AS col0 FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4954
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 IN ( col0, + col0 * - + CAST( + + 59 AS SIGNED ) - + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4954
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 IN ( col0, + col0 * - + CAST ( + + 59 AS INTEGER ) - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4955
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT - col1 AS col2, 46 AS col1 FROM tab2
----
-51
46
-67
46
-77
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4959
SELECT - - 0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - - 0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + col0 ) + 32 FROM tab2
----
-14
-32
-43

query I rowsort
SELECT ALL + 91 AS col0 FROM tab0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col1 FROM tab1 WHERE NULL IS NULL
----
-68
-68
-68

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT - 7 * + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT - 7 * + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 col1, 33 FROM tab2
----
32
33

query III rowsort
SELECT * FROM tab2 WHERE - + ( + - col1 ) < + + col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * col1 * - 39 * col0 + 81 FROM tab2 AS cor0
----
-13130244
-14798703
-4666113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col0 * - + col2 IS NULL
----

query I rowsort
SELECT ALL - 10 + - col2 * 33 FROM tab1 AS cor0
----
-1957
-2254
-3178

query I rowsort
SELECT ALL - + 81 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 + + col0 + - 71 / + col2 * - col1 * + - col2 * - col1
----

query I rowsort
SELECT ALL + col1 + col0 * - 48 FROM tab1 AS cor0
----
-2434
-4075
-4321

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL + 0 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 0 / + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT ALL col2 DIV + col1 * - - col1 AS col0, col0 * 6 DIV - 2 AS col1 FROM tab2 AS cor0
----
0
-138
0
-192
0
-225

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL col2 / + col1 * - - col1 AS col0, col0 * 6 / - 2 AS col1 FROM tab2 AS cor0
----
0
-138
0
-192
0
-225

query I rowsort
SELECT + 39 * col2 AS col0 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT - 7 * - CAST( - + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 7 * - CAST ( - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 26 * col0 * - + 94 AS col1 FROM tab2 AS cor0
----
-112424
-156416
-183300

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT MIN ( DISTINCT + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL 28 AS col1, - MIN( 65 ) FROM tab0
----
28
-65

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL 28 AS col1, - MIN ( 65 ) FROM tab0
----
28
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - MIN( ALL col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4980
SELECT - MIN ( ALL col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT - col2 AS col2, 0 FROM tab0 WHERE NOT - + col1 * + + col2 = - col0
----
-10
0
-47
0
-99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38 AS col1, 72 col0 FROM tab0
----
38
72

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 25 <> 58
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 67 ) + + - col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + + COUNT( + - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT + + COUNT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE ( col2 * - col0 * - col1 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 18 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 18 AND NULL
----
3

query I rowsort
SELECT ALL 60 FROM tab0 cor0
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT ALL + col1 * - col0 DIV - col0 + - + col1 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + col1 * - col0 / - col0 + - + col1 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT 31 + col2 AS col1 FROM tab1 AS cor0
----
127
90
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT ALL col2 DIV col2 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL col2 / col2 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT - - 43 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
124
44
64

skipif mysql # not compatible
query I rowsort label-4995
SELECT - - 43 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
124
44
64

query I rowsort
SELECT ALL + + ( + col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT 5 + - col0 FROM tab2
----
-41
-59
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL COUNT( * ) - - - COUNT( DISTINCT + 12 ) + + MAX( - 5 ) * 49 AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL COUNT ( * ) - - - COUNT ( DISTINCT + 12 ) + + MAX ( - 5 ) * 49 AS col2 FROM tab2
----
-243

query I rowsort
SELECT col1 + + + ( + 38 ) AS col1 FROM tab2
----
105
115
89

query I rowsort
SELECT - col2 + + col1 + - 46 AS col0 FROM tab2
----
-18
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT + 27 * col2 + - CAST( - - 17 AS SIGNED ) + + 41 FROM tab0 cor0
----
1293
2697
294

skipif mysql # not compatible
query I rowsort label-5003
SELECT + 27 * col2 + - CAST ( - - 17 AS INTEGER ) + + 41 FROM tab0 cor0
----
1293
2697
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - + COUNT( ALL - col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5004
SELECT - + COUNT ( ALL - col1 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 4 - - 71 * col2 + + col1 FROM tab0 AS cor0
----
3414
7026
727

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + 90 * + + COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-5007
SELECT + 90 * + + COUNT ( * ) FROM tab0
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + 12 * + + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT + 12 * + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL + COUNT( * ) * + - 75 * + 25 AS col1 FROM tab2 AS cor0
----
-5625

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + COUNT ( * ) * + - 75 * + 25 AS col1 FROM tab2 AS cor0
----
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT - col1 * col1 DIV - + col0 FROM tab1 AS cor0
----
0
24
3

skipif mysql # not compatible
query I rowsort label-5011
SELECT - col1 * col1 / - + col0 FROM tab1 AS cor0
----
0
24
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT - 22 * + MIN( ALL col1 ) + - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 22 * + MIN ( ALL col1 ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - + COUNT( ALL - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5013
SELECT - + COUNT ( ALL - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT DISTINCT + 64 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
64
-3

skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT + 64 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
64
-3

query II rowsort
SELECT ALL + 31 AS col2, col1 FROM tab0 AS cor0
----
31
1
31
21
31
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5016
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2, + col0 + - col0 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-5016
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2, + col0 + - col0 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5017
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL col2 * - ( + + col2 ) * + 77 * + 57 AS col2 FROM tab1
----
-15278109
-20294736
-40449024

query I rowsort
SELECT DISTINCT + 2 FROM tab0 WHERE ( NOT ( NOT - 3 * + - col1 / - + col1 IS NULL ) )
----

query I rowsort
SELECT + 97 AS col1 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT + + ( - 93 ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT col0 * + 50 * - + 19 FROM tab2 AS cor0
----
-43700
-60800
-71250

query I rowsort
SELECT col2 * 1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - + col0 >= col0 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT SUM( + 26 ) * COUNT( * ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-5025
SELECT SUM ( + 26 ) * COUNT ( * ) FROM tab0
----
234

query I rowsort
SELECT + + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE 76 * ( + 83 ) * + 46 / + + 84 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 - - 49 FROM tab1 AS cor0
----
108
117
145

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - MIN( - + 78 ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5030
SELECT - MIN ( - + 78 ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL + col0 * col2 + col2 - + col0 FROM tab0
----
737
793
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + SUM( col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5032
SELECT + SUM ( col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - ( ( col1 ) ) col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 54 * + + col1 AS col0 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) * 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) * 16 AS col0 FROM tab2
----
48

query III rowsort
SELECT * FROM tab1 WHERE - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * - 7 + + 64 * - - 55 FROM tab0 cor0
----
2841
2911
3415

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT - col1 DIV + 63 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT - col1 / + 63 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ( + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5041
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL col2 * + + col0 AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + 91 * - COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 91 * - COUNT ( * ) FROM tab0 AS cor0
----
-273

query I rowsort
SELECT ( + col1 ) * col1 + + 10 * - 1 AS col1 FROM tab2 AS cor0
----
2591
4479
5919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 85 * + 29 - - col2 AS col0 FROM tab2 AS cor0
----
-2407
-2425
-2442

query I rowsort
SELECT DISTINCT + 53 * - 64 * col1 * - col0 * + col2 FROM tab2
----
183025536
668631040
988598400

query I rowsort
SELECT ALL - ( col2 ) * + + 23 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5051
SELECT * FROM tab1 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + 42
----

skipif mysql # not compatible
query III rowsort label-5051
SELECT * FROM tab1 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT col2 DIV + - col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT col2 / + - col0 AS col0 FROM tab1
----
-1
0

query II rowsort
SELECT - col2, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - 81 + - COUNT( * ) col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5054
SELECT DISTINCT - 81 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT - - 62 + - 72 * + col0 + - 45 + col0 FROM tab1 AS cor0
----
-3604
-6018
-6444

query I rowsort
SELECT col1 + - - col2 + + - col0 AS col0 FROM tab0 cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT 27 * SUM( + - col2 ) FROM tab2
----
-3267

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT 27 * SUM ( + - col2 ) FROM tab2
----
-3267

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5058
SELECT ALL * FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5058
SELECT ALL * FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + MAX( ALL + ( + col0 ) ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5059
SELECT + MAX ( ALL + ( + col0 ) ) AS col0 FROM tab1 cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT col2 DIV + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT col2 / + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 48 + - col2 * - ( - col1 ) - - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 - - + col0 AS col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - 48 + + col1 AS col2 FROM tab2 AS cor0
----
19
29
3

query I rowsort
SELECT ( + + col2 ) - - col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 40 = + col2
----

query I rowsort
SELECT ALL - col2 * col2 - + col1 + + col0 AS col2 FROM tab0
----
-2275
-34
-9705

query I rowsort
SELECT col2 + - + col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT ALL COUNT( * ) col1, ( - - COUNT( * ) ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5068
SELECT ALL COUNT ( * ) col1, ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( * ) * + + 26 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) * + + 26 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5070
SELECT ALL COUNT ( * ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT + COUNT( * ) AS col0, + COUNT( + 71 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5071
SELECT + COUNT ( * ) AS col0, + COUNT ( + 71 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE 30 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL col0 - col1 DIV - col0 AS col2 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL col0 - col1 / - col0 AS col2 FROM tab0
----
20
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT SUM( ALL + 71 ) + - 56 * 8 FROM tab2
----
-235

skipif mysql # not compatible
query I rowsort label-5074
SELECT SUM ( ALL + 71 ) + - 56 * 8 FROM tab2
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + SUM( col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + SUM ( col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - 83 * + 79 + COUNT( * ) FROM tab0
----
-6554

skipif mysql # not compatible
query I rowsort label-5076
SELECT - 83 * + 79 + COUNT ( * ) FROM tab0
----
-6554

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col1 BETWEEN NULL AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( 81 / col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN NULL AND - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT SUM( - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5080
SELECT SUM ( - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 28 + col2 AS col0 FROM tab2
----
-5
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL - ( COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - ( COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT - 17 DIV 59 + + col0 * + col2 AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 17 / 59 + + col0 * + col2 AS col2 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * - col0 - col2 col0 FROM tab0
----
-5317
-6016
-962

query I rowsort
SELECT DISTINCT + 36 * col0 AS col1 FROM tab2
----
1656
2304
2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * col0 col2 FROM tab1 WHERE ( 75 ) IS NOT NULL
----
2091
3485
3731

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 51 >= + col0
----
51
14
96

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 WHERE ( NULL ) <= - 76
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 + ( col1 ) * - ( - 42 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 87 - - 25 AS col1 FROM tab1
----
-62
-62
-62

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT + ( - col0 ) * 26 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT + col2 * 58 AS col0 FROM tab1
----
3422
3944
5568

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT BETWEEN col0 * col1 + col0 AND - ( - 25 ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 89 * col1 AS col2 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT - col2 * 91 AS col2 FROM tab1
----
-5369
-6188
-8736

query III rowsort
SELECT ALL * FROM tab1 WHERE 24 * ( col0 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL - ( COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - ( COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT col2 DIV col2 + - col1 * 35 FROM tab2
----
-1784
-2344
-2694

skipif mysql # not compatible
query I rowsort label-5101
SELECT col2 / col2 + - col1 * 35 FROM tab2
----
-1784
-2344
-2694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT - col2 DIV - 16 + - 35 AS col1 FROM tab2
----
-32
-33
-34

skipif mysql # not compatible
query I rowsort label-5103
SELECT - col2 / - 16 + - 35 AS col1 FROM tab2
----
-32
-33
-34

query I rowsort
SELECT col1 - + 31 AS col1 FROM tab2
----
20
36
46

query I rowsort
SELECT ALL 76 AS col2 FROM tab2 WHERE NOT NULL <= ( col1 )
----

query I rowsort
SELECT ALL 91 + ( - col2 + - 39 ) FROM tab1 AS cor0
----
-16
-44
-7

query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT ALL + col2 + + 92 FROM tab0 cor0
----
102
139
191

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) <= + 75
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT + 27 + ( - COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
18

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 27 + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
88

query I rowsort
SELECT ALL + 94 * + 29 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to ed7566e127e49d26a05c6e4b3e55f92d

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT - col2 DIV col0 + 28 AS col1 FROM tab0
----
25
27
28

skipif mysql # not compatible
query I rowsort label-5114
SELECT - col2 / col0 + 28 AS col1 FROM tab0
----
25
27
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 24 ) BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( col2 / col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + 65
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 64 AND 79
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 64 AND 79
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / - col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - 31 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - 31 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT ALL + col1 + + 18 FROM tab1 cor0
----
23
32
65

query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT 7 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT 7 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - MAX( col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT - MAX ( col0 ) col2 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab1 cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5128
SELECT SUM ( + col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5130
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + ( col2 ) ) col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 7 - - col2 FROM tab2
----
30
47
65

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( col2 ) * ( + col1 ) NOT IN ( 36 * - 76 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5134
SELECT - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT + 58 * + - col1 AS col1 FROM tab2
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL + MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - COUNT( * ) * 69 * - MAX( ( + col0 ) * - col1 ) FROM tab1
----
-87975

skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( * ) * 69 * - MAX ( ( + col0 ) * - col1 ) FROM tab1
----
-87975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col1 FROM tab2
----
39

query I rowsort
SELECT ALL + 14 AS col0 FROM tab1
----
14
14
14

query I rowsort
SELECT + - 16 * + 2 AS col0 FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT + - col1 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT col0 * - col1 + + 8 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + SUM( ALL ( + - col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5145
SELECT + SUM ( ALL ( + - col0 ) ) AS col1 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 26 * col2 + ( - 19 + - col0 ) > ( + col0 + + 76 )
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5147
SELECT ALL * FROM tab0 WHERE ( NOT ( CAST( col0 AS DECIMAL ) ) >= + 46 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5147
SELECT ALL * FROM tab0 WHERE ( NOT ( CAST ( col0 AS REAL ) ) >= + 46 )
----
15
81
47

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col0 < + col0
----

query II rowsort
SELECT ALL - col1 AS col1, + 8 FROM tab1 AS cor0
----
-14
8
-47
8
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT + COUNT( * ) * ( - + 86 ) AS col1 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + COUNT ( * ) * ( - + 86 ) AS col1 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT MIN( - - 31 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5151
SELECT MIN ( - - 31 ) FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL + - col0 + + - col0 + + - col0 * + col0 FROM tab0 AS cor0
----
-255
-7743
-9603

query I rowsort
SELECT + col2 * + 55 * ( col2 ) AS col1 FROM tab1 AS cor0
----
191455
254320
506880

query I rowsort
SELECT + col1 * - col0 * - 85 FROM tab1 AS cor0
----
36125
363545
60690

query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - COUNT( DISTINCT - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5156
SELECT - COUNT ( DISTINCT - col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL MAX ( col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - MAX( DISTINCT + 30 ) * COUNT( * ) AS col1 FROM tab1 WHERE - col1 NOT IN ( + col0 * - col2 )
----
-90

skipif mysql # not compatible
query I rowsort label-5158
SELECT - MAX ( DISTINCT + 30 ) * COUNT ( * ) AS col1 FROM tab1 WHERE - col1 NOT IN ( + col0 * - col2 )
----
-90

query III rowsort
SELECT * FROM tab2 WHERE - - 2 NOT IN ( 77 + + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 30 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5161
SELECT DISTINCT COUNT ( * ) col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab1
----
53
53
53

query I rowsort
SELECT + 33 + - - col1 FROM tab1
----
38
47
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT + - CAST( + col1 AS SIGNED ) + + 99 + 88 * CAST( 10 + 26 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
-115760
-152384
-175274

skipif mysql # not compatible
query I rowsort label-5164
SELECT + - CAST ( + col1 AS INTEGER ) + + 99 + 88 * CAST ( 10 + 26 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
-115760
-152384
-175274

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5165
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT - - col1 + - - CAST( - + col1 AS SIGNED ) + + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5166
SELECT - - col1 + - - CAST ( - + col1 AS INTEGER ) + + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL col2 DIV + 65 - - col1 AS col2 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL col2 / + 65 - - col1 AS col2 FROM tab0 AS cor0
----
2
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5168
SELECT ALL + CAST( NULL AS SIGNED ), 83 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL + CAST ( NULL AS INTEGER ), 83 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
83
NULL
83
NULL
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab1
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5170
SELECT col1 - - ( - CAST( NULL AS DECIMAL ) ) + + col2 * + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT col1 - - ( - CAST ( NULL AS REAL ) ) + + col2 * + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col2 * + col1 * - + col1 col0 FROM tab0 AS cor0
----
-198
-308414
-4420

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT + - col2 - + 87 + + 96 + + 16 DIV + col0 FROM tab2 AS cor0
----
-14
-31
-49

skipif mysql # not compatible
query I rowsort label-5172
SELECT + - col2 - + 87 + + 96 + + 16 / + col0 FROM tab2 AS cor0
----
-14
-31
-49

query I rowsort
SELECT 93 + - col2 FROM tab2 AS cor0
----
35
53
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----

query II rowsort
SELECT - col0 * 88 AS col2, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4488
14
-7480
5
-8008
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - + MIN( ALL 72 ) FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5176
SELECT - + MIN ( ALL 72 ) FROM tab0 cor0
----
-72

query II rowsort
SELECT - col1 AS col2, + col0 * + - col1 + col0 AS col1 FROM tab2
----
-51
-2300
-67
-4950
-77
-4864

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * col2 * - - col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) NOT BETWEEN + 0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5181
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col1 ) * + 18, + 44 * col2 AS col2 FROM tab0
----
NULL
2068
NULL
4356
NULL
440

skipif mysql # not compatible
query II rowsort label-5181
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col1 ) * + 18, + 44 * col2 AS col2 FROM tab0
----
NULL
2068
NULL
4356
NULL
440

query I rowsort
SELECT - 73 * - 18 FROM tab2 AS cor0
----
1314
1314
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT MIN( DISTINCT + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 94 )
----
NULL

query I rowsort
SELECT col0 / - col0 FROM tab0 WHERE NOT 93 * col2 + + - 69 + + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + 97 + - 7 - - SUM( - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 97 + - 7 - - SUM ( - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT COUNT( 17 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5186
SELECT COUNT ( 17 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - ( 19 ) FROM tab0 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - COUNT( * ) - + 3 AS col0 FROM tab0 cor0 WHERE ( NOT + - ( + 59 ) = - col1 )
----
-6

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - COUNT ( * ) - + 3 AS col0 FROM tab0 cor0 WHERE ( NOT + - ( + 59 ) = - col1 )
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 96 * 59 > ( NULL )
----

query I rowsort
SELECT + 38 / - 74 AS col2 FROM tab1 AS cor0 WHERE col1 + col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 74 AS col2 FROM tab0 cor0
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * 53 + - COUNT( * ) FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 53 + - COUNT ( * ) FROM tab1 cor0
----
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5194
SELECT - 43 * - CAST( NULL AS DECIMAL ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT - 43 * - CAST ( NULL AS REAL ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 + - + ( + + col1 ) FROM tab1
----
-4
29
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT + COUNT ( * ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT COUNT ( * ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5198
SELECT - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL + col2 * - - col1 * + col1 * ( - col0 ) AS col2 FROM tab0
----
-383670
-4625505
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( + + col2 * 39 + + + ( + col1 ) + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + 41, + col0 AS col2 FROM tab1 cor0
----
-41
51
-41
85
-41
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT MAX( ALL col1 ) - 78 + 10 * - COUNT( * ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5202
SELECT MAX ( ALL col1 ) - 78 + 10 * - COUNT ( * ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT ALL + + col0 + - + CAST( - 67 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
104
111
147

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + + col0 + - + CAST ( - 67 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
104
111
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 * + col1
----

query I rowsort
SELECT 50 + col2 + col1 FROM tab2
----
124
167
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5208
SELECT col1 AS col1, - col0 * - col2 * 3 * + 63 * + CAST( + + col2 AS SIGNED ) FROM tab0
----
1
179681733
21
1644300
81
6262515

skipif mysql # not compatible
query II rowsort label-5208
SELECT col1 AS col1, - col0 * - col2 * 3 * + 63 * + CAST ( + + col2 AS INTEGER ) FROM tab0
----
1
179681733
21
1644300
81
6262515

onlyif mysql # aggregate syntax: 
query II rowsort label-5209
SELECT DISTINCT - 50 AS col2, + 14 * + COUNT( * ) AS col0 FROM tab1
----
-50
42

skipif mysql # not compatible
query II rowsort label-5209
SELECT DISTINCT - 50 AS col2, + 14 * + COUNT ( * ) AS col0 FROM tab1
----
-50
42

query I rowsort
SELECT + col1 * + - col1 * 77 FROM tab2
----
-200277
-345653
-456533

query I rowsort
SELECT ALL col0 * + 49 FROM tab0
----
4263
4753
735

query II rowsort
SELECT 13 AS col1, - col0 * - col1 FROM tab0 WHERE NOT NULL BETWEEN 39 * + 14 AND - 60
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL - MIN( + col1 ) FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - MIN ( + col1 ) FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab0 AS cor0
----
-1365
-7917
-8827

query I rowsort
SELECT ALL + 83 * + + 9 FROM tab2 AS cor0
----
747
747
747

query I rowsort
SELECT ALL + col1 * 98 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5221
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col0 / - + 43 )
----

query I rowsort
SELECT ALL - - 83 AS col2 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5224
SELECT CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5224
SELECT CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
NULL
-5

query II rowsort
SELECT - col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query II rowsort
SELECT + + col0 * + 71 AS col1, col2 FROM tab1 AS cor0
----
3621
96
6035
59
6461
68

query I rowsort
SELECT ALL - col2 * col1 + - 41 - + col1 AS col2 FROM tab2 AS cor0
----
-1265
-3198
-3994

query I rowsort
SELECT + 77 * + 66 FROM tab0 AS cor0
----
5082
5082
5082

query I rowsort
SELECT DISTINCT + - 22 + + + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
111
47
82

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT + ( 11 ) + + SUM( - - col1 ) DIV - + COUNT( * ) * - 1 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5232
SELECT + ( 11 ) + + SUM ( - - col1 ) / - + COUNT ( * ) * - 1 AS col2 FROM tab2
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 27 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT ALL - 86 DIV 4 * - 5 AS col1 FROM tab1
----
105
105
105

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - 86 / 4 * - 5 AS col1 FROM tab1
----
105
105
105

query III rowsort
SELECT * FROM tab2 WHERE 87 / + + 78 IS NULL
----

query I rowsort
SELECT + 26 + col0 AS col1 FROM tab0
----
113
123
41

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT ALL + 56 * CAST( NULL AS SIGNED ) / 43 + col1 + - + col2 + + + col2 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-5238
SELECT ALL + 56 * CAST ( NULL AS INTEGER ) / 43 + col1 + - + col2 + + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col0 + col2 + + ( - - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
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-5241
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT SUM( ALL + - 61 ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT SUM ( ALL + - 61 ) FROM tab0 AS cor0
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5243
SELECT + MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 78 - + CAST( col1 AS SIGNED ) / col1 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5243
SELECT + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 78 - + CAST ( col1 AS INTEGER ) / col1 IS NULL
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + 85 AS col0 FROM tab2 cor0
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT ( NULL ) <= col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 IN ( - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT col0 FROM tab0 WHERE NOT - col2 NOT IN ( - ( + col1 ) DIV col2 * - - col2 )
----
15

skipif mysql # not compatible
query I rowsort label-5249
SELECT col0 FROM tab0 WHERE NOT - col2 NOT IN ( - ( + col1 ) / col2 * - - col2 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL COUNT( - col1 ) FROM tab1 WHERE col2 / + - 18 < + col2
----
3

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL COUNT ( - col1 ) FROM tab1 WHERE col2 / + - 18 < + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT COUNT( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5251
SELECT COUNT ( col2 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 2 + 50 * - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 53 * - 31 FROM tab0
----
1643

query I rowsort
SELECT + 9 * + - col1 AS col0 FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT - col0 * - + 58 AS col0 FROM tab0
----
5046
5626
870

query I rowsort
SELECT DISTINCT + - 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT + 65 DIV 17 AS col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5258
SELECT + 65 / 17 AS col1 FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT - ( + + CAST( - 22 AS SIGNED ) ) AS col2 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5259
SELECT - ( + + CAST ( - 22 AS INTEGER ) ) AS col2 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT - COUNT( * ) + 56 AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - COUNT ( * ) + 56 AS col2 FROM tab2 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 96 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL > + 38 + + + ( + - 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5264
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5264
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 - - 10 FROM tab0 AS cor0
----
109
20
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT CAST( NULL AS SIGNED ) + - + col1 * - col2 + + + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT CAST ( NULL AS INTEGER ) + - + col1 * - col2 + + + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 46 + + col2 FROM tab2 AS cor0
----
104
69
86

query I rowsort
SELECT ALL 13 FROM tab1 WHERE NOT - col1 NOT BETWEEN - 44 + + ( col2 ) + + 13 AND 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + 47 * COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 47 * COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT DISTINCT col2 + 86 + + 17 AS col0 FROM tab1
----
162
171
199

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT DISTINCT col0 * + col0 - 42 DIV col0 FROM tab0
----
223
7569
9409

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT col0 * + col0 - 42 / col0 FROM tab0
----
223
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT - MIN( ( + - col0 ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - MIN ( ( + - col0 ) ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT COUNT( DISTINCT - col1 ) DIV + COUNT( * ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5273
SELECT COUNT ( DISTINCT - col1 ) / + COUNT ( * ) col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT 17 DIV - COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT 17 / - COUNT ( * ) FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + MAX( + + 75 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + MAX ( + + 75 ) AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - ( + ( col1 ) ) + - - col0 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT - COUNT( * ) + COUNT( * ) + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5277
SELECT - COUNT ( * ) + COUNT ( * ) + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5280
SELECT 40 DIV col1 AS col2, CAST( col1 AS SIGNED ) * + ( - ( - + col0 ) ) FROM tab0 AS cor0
----
0
1215
1
1827
40
97

skipif mysql # not compatible
query II rowsort label-5280
SELECT 40 / col1 AS col2, CAST ( col1 AS INTEGER ) * + ( - ( - + col0 ) ) FROM tab0 AS cor0
----
0
1215
1
1827
40
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab0
----
-80
-80
-80

query II rowsort
SELECT DISTINCT - 21 AS col2, 68 FROM tab2
----
-21
68

query II rowsort
SELECT DISTINCT + col0 AS col2, ( 83 ) FROM tab1
----
51
83
85
83
91
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE - + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0, tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
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-5287
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab0 AS cor0
----
-18
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 60 + - + col0 AS col1 FROM tab1 AS cor0
----
-25
-31
9

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 + + + col2 FROM tab0 AS cor0
----
-10
97
-47
62
-99
196

query I rowsort
SELECT ALL 66 * + - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query III rowsort
SELECT * FROM tab1 WHERE - + 96 IS NULL
----

query I rowsort
SELECT DISTINCT + 19 + + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 * 26 >= 10
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE col1 / - + 61 + - ( col1 ) <> - - 68
----
23
40
58

query II rowsort
SELECT ( + 33 ) AS col0, ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
33
10
33
28
33
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 24 + + - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 24 + + - COUNT ( * ) FROM tab2 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT + col2 - + CAST( + ( 45 ) AS SIGNED ) + col0 + + 6 * - + col0 FROM tab1 AS cor0
----
-204
-411
-432

skipif mysql # not compatible
query I rowsort label-5302
SELECT + col2 - + CAST ( + ( 45 ) AS INTEGER ) + col0 + + 6 * - + col0 FROM tab1 AS cor0
----
-204
-411
-432

query I rowsort
SELECT 38 - 29 FROM tab1 AS cor0 WHERE - 51 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL <= + col2 + - col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL + COUNT( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + COUNT ( col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT + COUNT( + 55 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + COUNT ( + 55 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NULL OR - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL + 32 - + 94 * + + SUM( DISTINCT - col1 ) FROM tab0
----
9714

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + 32 - + 94 * + + SUM ( DISTINCT - col1 ) FROM tab0
----
9714

query I rowsort
SELECT ALL col0 * - - col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 46 AS col0, col2 * - 83 * 71 * + col2 FROM tab1 AS cor0
----
46
-20513533
46
-27249232
46
-54309888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT - 73 - + - CAST( NULL AS SIGNED ) + - - MIN( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT - 73 - + - CAST ( NULL AS INTEGER ) + - - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = - - col1
----
NULL

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5317
SELECT ALL 67 DIV - col0 + 17 AS col2, col1 AS col0 FROM tab1 AS cor0
----
16
14
17
47
17
5

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL 67 / - col0 + 17 AS col2, col1 AS col0 FROM tab1 AS cor0
----
16
14
17
47
17
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5318
SELECT + + 32 + - COUNT( ALL + col0 ) AS col1, - 62 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
32
-62

skipif mysql # not compatible
query II rowsort label-5318
SELECT + + 32 + - COUNT ( ALL + col0 ) AS col1, - 62 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
32
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT + CAST( + - ( + + ( - col1 ) ) AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + CAST ( + - ( + + ( - col1 ) ) AS INTEGER ) FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5321
SELECT ALL 59 col0, 59 * + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
59
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5321
SELECT ALL 59 col0, 59 * + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
59
177

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 / + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 / + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT - + MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - + MAX ( - col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL ( - COUNT( * ) ) / + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5327
SELECT ALL ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + col0 + + - ( 5 ) FROM tab2 AS cor0
----
51
41
67
70
77
59

query I rowsort
SELECT - col0 * - - col2 * + 10 AS col1 FROM tab0
----
-7050
-8700
-96030

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5330
SELECT ALL * FROM tab0 WHERE NOT CAST( col2 AS DECIMAL ) < - + 6 - - col1 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5330
SELECT ALL * FROM tab0 WHERE NOT CAST ( col2 AS REAL ) < - + 6 - - col1 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT - ( ( - - 63 ) ) AS col2 FROM tab1
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT - MIN( ALL ( - - col1 ) ) AS col1, 60 AS col0 FROM tab1
----
-5
60

skipif mysql # not compatible
query II rowsort label-5333
SELECT - MIN ( ALL ( - - col1 ) ) AS col1, 60 AS col0 FROM tab1
----
-5
60

query II rowsort
SELECT - ( - + col2 ) AS col2, + col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ALL 65 + 65 AS col0 FROM tab1 AS cor0
----
130
130
130

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5336
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5336
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT col1 * CAST( ( + 41 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - col2 / + - col2 + - 39 NOT BETWEEN - col2 AND 45 * col0 + col1
----

skipif mysql # not compatible
query I rowsort label-5337
SELECT col1 * CAST ( ( + 41 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - col2 / + - col2 + - 39 NOT BETWEEN - col2 AND 45 * col0 + col1
----

query I rowsort
SELECT + col2 * ( + 18 ) FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
1044
414
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT + - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5339
SELECT + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL COUNT( * ) + 46 AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL COUNT ( * ) + 46 AS col0 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT + MIN( ALL - 52 ) + + COUNT( * ) - - 83 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5341
SELECT + MIN ( ALL - 52 ) + + COUNT ( * ) - - 83 FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT - col1 + ( 46 ) FROM tab0 AS cor0
----
-35
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL SUM( DISTINCT - - col2 ) + - + MAX( ALL - 8 ) * COUNT( + col0 ) FROM tab2 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL SUM ( DISTINCT - - col2 ) + - + MAX ( ALL - 8 ) * COUNT ( + col0 ) FROM tab2 AS cor0
----
145

query I rowsort
SELECT ALL - + 51 - + + col1 FROM tab1 AS cor0
----
-56
-65
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + 54 ) AS col0 FROM tab2
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE + col2 - 39 + + 36 = + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT COUNT( * ) DIV - - COUNT( * ) - 35 AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) / - - COUNT ( * ) - 35 AS col2 FROM tab0
----
-34

query I rowsort
SELECT DISTINCT 12 - + col0 FROM tab2
----
-34
-52
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5350
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * - + 92 IN ( - + col1, 55 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5350
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * - + 92 IN ( - + col1, 55 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + 41 * + ( col2 ) AND + - 18 * + col1 * + - 85 * - - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT DISTINCT + 73 DIV + + MIN( + col2 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + 73 / + + MIN ( + col2 ) FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT col2 DIV + 64 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT col2 / + 64 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + MAX( ALL 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5354
SELECT + MAX ( ALL 74 ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT ALL MIN( col2 ) + 51 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
61
-3

skipif mysql # not compatible
query II rowsort label-5355
SELECT ALL MIN ( col2 ) + 51 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
61
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5356
SELECT ALL - + 98 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - + 98 / - - COUNT ( * ) FROM tab2 AS cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 10 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - + col1 + 67 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + + COUNT( * ) * - ( 5 ) * 58 - + + 85 FROM tab1 AS cor0
----
-955

skipif mysql # not compatible
query I rowsort label-5359
SELECT + + COUNT ( * ) * - ( 5 ) * 58 - + + 85 FROM tab1 AS cor0
----
-955

query I rowsort
SELECT ALL 81 * - - 25 FROM tab0 AS cor0
----
2025
2025
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT - col1 DIV - + 38 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5361
SELECT - col1 / - + 38 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + - 83 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
-83
-83
-83

query I rowsort
SELECT 18 + + - col1 * 26 AS col2 FROM tab2 WHERE NOT - ( + + col1 ) * - - col1 / col2 + col2 = col0 / col0
----
-1308
-1724
-1984

query II rowsort
SELECT DISTINCT col2, - ( - col2 ) FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL + 95 AS col1, col2 FROM tab2
----
95
23
95
40
95
58

query I rowsort
SELECT + col2 * ( 65 ) FROM tab2
----
1495
2600
3770

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col2 * - + col1 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT ALL - 91 * - col0 * col0 * - col0 DIV col0 AS col1 FROM tab0
----
-20475
-688779
-856219

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - 91 * - col0 * col0 * - col0 / col0 AS col1 FROM tab0
----
-20475
-688779
-856219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE + - 46 BETWEEN + 27 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
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-5372
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + + col1 + + 4 AS col1 FROM tab0 AS cor0
----
25
5
85

query I rowsort
SELECT - - 58 * + col0 + - col0 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT + COUNT( * ) * + COUNT( * ) - + + 12 AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5376
SELECT + COUNT ( * ) * + COUNT ( * ) - + + 12 AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + + MIN( - col2 ) - + + COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5377
SELECT + + MIN ( - col2 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT + 57 * + col0 - + 62 AS col1 FROM tab1 AS cor0
----
2845
4783
5125

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + col0 - + col2 * col1 * - col0 FROM tab0 cor0
----
18357
57120
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT col1 * + col1 / - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT col1 * + col1 / - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 15 + - col2 + - 70 AS col2 FROM tab0 AS cor0
----
-132
-184
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT DISTINCT 79 + - - SUM( DISTINCT col1 ) + - ( CAST( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) * COUNT( * ) * 22 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT DISTINCT 79 + - - SUM ( DISTINCT col1 ) + - ( CAST ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) * COUNT ( * ) * 22 col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 + + col0, + col0 col1 FROM tab2 AS cor0
----
117
64
128
75
99
46

onlyif mysql # DIV for integer division: 
query II rowsort label-5385
SELECT DISTINCT + 35 AS col0, + col1 DIV 70 AS col0 FROM tab1
----
35
0

skipif mysql # not compatible
query II rowsort label-5385
SELECT DISTINCT + 35 AS col0, + col1 / 70 AS col0 FROM tab1
----
35
0

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT COUNT( * ) AS col0, - COUNT( * ) * 51 col0 FROM tab2
----
3
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5387
SELECT COUNT ( * ) AS col0, - COUNT ( * ) * 51 col0 FROM tab2
----
3
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ( - SUM( ALL + col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5388
SELECT ( - SUM ( ALL + col1 ) ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ALL - 75 + + + 88 FROM tab2 WHERE NOT + col0 * + col1 / + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5391
SELECT 40 col1, - CAST( + - 2 AS SIGNED ) FROM tab0
----
40
2
40
2
40
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5391
SELECT 40 col1, - CAST ( + - 2 AS INTEGER ) FROM tab0
----
40
2
40
2
40
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 27 + - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5393
SELECT ALL - COUNT( * ), - COUNT( * ) col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5393
SELECT ALL - COUNT ( * ), - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 92 * 59 FROM tab2
----
5428
5428
5428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT DISTINCT COUNT( * ) DIV + 98 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT COUNT ( * ) / + 98 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE 93 < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + - col0
----

query I rowsort
SELECT DISTINCT 32 * - 42 * + + 59 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-79296

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 + 96 AS col2 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT DISTINCT - 0 * + - 71 + + - 73 AS col2 FROM tab0 cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5403
SELECT ALL + + ( - col2 ) + + 68 DIV - col0 AS col2, + ( - CAST( + 19 AS SIGNED ) ) col1, ( - col2 ) FROM tab0 AS cor0
----
9 values hashing to d3f83928eefa995a76c26bc0832d122b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5403
SELECT ALL + + ( - col2 ) + + 68 / - col0 AS col2, + ( - CAST ( + 19 AS INTEGER ) ) col1, ( - col2 ) FROM tab0 AS cor0
----
9 values hashing to d3f83928eefa995a76c26bc0832d122b

query I rowsort
SELECT + - col0 + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 98 + col0 - + - 13 * + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 16 AS col1 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + MAX( ALL 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + MAX ( ALL 89 ) FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT - 31 * - + COUNT( * ) AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - 31 * - + COUNT ( * ) AS col1 FROM tab0
----
93

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN + ( col1 ) AND - col1 + col2 * + - 76 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT ALL 26 + - + SUM( - 24 ) AS col1, MIN( ALL - col1 ) FROM tab1
----
98
-47

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL 26 + - + SUM ( - 24 ) AS col1, MIN ( ALL - col1 ) FROM tab1
----
98
-47

query III rowsort
SELECT * FROM tab2 WHERE - 65 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + COUNT( * ) * + 66 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5412
SELECT + COUNT ( * ) * + 66 FROM tab0
----
198

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col0 + - - col1 + col1 * 1 / col2 + - col2 IS NULL
----

query I rowsort
SELECT ALL ( - ( - col2 ) ) + - - 34 AS col0 FROM tab0 AS cor0
----
133
44
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - 67 col1 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT col2 - + 68 FROM tab0 AS cor0
----
-21
-58
31

query I rowsort
SELECT DISTINCT + col1 - - 0 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT + 6 + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-71
38
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + COUNT( + - 90 ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT + COUNT ( + - 90 ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * + col0 col2 FROM tab0 AS cor0
----
1262
1837
196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 37 + - - 12 - - 7 FROM tab0 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 33 col1 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT ALL - COUNT( * ), + COUNT( * ) col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5425
SELECT ALL - COUNT ( * ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5426
SELECT + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT - COUNT( * ) * COUNT( * ) * + - 97 AS col1 FROM tab1 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-5427
SELECT - COUNT ( * ) * COUNT ( * ) * + - 97 AS col1 FROM tab1 AS cor0
----
873

query II rowsort
SELECT + + col2 + + col2 AS col0, col0 FROM tab2 cor0 WHERE NOT ( ( - - 74 / + - col0 ) BETWEEN - col0 * + col0 AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5429
SELECT DISTINCT ( col0 ) AS col1, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5429
SELECT DISTINCT ( col0 ) AS col1, - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + COUNT( * ) * + ( + - 78 ) * + 65 AS col1 FROM tab2
----
-15210

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + COUNT ( * ) * + ( + - 78 ) * + 65 AS col1 FROM tab2
----
-15210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT 60 + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 WHERE - - 24 IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT 60 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 WHERE - - 24 IS NOT NULL
----
57

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT 69 DIV + - COUNT( * ) - + - SUM( - col0 ) FROM tab2 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-5434
SELECT 69 / + - COUNT ( * ) - + - SUM ( - col0 ) FROM tab2 AS cor0
----
-208

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT + - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 15 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 89
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL + - COUNT( * ) * 75 AS col0 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + - COUNT ( * ) * 75 AS col0 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT 90 * col0 + - 37 * col2 AS col2 FROM tab0 AS cor0
----
-389
5067
7460

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT - col1 * + - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT + + CAST( 96 AS SIGNED ) FROM tab0 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5444
SELECT + + CAST ( 96 AS INTEGER ) FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5446
SELECT col2 * + 38 + - col1 AS col2, + CAST( NULL AS SIGNED ) / + - col2 * col0 FROM tab1 AS cor0
----
2237
NULL
2537
NULL
3634
NULL

skipif mysql # not compatible
query II rowsort label-5446
SELECT col2 * + 38 + - col1 AS col2, + CAST ( NULL AS INTEGER ) / + - col2 * col0 FROM tab1 AS cor0
----
2237
NULL
2537
NULL
3634
NULL

query I rowsort
SELECT ALL + 86 * + col1 FROM tab2 WHERE NOT NULL >= - 45
----

query I rowsort
SELECT DISTINCT 2 * col2 * - 90 * - + col1 AS col0 FROM tab2
----
211140
554400
699480

query I rowsort
SELECT ALL - 21 * 27 AS col0 FROM tab1
----
-567
-567
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT ( 55 ) * + COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT ( 55 ) * + COUNT ( * ) FROM tab0
----
165

query I rowsort
SELECT DISTINCT 74 + - - col2 * + - 0 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + MAX( + col0 ) + + 66 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + MAX ( + col0 ) + + 66 FROM tab1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT - COUNT( * ) + + ( 99 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - COUNT ( * ) + + ( 99 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL - + col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - + col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

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-5457
SELECT DISTINCT MIN( ALL - - 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT MIN ( ALL - - 50 ) FROM tab0
----
50

query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT + col2 / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT + col2 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5460
SELECT DISTINCT 88 AS col0, + 69 DIV col2 col0 FROM tab2 AS cor0
----
88
1
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5460
SELECT DISTINCT 88 AS col0, + 69 / col2 col0 FROM tab2 AS cor0
----
88
1
88
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ( - col1 ) + + - col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - + ( 65 ) + 36 * - CAST( NULL AS SIGNED ) - - 53
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT ( - col1 ) + + - col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - + ( 65 ) + 36 * - CAST ( NULL AS INTEGER ) - - 53
----

query I rowsort
SELECT + 28 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
106596
2772
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5463
SELECT + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + col1 * + 6 AS col2 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT col1 * + + col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col1 * ( - 17 ) * + + col1
----

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) < - + 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5467
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 17, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5467
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 17, CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31 col2, col1 FROM tab2
----
-31
51
-31
67
-31
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + ( ( - col1 ) ) col2 FROM tab0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5470
SELECT - 49 AS col1, COUNT( * ) + + 32 FROM tab0
----
-49
35

skipif mysql # not compatible
query II rowsort label-5470
SELECT - 49 AS col1, COUNT ( * ) + + 32 FROM tab0
----
-49
35

query II rowsort
SELECT ALL - col1 AS col0, 26 * - col1 AS col1 FROM tab1 cor0
----
-14
-364
-47
-1222
-5
-130

query I rowsort
SELECT DISTINCT + col2 + 4 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
100
63
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 <= col1
----
46
51
23
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL CAST( + MAX( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL CAST ( + MAX ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
96

query I rowsort
SELECT ALL + - 12 FROM tab0 AS cor0 WHERE - col2 + + 73 IS NOT NULL
----
-12
-12
-12

query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col2 * + 17 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
12000
14877
163348

query I rowsort
SELECT + 17 + 19 FROM tab2 AS cor0 WHERE NULL < - col1 + - 74
----

query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 + + col2 + 62 AS col2 FROM tab2 AS cor0
----
-237058
-260242
-59738

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 61
----

query I rowsort
SELECT + - col0 + - - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL 33 + + col0 FROM tab1
----
118
124
84

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / - + col2 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL - COUNT( ALL col1 ) - - + 31 AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - COUNT ( ALL col1 ) - - + 31 AS col1 FROM tab0
----
28

query II rowsort
SELECT + col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT 34 * - COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-5487
SELECT 34 * - COUNT ( * ) FROM tab2
----
-102

query II rowsort
SELECT DISTINCT + col2, - 89 AS col0 FROM tab1
----
59
-89
68
-89
96
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT ALL ( COUNT( DISTINCT - CAST( + col0 AS SIGNED ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL ( COUNT ( DISTINCT - CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL 32 + + col0 FROM tab0
----
119
129
47

query I rowsort
SELECT ALL - 6 + col1 FROM tab2
----
45
61
71

query I rowsort
SELECT + 36 + + 54 AS col1 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 1 NOT BETWEEN - ( - 54 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + MIN( + col0 ) - - - MAX( DISTINCT + ( 64 ) ) AS col1 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + MIN ( + col0 ) - - - MAX ( DISTINCT + ( 64 ) ) AS col1 FROM tab2 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + 0 * + + COUNT( * ) - + MAX( 4 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + 0 * + + COUNT ( * ) - + MAX ( 4 ) FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5496
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5496
SELECT + + CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 18 + 7 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT + 45 * - + col0 + - - col1 * col0 * + col2 * - 7 FROM tab0
----
-131805
-400410
-71586

query I rowsort
SELECT col1 * + - col0 + + - ( col2 ) FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT ALL 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + + COUNT( + 2 ) * - 7 AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5503
SELECT + + COUNT ( + 2 ) * - 7 AS col2 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT DISTINCT col1 * - 1 + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1470
150165
18802

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT 24 * - 66 + - + COUNT( * ) * + - ( - 84 ) FROM tab0 AS cor0
----
-1836

skipif mysql # not compatible
query I rowsort label-5505
SELECT 24 * - 66 + - + COUNT ( * ) * + - ( - 84 ) FROM tab0 AS cor0
----
-1836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT ALL + COUNT( * ) DIV + 17 - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + COUNT ( * ) / + 17 - - COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT 6 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 * + 70 / + 93 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5507
SELECT 6 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 * + 70 / + 93 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - + MAX( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5508
SELECT - + MAX ( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT DISTINCT 87 DIV - 62 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT 87 / - 62 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT + col0 DIV - col2 col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT + col0 / - col2 col1 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - col0 col0 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT 81 DIV SUM( ALL + 95 ) * + + COUNT( * ) * - - COUNT( * ) * MAX( ALL - ( + ( + col2 ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT 81 / SUM ( ALL + 95 ) * + + COUNT ( * ) * - - COUNT ( * ) * MAX ( ALL - ( + ( + col2 ) ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 + - 47 + + col2 / + + 78 * - 32 + + col1 FROM tab1 WHERE NULL <= + + col1
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + 61 * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + col1 AND - ( + - col1 ) / + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * + 96 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 AS col2, + 85 AS col0 FROM tab1
----
-51
85
-85
85
-91
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - COUNT( * ) FROM tab2 WHERE + + 86 * - col2 BETWEEN + 30 * + - col0 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT - COUNT ( * ) FROM tab2 WHERE + + 86 * - col2 BETWEEN + 30 * + - col0 AND - col2
----
0

query I rowsort
SELECT ALL col2 + 44 FROM tab0
----
143
54
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5522
SELECT * FROM tab2 WHERE col1 + - ( + - CAST( NULL AS SIGNED ) ) BETWEEN 62 AND + 4
----

skipif mysql # not compatible
query III rowsort label-5522
SELECT * FROM tab2 WHERE col1 + - ( + - CAST ( NULL AS INTEGER ) ) BETWEEN 62 AND + 4
----

query I rowsort
SELECT DISTINCT - ( 15 ) + ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1188
-3095
-3901

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 >= NULL
----

query I rowsort
SELECT - 12 AS col2 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT + 31 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
31
31
31

query I rowsort
SELECT ALL + + col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 + + 22 col2 FROM tab0 AS cor0
----
118
120
130

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16

query I rowsort
SELECT DISTINCT - col2 + + + col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5531
SELECT + col0 - + + 54 * - + CAST( NULL AS DECIMAL ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT + col0 - + + 54 * - + CAST ( NULL AS REAL ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 90 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - - col1 + - + col1
----

query II rowsort
SELECT - ( - ( col0 ) ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + MAX( + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5535
SELECT + MAX ( + + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + + MAX( col0 ) * - - 3 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 * + col1 = + - ( - + 63 )
----
291

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + + MAX ( col0 ) * - - 3 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 * + col1 = + - ( - + 63 )
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - + MIN( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5537
SELECT - + MIN ( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + + COUNT( DISTINCT - 27 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT + + COUNT ( DISTINCT - 27 ) col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT - 85 DIV col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 85 / col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + ( + COUNT( * ) ) * + + 73 * + COUNT( * ) AS col1 FROM tab0 cor0
----
657

skipif mysql # not compatible
query I rowsort label-5542
SELECT + ( + COUNT ( * ) ) * + + 73 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT DISTINCT + - ( 41 ) * COUNT( * ), 36 AS col2 FROM tab0 AS cor0
----
-123
36

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT + - ( 41 ) * COUNT ( * ), 36 AS col2 FROM tab0 AS cor0
----
-123
36

query I rowsort
SELECT col0 - + col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT col0 IS NOT NULL ) )
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + ( + CAST( NULL AS SIGNED ) ) * - - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5548
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + ( + CAST ( NULL AS INTEGER ) ) * - - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 49 + + 2 / + 60 * 22 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT + - SUM( 93 ) AS col2 FROM tab2 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + - SUM ( 93 ) AS col2 FROM tab2 cor0
----
-279

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT ALL - SUM( DISTINCT - col1 ) AS col0, - 28 FROM tab1
----
66
-28

skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL - SUM ( DISTINCT - col1 ) AS col0, - 28 FROM tab1
----
66
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col1 FROM tab1
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 97 ) NOT BETWEEN + col2 AND col0 * col2 / - col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ALL CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 * + ( - ( - 25 ) ) FROM tab0
----
825

query I rowsort
SELECT ( + + col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 61 + 27 FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT CAST( NULL AS SIGNED ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 49 ) col2 FROM tab1
----
-49

query I rowsort
SELECT col0 + + - col2 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ( 95 ) + col2 + - - col1 FROM tab0
----
126
195
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 29 + + - COUNT( * ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5565
SELECT 29 + + - COUNT ( * ) AS col0 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - 84 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5566
SELECT - 84 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + col2 + + 40 * + - col2 * col1 col0, - col2 FROM tab2 cor0
----
-123096
-40
-155307
-58
-46851
-23

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - col0 + + col1 * - - 82 AS col0 FROM tab2 AS cor0
----
4136
5419
6250

query I rowsort
SELECT DISTINCT - - 70 + - 53 FROM tab2 AS cor0
----
17

query I rowsort
SELECT + + 55 * col2 FROM tab1 cor0 WHERE 97 * 69 IS NOT NULL
----
3245
3740
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 87 ) AS col1 FROM tab1
----
87

query I rowsort
SELECT + ( - 12 ) - - + col0 AS col1 FROM tab2
----
34
52
63

query I rowsort
SELECT ALL ( - col0 ) * - col1 + - 14 FROM tab0 cor0
----
1201
1813
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 6 + + 2 * + 45 col0 FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT + 58 * - + 66 AS col1 FROM tab0 AS cor0
----
-3828
-3828
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0 AS col0, 81 col0 FROM tab0 cor0
----
-225
81
-7569
81
-9409
81

query II rowsort
SELECT 98 * + col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
4508
23
6272
40
7350
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 27 >= + 25 + + - ( + 5 ) - - - col0
----
15
81
47

query I rowsort
SELECT + ( - - 15 ) AS col1 FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - - col1 < 58 + + 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT SUM( + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5584
SELECT SUM ( + - col1 ) FROM tab1
----
-66

query I rowsort
SELECT 63 * + col2 AS col1 FROM tab1
----
3717
4284
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT CAST( - 18 AS SIGNED ) AS col2 FROM tab0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-5586
SELECT CAST ( - 18 AS INTEGER ) AS col2 FROM tab0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

query II rowsort
SELECT - - 11 * + + col2, - 56 AS col2 FROM tab1 WHERE NOT + - 44 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT + 15 + ( - - MAX( 35 ) ) AS col2 FROM tab2 WHERE NOT ( NOT - col2 * - CAST( - - col0 AS SIGNED ) IS NOT NULL )
----
50

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 15 + ( - - MAX ( 35 ) ) AS col2 FROM tab2 WHERE NOT ( NOT - col2 * - CAST ( - - col0 AS INTEGER ) IS NOT NULL )
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 90 col1 FROM tab0 AS cor0
----
-9
43
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 50 * + col0 IS NULL
----

query I rowsort
SELECT - 21 + 77 + + - col2 + + col1 * + 30 AS col1 FROM tab0 AS cor0
----
-13
2439
676

query I rowsort
SELECT + 89 + col1 AS col1 FROM tab1 AS cor0
----
103
136
94

query I rowsort
SELECT DISTINCT + - 1 * 84 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL 78 + 49 AS col2 FROM tab0 WHERE + col1 NOT IN ( col2 )
----
127
127
127

query I rowsort
SELECT col1 + - 5 FROM tab0
----
-4
16
76

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT DISTINCT - col0 DIV 43 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - col0 / 43 AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL + 83 * col1 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + COUNT( DISTINCT ( col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5602
SELECT + COUNT ( DISTINCT ( col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT SUM( + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5603
SELECT SUM ( + col2 ) FROM tab0
----
156

query I rowsort
SELECT + col1 + - ( + 5 ) FROM tab1
----
0
42
9

query I rowsort
SELECT - col0 + col0 * col2 AS col2 FROM tab0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IN ( - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 72 ) col1 FROM tab0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab0 WHERE 65 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 WHERE 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT 2 - ( - MIN( ALL 47 ) ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-5609
SELECT 2 - ( - MIN ( ALL 47 ) ) FROM tab1
----
49

query I rowsort
SELECT ALL col0 + + 35 AS col1 FROM tab0
----
122
132
50

query I rowsort
SELECT + col2 - + col1 * - col1 FROM tab0
----
100
451
6608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( col1 + - col0 ) BETWEEN ( + col1 ) AND 61 + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( col1 + - col0 ) BETWEEN ( + col1 ) AND 61 + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COUNT( * ) + + ( + COUNT( * ) + 69 * 17 ) AS col1 FROM tab2
----
1179

skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( * ) + + ( + COUNT ( * ) + 69 * 17 ) AS col1 FROM tab2
----
1179

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( - 45 * 93 ) NOT IN ( + 57 )
----
1
21
81

query I rowsort
SELECT + ( - 69 ) * + 8 FROM tab0
----
-552
-552
-552

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN col0 AND ( 64 )
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT ALL COUNT( * ) DIV - 46 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COUNT ( * ) / - 46 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT 81 + + MAX( ALL + 58 - - col1 ) * + 48 FROM tab1
----
5121

skipif mysql # not compatible
query I rowsort label-5618
SELECT 81 + + MAX ( ALL + 58 - - col1 ) * + 48 FROM tab1
----
5121

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT ALL + ( col0 ) DIV 26 AS col0 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + ( col0 ) / 26 AS col0 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + 96 + COUNT( DISTINCT col0 - 71 ) FROM tab1 WHERE NOT 74 + - 56 * 65 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + 96 + COUNT ( DISTINCT col0 - 71 ) FROM tab1 WHERE NOT 74 + - 56 * 65 IS NOT NULL
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 / + col1 ) <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5624
SELECT * FROM tab0 WHERE - CAST( + 58 AS SIGNED ) * - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5624
SELECT * FROM tab0 WHERE - CAST ( + 58 AS INTEGER ) * - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5625
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 8 * + col2 ) NOT BETWEEN CAST( + col1 AS SIGNED ) + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5625
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 8 * + col2 ) NOT BETWEEN CAST ( + col1 AS INTEGER ) + col2 AND NULL
----

query I rowsort
SELECT - 47 FROM tab1 WHERE 90 * col1 IS NOT NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT MIN( + col2 ) * 49 AS col1 FROM tab0 WHERE NOT ( - 10 ) = ( - col2 )
----
2303

skipif mysql # not compatible
query I rowsort label-5628
SELECT MIN ( + col2 ) * 49 AS col1 FROM tab0 WHERE NOT ( - 10 ) = ( - col2 )
----
2303

query I rowsort
SELECT ALL 38 + 48 * - 92 FROM tab1 WHERE + 62 IS NULL
----

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 WHERE + 96 NOT IN ( - col0 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL 94 * - COUNT( * ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL 94 * - COUNT ( * ) FROM tab1
----
-282

query I rowsort
SELECT ALL col1 * + 37 AS col0 FROM tab0 WHERE NULL IS NULL
----
2997
37
777

query I rowsort
SELECT + - 21 * 16 AS col1 FROM tab1 AS cor0
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL - COUNT( 13 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - COUNT ( 13 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + - col2 * - 88 AS col2 FROM tab1 AS cor0
----
5192
5984
8448

query I rowsort
SELECT ALL + col0 * + col2 + - col2 * col2 FROM tab0 WHERE NOT + 7 >= - col1 + 43 * col1
----
-1504
-198
770

query I rowsort
SELECT - col2 + - 12 * - 4 FROM tab2
----
-10
25
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5639
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( - col0 + col2 * - CAST( NULL AS DECIMAL ) ) NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( - col0 + col2 * - CAST ( NULL AS REAL ) ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + ( + - col0 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + ( COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5641
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 82 AS col0 FROM tab0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT COUNT( + col1 ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT COUNT ( + col1 ) + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT + 67 + col2 + 30 DIV - 25 FROM tab2
----
106
124
89

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + 67 + col2 + 30 / - 25 FROM tab2
----
106
124
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5645
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * CAST( 17 AS SIGNED ) BETWEEN ( + col1 + - col2 ) AND NULL
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-5645
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * CAST ( 17 AS INTEGER ) BETWEEN ( + col1 + - col2 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + ( - + 38 ) AS col2 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 76 + + + col0 + 27 FROM tab0 AS cor0
----
118
190
200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + 56 AS col1 FROM tab0 cor0
----
103
155
66

query I rowsort
SELECT DISTINCT col0 + - - ( + col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + 84 - + - col0 AS col2 FROM tab1 AS cor0
----
135
169
175

query I rowsort
SELECT DISTINCT - + 30 + - + col1 * - 70 FROM tab2 AS cor0
----
3540
4660
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 73 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 73 IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + SUM( ALL col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + SUM ( ALL col1 ) FROM tab0
----
NULL

query I rowsort
SELECT col0 + 1 FROM tab2
----
47
65
76

query I rowsort
SELECT 62 + col0 FROM tab0
----
149
159
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT COUNT( * ) * 73 AS col1 FROM tab2 WHERE + - 11 / - col1 NOT IN ( + col2 )
----
219

skipif mysql # not compatible
query I rowsort label-5659
SELECT COUNT ( * ) * 73 AS col1 FROM tab2 WHERE + - 11 / - col1 NOT IN ( + col2 )
----
219

query I rowsort
SELECT col1 * col1 * + ( col2 ) + col0 AS col1 FROM tab2
----
237224
260437
59869

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + - 0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL - - MIN( + col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT ALL - - MIN ( + col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - 58 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 77 ) + + 49 col0 FROM tab2 cor0 WHERE ( + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT - - col2 + col2 - + - 60 AS col0 FROM tab0 AS cor0
----
154
258
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT DISTINCT - col0 + + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - col0 + + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT ALL - ( + col1 ) DIV - col2 + - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - ( + col1 ) / - col2 + - col0 FROM tab2
----
-44
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT MAX( col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5669
SELECT MAX ( col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - COUNT( ALL - + col0 ) + SUM( + col2 + ( + 0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
220

skipif mysql # not compatible
query I rowsort label-5670
SELECT - COUNT ( ALL - + col0 ) + SUM ( + col2 + ( + 0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
220

query I rowsort
SELECT 15 * - ( - + col2 ) AS col2 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT COUNT( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( + col2 ) FROM tab2
----
3

query I rowsort
SELECT 64 * - 77 * - 41 FROM tab0
----
202048
202048
202048

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE ( 35 ) >= + 95
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE ( 35 ) >= + 95
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( NULL ) >= 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL + 9 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + 9 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL < 79 + col2 * - col2
----

query I rowsort
SELECT DISTINCT ( + - 65 ) FROM tab1 cor0
----
-65

query II rowsort
SELECT DISTINCT 23 AS col2, col1 * - - 82 * - col1 + - + col2 FROM tab1
----
23
-16168
23
-181206
23
-2109

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) < + col1 + col2 DIV 67
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) < + col1 + col2 / 67
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + 98 * - ( - SUM( col2 ) ) AS col0 FROM tab0 AS cor0
----
15288

skipif mysql # not compatible
query I rowsort label-5684
SELECT + 98 * - ( - SUM ( col2 ) ) AS col0 FROM tab0 AS cor0
----
15288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 45 + - - col1 / - col2 * + 3 )
----

query I rowsort
SELECT - 88 * + + 93 FROM tab0 AS cor0
----
-8184
-8184
-8184

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5688
SELECT 20 AS col1, + col1 DIV col1 AS col0 FROM tab2
----
20
1
20
1
20
1

skipif mysql # not compatible
query II rowsort label-5688
SELECT 20 AS col1, + col1 / col1 AS col0 FROM tab2
----
20
1
20
1
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + MAX( + - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5689
SELECT + MAX ( + - col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT + col1 + - - col1 - col2 FROM tab0 WHERE NOT ( - col2 ) = + col0
----
-97
115
32

query II rowsort
SELECT ALL - 27, col0 FROM tab2
----
-27
46
-27
64
-27
75

query I rowsort
SELECT + col2 * + 63 + 17 + col1 FROM tab0 cor0
----
3059
6255
668

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5695
SELECT ALL - CAST( - col2 AS SIGNED ) * 19 + + - col1 DIV col1 FROM tab2
----
1101
436
759

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - CAST ( - col2 AS INTEGER ) * 19 + + - col1 / col1 FROM tab2
----
1101
436
759

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + COUNT( * ) + 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
98

skipif mysql # not compatible
query I rowsort label-5696
SELECT + COUNT ( * ) + 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
98

query I rowsort
SELECT ALL + - col1 * + + col1 * + col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query III rowsort
SELECT - 89 - - + col2, + col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to 3ac10f91eec751caf779bc87378520a4

query I rowsort
SELECT + 94 + 50 - - + col2 * - - col0 AS col2 FROM tab0 AS cor0
----
1014
849
9747

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL - + SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - + SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT + col0 + - + 37 FROM tab2 AS cor0
----
27
38
9

query I rowsort
SELECT DISTINCT - col2 * 63 + - col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 33 * + + col2 * - ( 88 ) * - col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14217984
14563560
17969952

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5704
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT ALL 96 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 96 / col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT 85 * - - ( MIN( - - col1 ) ) FROM tab2
----
4335

skipif mysql # not compatible
query I rowsort label-5707
SELECT 85 * - - ( MIN ( - - col1 ) ) FROM tab2
----
4335

query II rowsort
SELECT col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - SUM( - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5710
SELECT - SUM ( - col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT DISTINCT - 49 + + col0 AS col1 FROM tab0 WHERE NULL NOT IN ( 5 )
----

query I rowsort
SELECT DISTINCT 8 * + - col2 AS col1 FROM tab2
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT 33 * - COUNT( * ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5713
SELECT 33 * - COUNT ( * ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + col1 >= - col2 * - - 46 + 40
----

query I rowsort
SELECT ALL + + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + col2 + - - 69 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ( - - 26 ) AS col2 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * - ( - col1 ) + col2 )
----

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5721
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT ALL 2 + + COUNT( * ) col0, 14 FROM tab0
----
5
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5722
SELECT ALL 2 + + COUNT ( * ) col0, 14 FROM tab0
----
5
14

query I rowsort
SELECT - 15 * - col2 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT 9 * SUM( ALL + + col2 ) FROM tab1
----
2007

skipif mysql # not compatible
query I rowsort label-5724
SELECT 9 * SUM ( ALL + + col2 ) FROM tab1
----
2007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT + col1 + + 75 + CAST( NULL AS SIGNED ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT + col1 + + 75 + CAST ( NULL AS INTEGER ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 66 * - col1 NOT BETWEEN + + 99 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5727
SELECT DISTINCT + 51 * CAST( NULL AS SIGNED ) + + COUNT( * ) + - - COUNT( + 84 ) AS col0, MAX( DISTINCT + - 72 ) AS col1, + 95 AS col2 FROM tab2 cor0
----
NULL
-72
95

skipif mysql # not compatible
query III rowsort label-5727
SELECT DISTINCT + 51 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - COUNT ( + 84 ) AS col0, MAX ( DISTINCT + - 72 ) AS col1, + 95 AS col2 FROM tab2 cor0
----
NULL
-72
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + - 29 + + + 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE - 78 NOT BETWEEN + CAST( NULL AS SIGNED ) * - ( - - col0 ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE - 78 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - ( - - col0 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col2 col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT + 16 * col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT DISTINCT + - 68 + + 3 * + COUNT( * ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + - 68 + + 3 * + COUNT ( * ) FROM tab0 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 / + + col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT + 67 DIV + COUNT( * ) col0 FROM tab0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5734
SELECT + 67 / + COUNT ( * ) col0 FROM tab0
----
22

query I rowsort
SELECT DISTINCT + col2 * - 97 + + col0 FROM tab2
----
-2185
-3816
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL + ( SUM( + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + ( SUM ( + col1 ) ) FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5737
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL - 6, col0 * + 60 AS col1 FROM tab1
----
-6
3060
-6
5100
-6
5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 72 FROM tab0
----
1
72
21
72
81
72

query I rowsort
SELEC