sqllogictest
Artifact Content
Not logged in

Artifact 55b070d4fc4ff20468428686d66096f60a458db6:


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(89,91,82)

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

statement ok
INSERT INTO tab0 VALUES(24,86,33)

statement ok
INSERT INTO tab1 VALUES(64,10,57)

statement ok
INSERT INTO tab1 VALUES(3,26,54)

statement ok
INSERT INTO tab1 VALUES(80,13,96)

statement ok
INSERT INTO tab2 VALUES(7,31,27)

statement ok
INSERT INTO tab2 VALUES(79,17,38)

statement ok
INSERT INTO tab2 VALUES(78,59,26)

query I rowsort
SELECT col1 * col0 * - col2 + + col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * 78 col1 FROM tab2, tab2 cor0
----
9 values hashing to 95d1109847e67be229d50cd76253dc34

query I rowsort
SELECT 64 + + col2 AS col0 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT ALL col2 + col0 * 11 AS col2 FROM tab1
----
761
87
976

query I rowsort
SELECT + col2 + 11 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT ALL - + col1 + - 13 FROM tab1 cor0
----
-23
-26
-39

query I rowsort
SELECT ALL col1 + col2 * + col2 * + tab2.col1 AS col2 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT DISTINCT - col2 - + ( 18 ) FROM tab1 AS cor0
----
-114
-72
-75

query I rowsort
SELECT ( + 22 ) * cor0.col2 + - 65 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e932106eb39210f79df391a9b0ba71fd

query I rowsort
SELECT DISTINCT + col0 * col0 - 67 * - col0 AS col1 FROM tab2 AS cor0
----
11310
11534
518

query I rowsort
SELECT ALL - + col1 * - ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-11
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - - col1 * 92 * + col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
141069
59415
76973

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT ( - col0 ) DIV - col1 + 33 FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-13
SELECT ( - col0 ) / - col1 + 33 FROM tab0
----
33
33
33

query I rowsort
SELECT - 24 FROM tab1, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT DISTINCT col0 DIV 27 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT col0 / 27 FROM tab1
----
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT - col1 * col2 DIV col1 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-16
SELECT - col1 * col2 / col1 AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-18
SELECT - + CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-18
SELECT - + CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - ( + col0 ) + 2 FROM tab1 AS cor0
----
-1
-62
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT - 78 DIV col1 + col2 DIV cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-20
SELECT - 78 / col1 + col2 / cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-85
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT col1 * col1 + CAST( NULL AS SIGNED ) - + ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - ( + cor0.col2 ) * col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + col1 - - cor0.col2 * - ( + ( + col2 ) ) * - 19 FROM tab0 AS cor0
----
116
127847
20777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 * 79 col2 FROM tab0 AS cor0
----
-18
2521
6387

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 AS col0 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT - CAST( col0 + - col0 AS SIGNED ) DIV - col1 AS col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL 51 * col2 * + col1 AS col0 FROM tab0
----
144738
380562
4947

query I rowsort
SELECT ALL - col0 - + 92 FROM tab2 AS cor0
----
-170
-171
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-30
SELECT ALL CAST( col1 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL CAST ( col1 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 * col2 * 12 col1 FROM tab1 AS cor0
----
-1947
-43840
-92240

query I rowsort
SELECT DISTINCT + - col1 * - col1 + - col1 * + ( col2 ) * col1 FROM tab0 AS cor0
----
-236672
-670761
0

query I rowsort
SELECT 88 - - col2 * col1 * - 75 FROM tab2 AS cor0
----
-114962
-48362
-62687

query I rowsort
SELECT + + cor0.col0 * + col0 * + col0 + col0 * + cor0.col1 FROM tab1 AS cor0
----
105
262784
513040

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT + col0 DIV col1 + col0 * + col0 col0 FROM tab2 AS cor0
----
49
6085
6245

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-35
SELECT + col0 / col1 + col0 * + col0 col0 FROM tab2 AS cor0
----
49
6085
6245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * col1 col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT DISTINCT - 86 + col0 DIV col1 col1 FROM tab2
----
-82
-85
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - 86 + col0 / col1 col1 FROM tab2
----
-82
-85
-86

query I rowsort
SELECT col2 * col2 + - tab2.col1 + + tab2.col2 AS col2 FROM tab2
----
1465
643
725

query I rowsort
SELECT ALL ( col1 ) + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT 54 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL - - col0 * + col0 + + col0 + - 88 * + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-128830
-50528
-73600

query I rowsort
SELECT ALL - col2 + col2 + cor0.col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 95 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT col1 DIV col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-45
SELECT col1 / col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( 76 + col1 ) * - col0 AS col1 FROM tab0
----
-14863
-3888
-6055

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

query I rowsort
SELECT ALL + cor1.col2 + 5 + cor0.col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to cf480c927dbeaf56eb24ee881909ecbb

query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL 42 * - col2 FROM tab1
----
-2268
-2394
-4032

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

query I rowsort
SELECT col1 * - 78 FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-53
SELECT + + col1 + + CAST( + 5 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
15
18
31

skipif mysql # not compatible
query I rowsort label-53
SELECT + + col1 + + CAST ( + 5 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
15
18
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-54
SELECT col1 * ( + col1 ) + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
289
3481
965

skipif mysql # not compatible
query I rowsort label-54
SELECT col1 * ( + col1 ) + col1 / col0 AS col2 FROM tab2 AS cor0
----
289
3481
965

query I rowsort
SELECT DISTINCT + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + 20 * col2 col1 FROM tab1 AS cor0
----
11336
24880
28077

onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT - col2 + - 57 DIV ( col2 ) FROM tab0 cor0
----
-34
-58
-82

skipif mysql # not compatible
query I rowsort label-57
SELECT - col2 + - 57 / ( col2 ) FROM tab0 cor0
----
-34
-58
-82

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1
33
82

query I rowsort
SELECT ALL cor0.col2 + - ( - col1 + - col2 ) * ( col2 ) AS col0 FROM tab1 AS cor0
----
10560
3876
4374

query I rowsort
SELECT DISTINCT - + col1 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT DISTINCT - + col0 + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - + col0 + col1 / - cor0.col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - ( + col0 ) + col2 * - ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 + - 94 * - col0 FROM tab1 AS cor0
----
228
5959
7424

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-66
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-68
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT col0 + 91 * - tab1.col0 AS col0 FROM tab1
----
-270
-5760
-7200

query I rowsort
SELECT + col1 * + col0 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT tab1.col1 * - col2 * col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT - - col2 DIV ( 84 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-72
SELECT - - col2 / ( 84 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT col0 * 15 DIV - col0 + col1 * - cor0.col0 + - col0 FROM tab2 AS cor0
----
-1437
-239
-4695

skipif mysql # not compatible
query I rowsort label-73
SELECT col0 * 15 / - col0 + col1 * - cor0.col0 + - col0 FROM tab2 AS cor0
----
-1437
-239
-4695

onlyif mysql # use DIV operator for integer division
query I rowsort label-74
SELECT - ( col1 ) * + cor0.col0 + + col0 * col2 + - cor0.col0 DIV ( - col1 ) FROM tab1 AS cor0
----
3014
6646
84

skipif mysql # not compatible
query I rowsort label-74
SELECT - ( col1 ) * + cor0.col0 + + col0 * col2 + - cor0.col0 / ( - col1 ) FROM tab1 AS cor0
----
3014
6646
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 * + 28 col0 FROM tab2 cor0
----
2044
2044
2044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 * 89 col1 FROM tab1 cor0
----
-7031
-7031
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT ALL + + ( col0 ) DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-79
SELECT + CAST( NULL AS SIGNED ) - col1 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT + col1 - ( col0 ) DIV + CAST( - 87 AS SIGNED ) col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-80
SELECT + col1 - ( col0 ) / + CAST ( - 87 AS INTEGER ) col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 25 - col1 FROM tab0 AS cor0
----
-111
-116
-122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-82
SELECT CAST( NULL AS SIGNED ) + + ( - col0 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 - 69 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT ALL - 49 + - col2 FROM tab0 AS cor0
----
-131
-50
-82

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 55 + - col0 + cor0.col1 FROM tab0 AS cor0
----
117
117
57

query I rowsort
SELECT ALL 56 + cor0.col1 FROM tab2 AS cor0
----
115
73
87

query I rowsort
SELECT col0 * col0 * - col2 AS col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ( - col1 ) * - 0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 + col1 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1147
-1615
-8024

onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT + 62 DIV - col0 + - col2 * col0 FROM tab2
----
-197
-2028
-3002

skipif mysql # not compatible
query I rowsort label-92
SELECT + 62 / - col0 + - col2 * col0 FROM tab2
----
-197
-2028
-3002

query I rowsort
SELECT ALL + 74 + + col0 * + col0 * - col2 + + col2 * + col2 FROM tab2
----
-157434
-235640
-520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-94
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 13 col1 FROM tab0
----
73
78
84

query I rowsort
SELECT + + col1 * + col1 + - 19 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-1174
2025
855

query I rowsort
SELECT + col2 * + col1 * - 1 + col0 * col0 + ( + col2 ) FROM tab0 AS cor0
----
-2229
1129
541

query I rowsort
SELECT col1 * + col0 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col1 + col0 + - 53 FROM tab1
----
-24
21
40

query I rowsort
SELECT 52 + tab1.col0 FROM tab1
----
116
132
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + - col1 * + 97 col1 FROM tab2
----
-1728
-3014
-5801

query I rowsort
SELECT col0 + - tab1.col2 - + col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 75 * tab1.col2 AS col0 FROM tab1
----
4050
4275
7200

query I rowsort
SELECT ALL 87 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + - col1 + cor0.col2 * - 99 FROM tab1 AS cor0
----
-5372
-5653
-9517

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-106
SELECT - - col0 + CAST( NULL AS DECIMAL ) * 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT - - col0 + CAST ( NULL AS REAL ) * 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT ALL + col2 DIV ( col0 + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + col2 / ( col0 + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
9

query I rowsort
SELECT + col0 + - ( - 94 ) AS col0 FROM tab1 cor0
----
158
174
97

query I rowsort
SELECT + col1 * ( 16 ) FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT col0 * ( - 60 ) AS col1 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT ALL + 90 * col0 AS col1 FROM tab2
----
630
7020
7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 - col1 col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL col1 + + col2 * + col0 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - col0 - tab0.col1 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT ALL col0 DIV - col2 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL col0 / - col2 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT col1 / - tab2.col2 AS col2 FROM tab2 WHERE NOT col2 * tab2.col0 - + col1 <> ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT ALL + col1 * col1 DIV + tab2.col1 AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + col1 * col1 / + tab2.col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab1 WHERE NOT col0 = ( col1 * + col2 )
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col0 FROM tab2
----
14
156
158

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col0 * col1 > ( NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( NULL ) = col2 * col2
----

query I rowsort
SELECT DISTINCT - col0 * - tab2.col1 * - col2 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT tab2.col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + 34 * - col0 AS col0 FROM tab1 AS cor0
----
-102
-2176
-2720

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT - col2 DIV col1 + col0 * col1 FROM tab2
----
1341
217
4602

skipif mysql # not compatible
query I rowsort label-129
SELECT - col2 / col1 + col0 * col1 FROM tab2
----
1341
217
4602

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT + tab2.col1 DIV + col0 + + col1 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-132
SELECT + tab2.col1 / + col0 + + col1 FROM tab2
----
17
35
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT + col2 DIV tab0.col0 + tab0.col0 AS col1 FROM tab0 WHERE ( col1 * + col2 ) NOT IN ( - col1 )
----
25
35
89

skipif mysql # not compatible
query I rowsort label-133
SELECT + col2 / tab0.col0 + tab0.col0 AS col1 FROM tab0 WHERE ( col1 * + col2 ) NOT IN ( - col1 )
----
25
35
89

query I rowsort
SELECT DISTINCT - col1 + + col0 * 0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + - col0 * - col1 + - col0 + col2 AS col1 FROM tab0 AS cor0
----
2073
3361
8092

query I rowsort
SELECT ALL cor0.col1 * - col0 + - col1 AS col2 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - - 57 * + col2 - + col1 FROM tab2 AS cor0
----
1423
1508
2149

query I rowsort
SELECT ALL col0 * + cor0.col2 + - cor0.col1 + col2 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT + 74 * + col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT - - col2 * + col2 * 40 + col0 FROM tab0 AS cor0
----
269049
43584
75

query I rowsort
SELECT DISTINCT - ( 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-15

query I rowsort
SELECT ALL + 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-143
SELECT ALL col0 - + col2 DIV col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL col0 - + col2 / col1 FROM tab1
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col0 - cor0.col1 col1 FROM tab2 AS cor0
----
1247
179
4465

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-145
SELECT - col1 * - cor0.col2 - - CAST( - col2 + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2781
61
7291

skipif mysql # not compatible
query I rowsort label-145
SELECT - col1 * - cor0.col2 - - CAST ( - col2 + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT + + 48 + col1 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT ALL + 98 * cor0.col0 FROM tab0 cor0
----
2352
3430
8722

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

query I rowsort
SELECT DISTINCT 11 * - col2 + - col2 FROM tab2 AS cor0
----
-312
-324
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT col1 * 23 + + 2 DIV col0 FROM tab0 cor0
----
1978
2093
2231

skipif mysql # not compatible
query I rowsort label-150
SELECT col1 * 23 + + 2 / col0 FROM tab0 cor0
----
1978
2093
2231

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-152
SELECT DISTINCT + + CAST( tab1.col2 AS SIGNED ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + + CAST ( tab1.col2 AS INTEGER ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
54
57
96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT col2 * 17 + col2 FROM tab0
----
1476
18
594

query I rowsort
SELECT ALL - - 45 * col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT - 59 * col0 FROM tab2 cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT + + 8 * + col2 AS col1 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ALL - 40 * + col0 AS col0 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT DISTINCT - col2 * - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + - 93 * col2 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT ALL - 9 + col2 AS col2 FROM tab0 AS cor0
----
-8
24
73

query I rowsort
SELECT + + col0 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT 2 + col1 * + col0 FROM tab2 AS cor0
----
1345
219
4604

query I rowsort
SELECT - col2 + col0 + - col0 * col1 * - col1 FROM tab1 AS cor0
----
13504
1977
6407

query I rowsort
SELECT + col1 - col0 * col1 * col2 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT - col0 * + col0 + + col1 + - col0 FROM tab1 AS cor0
----
-4150
-6467
14

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT ALL col2 DIV col2 + col2 * - col0 col1 FROM tab0 AS cor0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-168
SELECT ALL col2 / col2 + col2 * - col0 col1 FROM tab0 AS cor0
----
-34
-7297
-791

query I rowsort
SELECT ALL + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-170
SELECT CAST( NULL AS DECIMAL ) + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - 41 * - 33 * - col1 AS col0 FROM tab2 AS cor0
----
-23001
-41943
-79827

query I rowsort
SELECT + + 40 + + 49 + col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + - col1 * - col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 * - col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - col0 * + tab2.col1 + col1 * col0 * + col1 AS col0 FROM tab2
----
21488
266916
6510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 col2 FROM tab0 cor0
----
1
1089
6724

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

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

query I rowsort
SELECT - 25 * - col0 AS col0 FROM tab1 cor0
----
1600
2000
75

query I rowsort
SELECT - col0 + col1 * + col1 FROM tab1
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT ALL + 94 DIV ( - col0 * + tab1.col1 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + 94 / ( - col0 * + tab1.col1 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 AS col1 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT col1 DIV - 39 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-185
SELECT col1 / - 39 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-186
SELECT ALL + CAST( NULL AS DECIMAL ) * + 90 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * + col2 col1 FROM tab0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col2 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col0 + - col2 AS col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - tab1.col0 col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL col0 * col2 FROM tab2 WHERE NOT ( + col2 / + col1 ) <> NULL
----

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

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( - cor0.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - col2 * col1 + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col1 * col1 + + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT cor0.col2 + cor0.col0 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 + col1 * + col1 + cor0.col0 FROM tab2 cor0
----
3618
385
999

query I rowsort
SELECT DISTINCT - col0 + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT ALL col0 DIV - col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL col0 / - col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2917
-3250
-9217

query I rowsort
SELECT + col1 * - cor0.col0 + - col0 * col0 FROM tab1 AS cor0
----
-4736
-7440
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT DISTINCT - cor0.col2 DIV + cor0.col0 + col2 * + col1 - - col2 AS col1 FROM tab2 cor0
----
1560
684
861

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT - cor0.col2 / + cor0.col0 + col2 * + col1 - - col2 AS col1 FROM tab2 cor0
----
1560
684
861

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL - cor0.col1 DIV + col1 + + col1 * + col1 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - cor0.col1 / + col1 + + col1 * + col1 FROM tab1 AS cor0
----
168
675
99

query I rowsort
SELECT + - col2 * - col1 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT tab1.col1 + - col1 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT + tab2.col2 DIV + 22 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-209
SELECT + tab2.col2 / + 22 FROM tab2
----
1
1
1

query I rowsort
SELECT + col0 + + 87 * - col1 FROM tab2 AS cor0
----
-1400
-2690
-5055

query I rowsort
SELECT col1 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT cor0.col2 * 24 * + col2 + col0 FROM tab0 cor0
----
161465
26160
59

query I rowsort
SELECT col1 * 58 AS col0 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT DISTINCT - - 30 + col2 * + col1 FROM tab2 AS cor0
----
1564
676
867

query I rowsort
SELECT - - col1 + ( - cor0.col2 ) FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT ALL + CAST( - col1 AS SIGNED ) - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + CAST ( - col1 AS INTEGER ) - col0 / col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT - col0 + + 19 AS col2 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT ALL + col1 * + col0 + - col2 * col1 + - col2 FROM tab0 AS cor0
----
-807
3297
555

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT - ( - 63 ) - - col2 DIV CAST( + ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
65
68
70

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT - ( - 63 ) - - col2 / CAST ( + ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
65
68
70

query I rowsort
SELECT - + 4 + + col1 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
119648
51030
5855

query I rowsort
SELECT + - col1 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

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

query I rowsort
SELECT + 88 * col2 FROM tab1 AS cor0
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col2 col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ( + col0 ) * col0 DIV 38 FROM tab1 AS cor0
----
0
107
168

skipif mysql # not compatible
query I rowsort label-225
SELECT ( + col0 ) * col0 / 38 FROM tab1 AS cor0
----
0
107
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + col1 * + col1 + + col1 * + col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT - 4 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT + + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 / - CAST ( col2 AS REAL ) + col1 FROM tab1 AS cor0
----
12
25
9

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

query I rowsort
SELECT + + col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - col2 * + ( 61 ) FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + - col1 * col0 col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - - col0 * 16 * col1 AS col0 FROM tab1 AS cor0
----
10240
1248
16640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col0 * ( - col1 ) col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + - col0 * + ( - ( col0 ) ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + + cor0.col1 * - ( col2 ) * - col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( ( - col1 ) ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT ALL - + cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-242
SELECT + CAST( NULL AS SIGNED ) + + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 * 18 AS col2 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 - 49 FROM tab1 AS cor0
----
18
31
60

query I rowsort
SELECT ALL + - col0 - + cor0.col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-246
SELECT DISTINCT + 77 * col0 + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 + col0 col1 FROM tab0 AS cor0
----
139
74
85

skipif mysql # not compatible
query I rowsort
SELECT + - 50 * col2 + + CAST ( + col2 AS REAL ) * - col1 FROM tab2 AS cor0
----
-2187
-2546
-2834

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 * - col1 * + ( - col2 ) + + col2 AS col0 FROM tab2
----
11020
25974
90532

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT + ( + col0 * col1 ) AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-254
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + tab1.col0 * col0 FROM tab1
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-255
SELECT DISTINCT - - col1 DIV - col0 - + col0 AS col1 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT - - col1 / - col0 - + col0 AS col1 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT + 27 * - col0 + col0 AS col1 FROM tab1 cor0
----
-1664
-2080
-78

query I rowsort
SELECT DISTINCT col2 + - 97 * col0 FROM tab1 AS cor0
----
-237
-6151
-7664

query I rowsort
SELECT ALL + col0 + - 94 * + col0 + 45 AS col0 FROM tab1 AS cor0
----
-234
-5907
-7395

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 + 24 AS col1 FROM tab2 AS cor0
----
-1281
-166
-4552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-260
SELECT ALL + CAST( NULL AS DECIMAL ) - - col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT DISTINCT 15 + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT 15 + cor0.col2 / + col1 FROM tab0 AS cor0
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-262
SELECT DISTINCT + + ( col2 ) + - col1 * 96 DIV + col0 AS col2 FROM tab2 cor0
----
-398
-46
18

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + + ( col2 ) + - col1 * 96 / + col0 AS col2 FROM tab2 cor0
----
-398
-46
18

query I rowsort
SELECT ALL ( + col2 ) + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-264
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-265
SELECT CAST( NULL AS SIGNED ) + 98 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + col0 + + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL tab1.col0 + + col2 * - col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - col0 * + 16 + 22 FROM tab1 AS cor0
----
-1002
-1258
-26

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * ( + col1 ) AS col0 FROM tab0 cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL + col1 + col1 * - col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT col2 * 68 * col1 FROM tab1 cor0
----
38760
84864
95472

query I rowsort
SELECT + + col2 * - 7 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT ALL 23 * - col0 AS col1 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT DISTINCT col2 + - col2 + + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col1 + tab1.col0 + col0 AS col2 FROM tab1
----
-20
118
147

query I rowsort
SELECT - col0 - + col1 * col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT + 77 * - ( + col0 ) FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT 94 + - col1 * + col0 + - 77 AS col0 FROM tab1 cor0
----
-1023
-61
-623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-281
SELECT - CAST( NULL AS SIGNED ) + + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 84 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
2016
2940
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * col2 + col1 col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 * + 85 + 58 FROM tab0
----
7368
7793
8303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-285
SELECT - CAST( + col2 AS SIGNED ) + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-285
SELECT - CAST ( + col2 AS INTEGER ) + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( - col2 ) + - col0 + + ( + col2 * - col0 ) FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT - 9 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c240ee08416b762e52567de85493e969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT + col0 + - ( - col0 ) AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT cor0.col0 + cor0.col0 + - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
228
329
682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 * + 73 * - col0 col1 FROM tab1
----
-105120
-3942
-84096

onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT DISTINCT col2 + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT col2 + + col2 / cor0.col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT - + 60 + cor0.col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-157
-2898
-7522

query I rowsort
SELECT + 88 * tab0.col1 + 72 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 0e41341de32ccd8f9c5855fe77765fce

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT ALL col1 - - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 * col1 * + col2 + ( col2 ) + col1 FROM tab2
----
-10927
-25889
-90421

query I rowsort
SELECT ALL + 36 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT + + col2 * - col2 + + col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + + col1 + - 27 * col0 FROM tab0 AS cor0
----
-2312
-562
-848

onlyif mysql # use DIV operator for integer division
query I rowsort label-300
SELECT ALL + col1 DIV ( col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + col1 / ( col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - - col1 * + 85 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL + - col1 * + ( + col2 ) + col0 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-303
SELECT ALL - + col0 * + col1 + 42 * - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-2106
-3437
-8141

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - + col0 * + col1 + 42 * - col2 / + col2 AS col1 FROM tab0 AS cor0
----
-2106
-3437
-8141

query I rowsort
SELECT + cor0.col2 + col2 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-135
-1976
-2926

query I rowsort
SELECT ALL col1 * - 37 AS col0 FROM tab0 cor0
----
-3182
-3367
-3589

onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT + col2 * cor0.col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-306
SELECT + col2 * cor0.col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 4 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - 76 + - col1 FROM tab1 AS cor0
----
-102
-86
-89

query I rowsort
SELECT - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col2 + col2 * + 65 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-311
SELECT ALL - 8 DIV 70 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - 8 / 70 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 61 + cor0.col0 AS col2 FROM tab1 AS cor0
----
125
141
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT ALL tab0.col1 * - tab0.col1 DIV col1 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL tab0.col1 * - tab0.col1 / col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 61 * + col1 AS col0 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT ALL 67 + - col0 AS col0 FROM tab1 AS cor0
----
-13
3
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT + col1 * 91 + col2 FROM tab2
----
1585
2848
5395

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

query I rowsort
SELECT + col1 * 27 + col1 * + col2 * col1 FROM tab1 AS cor0
----
16575
37206
5970

query I rowsort
SELECT + col1 * + 64 FROM tab2
----
1088
1984
3776

query I rowsort
SELECT DISTINCT - cor0.col2 * 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2430
-2565
-4320

query I rowsort
SELECT + col0 * + col0 + - col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT 61 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT + + col1 DIV + 83 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-324
SELECT + + col1 / + 83 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - col2 + + 52 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT - 56 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1169
520
7865

query I rowsort
SELECT ALL 69 + ( + col2 ) FROM tab1
----
123
126
165

query I rowsort
SELECT ALL ( - col0 ) * + col1 + ( col2 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + 61 + + col0 FROM tab0
----
150
85
96

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

query I rowsort
SELECT DISTINCT tab2.col2 + - col2 * col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT 47 + + col1 FROM tab2
----
106
64
78

query I rowsort
SELECT col1 - 80 FROM tab1
----
-54
-67
-70

query I rowsort
SELECT + col2 * - 31 + col1 FROM tab1
----
-1648
-1757
-2963

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

query I rowsort
SELECT DISTINCT ( - 22 ) - + col1 * col1 FROM tab2 cor0
----
-311
-3503
-983

query I rowsort
SELECT ( cor0.col1 ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 - col2 * col0 col2 FROM tab0 AS cor0
----
-6
-7269
-763

query I rowsort
SELECT ALL + col1 * + 17 AS col2 FROM tab0
----
1462
1547
1649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 * col1 * - 81 + - col2 * col1 FROM tab2 cor0
----
22763
280427
77004

query I rowsort
SELECT DISTINCT - cor0.col2 - + col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - - col0 * - col1 * col1 - col1 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + + col1 + col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + col1 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col2 * - col0 col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - + ( col1 ) * - 92 + - col1 * + col1 FROM tab2 AS cor0
----
1275
1891
1947

query I rowsort
SELECT ALL + 91 * - col0 * - 79 FROM tab0 AS cor0
----
172536
251615
639821

query I rowsort
SELECT DISTINCT + - 38 * col2 AS col1 FROM tab0 cor0
----
-1254
-3116
-38

query I rowsort
SELECT - + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + + 0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT + 39 + col0 DIV col0 FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-354
SELECT + 39 + col0 / col0 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - - col1 * - cor0.col2 + - col2 - - col2 * 16 FROM tab2 cor0
----
-1144
-432
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 8 + col1 + col2 * - col2 col0 FROM tab2 AS cor0
----
-1731
-825
-914

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL + col0 + - 0 DIV - col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + col0 + - 0 / - col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT 5 FROM tab2, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL - + col2 * + 62 + 4 FROM tab2 AS cor0
----
-1608
-1670
-2352

query I rowsort
SELECT + + col0 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col1 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( + 77 ) col0 FROM tab1 AS cor0
----
-51
-64
-67

query I rowsort
SELECT DISTINCT - col2 + 47 FROM tab2 AS cor0
----
20
21
9

query I rowsort
SELECT ALL + - col0 * + col1 * - col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + - cor0.col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - + col2 * 58 + + col2 AS col0 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT col0 + - 73 + - col1 FROM tab0 AS cor0
----
-135
-135
-75

query I rowsort
SELECT ALL col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col1 * ( cor0.col1 ) * - col1 + ( 70 ) * + col0 + - 27 FROM tab1 AS cor0
----
-17393
3376
3453

query I rowsort
SELECT - + col1 + - 89 * cor0.col2 + cor0.col0 AS col0 FROM tab2 cor0
----
-2295
-2427
-3320

onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT - col0 * + 86 + + col1 DIV - col0 - 40 FROM tab2 AS cor0
----
-646
-6748
-6834

skipif mysql # not compatible
query I rowsort label-371
SELECT - col0 * + 86 + + col1 / - col0 - 40 FROM tab2 AS cor0
----
-646
-6748
-6834

query I rowsort
SELECT DISTINCT col1 * + col1 - + col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + cor0.col1 * + 69 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT - - cor0.col2 * 44 FROM tab2 AS cor0
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT + + 94 + 60 DIV - col1 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-375
SELECT + + 94 + 60 / - col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT - 45 * + col1 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL col1 * - 24 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-379
SELECT ALL col1 + + CAST( NULL AS SIGNED ) * - ( - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 + col1 + col0 AS col1 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT DISTINCT tab0.col1 * + col1 + + col2 AS col2 FROM tab0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT ALL - col2 + col0 * CAST( NULL AS SIGNED ) + + tab1.col0 * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 14 * cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 3f33bff665a164171b78a6cd20b0bb3f

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( cor0.col2 AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-385
SELECT - 33 DIV - col1 + - col2 * col1 * col2 + - col2 * - col1 FROM tab0
----
-604422
-90816
0

skipif mysql # not compatible
query I rowsort label-385
SELECT - 33 / - col1 + - col2 * col1 * col2 + - col2 * - col1 FROM tab0
----
-604422
-90816
0

query I rowsort
SELECT ALL col0 * + 4 AS col0 FROM tab1 AS cor0
----
12
256
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + 19 col2 FROM tab2 AS cor0
----
-12
-40
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + ( col1 ) * + 51 + + col0 col0 FROM tab0 AS cor0
----
-1994
3321
4981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-391
SELECT ALL + - col0 + ( + cor0.col0 ) * col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-119730
-51113
-5866

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL + - col0 + ( + cor0.col0 ) * col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT + col0 * - ( - 54 ) AS col2 FROM tab1 AS cor0
----
162
3456
4320

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT ALL ( ( col0 ) ) DIV + 75 + col2 FROM tab1
----
54
57
97

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL ( ( col0 ) ) / + 75 + col2 FROM tab1
----
54
57
97

query I rowsort
SELECT ALL - 27 + col2 AS col1 FROM tab2 cor0
----
-1
0
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-396
SELECT ALL + CAST( 71 AS SIGNED ) FROM tab0 AS cor0
----
71
71
71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + 64 * col2 col2 FROM tab2 AS cor0
----
1735
1742
2511

query I rowsort
SELECT ALL + - col1 * col2 + col0 * + cor0.col0 * col1 FROM tab0 AS cor0
----
118728
46698
713349

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-400
SELECT - + col0 + + col1 * + CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-400
SELECT - + col0 + + col1 * + CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + col2 + col0 * col1 + - col1 FROM tab1 cor0
----
106
1123
687

query I rowsort
SELECT DISTINCT ( col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-403
SELECT - + col1 * col1 + CAST( - col1 + + col2 * - col2 AS SIGNED ) FROM tab1 AS cor0
----
-3359
-3618
-9398

skipif mysql # not compatible
query I rowsort label-403
SELECT - + col1 * col1 + CAST ( - col1 + + col2 * - col2 AS INTEGER ) FROM tab1 AS cor0
----
-3359
-3618
-9398

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - cor0.col0 * col0 - + cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + - col1 - - cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col0 * - col1 + - 63 + + col0 FROM tab0 AS cor0
----
-2103
-3423
-8073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + col2 col2 FROM tab0
----
-1485
-3690
-45

query I rowsort
SELECT ALL + - 78 * + col1 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT DISTINCT + col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT + + ( + col1 ) * + col0 * - cor0.col1 + + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - cor0.col1 * col0 - - 28 AS col2 FROM tab2 AS cor0
----
-1315
-189
-4574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * + 67 col1 FROM tab0 cor0
----
102
2235
5583

query I rowsort
SELECT + + col1 + - cor0.col0 * - col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - 45 + col1 FROM tab2
----
-14
-28
14

query I rowsort
SELECT 79 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-417
SELECT ALL CAST( + 28 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1064
728
756

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL CAST ( + 28 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT + cor0.col1 * tab0.col2 * ( + 56 ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 16c946fcb04604859cbff4d887e0c474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-419
SELECT - - CAST( col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-419
SELECT - - CAST ( col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ALL - - 34 + col2 DIV - col2 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - - 34 + col2 / - col2 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-421
SELECT CAST( 18 AS SIGNED ) FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-421
SELECT CAST ( 18 AS INTEGER ) FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT - - ( col0 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT col0 * - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-423
SELECT col0 * - cor0.col0 / - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 49 FROM tab0, tab1 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 70 - cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9f1fa28b84e569881d282c0cc1fc55a1

query I rowsort
SELECT - col0 + col1 * - 28 AS col1 FROM tab2 AS cor0
----
-1730
-555
-875

query I rowsort
SELECT DISTINCT - col1 * col1 + - 43 * col2 AS col0 FROM tab2 AS cor0
----
-1923
-2122
-4599

query I rowsort
SELECT + col2 * 28 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT 93 * ( + col0 * - 37 ) FROM tab2 AS cor0
----
-24087
-268398
-271839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-431
SELECT ALL + CAST( NULL AS SIGNED ) * - 6 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 13 * + col0 AS col2 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT ALL - col2 * + ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col2 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col2 - + ( 66 ) * col0 FROM tab1
----
-144
-4167
-5184

query I rowsort
SELECT 92 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - + cor0.col2 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 * col0 + 31 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
147264
42976
6944

query I rowsort
SELECT - + 51 * + col1 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT ALL + + cor0.col1 + + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + cor0.col0 + - col2 * 61 AS col1 FROM tab0 AS cor0
----
-1989
-26
-4913

query I rowsort
SELECT - col2 * + col1 + ( - col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL + 83 * col0 FROM tab0
----
1992
2905
7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT + col2 + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 * - col0 * cor0.col1 - ( - col1 + ( - 9 ) ) FROM tab1 AS cor0
----
-199
-40941
-83178

onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT - col2 DIV + col1 + col1 * col2 FROM tab2
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - col2 / + col1 + col1 * col2 FROM tab2
----
1534
644
837

query I rowsort
SELECT ALL col0 * - col2 - ( 26 + - col2 ) AS col1 FROM tab0
----
-60
-7242
-785

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-448
SELECT col2 + tab2.col2 - - CAST( - 12 AS SIGNED ) * col1 FROM tab2
----
-128
-318
-656

skipif mysql # not compatible
query I rowsort label-448
SELECT col2 + tab2.col2 - - CAST ( - 12 AS INTEGER ) * col1 FROM tab2
----
-128
-318
-656

query I rowsort
SELECT + col2 + col2 * - 16 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL - col1 + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 57 col0 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT - ( col2 ) + + 3 + 38 FROM tab0
----
-41
40
8

query I rowsort
SELECT + tab0.col1 + - col2 * tab0.col0 * 44 AS col1 FROM tab0
----
-1443
-321021
-34762

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab1, tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col2 * col0 * - ( col2 ) AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 + 70 FROM tab2 AS cor0
----
32
43
44

query I rowsort
SELECT ALL col0 + col1 - col1 * col1 FROM tab0 AS cor0
----
-7286
-8101
-9277

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) * + col1 + col0 col2 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT ALL + col1 * col1 + + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - cor0.col0 + - 48 FROM tab0 AS cor0
----
-137
-72
-83

query I rowsort
SELECT ALL col2 + col1 * + col0 + col0 FROM tab0 AS cor0
----
2121
3431
8270

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT ALL - col2 DIV - 98 + + col1 * - col2 col0 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - col2 / - 98 + + col1 * - col2 col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * + 68 AS col2 FROM tab1 cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT DISTINCT + cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + - col2 + col2 * 65 FROM tab0 AS cor0
----
2112
5248
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT - col0 * 70 DIV - 41 + - col1 + + col1 FROM tab0 AS cor0
----
151
40
59

skipif mysql # not compatible
query I rowsort label-468
SELECT - col0 * 70 / - 41 + - col1 + + col1 FROM tab0 AS cor0
----
151
40
59

query I rowsort
SELECT col2 * + col0 + col0 * - col1 AS col1 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT - - 30 AS col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT - 67 + col1 AS col0 FROM tab0 AS cor0
----
19
24
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 57 * + col0 col2 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT + 96 * + col0 AS col2 FROM tab1 cor0
----
288
6144
7680

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

query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
22869
271544
6754

onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT DISTINCT 46 DIV + cor0.col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT 46 / + cor0.col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + + col1 * + col1 + + 87 AS col0 FROM tab1 AS cor0
----
187
256
763

query I rowsort
SELECT 15 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT + - col1 + col0 + + col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + 27 FROM tab2, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL - - 76 AS col1 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 * 50 AS col2 FROM tab2 cor0
----
101459
150117
9481

query I rowsort
SELECT ALL 7 + col0 FROM tab0 AS cor0
----
31
42
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT - + 63 DIV - 9 FROM tab1 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-484
SELECT - + 63 / - 9 FROM tab1 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + 13 + + 24 AS col0 FROM tab2 AS cor0
----
37

query I rowsort
SELECT ALL + col0 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 17 * + 12 FROM tab1 AS cor0
----
204
204
204

query I rowsort
SELECT 95 + cor0.col2 AS col0 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT ALL col1 + - 31 * col2 AS col1 FROM tab2 AS cor0
----
-1161
-747
-806

query I rowsort
SELECT ALL - + col1 + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL col0 - ( + col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + tab1.col1 - tab1.col1 * + col1 FROM tab1
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-493
SELECT - col1 + CAST( NULL AS DECIMAL ) + col0 * + tab0.col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - ( + 94 ) * + col2 - 28 * col2 AS col0 FROM tab1 AS cor0
----
-11712
-6588
-6954

onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT + - CAST( col1 AS SIGNED ) DIV col1 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-495
SELECT + - CAST ( col1 AS INTEGER ) / col1 + col1 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-496
SELECT ALL CAST( NULL AS SIGNED ) + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-497
SELECT ALL - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col2 + 61 FROM tab1 AS cor0
----
-35
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 90 col1 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - cor0.col0 * 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b539fa0de41546446ac562bdb239e646

query I rowsort
SELECT + col1 * tab1.col0 + + col1 + + col1 FROM tab1
----
1066
130
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT col1 * + tab2.col2 + + 98 DIV col0 col2 FROM tab2
----
1535
647
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-503
SELECT col1 * + tab2.col2 + + 98 / col0 col2 FROM tab2
----
1535
647
851

query I rowsort
SELECT 35 + + 57 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + tab1.col1 + + col2 + - col2 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-506
SELECT col0 + CAST( col0 AS SIGNED ) * + col2 col1 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-506
SELECT col0 + CAST ( col0 AS INTEGER ) * + col2 col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT tab2.col0 + 22 + + col0 * col0 FROM tab2
----
6184
6342
78

query I rowsort
SELECT DISTINCT tab0.col0 + + 90 FROM tab0
----
114
125
179

query I rowsort
SELECT DISTINCT col1 * col2 * + col2 + col0 FROM tab0
----
132
611973
93678

query I rowsort
SELECT ALL + cor0.col0 + + ( 66 ) AS col0 FROM tab0 AS cor0
----
101
155
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-511
SELECT - cor0.col1 + ( - col0 ) * + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 37 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-513
SELECT ALL CAST( - 57 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL CAST ( - 57 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 33 ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # use DIV operator for integer division
query I rowsort label-515
SELECT DISTINCT cor0.col2 + - col2 DIV col1 + col1 FROM tab2 cor0
----
53
58
85

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT cor0.col2 + - col2 / col1 + col1 FROM tab2 cor0
----
53
58
85

query I rowsort
SELECT 92 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843

query I rowsort
SELECT - - 32 + ( + col2 + 88 ) FROM tab2 AS cor0
----
146
147
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-518
SELECT - CAST( NULL AS SIGNED ) + + 29 * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 91 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-520
SELECT CAST( NULL AS SIGNED ) + col2 * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 * tab1.col1 AS col0 FROM tab1
----
-100
-169
-676

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

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - cor0.col2 * col2 + ( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - 95 * - col0 AS col2 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT + + cor0.col2 + + ( ( + col2 ) ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - col1 + + col1 * col1 * - cor0.col0 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT ALL + 35 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT - + col1 * ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT - + col0 DIV - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-530
SELECT - + col0 / - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - col2 ) + - 27 FROM tab2
----
-53
-54
-65

query I rowsort
SELECT + + col0 * + col2 * ( - ( col1 ) ) + + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col1 col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + cor0.col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( - 13 AS REAL ) + tab1.col1 / - tab1.col0 col2 FROM tab1
----
130
169
330

query I rowsort
SELECT + col2 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 69 col2 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT ALL - col2 + cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT ALL + cor0.col2 * col1 - - col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + - ( + col0 ) * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
78

query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - ( - col1 ) - col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * col0 col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT - ( col0 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + 9 * 82 + col0 FROM tab2 AS cor0
----
-659
-660
-731

query I rowsort
SELECT ALL + + col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 * col2 - + col2 * - ( col2 ) * + ( col1 ) AS col2 FROM tab0 AS cor0
----
194
619346
96492

query I rowsort
SELECT cor0.col1 * - cor0.col2 + 15 FROM tab2 AS cor0
----
-1519
-631
-822

query I rowsort
SELECT + ( + col1 ) + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT DISTINCT col2 * col2 + + 63 + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2981
3317
9286

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT col2 * col2 + + 63 + col2 / + col1 AS col0 FROM tab1 AS cor0
----
2981
3317
9286

query I rowsort
SELECT DISTINCT + + 96 FROM tab0 cor0
----
96

query I rowsort
SELECT DISTINCT 39 * + col2 + - 1 * - col2 - + col1 FROM tab1 AS cor0
----
2134
2270
3827

query I rowsort
SELECT ALL + col0 + + col1 * + 4 + - col0 AS col2 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT - - 78 - col0 AS col0 FROM tab1 AS cor0
----
-2
14
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col2 * tab1.col0 col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - ( col2 ) * tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 28 * - col1 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT ALL + ( col2 ) * - 57 AS col0 FROM tab1 cor0
----
-3078
-3249
-5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT DISTINCT + + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT + + col2 / + cor0.col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + 94 * + col1 AS col0 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT DISTINCT 8 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1256
1412
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT ( col2 ) DIV + col2 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
86
91
97

query I rowsort
SELECT ALL tab1.col1 - tab1.col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - col2 + col2 * + 36 AS col1 FROM tab2
----
1809
2014
2470

query I rowsort
SELECT DISTINCT - 67 - + col2 FROM tab0
----
-100
-149
-68

query I rowsort
SELECT ALL + 7 + - col2 - col0 AS col2 FROM tab0
----
-164
-29
-50

query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ( col2 ) * + ( tab0.col1 ) + - col0 * 9 + - tab0.col0 * col2 FROM tab0
----
-253
-637
1830

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT - ( + col1 ) DIV 31 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-572
SELECT - ( + col1 ) / 31 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - ( + 80 ) * col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL - col1 * + 29 AS col2 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT - - col1 * cor0.col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - 76 + cor0.col0 * col2 FROM tab2 AS cor0
----
113
1952
2926

query I rowsort
SELECT ALL + + 58 * col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
1511
644
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT + col2 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-578
SELECT + col2 + col1 / col1 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 25 col0 FROM tab0 AS cor0
----
-107
-26
-58

query I rowsort
SELECT ALL ( + col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 59 + + col2 * - col0 * + 45 FROM tab1 AS cor0
----
-164101
-345541
-7231

query I rowsort
SELECT DISTINCT + 70 + - col0 FROM tab0 AS cor0
----
-19
35
46

query I rowsort
SELECT - 80 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT DISTINCT - col0 + + col1 + col2 * + tab1.col0 FROM tab1
----
185
3594
7613

onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT ALL + col1 * - ( - col0 ) DIV - col0 + - col0 * 35 AS col1 FROM tab2
----
-276
-2782
-2789

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + col1 * - ( - col0 ) / - col0 + - col0 * 35 AS col1 FROM tab2
----
-276
-2782
-2789

query I rowsort
SELECT 29 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-587
SELECT ALL col2 * CAST( NULL AS SIGNED ) * + col0 + - col0 + + 85 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT DISTINCT + col2 * - 40 + 25 DIV + col1 AS col0 FROM tab0
----
-1320
-3280
-40

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + col2 * - 40 + 25 / + col1 AS col0 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT col2 + + 88 FROM tab2
----
114
115
126

query I rowsort
SELECT + col2 - 38 FROM tab1
----
16
19
58

query I rowsort
SELECT DISTINCT + col2 * 25 FROM tab0
----
2050
25
825

query I rowsort
SELECT col2 * - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + 60 * col1 AS col1 FROM tab1 cor0
----
1560
600
780

query I rowsort
SELECT ALL 73 + - 78 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT 34 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

query I rowsort
SELECT tab0.col1 + + 10 FROM tab0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL + col0 DIV - 1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + col0 / - 1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col1 * - 97 * - ( - col2 ) AS col0 FROM tab1 cor0
----
-121056
-136188
-55290

query I rowsort
SELECT DISTINCT - - col0 * - col0 + + cor0.col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + col1 + + 21 * ( col0 ) FROM tab1 AS cor0
----
1354
1693
89

query I rowsort
SELECT + + col0 + 18 * - 94 AS col0 FROM tab0 AS cor0
----
-1603
-1657
-1668

query I rowsort
SELECT + 68 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - col2 * 2 + - col1 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab1 cor0
----
100
116
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 * - ( col1 ) col2 FROM tab1 cor0
----
-350
-455
-910

query I rowsort
SELECT + - 86 - + col0 FROM tab2 AS cor0
----
-164
-165
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT ALL - + 58 DIV col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - + 58 / col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col2 col2 FROM tab1 AS cor0
----
12
15
54

query I rowsort
SELECT cor0.col0 * col2 - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col0 * - 84 + col0 * col1 FROM tab0 AS cor0
----
15575
4080
6335

query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ( 91 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT 91 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
91

query I rowsort
SELECT - col0 * col0 - - col1 * 51 FROM tab1 AS cor0
----
-3586
-5737
1317

query I rowsort
SELECT 11 * + col1 + + col2 * 53 AS col1 FROM tab0 AS cor0
----
1120
2695
5347

query I rowsort
SELECT DISTINCT - ( col2 ) * - 59 * 63 FROM tab0 AS cor0
----
122661
304794
3717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * col1 col0 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT + + ( col1 ) * - col2 + + 36 AS col0 FROM tab0 AS cor0
----
-2802
-61
-7426

query I rowsort
SELECT ( + col0 ) * tab2.col0 + - col1 FROM tab2
----
18
6025
6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-622
SELECT + 92 * - col0 + - CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - + col0 + col2 * - ( + col2 ) FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT - col0 + 0 * + 33 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col1 + cor0.col1 AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + 7 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to d173222899c2eacb69f7b1d1084a1230

query I rowsort
SELECT ALL 38 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 9124b06d33995d82062026964cce3a38

query I rowsort
SELECT + + col2 * ( ( cor0.col1 ) ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + 79 AS col2 FROM tab0, tab1 AS cor0
----
-79

query I rowsort
SELECT - + cor0.col2 * + col1 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + 96 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT 91 * - col1 AS col2 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT ALL - ( + 55 ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT ALL + col2 + col1 * ( col1 * cor0.col1 ) + col1 FROM tab0 AS cor0
----
636175
753744
912771

query I rowsort
SELECT - 20 * - col0 * 18 FROM tab1
----
1080
23040
28800

query I rowsort
SELECT + 47 + col1 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT col2 * col0 + - 52 FROM tab0 AS cor0
----
-17
7246
740

query I rowsort
SELECT + + ( - cor0.col0 ) - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9f92aed8a5efc07928b43adad961ed71

query I rowsort
SELECT - 43 - 67 AS col1 FROM tab1 AS cor0
----
-110
-110
-110

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT ALL - col2 * col1 * cor0.col0 + col0 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - col2 * col1 * cor0.col0 + col0 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT + col1 + 90 AS col0 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT - col1 DIV - 15 + col0 * ( + col1 ) * col2 FROM tab1 AS cor0
----
36480
4213
99840

skipif mysql # not compatible
query I rowsort label-644
SELECT - col1 / - 15 + col0 * ( + col1 ) * col2 FROM tab1 AS cor0
----
36480
4213
99840

query I rowsort
SELECT col1 * col0 - - col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL 34 * - 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 6cc6daeb55bad5f383c1d8991c6717f5

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 16 AS REAL ) + - col1 AS col2 FROM tab1
----
-10
3
6

query I rowsort
SELECT ALL - 0 + col2 + - col1 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT 52 DIV + 50 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-649
SELECT 52 / + 50 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + ( 13 ) * - col2 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

query I rowsort
SELECT ( ( - col2 ) ) + + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-655
SELECT DISTINCT cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - + tab1.col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col0 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * col0 - col2 * + ( col1 ) col1 FROM tab1 AS cor0
----
-1359
-4609
-7552

query I rowsort
SELECT ALL + col2 * col1 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col1 * - tab0.col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col0 * - 36 AS col1 FROM tab0 AS cor0
----
1260
3204
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-663
SELECT DISTINCT + cor0.col0 * - col2 * + col2 + col1 DIV + col0 AS col2 FROM tab2 cor0
----
-114076
-5099
-52728

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + cor0.col0 * - col2 * + col2 + col1 / + col0 AS col2 FROM tab2 cor0
----
-114076
-5099
-52728

query I rowsort
SELECT DISTINCT - + col2 + 66 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
443702
65
71841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT DISTINCT - + col1 + CAST( + 80 AS SIGNED ) FROM tab0 AS cor0
----
-11
-17
-6

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - + col1 + CAST ( + 80 AS INTEGER ) FROM tab0 AS cor0
----
-11
-17
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT + - cor0.col1 DIV ( col0 ) FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-666
SELECT + - cor0.col1 / ( col0 ) FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - col2 * 38 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT - - 81 AS col1 FROM tab2 AS cor0
----
81
81
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 * ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 * col0 col2 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT - + 89 + ( col1 ) * - col2 FROM tab1 AS cor0
----
-1337
-1493
-659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-674
SELECT - CAST( + col2 AS SIGNED ) * col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-674
SELECT - CAST ( + col2 AS INTEGER ) * col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL 26 + col2 * col2 FROM tab0 AS cor0
----
1115
27
6750

onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT DISTINCT - 39 DIV 75 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - 39 / 75 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-677
SELECT DISTINCT ( + col1 ) * cor0.col2 * + CAST( cor0.col1 AS SIGNED ) + + cor0.col0 * 71 col2 FROM tab2 AS cor0
----
16591
26444
96044

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT ( + col1 ) * cor0.col2 * + CAST ( cor0.col1 AS INTEGER ) + + cor0.col0 * 71 col2 FROM tab2 AS cor0
----
16591
26444
96044

query I rowsort
SELECT ALL + col1 - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-679
SELECT - + CAST( + col0 AS SIGNED ) + + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-679
SELECT - + CAST ( + col0 AS INTEGER ) + + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT col1 + + cor0.col0 * col2 * col0 AS col1 FROM tab2 cor0
----
1354
158243
237175

skipif mysql # not compatible
query I rowsort
SELECT - 90 + + cor0.col0 + CAST ( col0 * col2 AS REAL ) AS col2 FROM tab2 cor0
----
106
2016
2991

query I rowsort
SELECT DISTINCT + col1 + - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * - col1 col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT DISTINCT + 8 * + col2 AS col1 FROM tab0 cor0
----
264
656
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT cor0.col2 DIV col0 + - col2 col1 FROM tab1 AS cor0
----
-36
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-687
SELECT cor0.col2 / col0 + - col2 col1 FROM tab1 AS cor0
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT DISTINCT + col1 + - col2 DIV col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + col1 + - col2 / col1 FROM tab0 cor0
----
86
91
97

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

query I rowsort
SELECT ALL col1 * + col1 + - col1 * tab2.col0 AS col2 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT ALL - - col1 * ( col2 ) * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab1 cor0 WHERE NULL IN ( + cor0.col0 )
----

query I rowsort
SELECT DISTINCT + 30 * ( cor0.col1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1770
510
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-694
SELECT + - CAST( + 76 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif mysql # not compatible
query I rowsort label-694
SELECT + - CAST ( + 76 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT + col1 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 86 FROM tab2, tab1, tab1 AS cor0
----
-86

query I rowsort
SELECT + 57 + + col1 * col2 FROM tab1
----
1305
1461
627

query I rowsort
SELECT 98 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT 10 + col0 FROM tab1
----
13
74
90

query I rowsort
SELECT ALL 75 + - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b4a48814469ec2d958c5abafef1b36a

query I rowsort
SELECT + ( + col0 * + tab0.col2 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col2 * + 38 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
2052
2166
3648

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + - 75 FROM tab0 AS cor0
----
-75
-75
-75

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

query I rowsort
SELECT ALL - - tab0.col0 - - cor0.col1 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to dbf53c8d395fe624f70bcff710ecddf8

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

query I rowsort
SELECT ALL - col1 + col0 * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 + + col1 col2 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT ALL + + 46 * col2 * col0 AS col2 FROM tab1 AS cor0
----
167808
353280
7452

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-711
SELECT DISTINCT - col0 * + col1 + - CAST( 38 * + col0 AS SIGNED ) + - 38 FROM tab1 AS cor0
----
-230
-3110
-4118

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT - col0 * + col1 + - CAST ( 38 * + col0 AS INTEGER ) + - 38 FROM tab1 AS cor0
----
-230
-3110
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + - col0 col0 FROM tab1 AS cor0
----
-19
-35
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT - + col2 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 81 + col0 AS col1 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT + - 34 * + col2 AS col0 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT - col2 + - col0 * + ( col1 ) FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT col0 + col1 * col1 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT + col1 + + 96 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT + col2 + - ( - col2 ) FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 * + col2 col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL cor0.col2 + - ( - cor0.col0 ) FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL + col0 - 10 FROM tab0 AS cor0
----
14
25
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-724
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT DISTINCT col0 * - CAST( col2 AS SIGNED ) + - col0 DIV - col0 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT col0 * - CAST ( col2 AS INTEGER ) + - col0 / - col0 FROM tab1 AS cor0
----
-161
-3647
-7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT DISTINCT - col1 + + col1 DIV + col2 FROM tab0 AS cor0
----
-84
-90
0

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

query I rowsort
SELECT DISTINCT col1 * 79 FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT - + cor0.col1 + + ( 29 ) FROM tab0 AS cor0
----
-57
-62
-68

query I rowsort
SELECT ALL cor0.col0 * + 39 + col0 AS col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT + col1 * - col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-732
SELECT ALL - 64 * col0 - + col2 DIV col1 col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - 64 * col0 - + col2 / col1 col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT DISTINCT col0 * - 53 FROM tab0 cor0
----
-1272
-1855
-4717

query I rowsort
SELECT ALL + 99 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + 34 + - col1 AS col1 FROM tab1 AS cor0
----
21
24
8

query I rowsort
SELECT ALL 6 - - col0 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT cor0.col1 + - ( col2 ) * 88 FROM tab0 cor0
----
-2818
-7125
9

query I rowsort
SELECT DISTINCT - + 41 + + col2 AS col1 FROM tab1 AS cor0
----
13
16
55

query I rowsort
SELECT + cor0.col0 * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT + col1 + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + ( 0 ) * + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 69 + + 42 FROM tab2 cor0
----
111
111
111

query I rowsort
SELECT col2 * - col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - 62 + + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1310
-1466
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 3 col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT - 65 AS col0 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ( + 60 ) * + col1 + - ( + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
5127
5378
5819

query I rowsort
SELECT ( + col2 ) + col2 * - col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT - + col2 - col0 DIV col0 col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-750
SELECT - + col2 - col0 / col0 col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT - col1 * + cor0.col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-598
540
871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-752
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-753
SELECT ALL col2 DIV 44 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL col2 / 44 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL + + col1 * ( + 34 ) + + col0 * + 92 AS col1 FROM tab2 cor0
----
1698
7846
9182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + + col0 + + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - ( + col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT col1 DIV col2 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-758
SELECT col1 / col2 + col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT + - cor0.col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-759
SELECT + - cor0.col0 / - col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - 11 * - col0 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT ALL - 43 DIV col0 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 43 / col0 AS col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - - col2 * - col0 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT + + col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

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

query I rowsort
SELECT ALL + + cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 92 * col0 AS col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT ALL - cor0.col2 + ( 94 ) FROM tab1 AS cor0
----
-2
37
40

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1, tab2 AS cor0
----
30

query I rowsort
SELECT ( 83 ) * + cor0.col1 * col2 + - col0 + - col2 AS col2 FROM tab2 cor0
----
127218
53501
69437

query I rowsort
SELECT cor0.col2 * ( col0 ) + 47 + + col0 FROM tab0 AS cor0
----
117
7434
863

query I rowsort
SELECT DISTINCT - tab1.col0 * 20 FROM tab1
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL - 92 DIV 11 FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
81 values hashing to 7dc47101491db34faf0db8325a6ac276

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL - 92 / 11 FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
81 values hashing to 7dc47101491db34faf0db8325a6ac276

query I rowsort
SELECT 48 * cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 68bf736db401955d581879cb0f61411b

query I rowsort
SELECT - 55 * - col2 - col0 * - 17 AS col0 FROM tab2
----
1604
2756
3433

query I rowsort
SELECT - ( + 8 ) + - col0 FROM tab1
----
-11
-72
-88

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

query I rowsort
SELECT + 73 + + tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7711fb83d20481dc43a7f200662bf23a

query I rowsort
SELECT DISTINCT + ( - col1 * + col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + ( 97 ) * - col2 + ( - 44 ) FROM tab1
----
-5282
-5573
-9356

query I rowsort
SELECT + col2 + - 62 FROM tab2 AS cor0
----
-24
-35
-36

query I rowsort
SELECT ALL 25 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT ALL - col1 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - col1 / 99 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + col2 + col0 * 26 AS col2 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL 57 * col0 AS col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL 2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-786
SELECT ALL + + 11 * - cor0.col1 + + CAST( + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-283
-46
-63

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + + 11 * - cor0.col1 + + CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-283
-46
-63

query I rowsort
SELECT col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 16 * - col0 FROM tab2
----
-112
-1248
-1264

query I rowsort
SELECT - 4 * - col1 * cor0.col2 + col0 FROM tab2 AS cor0
----
2663
3355
6214

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT + - cor0.col0 + col1 DIV + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-791
SELECT + - cor0.col0 + col1 / + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT + 67 * 85 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
5695

query I rowsort
SELECT col2 * - col0 + tab1.col1 AS col0 FROM tab1
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-794
SELECT DISTINCT col1 + CAST( 16 AS SIGNED ) col2 FROM tab0
----
102
107
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT col1 + CAST ( 16 AS INTEGER ) col2 FROM tab0
----
102
107
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * tab1.col1 col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT col1 + - col1 DIV col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-796
SELECT col1 + - col1 / col0 FROM tab1
----
10
13
18

query I rowsort
SELECT ALL - col2 + ( col1 ) * cor0.col2 * + col2 + col2 * + col0 * col2 FROM tab1 AS cor0
----
240369
84510
856992

query I rowsort
SELECT + - col2 * col2 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
119728
32426
75813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-799
SELECT ALL + col2 * + CAST( - 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1674
-1767
-2976

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + col2 * + CAST ( - 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT ALL + col0 * + 44 AS col1 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL - col2 * - 1 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 77 + + 13 + col0 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT ALL + 24 * + col2 + + col1 FROM tab2 AS cor0
----
679
683
929

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT 13 + col2 * col0 DIV - 51 col1 FROM tab1 cor0
----
-137
-58
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-804
SELECT 13 + col2 * col0 / - 51 col1 FROM tab1 cor0
----
-137
-58
10

query I rowsort
SELECT + - ( col2 ) * - col0 + + col2 * + 21 AS col2 FROM tab1 AS cor0
----
1296
4845
9696

query I rowsort
SELECT DISTINCT 99 * col0 + + cor0.col0 FROM tab2 AS cor0
----
700
7800
7900

query I rowsort
SELECT ALL 15 + - col1 * - col0 * + col2 FROM tab2 AS cor0
----
119667
51049
5874

query I rowsort
SELECT ALL + col0 + col0 + col0 AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL + ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT 22 * col2 * + col0 + + cor0.col2 DIV cor0.col0 FROM tab2 cor0
----
4161
44616
66044

skipif mysql # not compatible
query I rowsort label-810
SELECT 22 * col2 * + col0 + + cor0.col2 / cor0.col0 FROM tab2 cor0
----
4161
44616
66044

query I rowsort
SELECT ALL - + 62 + + col1 FROM tab1 AS cor0
----
-36
-49
-52

query I rowsort
SELECT DISTINCT - - col1 + + 24 FROM tab1 AS cor0
----
34
37
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT - 3 + - 30 DIV col0 FROM tab1 AS cor0
----
-13
-3
-3

skipif mysql # not compatible
query I rowsort label-813
SELECT - 3 + - 30 / col0 FROM tab1 AS cor0
----
-13
-3
-3

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col2 - col2 * col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 68 * 97 * - col0 FROM tab2 cor0
----
46172
514488
521084

query I rowsort
SELECT ALL - - col2 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 * + cor0.col1 + + 58 FROM tab0 AS cor0
----
7454
8339
9467

query I rowsort
SELECT - + col0 * - col0 + - 85 FROM tab2 AS cor0
----
-36
5999
6156

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + col1 * + ( + 15 ) FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT col2 * - ( - col2 ) * col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT col2 * + 37 FROM tab2
----
1406
962
999

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT ALL + cor0.col2 + col0 DIV + col2 + col0 * - col1 col2 FROM tab0 cor0
----
-2031
-3359
-8016

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + cor0.col2 + col0 / + col2 + col0 * - col1 col2 FROM tab0 cor0
----
-2031
-3359
-8016

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT col1 * - col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + 83 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

query I rowsort
SELECT DISTINCT col2 * ( 96 ) AS col0 FROM tab2
----
2496
2592
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT - ( - col0 + + col2 ) DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-829
SELECT - ( - col0 + + col2 ) / - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 75 + + col2 * - col2 FROM tab0 AS cor0
----
-1164
-6799
-76

query I rowsort
SELECT - col0 * cor0.col1 + col0 * cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT col2 DIV col0 col0 FROM tab0 AS cor0
----
0
0
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT - + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 AS col0 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-835
SELECT DISTINCT CAST( NULL AS SIGNED ) + 9 AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT - 90 + 87 FROM tab1
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT ( col2 ) * col0 DIV col1 + - col1 * - col0 * ( + 25 ) AS col2 FROM tab2
----
115084
33751
5431

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT ( col2 ) * col0 / col1 + - col1 * - col0 * ( + 25 ) AS col2 FROM tab2
----
115084
33751
5431

query I rowsort
SELECT - col0 * - cor0.col1 * - col2 + - ( col1 ) FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT ( col0 ) + col1 * col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT + col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT - ( - col2 ) DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-841
SELECT - ( - col2 ) / col2 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT - - col2 * col2 + + col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col2 + + col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT 12 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT + ( col2 ) * 6 AS col2 FROM tab1
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT - col0 + col2 - - CAST( col0 AS SIGNED ) DIV col0 col0 FROM tab2
----
-40
-51
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-847
SELECT - col0 + col2 - - CAST ( col0 AS INTEGER ) / col0 col0 FROM tab2
----
-40
-51
21

query I rowsort
SELECT tab1.col0 * + col2 + + 74 AS col2 FROM tab1
----
236
3722
7754

query I rowsort
SELECT 16 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + - cor0.col1 + 61 + - 58 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT - + col1 * - ( cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-852
SELECT col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * 53 AS col1 FROM tab1 cor0
----
1378
530
689

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col1 * col1 + - col1 AS col0 FROM tab2
----
205398
29767
4975

query I rowsort
SELECT ALL col2 + + col1 * col1 * col0 + 59 * col1 * - col2 FROM tab0
----
10095
296833
323593

query I rowsort
SELECT + col1 * - col1 - - col1 AS col0 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - col1 * - col1 + - 9 FROM tab2 cor0
----
280
3472
952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-858
SELECT ALL + + col0 - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 87 col1 FROM tab2 AS cor0
----
49
60
61

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT col2 / CAST( NULL AS SIGNED ) - col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + ( col1 ) + col0 * - ( 50 ) FROM tab1 AS cor0
----
-124
-3190
-3987

query I rowsort
SELECT ALL cor0.col1 * + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT + 3 * - col2 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT - - ( + 55 ) * + col0 AS col0 FROM tab1 AS cor0
----
165
3520
4400

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

query I rowsort
SELECT col2 + 44 * col2 AS col0 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL 61 * - col2 AS col2 FROM tab1
----
-3294
-3477
-5856

query I rowsort
SELECT ALL - 29 + + col0 AS col0 FROM tab2 cor0
----
-22
49
50

query I rowsort
SELECT DISTINCT + 29 - - col0 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT ALL - col1 * col2 * - col1 + col0 FROM tab1
----
16304
36507
5764

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col2 + + col1 * - col1 > - col2 * col0
----
24
86
33
35
97
1

query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 * tab2.col0 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col2 * + col2 + - col1 + col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 WHERE col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT col1 - - col2 DIV tab2.col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-877
SELECT col1 - - col2 / tab2.col0 FROM tab2
----
17
34
59

query I rowsort
SELECT + col1 * col0 - col2 AS col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col1 * - col2 col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT - col1 + col0 * 42 AS col0 FROM tab1 AS cor0
----
100
2678
3347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col1 col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + 27 + col0 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT DISTINCT + 30 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT col0 * + col2 + - col1 * col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 + tab0.col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col1 + - col1 NOT IN ( col0 / - col1 - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col1 - + col1 * col2 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT - tab1.col0 DIV col0 + col0 * - col0 + + col0 AS col2 FROM tab1
----
-4033
-6321
-7

skipif mysql # not compatible
query I rowsort label-890
SELECT - tab1.col0 / col0 + col0 * - col0 + + col0 AS col2 FROM tab1
----
-4033
-6321
-7

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

query I rowsort
SELECT ALL - - col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + - col0 * col0 AS col0 FROM tab2
----
-22
-6058
-6203

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

query I rowsort
SELECT col2 * - col1 * col0 + col2 - col1 FROM tab0 AS cor0
----
-3491
-664127
-68165

query I rowsort
SELECT - cor0.col2 + col1 - + col0 FROM tab2 cor0
----
-100
-3
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-897
SELECT DISTINCT + col2 * + col0 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + col2 * + col0 / - col0 AS col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT col2 * + col1 + - col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
1242
1404
564

skipif mysql # not compatible
query I rowsort label-898
SELECT col2 * + col1 + - col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
1242
1404
564

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

query I rowsort
SELECT ALL col2 * - col0 * - col0 AS col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + col2 * col1 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0, tab0 AS cor0 WHERE ( NULL ) BETWEEN cor0.col2 AND ( NULL )
----

query I rowsort
SELECT ALL + cor0.col0 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-904
SELECT - col2 * + col0 + - col1 DIV col2 AS col0 FROM tab0
----
-132
-7299
-794

skipif mysql # not compatible
query I rowsort label-904
SELECT - col2 * + col0 + - col1 / col2 AS col0 FROM tab0
----
-132
-7299
-794

query I rowsort
SELECT + col1 * col0 + + col0 * + col1 AS col2 FROM tab1
----
1280
156
2080

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

query I rowsort
SELECT col2 * - col0 + + col1 * col1 * col0 - + col1 AS col2 FROM tab2
----
19812
269431
6507

query I rowsort
SELECT ALL col2 * col2 * col0 AS col2 FROM tab2
----
114076
5103
52728

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

query I rowsort
SELECT ALL col0 * tab0.col0 + col0 + - col1 * col1 FROM tab0
----
-271
-6796
-8149

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col1 / col1 )
----

query I rowsort
SELECT - col2 / col2 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0 * + tab2.col2 + tab2.col2 / col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT ALL CAST( NULL AS SIGNED ) * col0 + - col2 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - ( + 0 ) + + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col1 * + ( + cor0.col2 ) * ( col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

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

query I rowsort
SELECT - + 14 + + 56 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT - ( col0 ) + + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col2 ) * col2 * + ( col2 * + col0 ) + + col2 AS col1 FROM tab2 cor0
----
1370954
137808
4334926

query I rowsort
SELECT DISTINCT + 67 + + 67 * - col0 FROM tab0 AS cor0
----
-1541
-2278
-5896

query I rowsort
SELECT DISTINCT - col1 * + col2 - col0 * + col2 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT + col1 + + 9 AS col1 FROM tab0
----
100
106
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT DISTINCT col1 + - col2 + - tab1.col2 DIV ( col0 ) FROM tab1
----
-46
-47
-84

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT col1 + - col2 + - tab1.col2 / ( col0 ) FROM tab1
----
-46
-47
-84

query I rowsort
SELECT 24 - + col0 FROM tab0
----
-11
-65
0

query I rowsort
SELECT DISTINCT + col1 * 52 + + col2 + - col1 AS col0 FROM tab2
----
1608
3035
905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 44 + - col2 * - col2 * - col2 col0 FROM tab1
----
-157474
-185206
-884788

query I rowsort
SELECT + 19 + - col1 AS col0 FROM tab2 AS cor0
----
-12
-40
2

query I rowsort
SELECT 49 + 37 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + + 40 * + col2 AS col1 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT ALL - 25 * + col2 * + col0 FROM tab2
----
-4725
-50700
-75050

onlyif mysql # use DIV operator for integer division
query I rowsort label-931
SELECT DISTINCT + col2 DIV cor0.col0 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT + col2 / cor0.col0 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-834

query I rowsort
SELECT ALL - ( + col1 + - col0 ) AS col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT DISTINCT col2 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT col2 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + col2 + col1 * 27 AS col2 FROM tab2 cor0
----
1619
497
864

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

query I rowsort
SELECT col2 * - col0 + - 69 AS col2 FROM tab1
----
-231
-3717
-7749

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 16 * + col1 + col0 FROM tab1
----
224
288
419

query I rowsort
SELECT ALL - + col2 + - 52 FROM tab2 AS cor0
----
-78
-79
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + ( + col1 ) ) + - cor0.col2 col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT DISTINCT + - col0 * - col2 * col1 + col1 + CAST( - 25 + - col0 AS SIGNED ) DIV + col0 AS col1 FROM tab2 AS cor0
----
119710
51050
5886

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + - col0 * - col2 * col1 + col1 + CAST ( - 25 + - col0 AS INTEGER ) / + col0 AS col1 FROM tab2 AS cor0
----
119710
51050
5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT ALL - col0 * col1 DIV 14 + col2 - - col1 AS col0 FROM tab1 AS cor0
----
22
35
75

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - col0 * col1 / 14 + col2 - - col1 AS col0 FROM tab1 AS cor0
----
22
35
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 56 col0 FROM tab1 cor0
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT + col0 * - 63 AS col1 FROM tab1 cor0
----
-189
-4032
-5040

query I rowsort
SELECT DISTINCT + col1 * + 4 AS col2 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT ALL col2 + - 50 * col2 AS col1 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT + col0 + + 92 * 76 FROM tab1 AS cor0
----
6995
7056
7072

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT - col0 DIV + 14 - + col0 DIV col0 FROM tab0 AS cor0
----
-2
-3
-7

skipif mysql # not compatible
query I rowsort label-948
SELECT - col0 / + 14 - + col0 / col0 FROM tab0 AS cor0
----
-2
-3
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-949
SELECT DISTINCT - col1 + - ( + ( col0 ) ) DIV - 1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - col1 + - ( + ( col0 ) ) / - 1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col2 + + 77 FROM tab2 cor0
----
103
104
115

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + - col2 * 54 + col0 AS col0 FROM tab2 AS cor0
----
-1326
-1451
-1973

query I rowsort
SELECT ALL + col1 * 88 AS col1 FROM tab0 AS cor0
----
7568
8008
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * col2 col2 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT col1 + 9 FROM tab1 cor0
----
19
22
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-956
SELECT + CAST( - col1 AS SIGNED ) + col1 col0 FROM tab1 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + col0 + + col1 * + col0 * col2 col0 FROM tab0 AS cor0
----
4655
672128
68712

query I rowsort
SELECT + + cor0.col0 + - ( + col0 * col2 ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + - 13 * + col2 + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2409
6396
84

query I rowsort
SELECT + cor0.col1 + - col0 * + col2 FROM tab1 cor0
----
-136
-3638
-7667

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

query I rowsort
SELECT tab1.col2 * + col1 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT 90 * col2 * + col2 + col2 FROM tab1
----
262494
292467
829536

query I rowsort
SELECT ( 57 + + col1 ) AS col0 FROM tab0
----
143
148
154

query I rowsort
SELECT DISTINCT - col0 + - 99 FROM tab0
----
-123
-134
-188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 53 col2 FROM tab1
----
-159
-3392
-4240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-967
SELECT - col1 + - CAST( NULL AS DECIMAL ) / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col2 + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + + col1 * 53 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT DISTINCT + ( col2 * + tab2.col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - + col0 * + col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor2.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT col2 + col1 * + ( + col2 ) + + col2 * - col2 * - col1 AS col2 FROM tab0
----
195
619428
96525

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

query I rowsort
SELECT ALL - + col1 + cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
1501
667
833

query I rowsort
SELECT ALL + + cor0.col1 * col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 FROM tab0
----
26136
35
598436

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 - col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - col2 * col1 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT cor0.col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + col2 - col2 * - col1 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col2 * cor0.col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 + - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + tab0.col1 + col1 * col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + 34 * tab1.col1 + + col1 FROM tab1
----
350
455
910

query I rowsort
SELECT ALL + + col0 + + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - + col0 * ( col1 ) - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-993
SELECT + col0 DIV + ( + ( + cor0.col0 ) ) + 5 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-993
SELECT + col0 / + ( + ( + cor0.col0 ) ) + 5 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT 96 + + col1 * + col0 * col2 + - col0 AS col0 FROM tab0
----
3456
664125
68184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-995
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 * - 49 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
4238
4548
4788

query I rowsort
SELECT DISTINCT + + col1 + + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col0 + + ( + col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col1 * col1 + - col2 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT - col0 + - ( - 72 ) FROM tab1 AS cor0
----
-8
69
8

query I rowsort
SELECT ALL - col2 * ( 79 ) FROM tab0 AS cor0
----
-2607
-6478
-79

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

query I rowsort
SELECT ALL + - col1 * col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1004
SELECT + col1 + + CAST( + 86 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
2295
2353
3285

skipif mysql # not compatible
query I rowsort label-1004
SELECT + col1 + + CAST ( + 86 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
2295
2353
3285

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT col2 * 29 + 94 * col2 DIV 64 FROM tab1 AS cor0
----
1645
1736
2925

skipif mysql # not compatible
query I rowsort label-1005
SELECT col2 * 29 + 94 * col2 / 64 FROM tab1 AS cor0
----
1645
1736
2925

query I rowsort
SELECT ALL cor0.col1 * 93 AS col1 FROM tab1 cor0
----
1209
2418
930

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

query I rowsort
SELECT DISTINCT + col0 * + col0 * cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1009
SELECT col0 + CAST( 82 AS SIGNED ) FROM tab1 AS cor0
----
146
162
85

skipif mysql # not compatible
query I rowsort label-1009
SELECT col0 + CAST ( 82 AS INTEGER ) FROM tab1 AS cor0
----
146
162
85

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 27 AS REAL ) * + col1 - - col2 * 21 * + tab2.col1 AS col1 FROM tab2
----
14025
18414
33807

query I rowsort
SELECT 68 + + col0 AS col1 FROM tab0
----
103
157
92

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

query I rowsort
SELECT ALL - col1 * ( col2 ) + + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT - 44 DIV - col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-1014
SELECT - 44 / - col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT 53 * + col1 * col0 + 80 FROM tab0 cor0
----
109472
180015
429327

onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT - 60 DIV col1 + 19 * - 22 AS col2 FROM tab0
----
-418
-418
-418

skipif mysql # not compatible
query I rowsort label-1016
SELECT - 60 / col1 + 19 * - 22 AS col2 FROM tab0
----
-418
-418
-418

query I rowsort
SELECT DISTINCT + ( + 43 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
43

query I rowsort
SELECT - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - 36 * - col0 * col0 + + 63 * col1 AS col0 FROM tab2 AS cor0
----
222741
225747
3717

query I rowsort
SELECT DISTINCT + ( col1 ) + 72 AS col0 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT DISTINCT 16 * - col0 + cor0.col0 FROM tab1 AS cor0
----
-1200
-45
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1022
SELECT DISTINCT + col0 * - col2 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + col0 * - col2 + - cor0.col2 / col2 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT ALL + 99 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-118
-1244
-4503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1024
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 93 + col1 FROM tab0 AS cor0
----
-2
-7
4

query I rowsort
SELECT DISTINCT + 3 * - col0 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT + + 55 * + col0 AS col1 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT - 49 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - col2 * col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col0 - + ( + col1 ) FROM tab1 cor0
----
-23
54
67

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col2 - - ( - 58 + col0 ) AS col1 FROM tab2 AS cor0
----
-24
46
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - cor0.col0 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col0 * - col1 + ( col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col2 * col0 * 73 + + 62 FROM tab1
----
11888
266366
560702

query I rowsort
SELECT cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT + 90 DIV - col0 AS col2 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-1037
SELECT + 90 / - col0 AS col2 FROM tab2
----
-1
-1
-12

query I rowsort
SELECT + cor0.col0 * 98 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 08e11dc735c91c505b6b2b0240855fda

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1039
SELECT DISTINCT - CAST( 89 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - CAST ( 89 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT + + 3 * col0 * - col0 FROM tab1 AS cor0
----
-12288
-19200
-27

query I rowsort
SELECT DISTINCT - 56 - col1 AS col1 FROM tab0 AS cor0
----
-142
-147
-153

query I rowsort
SELECT + ( col2 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + + 55 + + 80 FROM tab0 AS cor0
----
135
135
135

query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab2, tab2 cor0
----
14

query I rowsort
SELECT + + tab1.col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col2 AS REAL ) AS col1 FROM tab1
----
54
57
96

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

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT - col1 DIV + 67 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - col1 / + 67 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col2 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL + - col0 * cor0.col1 + + col1 + + col1 * ( col2 ) FROM tab2 AS cor0
----
-3009
-680
651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1054
SELECT DISTINCT ( + col1 ) / + col1 - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT - col1 * + ( + col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col1 * - 95 + + col0 AS col2 FROM tab1 AS cor0
----
1014
1315
2473

query I rowsort
SELECT + + col2 + + 98 FROM tab1 AS cor0
----
152
155
194

query I rowsort
SELECT - cor0.col2 * col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT DISTINCT - - col1 - cor0.col2 * 62 AS col0 FROM tab2 AS cor0
----
-1553
-1643
-2339

query I rowsort
SELECT - - col2 + - col1 * 41 AS col1 FROM tab1 AS cor0
----
-1012
-353
-437

query I rowsort
SELECT + 48 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT 51 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL - 90 * 7 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8aeff56c3d816f60fc9ddda19f8df169

query I rowsort
SELECT DISTINCT col1 - cor0.col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 3 + col0 AS col0 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT DISTINCT 49 + col0 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + + col1 * 30 + + col1 * col2 FROM tab0 AS cor0
----
10192
3007
5418

onlyif mysql # use DIV operator for integer division
query I rowsort label-1070
SELECT - col0 + col2 DIV - col0 col1 FROM tab2 AS cor0
----
-10
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1070
SELECT - col0 + col2 / - col0 col1 FROM tab2 AS cor0
----
-10
-78
-79

query I rowsort
SELECT + - col0 + cor0.col0 * + col1 * - col0 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT - 40 AS col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab1, tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - - 59 * cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
243 values hashing to 7c86222cc22531f0e2cba9977724139c

query I rowsort
SELECT + - col0 + 45 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT col2 * col0 + - 81 FROM tab2 AS cor0
----
108
1947
2921

query I rowsort
SELECT DISTINCT - 81 * + cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-243
-5184
-6480

query I rowsort
SELECT col1 + col0 * - 35 FROM tab2 AS cor0
----
-214
-2671
-2748

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1080
SELECT ALL ( col1 ) + col1 DIV + col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL ( col1 ) + col1 / + col0 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT ALL ( + col1 ) DIV col0 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL ( + col1 ) / col0 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT ALL - + 26 + 15 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2075
-3406
-8110

query I rowsort
SELECT ALL + col2 + + 28 AS col0 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT DISTINCT + tab0.col1 * - ( tab0.col1 + - col1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 61 FROM tab1, tab1 cor0, tab1 AS cor1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * cor0.col0 col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - - 34 * - col0 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT - - col1 * + col2 - - cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - 98 * - col1 FROM tab2 AS cor0
----
-1666
-3038
-5782

query I rowsort
SELECT - - 97 + + col2 * col2 FROM tab1 cor0
----
3013
3346
9313

query I rowsort
SELECT + ( + col1 ) * 43 FROM tab2 AS cor0
----
1333
2537
731

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT - ( col2 ) DIV tab0.col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1092
SELECT - ( col2 ) / tab0.col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 11 + 8 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 4 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-4

query I rowsort
SELECT ALL 81 * - col1 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT 40 * + col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-27040
-29160
-57760

query I rowsort
SELECT ALL col2 + - col2 + 74 FROM tab0
----
74
74
74

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - 73 * - col1 + col2 - - ( + cor0.col1 ) FROM tab1 AS cor0
----
1058
1978
797

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + 40 * + col2 AS col1 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT ALL - - col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT 36 + - ( - col1 ) FROM tab1 cor0
----
46
49
62

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col1 * ( - col1 ) FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT ALL 22 * - col2 FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1109
SELECT - - CAST( NULL AS SIGNED ) + + col1 * + col1 / 71 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 + + col0 - - col0 * 90 AS col1 FROM tab1 AS cor0
----
327
5881
7376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1111
SELECT + CAST( 35 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif mysql # not compatible
query I rowsort label-1111
SELECT + CAST ( 35 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT - tab2.col0 DIV - 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-1112
SELECT - tab2.col0 / - 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT ALL - 27 + 73 * col2 * + ( - col0 + + col2 ) AS col1 FROM tab0
----
-2509
-41929
21654

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT - ( + col0 ) DIV col2 AS col1 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1115
SELECT - ( + col0 ) / col2 AS col1 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL 26 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1317
-191
-4576

query I rowsort
SELECT DISTINCT + 25 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-16000
-1950
-26000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + col1 col0 FROM tab0 AS cor0
----
10
15
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - 34 col2 FROM tab0 AS cor0
----
-123
-58
-69

query I rowsort
SELECT + tab0.col1 * + 73 FROM tab0, tab2 AS cor0
----
9 values hashing to 80f1b3b22d8186ddc93cf5245cbd6b38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT + col2 DIV - 37 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT + col2 / - 37 AS col2 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + 64 * - tab2.col1 FROM tab2
----
-1088
-1984
-3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT ALL + col1 DIV + col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + col1 / + col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * - col2 * + col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT + col1 + 56 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT DISTINCT + - cor0.col0 * - 62 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT DISTINCT + + col1 * - 29 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1128
SELECT col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + col2 * + 92 AS col0 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT DISTINCT - col1 + - 54 FROM tab1 AS cor0
----
-64
-67
-80

query I rowsort
SELECT DISTINCT - cor0.col2 + 97 + 43 * col1 FROM tab2 AS cor0
----
1403
2608
790

query I rowsort
SELECT ALL - 39 + + 69 AS col1 FROM tab2 cor0
----
30
30
30

query I rowsort
SELECT + col1 * + ( + cor0.col0 ) + + col2 * + col1 FROM tab2 AS cor0
----
1054
1989
6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * col1 col2 FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT ( 63 ) FROM tab1 AS cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT DISTINCT + + 46 DIV + col2 - + cor0.col0 FROM tab0 cor0
----
-23
-89
11

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT + + 46 / + col2 - + cor0.col0 FROM tab0 cor0
----
-23
-89
11

query I rowsort
SELECT DISTINCT - + ( - col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT DISTINCT + + cor0.col2 DIV - col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT + + cor0.col2 / - col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT 4 * 98 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to ebf1674bf2c18318d79221cf009c4512

query I rowsort
SELECT DISTINCT + + 66 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - col0 * 23 AS col2 FROM tab0 AS cor0
----
2047
552
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT - col2 * + CAST( NULL AS SIGNED ) + ( - col2 ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL col1 - ( 53 ) AS col1 FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT DISTINCT col0 * + 46 AS col1 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL - + col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + col0 * - 19 * col2 col1 FROM tab0
----
-138689
-15075
-692

query I rowsort
SELECT - col0 + + tab1.col0 * - col2 * + col2 FROM tab1
----
-208000
-737360
-8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT DISTINCT + ( col1 ) + - 6 DIV ( col0 ) FROM tab1
----
10
13
24

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + ( col1 ) + - 6 / ( col0 ) FROM tab1
----
10
13
24

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT DISTINCT ( col0 ) + CAST( - 3 AS SIGNED ) + + tab2.col1 * col2 FROM tab2
----
1609
722
841

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT ( col0 ) + CAST ( - 3 AS INTEGER ) + + tab2.col1 * col2 FROM tab2
----
1609
722
841

query I rowsort
SELECT ALL col2 * + col0 * 66 FROM tab0
----
2310
481668
52272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1154
SELECT ( tab0.col1 + - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-1154
SELECT ( tab0.col1 + - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT 46 * + col2 FROM tab2
----
1196
1242
1748

query I rowsort
SELECT ALL ( 97 ) AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT cor0.col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 84 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT tab1.col2 * + col0 * - col2 + - tab1.col2 FROM tab1
----
-207993
-737376
-8802

query I rowsort
SELECT col1 * tab2.col1 + ( - col1 ) AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT DISTINCT - col1 * 29 + + 23 FROM tab1
----
-267
-354
-731

query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) * - col2 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1163
SELECT ALL + - col2 * col2 + - cor0.col2 * + cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( ( - col2 ) ) + col0 * - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL 60 * - tab1.col2 DIV + col2 FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL 60 * - tab1.col2 / + col2 FROM tab1
----
-60
-60
-60

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT - 35 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 35 / - col0 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 0 * 40 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * 52 AS col2 FROM tab1
----
2808
2964
4992

query I rowsort
SELECT DISTINCT + col2 + ( - 8 ) * col2 AS col1 FROM tab1
----
-378
-399
-672

query I rowsort
SELECT - + ( - col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ( + 8 ) * col0 AS col0 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT cor0.col1 + 72 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 06409ab194ab0c44f6883184bba40487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1175
SELECT - CAST( col2 AS SIGNED ) * col2 - + ( - col0 + col2 * col0 ) AS col1 FROM tab1
----
-16816
-3075
-6833

skipif mysql # not compatible
query I rowsort label-1175
SELECT - CAST ( col2 AS INTEGER ) * col2 - + ( - col0 + col2 * col0 ) AS col1 FROM tab1
----
-16816
-3075
-6833

query I rowsort
SELECT + col1 + 43 AS col0 FROM tab1 AS cor0
----
53
56
69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT tab2.col0 + tab2.col0 DIV col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1178
SELECT tab2.col0 + tab2.col0 / col0 FROM tab2
----
79
8
80

query I rowsort
SELECT + col1 + - col2 * + col1 AS col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - - col1 * + col0 + col0 + - ( col2 ) * col2 AS col1 FROM tab0 cor0
----
1464
3429
999

onlyif mysql # use DIV operator for integer division
query I rowsort label-1181
SELECT col1 DIV col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-1181
SELECT col1 / col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1412
570

query I rowsort
SELECT - - col1 + - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT 79 + + cor0.col0 DIV + 54 AS col1 FROM tab1 cor0
----
79
80
80

skipif mysql # not compatible
query I rowsort label-1183
SELECT 79 + + cor0.col0 / + 54 AS col1 FROM tab1 cor0
----
79
80
80

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT DISTINCT + 26 + + col2 FROM tab0 AS cor0
----
108
27
59

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

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + 25 * cor0.col0 + + 14 FROM tab2 AS cor0
----
189
1964
1989

query I rowsort
SELECT ALL ( 74 ) FROM tab1
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - + cor0.col1 - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT col1 * - col0 + + 41 AS col2 FROM tab0 AS cor0
----
-2023
-3354
-8058

query I rowsort
SELECT - col2 * - ( 50 ) FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT + col0 - col1 * - col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT DISTINCT + 15 DIV + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + 15 / + col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 11 * col0 col1 FROM tab0 AS cor0
----
-385
-80278
-8712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1197
SELECT + col0 * + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1197
SELECT + col0 * + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab1.col0 * + col1 * - tab1.col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1199
SELECT DISTINCT + CAST( cor0.col0 AS SIGNED ) FROM tab2, tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + CAST ( cor0.col0 AS INTEGER ) FROM tab2, tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT DISTINCT 88 * col2 * - cor0.col1 + col1 - - col2 DIV - col0 FROM tab1 AS cor0
----
-109812
-123544
-50150

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT 88 * col2 * - cor0.col1 + col1 - - col2 / - col0 FROM tab1 AS cor0
----
-109812
-123544
-50150

query I rowsort
SELECT ALL 71 + + ( + cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 4434c4fd9a4da951091096c8b9fa27c3

query I rowsort
SELECT ALL col0 + + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col1 / - tab0.col1 FROM tab0 WHERE NOT NULL = col0 * col1
----

query I rowsort
SELECT - col0 + + col0 * + tab1.col0 AS col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT col0 + col1 + - cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1093
-466
-7741

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

query I rowsort
SELECT DISTINCT - col0 - + col1 * + col1 AS col0 FROM tab2
----
-3559
-368
-968

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = col2
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col2 * - col1 / - col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col0 * col1 )
----

query I rowsort
SELECT col1 + col2 - col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 - col0 * - col0 * tab2.col0 FROM tab2
----
316
474526
493001

query I rowsort
SELECT DISTINCT col1 * - col1 + + col1 FROM tab0
----
-7310
-8190
-9312

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT + col2 DIV - tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT + col2 / - tab0.col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT tab1.col1 * col1 + - col1 - col0 FROM tab1
----
26
647
76

query I rowsort
SELECT ALL - + col2 * - col0 + + col2 + + col1 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT ALL + col0 * cor0.col0 - + col1 * - col0 * col2 FROM tab2 cor0
----
125736
57275
5908

onlyif mysql # use DIV operator for integer division
query I rowsort label-1220
SELECT DISTINCT - col0 * col1 DIV + col2 + - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-163
-3659
-7690

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - col0 * col1 / + col2 + - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-163
-3659
-7690

query I rowsort
SELECT ALL col2 * + col1 * + col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - - col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + col0 * - col0 + tab2.col2 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL col2 * - col2 + + col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
26
27
38

query I rowsort
SELECT + col2 + - col0 * - tab2.col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - col1 * col0 + + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT - - col1 + + ( + 78 ) + col0 DIV 45 AS col0 FROM tab1 AS cor0
----
104
89
92

skipif mysql # not compatible
query I rowsort label-1228
SELECT - - col1 + + ( + 78 ) + col0 / 45 AS col0 FROM tab1 AS cor0
----
104
89
92

query I rowsort
SELECT + col2 * 18 * + 14 AS col1 FROM tab0 cor0
----
20664
252
8316

query I rowsort
SELECT - 53 + + col1 * - col1 AS col1 FROM tab2
----
-1014
-342
-3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT + col0 DIV 55 AS col1 FROM tab1 AS cor0
----
0
1
1

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

query I rowsort
SELECT cor0.col0 + cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT col2 * + ( col0 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1235
SELECT DISTINCT ( col1 ) * ( col2 ) + + col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col2 FROM tab0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 + col1 col1 FROM tab0
----
7515
8454
9507

query I rowsort
SELECT - 29 * col0 + - 99 AS col2 FROM tab0
----
-1114
-2680
-795

query I rowsort
SELECT DISTINCT - col0 * - tab1.col2 * - col0 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT cor0.col2 * 10 AS col1 FROM tab2 AS cor0
----
260
270
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col0 * + col2 ) col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 * cor0.col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor1.col1 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT - - col0 * + cor0.col2 * 62 + col2 + 89 AS col1 FROM tab1 AS cor0
----
10187
226322
476345

query I rowsort
SELECT + col0 * - col2 * + col2 AS col0 FROM tab1
----
-207936
-737280
-8748

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col2 + - tab1.col2 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 WHERE + col2 * - col1 + + col0 + col0 >= NULL
----

query I rowsort
SELECT + col2 * - col1 + col2 AS col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1249
SELECT DISTINCT + tab0.col0 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + tab0.col0 / + col1 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT + col0 * + col0 DIV col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1250
SELECT + col0 * + col0 / col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + tab1.col2 + col1 - - tab1.col1 FROM tab1
----
106
122
77

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

query I rowsort
SELECT ALL col0 * - tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 * + col1 + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT col1 * col0 - - col2 AS col1 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT + tab1.col2 DIV col1 + col0 * col1 * col2 col2 FROM tab1
----
36485
4214
99847

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1256
SELECT + tab1.col2 / col1 + col0 * col1 * col2 col2 FROM tab1
----
36485
4214
99847

query I rowsort
SELECT ALL 58 * - col0 AS col2 FROM tab0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1259
SELECT cor0.col2 * - col2 + + CAST( - ( - col0 ) AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
-14022
-1881
-36

skipif mysql # not compatible
query I rowsort label-1259
SELECT cor0.col2 * - col2 + + CAST ( - ( - col0 ) AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
-14022
-1881
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col1 + col1 * cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
177418
329218
736918

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT + - col2 DIV + col2 + + 27 AS col0 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-1263
SELECT + - col2 / + col2 + + 27 AS col0 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - col0 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT - + col0 DIV + col1 + + col1 AS col2 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-1265
SELECT - + col0 / + col1 + + col1 AS col2 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT col2 + col2 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + ( - 37 ) * col2 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT - col1 + col0 * + col2 AS col1 FROM tab2 cor0
----
158
1969
2985

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT - 44 DIV + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1272
SELECT - 44 / + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 - - cor0.col0 * ( + col1 + col0 ) FROM tab2 AS cor0
----
10712
293
7622

query I rowsort
SELECT - - col2 * col1 + + cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 32 + + col0 + 55 FROM tab1 AS cor0
----
151
167
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT + col1 + col1 DIV ( + 6 ) + + col1 col0 FROM tab2 cor0
----
127
36
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1276
SELECT + col1 + col1 / ( + 6 ) + + col1 col0 FROM tab2 cor0
----
127
36
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1277
SELECT + col2 * + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 20 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT 94 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1279
SELECT 94 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * - col1 FROM tab1 AS cor0
----
-1352
-200
-338

query I rowsort
SELECT - + col0 - col1 * + col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + tab0.col2 + + col2 * + col0 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + + col1 col1 FROM tab0
----
105
110
116

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * tab1.col1 col0 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col0 * - col2 AS col1 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT DISTINCT col1 * tab2.col0 + - col2 AS col2 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT col0 + - col0 DIV - col1 col1 FROM tab1 AS cor0
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1290
SELECT col0 + - col0 / - col1 col1 FROM tab1 AS cor0
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col2 * cor0.col2 col2 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT - col2 + - cor0.col0 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT - col1 * col0 + col1 * - col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) - + col1 col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 78 * + col2 * col2 AS col1 FROM tab2
----
112632
52728
56862

query I rowsort
SELECT - 41 AS col2 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT 89 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 683b4451b3c75bd03b278308f38beae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1298
SELECT + - 68 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4

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

query I rowsort
SELECT + - ( col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + - col1 + - col0 * - col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + col1 AS col2 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT ALL - - 41 + col0 DIV + cor0.col0 + + col2 FROM tab0 AS cor0
----
124
43
75

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - - 41 + col0 / + cor0.col0 + + col2 FROM tab0 AS cor0
----
124
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1304
SELECT ALL + col1 DIV + 86 + tab0.col2 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + col1 / + 86 + tab0.col2 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT + col1 + - col0 * + col1 FROM tab1
----
-1027
-52
-630

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

query I rowsort
SELECT DISTINCT 97 * 86 FROM tab2, tab0, tab1 AS cor0
----
8342

query I rowsort
SELECT ALL col2 - + col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 * col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col1 * cor0.col1 + col2 * - col0 FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT DISTINCT + + 64 + - col1 AS col2 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT ALL ( 50 ) + + col2 * + ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-36430
-4162
-99790

query I rowsort
SELECT cor0.col2 * - col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + ( + col0 ) + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL cor0.col0 * col2 + + ( + col0 ) FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 39 + col0 AS col0 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT - + col2 * col0 - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col1 * - cor0.col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT col0 * col0 + + 20 FROM tab0 cor0
----
1245
596
7941

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT DISTINCT col2 * + CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT col2 * + CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col1 - - 43 * cor0.col1 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT DISTINCT + + col2 + ( ( col0 ) ) * + col2 - + col1 AS col1 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT ALL col2 + ( + col2 ) * - col0 - + cor0.col2 * + 57 AS col2 FROM tab2 AS cor0
----
-1701
-3484
-5130

query I rowsort
SELECT ALL + + col1 + - 81 AS col1 FROM tab2 cor0
----
-22
-50
-64

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
268
3514
965

query I rowsort
SELECT + 23 + col0 FROM tab0 cor0
----
112
47
58

query I rowsort
SELECT ALL - col0 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - + col1 + + 34 + + cor0.col0 FROM tab2 AS cor0
----
10
53
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT DISTINCT cor0.col1 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT cor0.col1 / ( col1 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - 41 + col1 * col1 FROM tab2 AS cor0
----
248
3440
920

query I rowsort
SELECT 8 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT DISTINCT + col1 DIV col0 - + col1 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + col1 / col0 - + col1 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT - cor0.col1 + - ( col1 ) * col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1336
SELECT ALL + CAST( - 30 AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
-210
-2340
-2370

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + CAST ( - 30 AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
-210
-2340
-2370

query I rowsort
SELECT - 60 - - ( cor0.col1 ) AS col1 FROM tab0 cor0
----
26
31
37

query I rowsort
SELECT ALL 63 AS col1 FROM tab1 cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT - + cor0.col1 DIV col1 + + col2 - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
103
116
33

skipif mysql # not compatible
query I rowsort label-1339
SELECT - + cor0.col1 / col1 + + col2 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
103
116
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT - cor0.col0 DIV col1 + + col2 AS col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-1340
SELECT - cor0.col0 / col1 + + col2 AS col2 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT ALL - + 75 * col2 + - col1 FROM tab1 AS cor0
----
-4076
-4285
-7213

query I rowsort
SELECT - ( 98 ) * cor0.col0 FROM tab1 cor0
----
-294
-6272
-7840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT DISTINCT - ( 77 ) * + col1 + + CAST( + cor0.col0 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-2011
-4866
-7401

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - ( 77 ) * + col1 + + CAST ( + cor0.col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-2011
-4866
-7401

query I rowsort
SELECT ALL 54 - + col0 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT + col1 * + col0 - - col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + col0 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col1 - 19 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT DISTINCT + 61 FROM tab0, tab0 AS cor0
----
61

query I rowsort
SELECT ALL - col2 * + col1 + + col2 AS col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 25 + - col2 * col2 FROM tab1
----
-2891
-3224
-9191

onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT ALL - cor0.col1 * 42 DIV cor0.col1 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - cor0.col1 * 42 / cor0.col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + col0 + - 41 * 30 FROM tab1 AS cor0
----
-1150
-1166
-1227

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col1 * - tab0.col2 col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT - col2 * ( tab1.col0 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + tab1.col1 + + ( tab1.col2 ) AS col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT col0 DIV 69 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1358
SELECT col0 / 69 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col0 + - col2 * col1 AS col1 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + + col2 * + ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1362
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + - 53 * 12 AS col1 FROM tab1 AS cor0
----
-556
-572
-633

query I rowsort
SELECT DISTINCT - 9 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ( + cor0.col2 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 69 + col1 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT - 91 * cor0.col0 - + cor0.col1 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
1755
576
6240

query I rowsort
SELECT + - 69 * - col1 - col1 * col0 * + col2 FROM tab2 cor0
----
-115581
-3720
-49861

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + cor0.col0 - + cor0.col0 * + col1 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col2 * + ( + 45 ) * col0 + col1 + + ( col2 ) FROM tab0 cor0
----
1673
328583
35759

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT - cor0.col2 * + col0 + + ( - cor0.col1 + - 24 ) AS col0 FROM tab2 AS cor0
----
-2111
-244
-3043

query I rowsort
SELECT - - col0 * 64 + + col1 * col0 + 91 FROM tab0 cor0
----
13886
3691
5726

query I rowsort
SELECT - + col1 + - col0 + cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + + cor0.col1 + - cor0.col0 * cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to cf552cd68b41cb6d2227c6ce68d999d9

query I rowsort
SELECT 3 * + cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f681a26fe1e08fbac53468a6925b499e

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col0 + 83 FROM tab1
----
147
163
86

query I rowsort
SELECT 49 * col2 AS col2 FROM tab2 cor0
----
1274
1323
1862

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

query I rowsort
SELECT - col0 - - col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - tab1.col2 * 56 FROM tab1
----
-3024
-3192
-5376

query I rowsort
SELECT ( - col1 * + col1 + col2 ) FROM tab1
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT - - 44 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1386
SELECT - - 44 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT 95 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT + ( col2 * + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 8 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - - col2 * - col0 + - col1 AS col1 FROM tab0 cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1393
SELECT + - cor0.col1 + + ( + col0 ) * col0 + - CAST( NULL AS SIGNED ) * - cor0.col0 * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 47 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT - + 21 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT col0 - - tab1.col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT 26 + - cor0.col0 FROM tab1, tab1 AS cor0
----
-38
-54
23

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 * + col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT + - ( col0 ) * - col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + 21 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + col1 * 42 * - col0 AS col1 FROM tab0
----
-142590
-340158
-86688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1402
SELECT ALL tab0.col2 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL tab0.col2 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col0 * + 45 - - col1 * - col1 * tab1.col1 AS col1 FROM tab1
----
-17441
1403
1880

query I rowsort
SELECT DISTINCT col2 + ( 53 ) * col2 AS col2 FROM tab1
----
2916
3078
5184

query I rowsort
SELECT col1 * 87 * + col2 FROM tab0
----
246906
649194
8439

query I rowsort
SELECT ALL - 24 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT col0 * col1 DIV + col1 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT cor0.col1 + ( - col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + + 86 AS col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - ( - 22 ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
-60
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1411
SELECT + + CAST( NULL AS SIGNED ) * + 65 / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT + + CAST ( NULL AS INTEGER ) * + 65 / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 + + col0 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1414
SELECT 6 DIV - 58 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1414
SELECT 6 / - 58 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( cor0.col1 ) FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + cor0.col2 * col1 - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col2 - + 19 AS col0 FROM tab1 cor0
----
-115
-73
-76

query I rowsort
SELECT + - col0 * + 55 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT - col2 * ( + col0 ) + col2 * + 10 AS col0 FROM tab2 cor0
----
-1768
-2622
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT - + col1 + col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-1420
SELECT - + col1 + col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 64 + col0 FROM tab0
----
153
88
99

query I rowsort
SELECT col0 + tab2.col0 * col1 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + tab0.col2 + tab0.col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + tab2.col1 + 47 FROM tab2
----
106
64
78

query I rowsort
SELECT ALL col0 + 35 AS col0 FROM tab1
----
115
38
99

query I rowsort
SELECT - col1 - + ( col0 ) AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - col2 * col0 + + 75 FROM tab2
----
-114
-1953
-2927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1429
SELECT - col1 * + CAST( NULL AS SIGNED ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL col2 * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL ( col2 + tab2.col2 ) FROM tab2
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT 58 + + 98 DIV - col1 AS col0 FROM tab0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-1433
SELECT 58 + + 98 / - col1 AS col0 FROM tab0
----
57
57
57

query I rowsort
SELECT DISTINCT - - col2 + 27 AS col1 FROM tab1 AS cor0
----
123
81
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT ALL CAST( - col0 AS SIGNED ) DIV - col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL CAST ( - col0 AS INTEGER ) / - col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 79 + tab2.col2 AS col1 FROM tab2
----
105
106
117

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col1 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT 70 + col2 - 83 AS col0 FROM tab2 cor0
----
13
14
25

query I rowsort
SELECT DISTINCT - - 84 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + col0 + - col2 * - col1 AS col0 FROM tab0
----
132
2862
7551

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

query I rowsort
SELECT ALL - col1 + col0 + + ( 11 ) FROM tab2 AS cor0
----
-13
30
73

query I rowsort
SELECT ALL + ( col2 ) + 73 * col1 AS col2 FROM tab1 AS cor0
----
1045
1952
787

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL + 24 * - col1 FROM tab2 AS cor0
----
-1416
-408
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 - 56 col2 FROM tab2 AS cor0
----
-1
2
29

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 * col2 * 74 AS col1 FROM tab1 AS cor0
----
103893
42116
92272

query I rowsort
SELECT col2 * + col1 + 83 * - col0 FROM tab1 AS cor0
----
-4742
-5392
1155

query I rowsort
SELECT DISTINCT tab0.col0 * 75 FROM tab0, tab1 AS cor0
----
1800
2625
6675

query I rowsort
SELECT + 87 + col1 AS col2 FROM tab1 AS cor0
----
100
113
97

query I rowsort
SELECT ALL + - ( - col0 ) + col0 * - col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - - 77 * col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col0 ) * + col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
262201
512096
81

query I rowsort
SELECT + - col0 * - col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT + col1 DIV - 22 AS col1 FROM tab2 AS cor0
----
-1
-2
0

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

query I rowsort
SELECT col1 * + 2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - - col0 * - cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col0 * cor0.col0 + cor0.col0 AS col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT ALL + + col1 + - col0 * + 14 AS col0 FROM tab0 AS cor0
----
-1155
-250
-393

query I rowsort
SELECT - col2 + ( col1 ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL 73 + col1 * + tab0.col2 * col0 AS col2 FROM tab0
----
3468
664191
68185

query I rowsort
SELECT - + col1 * + col1 + + col2 - + cor0.col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT + col0 DIV 12 FROM tab2 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1465
SELECT + col0 / 12 FROM tab2 AS cor0
----
0
6
6

query I rowsort
SELECT + - col0 + ( 83 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
246
5248
6560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 * col1 + col0 + + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT ALL + + ( + col1 ) * col2 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
164
2046
62

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

query I rowsort
SELECT + 43 + 85 AS col0 FROM tab0 AS cor0
----
128
128
128

query I rowsort
SELECT ALL + - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT DISTINCT - + ( + cor0.col2 ) + cor0.col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - + ( + cor0.col2 ) + cor0.col0 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT ALL + cor0.col1 + col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + cor0.col1 + col2 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + 15 * col0 + + cor0.col2 FROM tab0 AS cor0
----
1417
393
526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col2 * - col2 col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT DISTINCT - col2 * + col1 - col0 * ( + col2 ) DIV + col1 FROM tab0 AS cor0
----
-2847
-7542
-97

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT - col2 * + col1 - col0 * ( + col2 ) / + col1 FROM tab0 AS cor0
----
-2847
-7542
-97

query I rowsort
SELECT DISTINCT - + 35 - - col2 AS col1 FROM tab2 AS cor0
----
-8
-9
3

query I rowsort
SELECT ALL 79 + col0 * cor0.col0 FROM tab0 cor0
----
1304
655
8000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1480
SELECT CAST( + col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-1480
SELECT CAST ( + col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + + col1 + + 11 * - col2 FROM tab2 cor0
----
-227
-266
-401

onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT ALL + + col0 DIV col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + + col0 / col2 AS col1 FROM tab0 cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT + col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-1483
SELECT + col0 + + col1 / - col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT DISTINCT col0 * + col2 * + col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + tab0.col1 * + ( col0 ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col0 - - tab1.col0 * - col1 AS col2 FROM tab1
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1488
SELECT CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1488
SELECT CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1489
SELECT + CAST( NULL AS DECIMAL ) * col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT + CAST ( NULL AS REAL ) * col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT + + ( col1 ) * 72 DIV cor0.col2 + col0 * - col1 FROM tab1 AS cor0
----
-1031
-44
-628

skipif mysql # not compatible
query I rowsort label-1490
SELECT + + ( col1 ) * 72 / cor0.col2 + col0 * - col1 FROM tab1 AS cor0
----
-1031
-44
-628

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920

query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT + col0 DIV + ( + 86 ) FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col0 * ( - col0 * + col1 ) FROM tab0 AS cor0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - ( - col0 * col1 ) col2 FROM tab0 cor0
----
2088
3430
8188

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

query I rowsort
SELECT ALL cor0.col1 - ( col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT ALL - col1 * CAST( col2 AS SIGNED ) + col0 FROM tab0 cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) + col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + + col0 * col0 - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + + col0 * - 88 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-12489
-16113
-9508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 col2 FROM tab1 cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 - col0 * col2 col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL + cor0.col2 * + 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT ALL + + 97 + col2 * + col1 FROM tab0 AS cor0
----
194
2935
7559

query I rowsort
SELECT ALL 1 * - 23 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 / col2 + col2 + CAST ( col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
120
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab2, tab0 cor0, tab0, tab1 AS cor1
----
81 values hashing to c8c4f0bd925413f7f95df1d166aef9dd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT DISTINCT - 95 DIV col0 FROM tab1 AS cor0
----
-1
-31

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - 95 / col0 FROM tab1 AS cor0
----
-1
-31

query I rowsort
SELECT - ( col1 ) + ( col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - - 50 * - col0 - col0 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT cor0.col1 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col2 + cor0.col0 * + 98 AS col1 FROM tab0 AS cor0
----
2385
3431
8804

query I rowsort
SELECT - - cor0.col1 * - col2 + 69 FROM tab2 AS cor0
----
-1465
-577
-768

query I rowsort
SELECT - col2 * col2 + 55 FROM tab2 AS cor0
----
-1389
-621
-674

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT ALL + col0 DIV - col2 + + col2 * col0 - - col1 * ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
23904
36666
9347

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + col0 / - col2 + + col2 * col0 - - col1 * ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
23904
36666
9347

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + tab0.col2 + + tab0.col1 * col0 + col2 AS col0 FROM tab0
----
2130
3397
8263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 * - col2 col2 FROM tab1
----
-207993
-737376
-8802

query I rowsort
SELECT tab1.col1 - - col0 * tab1.col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT 54 + col0 AS col1 FROM tab0
----
143
78
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 69 + + col1 - col1 AS col0 FROM tab2
----
69
69
69

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + - col1 + col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

query I rowsort
SELECT DISTINCT - + 24 * - 1 + col0 FROM tab0 AS cor0
----
113
48
59

query I rowsort
SELECT 58 + - col1 AS col1 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT - ( 92 ) + col2 FROM tab0 AS cor0
----
-10
-59
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT ALL CAST( 98 AS SIGNED ) FROM tab2 AS cor0
----
98
98
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - col2 + 98 AS col0 FROM tab0 AS cor0
----
16
65
97

query I rowsort
SELECT ALL 88 * + cor0.col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT - ( 64 ) + - col1 * + ( - 10 ) FROM tab0 AS cor0
----
796
846
906

query I rowsort
SELECT 88 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1538
SELECT col0 + - CAST( NULL AS SIGNED ) * 19 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 * 8 * col2 + col1 AS col0 FROM tab0 cor0
----
412
65773
7214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1540
SELECT - ( - col2 ) + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1540
SELECT - ( - col2 ) + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 17 AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1542
SELECT ALL col0 + + col1 DIV 66 col2 FROM tab0 cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL col0 + + col1 / 66 col2 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + col0 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - 22 - col1 FROM tab0 AS cor0
----
-108
-113
-119

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col2 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 19 * col1 + col1 FROM tab1
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT 96 DIV col0 FROM tab2
----
1
1
13

skipif mysql # not compatible
query I rowsort label-1547
SELECT 96 / col0 FROM tab2
----
1
1
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT 34 * - col2 DIV col2 FROM tab0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-1548
SELECT 34 * - col2 / col2 FROM tab0
----
-34
-34
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1549
SELECT - CAST( NULL AS SIGNED ) * col0 * col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1549
SELECT - CAST ( NULL AS INTEGER ) * col0 * col1 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + + col1 * 87 FROM tab1 cor0
----
1035
2208
813

query I rowsort
SELECT ALL cor0.col2 * 25 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
192080
4053
91264

query I rowsort
SELECT + col2 * - 70 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1553
SELECT DISTINCT col2 * CAST( - col2 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT col2 * CAST ( - col2 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT DISTINCT + col1 + - col2 + CAST( NULL AS SIGNED ) * 99 AS col1 FROM tab0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT ALL + col1 * col2 + + col1 DIV - 78 AS col2 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + col1 * col2 + + col1 / - 78 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 FROM tab2
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT DISTINCT 44 DIV + col2 AS col0 FROM tab0
----
0
1
44

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

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d

query I rowsort
SELECT - col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 + + ( - col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT col0 * - ( + col0 * + col2 ) AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - + col2 + ( 58 ) FROM tab2 AS cor0
----
20
31
32

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * 23 FROM tab1 AS cor0
----
176640
3726
83904

query I rowsort
SELECT - col2 * 75 FROM tab2 cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT + col2 + col0 * 47 FROM tab1 cor0
----
195
3065
3856

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT ALL tab0.col0 DIV - col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL tab0.col0 / - col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ALL col0 * - 7 AS col0 FROM tab1
----
-21
-448
-560

query I rowsort
SELECT - + tab0.col1 + - 37 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d7e54183b5449d74e4ea31227d08f8c8

query I rowsort
SELECT ALL + tab0.col1 * - 96 FROM tab0, tab2 AS cor0
----
9 values hashing to dd419481b609348b1a758935e59915ae

query I rowsort
SELECT DISTINCT - - col0 + + ( col0 * + col2 ) FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT tab2.col1 * + 74 FROM tab2
----
1258
2294
4366

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab1, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL ( + col2 * col1 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT cor0.col0 * cor0.col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT + 70 DIV - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 70 / - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT col2 DIV - 43 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1580
SELECT col2 / - 43 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 19 AS REAL ) * - col2 AS col1 FROM tab2 cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT + 19 DIV - ( col0 ) FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT + 19 / - ( col0 ) FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL - cor0.col1 + + col0 + + col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT 29 * col2 AS col0 FROM tab1
----
1566
1653
2784

query I rowsort
SELECT col2 * col2 * col1 + col0 AS col1 FROM tab0
----
132
611973
93678

query I rowsort
SELECT ALL - col1 + col2 - + col1 FROM tab2 AS cor0
----
-35
-92
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1588
SELECT DISTINCT col0 * col2 - CAST( 2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
33
7296
790

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT col0 * col2 - CAST ( 2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
33
7296
790

query I rowsort
SELECT + col0 + - col0 * - ( col1 ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col2 * col1 + + col2 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + - col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT + col2 DIV col1 - + 18 DIV + 82 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT + col2 / col1 - + 18 / + 82 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 7 + col1 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT DISTINCT - + 62 * + col1 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT ALL - + 91 * + col0 + 95 FROM tab0 AS cor0
----
-2089
-3090
-8004

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT + col2 DIV - 1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1598
SELECT + col2 / - 1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + cor0.col1 + - col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - col0 * + col1 + col1 + col0 * ( + 3 ) AS col0 FROM tab1 AS cor0
----
-43
-438
-787

query I rowsort
SELECT DISTINCT cor0.col2 * + ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + - cor1.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
-19
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1603
SELECT col1 * - col0 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-1603
SELECT col1 * - col0 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1326
-186
-4543

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

query I rowsort
SELECT - cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col1 ) * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + 30 * - ( - col2 ) FROM tab0
----
2460
30
990

query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + - 67 AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - col0 + col1 * - col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + 54 * col0 AS col1 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT ALL 13 * col0 * + col1 AS col2 FROM tab2
----
17459
2821
59826

query I rowsort
SELECT ALL 67 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab0, tab0 AS cor0
----
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1615
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1615
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + ( 73 ) * + col2 AS col0 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT 92 + - 51 * col0 AS col2 FROM tab2 cor0
----
-265
-3886
-3937

query I rowsort
SELECT + - cor0.col2 + - 6 FROM tab0 AS cor0
----
-39
-7
-88

query I rowsort
SELECT - 20 + ( col2 ) AS col2 FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT + - 57 * 92 + - col0 * ( + 78 ) + + cor0.col1 FROM tab2 AS cor0
----
-11269
-11389
-5759

query I rowsort
SELECT DISTINCT - col2 + + col0 + tab2.col2 AS col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT ( + col2 ) DIV col2 + 50 DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1624
SELECT ( + col2 ) / col2 + 50 / - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 87 + - col0 AS col0 FROM tab1
----
23
7
84

query I rowsort
SELECT col1 + col0 + - col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT DISTINCT - col2 * col1 + - 46 FROM tab1 AS cor0
----
-1294
-1450
-616

query I rowsort
SELECT - - 32 * + col2 + - col1 * + 24 AS col0 FROM tab0 AS cor0
----
-1008
-2296
440

query I rowsort
SELECT ALL - ( + cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - col0 + col2 * ( - col0 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
-114155
-5110
-52806

query I rowsort
SELECT + - 5 * col1 + - col0 + - col1 FROM tab1 AS cor0
----
-124
-158
-159

query I rowsort
SELECT + col2 + ( cor0.col2 ) FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + col0 * - col1 * 50 - col1 FROM tab2
----
-10881
-230159
-67167

query I rowsort
SELECT ALL col0 - ( + 1 ) AS col0 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - col2 * + ( - 2 ) * - tab1.col1 - + ( tab1.col0 * - col0 ) FROM tab1
----
-2799
2956
3904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( cor0.col2 ) col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + col0 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + col1 + cor0.col0 * cor0.col1 * + ( + col1 * col0 ) + - 84 AS col1 FROM tab1 AS cor0
----
1081529
409526
6026

query I rowsort
SELECT ALL 69 * + 41 AS col2 FROM tab0 AS cor0
----
2829
2829
2829

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT cor0.col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1641
SELECT cor0.col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT + - col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1643
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 92 * 89 FROM tab0 AS cor0
----
-8188

query I rowsort
SELECT - + 42 * col0 AS col0 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT ALL - 92 + - col1 * - col0 FROM tab0 AS cor0
----
1972
3303
8007

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1647
SELECT + CAST( NULL AS SIGNED ) + + 16 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1648
SELECT - CAST( NULL AS DECIMAL ) * - 97 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 + 60 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT DISTINCT + col1 + + col1 * cor0.col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * + col1 + col0 * col1 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT - col1 DIV col2 - col1 FROM tab0 cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-1653
SELECT - col1 / col2 - col1 FROM tab0 cor0
----
-194
-88
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1654
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 62 * - cor0.col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 62 * - cor0.col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT + col2 DIV ( - col0 * - col2 ) AS col0 FROM tab0
----
0
0
0

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

query I rowsort
SELECT + 98 * tab2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bf6b3dfff73e7bbfba273f527b4ba958

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT ALL + - col0 + + col2 DIV 99 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + - col0 + + col2 / 99 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - cor0.col0 * ( ( col0 ) ) AS col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1659
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + col0 + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - + col0 * col1 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT cor0.col0 * + 80 + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
2006
2897
7211

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT + col2 DIV - col0 col2 FROM tab2 AS cor0
----
-3
0
0

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

query I rowsort
SELECT ALL cor0.col0 * 12 AS col0 FROM tab1 AS cor0
----
36
768
960

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

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab2 AS cor0
----
260
270
380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1668
SELECT ALL - + CAST( NULL AS SIGNED ) + - col2 * + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 71 + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 99eede064c724b79a7d74789c7d4cddf

query I rowsort
SELECT ALL - col2 * - col1 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col2 + cor0.col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + ( col1 ) * col2 * col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT 69 * + cor0.col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT col2 * + col0 + + 65 AS col1 FROM tab1 AS cor0
----
227
3713
7745

query I rowsort
SELECT col0 + col1 * + 63 AS col2 FROM tab2
----
1150
1960
3795

query I rowsort
SELECT ALL + + 54 - - col0 FROM tab2 AS cor0
----
132
133
61

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT DISTINCT - 60 DIV - col0 - CAST( col1 + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
54
67

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - 60 / - col0 - CAST ( col1 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
54
67

query I rowsort
SELECT + - col0 + col2 * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + + col2 + - col0 * + col2 * - col1 + col0 FROM tab0 cor0
----
3431
664289
68169

query I rowsort
SELECT + + cor0.col2 + ( col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1682
SELECT - col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col2 + ( + 53 ) * col2 AS col0 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT ALL col1 DIV + 6 AS col1 FROM tab1 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL col1 / + 6 AS col1 FROM tab1 AS cor0
----
1
2
4

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

query I rowsort
SELECT - col1 * - col2 + - ( col2 ) FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - tab2.col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT col0 + - col2 DIV tab1.col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1688
SELECT col0 + - col2 / tab1.col2 FROM tab1
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT - col0 * col0 * + CAST( NULL AS SIGNED ) - 15 AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( col1 * - 63 ) + + col2 FROM tab1
----
-1584
-573
-723

query I rowsort
SELECT DISTINCT 4 * col0 * col2 + ( col0 * + col2 ) AS col1 FROM tab0
----
175
36490
3960

query I rowsort
SELECT - 94 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT - + cor0.col2 + col2 * col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT + + col0 + + cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1694
SELECT + + col0 + + cor0.col0 / col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT col0 + 73 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT - cor0.col2 + tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f5ea0c1696dbdacaeeb93b5c525a0784

query I rowsort
SELECT - col1 + 60 AS col1 FROM tab0 AS cor0
----
-26
-31
-37

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab0, tab2 AS cor0
----
-43

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + tab0.col1 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 937cf43d6b72eae36165ce0d86230fca

query I rowsort
SELECT + col0 + - ( - col0 ) * - col0 * col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL col1 + 48 AS col2 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT ALL - 22 + + 69 * col1 AS col2 FROM tab0
----
5912
6257
6671

query I rowsort
SELECT + 62 * col2 FROM tab1
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT ALL - ( + 33 ) DIV col2 + - 67 FROM tab1
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - ( + 33 ) / col2 + - 67 FROM tab1
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT + col2 DIV col2 col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1706
SELECT + col2 / col2 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( col1 ) + 69 - 27 AS col1 FROM tab2 AS cor0
----
101
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT - 77 DIV 55 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 77 / 55 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + + col1 * - col0 + - col1 * 44 * tab0.col2 FROM tab0
----
-126850
-336336
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 90 + - col0 FROM tab1
----
NULL

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

query I rowsort
SELECT + 12 + + col2 - 55 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT ALL - 26 * + col2 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT - + 77 + - col2 FROM tab0 AS cor0
----
-110
-159
-78

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 - - 37 AS col0 FROM tab2 AS cor0
----
326
3518
998

query I rowsort
SELECT + 9 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
154
197
237

query I rowsort
SELECT + col1 * + col0 + ( cor0.col1 ) * + cor0.col1 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT 78 + 17 AS col0 FROM tab1
----
95
95
95

query I rowsort
SELECT 44 * - 96 * - col0 FROM tab2
----
29568
329472
333696

query I rowsort
SELECT ALL 19 + - col2 AS col2 FROM tab0
----
-14
-63
18

query I rowsort
SELECT ALL col1 + - col1 * + col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT - ( col2 ) + col1 + - 66 FROM tab0
----
-13
-57
30

query I rowsort
SELECT - 25 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - 78 + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1326
-1482
-648

query I rowsort
SELECT DISTINCT - col1 * col0 + - 99 AS col1 FROM tab2 AS cor0
----
-1442
-316
-4701

query I rowsort
SELECT + col0 * + col2 + - 14 AS col2 FROM tab2 AS cor0
----
175
2014
2988

query I rowsort
SELECT ALL + - ( col1 ) * - ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1728
SELECT ALL + 28 * col2 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + 28 * col2 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 * col1 FROM tab1
----
1118
430
559

query I rowsort
SELECT ALL + col2 * - cor0.col0 * + col1 + - 54 FROM tab2 cor0
----
-119706
-51088
-5913

query I rowsort
SELECT ALL + ( col2 ) * ( 99 ) AS col2 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT DISTINCT 3 * + col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT + + col0 * col1 + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + - cor0.col2 + col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT - + cor0.col1 DIV + 30 + - 75 FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-1735
SELECT - + cor0.col1 / + 30 + - 75 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - col0 + - 33 AS col1 FROM tab0 AS cor0
----
-122
-57
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 37 col1 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT DISTINCT - + col1 * - 8 * cor0.col1 FROM tab0 AS cor0
----
59168
66248
75272

query I rowsort
SELECT - col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT ALL + col2 DIV 47 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + col2 / 47 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - cor0.col0 * ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 96 - + 86 AS col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1744
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col0 * col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col0 * col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - col2 * 59 FROM tab2
----
-1534
-1593
-2242

query I rowsort
SELECT + col0 * ( - col0 ) * + col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - col0 * tab0.col0 - - 57 AS col2 FROM tab0
----
-1168
-519
-7864

query I rowsort
SELECT ALL ( col2 ) * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 68 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col0 * col1 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + 21 + col2 AS col2 FROM tab1 cor0
----
117
75
78

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 * - col1 + col2 * + col0 FROM tab0 cor0
----
10252
12839
23678

query I rowsort
SELECT ALL + 83 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-235554
-619346
-8051

query I rowsort
SELECT - + 13 * col0 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT - cor0.col0 + col1 + + col2 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT ALL - - CAST( 95 AS SIGNED ) DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
31

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - - CAST ( 95 AS INTEGER ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
31

query I rowsort
SELECT col0 * ( col0 ) + - col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT ALL + - ( 3 ) * col0 - - col0 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
1302
157950
236921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT - + col1 * 23 + + col1 DIV 21 col1 FROM tab0 AS cor0
----
-1974
-2089
-2227

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1760
SELECT - + col1 * 23 + + col1 / 21 col1 FROM tab0 AS cor0
----
-1974
-2089
-2227

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 79 col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col2 + ( - col0 * + ( col2 ) ) FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + col0 * - col2 - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT ALL - 14 * 0 - + col0 DIV 70 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - 14 * 0 - + col0 / 70 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + col1 * - 89 + col0 AS col1 FROM tab0 AS cor0
----
7678
8188
8668

query I rowsort
SELECT col0 + 63 AS col2 FROM tab0 AS cor0
----
152
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT DISTINCT - + ( col0 ) DIV + col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL - col0 + - ( col0 ) * ( + col1 ) AS col0 FROM tab0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT + cor0.col1 + cor0.col0 DIV - 72 + - 20 AS col2 FROM tab0 AS cor0
----
66
70
77

skipif mysql # not compatible
query I rowsort label-1771
SELECT + cor0.col1 + cor0.col0 / - 72 + - 20 AS col2 FROM tab0 AS cor0
----
66
70
77

query I rowsort
SELECT ALL - 77 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT + 51 FROM tab1, tab1 AS cor0
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT ALL + tab2.col1 DIV + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + tab2.col1 / + col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT col2 * ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * 86 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT - + col0 + col1 * 85 FROM tab0 AS cor0
----
7286
7646
8210

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT DISTINCT - - col1 * 88 DIV col1 AS col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - - col1 * 88 / col1 AS col0 FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL + col2 * + 91 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT ALL - col1 + 6 AS col1 FROM tab0
----
-80
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT cor0.col1 + + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT DISTINCT - col0 DIV col1 col2 FROM tab0 cor0
----
0

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

query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + + 23 + cor0.col2 + ( + col2 ) FROM tab1 AS cor0
----
131
137
215

query I rowsort
SELECT DISTINCT 66 + col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT + col2 + 39 * - 67 + col2 FROM tab2
----
-2537
-2559
-2561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 36 col2 FROM tab2
----
-10
-9
2

query I rowsort
SELECT + col2 * - tab0.col1 + - 50 AS col1 FROM tab0
----
-147
-2888
-7512

query I rowsort
SELECT - + col1 * - col0 - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - - col2 + + 57 AS col2 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT DISTINCT cor0.col2 + ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + cor0.col0 * ( + col0 * - col0 ) AS col2 FROM tab1 cor0
----
-262144
-27
-512000

query I rowsort
SELECT ALL 43 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT + cor0.col2 * 37 AS col2 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT - + cor0.col0 * ( - col2 ) * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + col1 + ( + col2 ) + col0 AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT CAST( NULL AS SIGNED ) + 29 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - ( + col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col2 * + cor0.col1 + col2 + 1 AS col0 FROM tab0 AS cor0
----
-2804
-7379
-95

query I rowsort
SELECT ALL + ( + col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - - 71 * + 78 AS col0 FROM tab2 cor0
----
5538

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1807
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT ALL - ( + col1 ) DIV col0 + - 23 + col0 FROM tab0 AS cor0
----
-2
10
65

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - ( + col1 ) / col0 + - 23 + col0 FROM tab0 AS cor0
----
-2
10
65

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

query I rowsort
SELECT + - col1 * - 79 FROM tab0 cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT ALL - - 81 + - col1 FROM tab2 AS cor0
----
22
50
64

query I rowsort
SELECT DISTINCT - 69 FROM tab2 cor0
----
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT - CAST( - ( col1 ) AS SIGNED ) DIV + 78 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1814
SELECT - CAST ( - ( col1 ) AS INTEGER ) / + 78 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + cor0.col2 * - 52 FROM tab1 AS cor0
----
-2808
-2964
-4992

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

query I rowsort
SELECT + 50 * col2 * col2 AS col2 FROM tab1 AS cor0
----
145800
162450
460800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1818
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 * - col1 + + col2 / + col2 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT - col1 + + cor0.col0 * - col0 * - col0 AS col0 FROM tab2 AS cor0
----
312
474493
493022

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 + - 48 AS col0 FROM tab1 AS cor0
----
-138
-204
-698

query I rowsort
SELECT col2 * col2 * + col2 + 97 FROM tab0 AS cor0
----
36034
551465
98

query I rowsort
SELECT ALL + 11 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - - cor0.col1 * + 43 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + col2 * col1 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT - 94 + - col0 AS col2 FROM tab1 AS cor0
----
-158
-174
-97

query I rowsort
SELECT - cor0.col1 * col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - - ( - 61 ) + - col2 AS col1 FROM tab1 AS cor0
----
-115
-118
-157

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 11 - col1 AS col1 FROM tab0 AS cor0
----
-75
-80
-86

query I rowsort
SELECT ALL + cor2.col1 * - ( 4 ) FROM tab1, tab2 cor0, tab2 cor1, tab2, tab1 AS cor2
----
243 values hashing to 78e5fda13a72da9cc68257777a6c8456

query I rowsort
SELECT col1 * col0 + col0 + - col1 FROM tab0 AS cor0
----
2002
3333
8097

query I rowsort
SELECT - 25 + col0 FROM tab1 AS cor0
----
-22
39
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1834
SELECT + - ( col2 ) * CAST( NULL AS DECIMAL ) / col0 + col0 * CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT + - ( col2 ) * CAST ( NULL AS REAL ) / col0 + col0 * CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 47 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + + col2 * col2 col0 FROM tab0
----
1142
54
6777

query I rowsort
SELECT ALL + ( - col2 + - col1 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 33 * col0 AS col2 FROM tab2
----
231
2574
2607

query I rowsort
SELECT ALL + col2 * - col2 + + col2 FROM tab2 cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT + col2 * CAST( - ( col0 ) AS SIGNED ) * - 39 AS col2 FROM tab0 AS cor0
----
1365
284622
30888

skipif mysql # not compatible
query I rowsort label-1840
SELECT + col2 * CAST ( - ( col0 ) AS INTEGER ) * - 39 AS col2 FROM tab0 AS cor0
----
1365
284622
30888

query I rowsort
SELECT ALL 58 * - col2 AS col0 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT + tab0.col0 + 76 AS col0 FROM tab0
----
100
111
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT - - cor0.col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT - - cor0.col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 * - col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + - cor0.col1 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + 0 * col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 39 + + col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT + - ( col0 ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * - col0 + + 7 - - col1 FROM tab2
----
-11
-6018
-6217

query I rowsort
SELECT + col0 * + 82 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT + + cor0.col1 * ( - ( - cor0.col2 ) ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT + - col2 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col1 * - col0 * - 71 + - col1 AS col0 FROM tab2 AS cor0
----
-15438
-326801
-95370

query I rowsort
SELECT DISTINCT col2 * + 14 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 * - 90 FROM tab2 cor0
----
-17010
-182520
-270180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT ALL + col2 DIV - CAST( col0 AS SIGNED ) + col2 col2 FROM tab2 AS cor0
----
24
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + col2 / - CAST ( col0 AS INTEGER ) + col2 col2 FROM tab2 AS cor0
----
24
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT col2 DIV - ( - 2 ) FROM tab2 AS cor0
----
13
13
19

skipif mysql # not compatible
query I rowsort label-1858
SELECT col2 / - ( - 2 ) FROM tab2 AS cor0
----
13
13
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT DISTINCT - col0 DIV + 36 FROM tab1 AS cor0
----
-1
-2
0

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

query I rowsort
SELECT + col2 + - ( col0 ) * col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col0 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 73 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT + 17 AS col1 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + 63 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
63

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 FROM tab2, tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + ( + col0 ) * 8 + col1 * col2 + 67 * cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
20641
235385
65280

query I rowsort
SELECT + 36 + + col0 * - cor0.col1 FROM tab1 AS cor0
----
-1004
-42
-604

query I rowsort
SELECT ALL col2 + col2 * 27 * 64 + + col2 AS col1 FROM tab0 AS cor0
----
141860
1730
57090

query I rowsort
SELECT + 32 AS col0 FROM tab1 cor0
----
32
32
32

query I rowsort
SELECT ALL + col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col2 + col0 * 99 AS col0 FROM tab0 AS cor0
----
2409
3466
8893

onlyif mysql # use DIV operator for integer division
query I rowsort label-1872
SELECT DISTINCT - + col1 DIV - col2 - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT - + col1 / - col2 - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT ALL + + cor0.col0 + - col2 * 46 DIV 50 AS col2 FROM tab0 AS cor0
----
-6
14
35

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + + cor0.col0 + - col2 * 46 / 50 AS col2 FROM tab0 AS cor0
----
-6
14
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 + - col1 * - ( - 4 ) col1 FROM tab0 AS cor0
----
-256
-276
-300

query I rowsort
SELECT DISTINCT + + col0 + - col2 - 17 FROM tab1 AS cor0
----
-10
-33
-68

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

query I rowsort
SELECT DISTINCT + 60 - - col2 AS col0 FROM tab0 cor0
----
142
61
93

query I rowsort
SELECT + col0 * + col2 + 19 AS col2 FROM tab2 AS cor0
----
2047
208
3021

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) + + col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT - col2 - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-1880
SELECT - col2 - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT col1 DIV 77 + col2 * col2 * 72 AS col1 FROM tab1 AS cor0
----
209952
233928
663552

skipif mysql # not compatible
query I rowsort label-1881
SELECT col1 / 77 + col2 * col2 * 72 AS col1 FROM tab1 AS cor0
----
209952
233928
663552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT ALL - - col0 - + ( col0 + col1 ) DIV - col0 AS col0 FROM tab1 AS cor0
----
12
65
81

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - - col0 - + ( col0 + col1 ) / - col0 AS col0 FROM tab1 AS cor0
----
12
65
81

query I rowsort
SELECT - col2 - - 87 AS col1 FROM tab0 AS cor0
----
5
54
86

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

query I rowsort
SELECT 50 * - col1 * - 85 + - col0 AS col1 FROM tab2
----
131743
250672
72171

query I rowsort
SELECT DISTINCT + col0 * 7 AS col0 FROM tab2 AS cor0
----
49
546
553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * + col2 col2 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT 95 * col2 FROM tab0 cor0
----
3135
7790
95

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

query I rowsort
SELECT DISTINCT - cor0.col1 + + 72 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
46
59
62

query I rowsort
SELECT + col1 * + 66 FROM tab2
----
1122
2046
3894

query I rowsort
SELECT + 93 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT ALL 76 * + col2 AS col0 FROM tab2
----
1976
2052
2888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1896
SELECT ALL + cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 * - 90 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT ALL + col2 + col0 * 69 * + cor0.col2 FROM tab2 AS cor0
----
13068
139958
207176

query I rowsort
SELECT DISTINCT + col1 * ( 15 ) AS col2 FROM tab2 AS cor0
----
255
465
885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT - col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 + col2 * 28 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT + + col0 / + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 * col0 * + col1 + + col0 * 18 FROM tab1 AS cor0
----
14960
2082
7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT DISTINCT + col0 * col2 - - col0 DIV col0 FROM tab1 cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + col0 * col2 - - col0 / col0 FROM tab1 cor0
----
163
3649
7681

query I rowsort
SELECT DISTINCT - - col1 + + 16 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT - col0 * cor0.col2 + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1907
SELECT ALL col0 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - col1 + - cor0.col1 * + ( ( - cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT + 35 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT + 35 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 96 + col1 * - col0 AS col0 FROM tab0
----
-1968
-3299
-8003

query I rowsort
SELECT + col0 + col2 * + 9 + col2 FROM tab1
----
1040
543
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT ALL + col1 + col1 DIV 34 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + col1 + col1 / 34 FROM tab1
----
10
13
26

query I rowsort
SELECT - 63 + col2 * + col1 + col2 FROM tab0
----
2808
35
7481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 + 97 * + col1 col2 FROM tab2
----
1360
2046
2242

query I rowsort
SELECT DISTINCT - - col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT + cor0.col2 DIV + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-1916
SELECT + cor0.col2 / + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL col1 * - col2 + 24 + + col0 FROM tab0 cor0
----
-2790
-38
-7349

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab2 AS cor0
----
14

query I rowsort
SELECT + col0 * + ( - cor0.col1 ) + + cor0.col2 - - 80 AS col1 FROM tab2 AS cor0
----
-110
-1225
-4496

query I rowsort
SELECT DISTINCT - - 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
73

query I rowsort
SELECT ALL - col2 - - col0 * tab1.col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT - col0 + col1 + - 46 * col1 FROM tab0 AS cor0
----
-3894
-4184
-4400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT + - col1 * + 62 + - 97 DIV + col0 AS col2 FROM tab0 AS cor0
----
-5336
-5643
-6016

skipif mysql # not compatible
query I rowsort label-1925
SELECT + - col1 * + 62 + - 97 / + col0 AS col2 FROM tab0 AS cor0
----
-5336
-5643
-6016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT + - col1 + CAST( 34 AS SIGNED ) * col0 - 69 AS col0 FROM tab2 AS cor0
----
138
2524
2600

skipif mysql # not compatible
query I rowsort label-1926
SELECT + - col1 + CAST ( 34 AS INTEGER ) * col0 - 69 AS col0 FROM tab2 AS cor0
----
138
2524
2600

query I rowsort
SELECT col2 * + ( - col1 ) + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT - col2 + 39 AS col2 FROM tab0 AS cor0
----
-43
38
6

query I rowsort
SELECT DISTINCT - - 55 AS col2 FROM tab0, tab2 AS cor0
----
55

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL + col1 * + col1 DIV + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + col1 * + col1 / + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + col2 + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 * + 79 FROM tab1
----
1027
2054
790

query I rowsort
SELECT ALL 23 FROM tab1 AS cor0
----
23
23
23

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT DISTINCT + 65 + col0 DIV col0 col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + 65 + col0 / col0 col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + col0 * + tab0.col2 * - 95 FROM tab0
----
-3325
-693310
-75240

query I rowsort
SELECT DISTINCT - - 64 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ALL - - col2 + - 75 * col0 AS col1 FROM tab0 AS cor0
----
-1767
-2624
-6593

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 * + 49 + + cor0.col0 FROM tab0 AS cor0
----
101160
166390
396940

query I rowsort
SELECT + 58 + - col1 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT ALL ( 89 + col2 ) AS col1 FROM tab1
----
143
146
185

query I rowsort
SELECT - cor0.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL col0 - - 90 FROM tab2
----
168
169
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1947
SELECT ALL CAST( NULL AS SIGNED ) * + ( - col2 ) - - col0 FROM tab2
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 - col1 * + col0 col1 FROM tab2
----
-1288
-162
-4547

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ALL col0 DIV + col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL col0 / + col0 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 AS col0 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT ALL - - col2 * - CAST( - 78 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - - col2 * - CAST ( - 78 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

query I rowsort
SELECT ( tab0.col0 ) - col1 * - col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ( col1 ) * - col1 + + 90 AS col0 FROM tab2
----
-199
-3391
-871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT ALL col2 * + col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT cor1.col2 * 94 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to c130acda07bba9f98c9880f227d5f242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 94 col2 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT col1 * ( - 90 ) FROM tab1 cor0
----
-1170
-2340
-900

query I rowsort
SELECT - col0 + col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
1264
1455
563

query I rowsort
SELECT - - col0 * - 73 AS col0 FROM tab2 cor0
----
-511
-5694
-5767

query I rowsort
SELECT + cor0.col2 * - 92 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1961
SELECT + col2 + + CAST( NULL AS DECIMAL ) + + col0 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 * - 24 AS col1 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT DISTINCT 33 FROM tab2, tab2 cor0
----
33

query I rowsort
SELECT DISTINCT col2 * + ( col0 ) AS col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT ALL - col1 DIV - 27 col1 FROM tab2
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - col1 / - 27 col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 49 AS REAL ) * cor0.col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT ALL + 85 * + cor0.col0 FROM tab0 AS cor0
----
2040
2975
7565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT ALL - CAST( NULL AS DECIMAL ) + cor0.col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT - cor0.col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT - cor0.col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 57 FROM tab2 cor0
----
-57

query I rowsort
SELECT + + ( - col1 ) * col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1975
SELECT DISTINCT + + CAST( col0 AS SIGNED ) * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + ( col1 ) AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - + 90 + 67 AS col2 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT DISTINCT + col1 DIV 62 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + col1 / 62 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - ( + 55 ) * col0 AS col1 FROM tab1 AS cor0
----
-165
-3520
-4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT ALL + 42 DIV + col1 AS col0 FROM tab2 cor0
----
0
1
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 * - ( + col0 ) + - col0 col2 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT + ( + col0 ) * + ( - col1 ) * - col1 + + col2 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT 24 - col1 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT ALL 73 * + col0 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT + 78 + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
140
54
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + + col1 col1 FROM tab2 cor0
----
106
64
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT ALL + col2 DIV + col2 + + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + col2 / + col2 + + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL 2 + + col0 + - cor0.col1 FROM tab1 AS cor0
----
-21
56
69

query I rowsort
SELECT ALL - cor0.col1 + - col0 * - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT col1 * - col0 + - 60 * + col1 AS col2 FROM tab2 AS cor0
----
-2077
-2363
-8142

query I rowsort
SELECT + - col1 + + col1 * 48 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 WHERE - col2 <> ( col2 ) OR NOT - col2 * + cor0.col0 NOT BETWEEN - col0 / col0 AND col1 * - col0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 + - col1 + col1 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col0 * col0 + col1 FROM tab2 cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT DISTINCT - - cor0.col1 DIV + col1 col0 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + + col0 * - col2 * - col1 FROM tab1 AS cor0
----
109056
39729
7128

query I rowsort
SELECT DISTINCT + + col1 * + col0 + + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

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

query I rowsort
SELECT DISTINCT + col0 + col0 * tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL col0 * col0 + + col2 * col1 FROM tab1
----
1413
4666
7648

query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * + col1 col2 FROM tab1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + tab1.col2 * + tab1.col1 * col0 + - col1 FROM tab1
----
36470
4186
99827

query I rowsort
SELECT ALL col1 * col1 * - col2 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + col0 + + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + + col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col0 + col2 - col1 FROM tab0 cor0
----
-29
-61
80

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL col1 - col1 * col0 AS col0 FROM tab2 WHERE NOT ( col0 * col0 * col1 ) IN ( - tab2.col1 )
----
-1326
-186
-4543

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE col1 NOT IN ( - col0 * + tab0.col1 - - col0 )
----
24
35
89

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

query I rowsort
SELECT - tab1.col1 * - col1 + col0 * col0 FROM tab1
----
4196
6569
685

query I rowsort
SELECT col1 + col1 * - tab0.col1 * - col2 FROM tab0
----
244154
679133
9506

query I rowsort
SELECT + ( + cor1.col1 ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 47 AS col1 FROM tab0
----
47
47
47

query I rowsort
SELECT DISTINCT 28 * col2 FROM tab2
----
1064
728
756

query I rowsort
SELECT cor0.col0 * - 93 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 27d5af4129e378cc99050dcd5bfd2580

query I rowsort
SELECT - 80 * col1 * + ( 39 ) AS col0 FROM tab2 AS cor0
----
-184080
-53040
-96720

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

query I rowsort
SELECT ALL - col1 + tab2.col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + - col1 * - col1 + - tab0.col0 col2 FROM tab0
----
7458
8283
9471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab1.col0 + + col0 col0 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col1 col2 FROM tab2
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 + col1 col0 FROM tab2 AS cor0
----
113
196
69

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

query I rowsort
SELECT - col0 * col2 + + col1 AS col1 FROM tab1
----
-136
-3638
-7667

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT col1 DIV + tab1.col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2030
SELECT col1 / + tab1.col1 AS col2 FROM tab1
----
1
1
1

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

query I rowsort
SELECT DISTINCT - col1 * + col2 * tab2.col0 AS col0 FROM tab2
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + col0 col0 FROM tab2 WHERE NULL > ( NULL )
----

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

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

query I rowsort
SELECT + ( - col2 ) * ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + col0 * col1 + col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + + col0 * - col2 * 73 + + col1 * col0 FROM tab1 AS cor0
----
-11748
-265664
-559600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 43 + - col0 col1 FROM tab2 AS cor0
----
-1340
-2615
-810

query I rowsort
SELECT ALL - + col0 * cor0.col0 + - 68 * + col2 AS col1 FROM tab2 AS cor0
----
-1885
-7852
-8825

query I rowsort
SELECT DISTINCT - col2 + ( ( - col0 ) ) - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2132
-223
-3119

query I rowsort
SELECT 7 + tab1.col0 AS col1 FROM tab1
----
10
71
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT + 57 * - col0 + - 91 AS col0 FROM tab1
----
-262
-3739
-4651

query I rowsort
SELECT - col1 * - 74 + col0 * 36 FROM tab1 AS cor0
----
2032
3044
3842

query I rowsort
SELECT ALL + col0 * col1 + + col2 FROM tab0 cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 52 + col2 col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 * - col1 - - cor0.col0 col0 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT - + 99 * + 93 + col1 FROM tab0 AS cor0
----
-9110
-9116
-9121

query I rowsort
SELECT + 92 - col0 AS col2 FROM tab0 AS cor0
----
3
57
68

query I rowsort
SELECT ALL + + col1 + + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - ( - col1 ) + col1 * col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT + ( col2 ) - - col2 * 95 AS col1 FROM tab0 cor0
----
3168
7872
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT col2 DIV - ( - col0 ) AS col0 FROM tab2
----
0
0
3

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

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

query I rowsort
SELECT ALL tab0.col2 * ( ( + col2 ) + + 32 ) AS col0 FROM tab0
----
2145
33
9348

query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT ALL - col2 + + col0 + + col1 DIV col0 AS col2 FROM tab2
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - col2 + + col0 + + col1 / col0 AS col2 FROM tab2
----
-16
41
52

query I rowsort
SELECT + ( col1 ) * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 82 + col1 * col0 FROM tab0 AS cor0
----
2146
3477
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 + - 13 * + col2 AS col2 FROM tab2
----
-260
-344
-415

query I rowsort
SELECT - 59 * 62 + col2 FROM tab0
----
-3576
-3625
-3657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 * col2 + col2 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col0 * + tab0.col0 + col2 * col1 + - col1 AS col1 FROM tab0
----
1225
15292
3328

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT col1 * - tab0.col0 DIV + col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2067
SELECT col1 * - tab0.col0 / + col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - ( - col0 ) * col0 AS col1 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + + col2 - col0 col1 FROM tab0
----
-3
-30
13

query I rowsort
SELECT DISTINCT col1 * + tab1.col1 + col0 + + col2 FROM tab1
----
221
345
733

query I rowsort
SELECT ALL 96 + - col0 FROM tab1
----
16
32
93

query I rowsort
SELECT - cor1.col1 * cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 81a8fcf7518fbae07bfeaffb3ad3a436

query I rowsort
SELECT + + 21 * + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
1839
1993
2038

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT ALL ( - col1 ) DIV col0 + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-42
-96

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL ( - col1 ) / col0 + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-42
-96

query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 76 * + col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - col2 * - col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT 77 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-3571
-7603
-85

query I rowsort
SELECT col2 + col0 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
1226
19041
649604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + - cor0.col1 col0 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT ALL col2 + + col1 + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT - cor0.col2 + - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98

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

query I rowsort
SELECT + - col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 55 * 45 AS col1 FROM tab0, tab1 AS cor0
----
2475

query I rowsort
SELECT + col2 + ( - col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + cor0.col1 * + 37 FROM tab2 cor0
----
1147
2183
629

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT + col2 DIV - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT + col2 / - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 78 + col1 AS col0 FROM tab0 AS cor0
----
13
19
8

query I rowsort
SELECT + - 47 * col1 - col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT ALL + 18 + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4498db1eeb17b1aac3ee3380f1b31fba

query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT - 71 DIV - cor0.col2 + - col0 * col2 FROM tab0 AS cor0
----
-7298
-790
36

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 71 / - cor0.col2 + - col0 * col2 FROM tab0 AS cor0
----
-7298
-790
36

query I rowsort
SELECT col1 - 32 FROM tab2 AS cor0
----
-1
-15
27

query I rowsort
SELECT + 94 * - 4 AS col1 FROM tab1 AS cor0
----
-376
-376
-376

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT + 31 + col0 DIV - cor0.col1 col2 FROM tab0 cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2097
SELECT + 31 + col0 / - cor0.col1 col2 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT tab1.col1 * + col1 * 72 + + tab1.col0 * - col2 FROM tab1
----
3552
4488
48510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2099
SELECT DISTINCT - cor0.col1 + + CAST( col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT - cor0.col1 + + CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 57 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL ( 45 ) + col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT + 57 * - col1 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT DISTINCT + col2 * - 57 + col0 * - col1 FROM tab0 AS cor0
----
-12773
-3452
-3945

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT ALL 42 DIV 16 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 42 / 16 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + cor1.col0 * 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
144
210
534

query I rowsort
SELECT - - 47 * col0 FROM tab2 AS cor0
----
329
3666
3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT - col0 DIV col2 + + col0 * + col1 FROM tab0 AS cor0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-2107
SELECT - col0 / col2 + + col0 * + col1 FROM tab0 AS cor0
----
2064
3360
8098

query I rowsort
SELECT DISTINCT + - 88 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
3
9

query I rowsort
SELECT col0 + - col0 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 + + 92 * 31 col1 FROM tab0 cor0
----
10314
2949
5690

query I rowsort
SELECT DISTINCT + col1 * + col1 + 88 FROM tab1 cor0
----
188
257
764

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL - col0 DIV - ( 66 ) AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - col0 / - ( 66 ) AS col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT ALL + + cor0.col1 * + 86 + + cor0.col2 * + col0 * + 43 AS col1 FROM tab0 AS cor0
----
321640
41452
9847

query I rowsort
SELECT DISTINCT - 10 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-10

query I rowsort
SELECT ALL ( - col1 + + 42 ) * + col2 AS col1 FROM tab1
----
1824
2784
864

query I rowsort
SELECT + + col0 * + cor0.col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + - cor0.col2 * + 91 + 0 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2118
SELECT cor0.col1 * - CAST( + col1 AS SIGNED ) + col0 * + ( col0 ) FROM tab2 AS cor0
----
-912
2603
5952

skipif mysql # not compatible
query I rowsort label-2118
SELECT cor0.col1 * - CAST ( + col1 AS INTEGER ) + col0 * + ( col0 ) FROM tab2 AS cor0
----
-912
2603
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT - cor1.col2 - - 78 DIV 61 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 086a997bd5156378ac225a160ff59122

skipif mysql # not compatible
query I rowsort label-2119
SELECT - cor1.col2 - - 78 / 61 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 086a997bd5156378ac225a160ff59122

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2121
SELECT DISTINCT tab0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL cor1.col0 * - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 164bdd441d6fbe34592d7280cc7d0af5

query I rowsort
SELECT - 7 + col2 + - col1 AS col0 FROM tab1
----
21
40
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col0 * col1 col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col1 * col1 * + 14 FROM tab1
----
1400
2366
9464

query I rowsort
SELECT - ( + 46 ) FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT 55 * - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 97fffb985b84746b3608ffd578bdb450

query I rowsort
SELECT col2 * - col1 - - col1 * 79 FROM tab0
----
-273
3956
7566

query I rowsort
SELECT - ( 62 ) * - col2 AS col0 FROM tab0 AS cor0
----
2046
5084
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - 42 col1 FROM tab0 AS cor0
----
-128
-133
-139

query I rowsort
SELECT 16 * 51 + col1 AS col0 FROM tab1
----
826
829
842

query I rowsort
SELECT - 33 AS col1 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948

query I rowsort
SELECT DISTINCT + 5 FROM tab2, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
5

query I rowsort
SELECT + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT col1 + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( 44 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT ( col0 ) * 3 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - col0 * + col0 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

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

query I rowsort
SELECT - - ( - col1 ) + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + 76 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT ALL col0 - col1 DIV + 14 FROM tab1
----
2
64
80

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL col0 - col1 / + 14 FROM tab1
----
2
64
80

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

query I rowsort
SELECT + 3 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - - col2 + - ( col0 ) * + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + ( + 75 ) * col0 * col2 FROM tab0 cor0
----
2625
547350
59400

query I rowsort
SELECT - 91 * - col0 + col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT ALL + 75 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
175
244
751

query I rowsort
SELECT - 74 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
-3970
-4208
-7091

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + cor0.col0 * + 76 AS col1 FROM tab0 cor0
----
1791
2659
6682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) * col0 + - col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - 82 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT - + 32 * col1 AS col0 FROM tab1 AS cor0
----
-320
-416
-832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT - col0 + col0 DIV + col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-2156
SELECT - col0 + col0 / + col1 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT 35 + 6 * col1 FROM tab0 cor0
----
551
581
617

query I rowsort
SELECT DISTINCT + ( 71 ) AS col2 FROM tab1, tab1 AS cor0
----
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT ALL + col0 DIV - 8 AS col2 FROM tab0
----
-11
-3
-4

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + col0 / - 8 AS col2 FROM tab0
----
-11
-3
-4

query I rowsort
SELECT - - col2 - + col0 FROM tab1 AS cor0
----
-7
16
51

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT DISTINCT 99 + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT 99 + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
100

query I rowsort
SELECT ALL + ( + col2 ) * col2 * - 82 + 58 * col2 AS col1 FROM tab2 AS cor0
----
-116204
-53924
-58212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + 78 * - 3 * col1 - col0 AS col1 FROM tab2 AS cor0
----
-13884
-4057
-7261

query I rowsort
SELECT ALL + + ( - 77 ) + - col0 FROM tab1 AS cor0
----
-141
-157
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT ALL - 18 DIV - 69 + + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - 18 / - 69 + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( - col1 ) * tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 54 * 69 FROM tab2 AS cor0
----
3726

query I rowsort
SELECT ALL + ( - cor0.col2 + - cor0.col2 ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9

query I rowsort
SELECT + col1 * 67 + - col1 AS col1 FROM tab2 cor0
----
1122
2046
3894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 cor0
----
NULL

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

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

query I rowsort
SELECT - col2 * col1 + - tab2.col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT cor0.col2 * 91 FROM tab0, tab2 AS cor0
----
2366
2457
3458

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

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

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

query I rowsort
SELECT 24 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL - col0 + tab2.col1 AS col0 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT + cor0.col2 DIV cor0.col0 + + 60 AS col2 FROM tab1 AS cor0
----
60
61
78

skipif mysql # not compatible
query I rowsort label-2181
SELECT + cor0.col2 / cor0.col0 + + 60 AS col2 FROM tab1 AS cor0
----
60
61
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 63 + - 72 * col1 + col0 FROM tab0
----
-6105
-6400
-6886

query I rowsort
SELECT DISTINCT + 79 - tab1.col1 FROM tab1, tab2 AS cor0
----
53
66
69

query I rowsort
SELECT ALL + 92 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT + CAST( NULL AS SIGNED ) + 96 + + tab0.col2 * + ( - tab0.col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT ALL + tab0.col2 DIV + col0 + col0 AS col2 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + tab0.col2 / + col0 + col0 AS col2 FROM tab0
----
25
35
89

query I rowsort
SELECT - + col0 * ( 97 ) FROM tab2 AS cor0
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT DISTINCT col1 DIV - ( + 33 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT col1 / - ( + 33 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 49 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT col1 + 91 FROM tab2 AS cor0
----
108
122
150

query I rowsort
SELECT col2 + 51 * col2 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT ALL + + col1 * + 47 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT DISTINCT col0 * ( 79 ) + col2 - 30 AS col1 FROM tab1 AS cor0
----
261
5083
6386

query I rowsort
SELECT DISTINCT + col0 * col0 + 30 AS col0 FROM tab2 AS cor0
----
6114
6271
79

query I rowsort
SELECT col1 * + cor0.col0 + - 71 FROM tab2 AS cor0
----
1272
146
4531

query I rowsort
SELECT DISTINCT - - col0 - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + col1 * 85 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT ALL col2 * - col0 + - col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - - col0 * col2 * ( + col0 ) + col1 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT - col1 * 58 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT - ( + col2 ) + 78 AS col0 FROM tab1 AS cor0
----
-18
21
24

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT + col2 * - col0 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col1 * + col2 + + col2 * 99 AS col1 FROM tab1
----
10752
6213
6750

query I rowsort
SELECT + 78 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-2025
-716
-934

query I rowsort
SELECT + 41 * - col1 + - 33 FROM tab0 cor0
----
-3559
-3764
-4010

query I rowsort
SELECT - + ( + col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT tab0.col1 * + 63 AS col2 FROM tab0
----
5418
5733
6111

query I rowsort
SELECT + 17 * + col1 AS col2 FROM tab1
----
170
221
442

query I rowsort
SELECT DISTINCT + ( + col0 ) * tab2.col0 + - col1 FROM tab2
----
18
6025
6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2212
SELECT - CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 82 + col0 * ( - col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-119570
-50952
-5777

query I rowsort
SELECT DISTINCT - col2 * - col0 + - ( col0 ) FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + col1 - - col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col0 * - cor0.col2 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2217
SELECT DISTINCT cor0.col0 / + cor0.col0 + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ( 32 ) AS col2 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - col1 + + 86 * + 11 * - col1 AS col1 FROM tab1
----
-12311
-24622
-9470

query I rowsort
SELECT - col0 + cor0.col1 * + 93 FROM tab0 cor0
----
7974
8374
8986

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT ALL col0 + ( col1 * col0 ) AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 75 + - col0 * - col0 FROM tab0 AS cor0
----
1300
651
7996

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 8 * + 86 AS col0 FROM tab2
----
688
688
688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * 93 col0 FROM tab0 AS cor0
----
3999
3999
3999

query I rowsort
SELECT DISTINCT cor0.col2 - + col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + ( 52 ) * col0 FROM tab2
----
364
4056
4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT col0 * - col1 * - col0 + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
106093
1519
358955

skipif mysql # not compatible
query I rowsort label-2231
SELECT col0 * - col1 * - col0 + col0 / - col1 AS col0 FROM tab2 AS cor0
----
106093
1519
358955

query I rowsort
SELECT - - col0 + + 70 FROM tab1 AS cor0
----
134
150
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT CAST( col0 AS SIGNED ) + - col1 DIV col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-2233
SELECT CAST ( col0 AS INTEGER ) + - col1 / col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT + - col1 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - ( + col0 ) - + col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + ( col0 ) * col2 AS col1 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT + col1 DIV col1 + + ( - col0 ) DIV - col0 FROM tab1 AS cor0
----
2
2
2

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

query I rowsort
SELECT ( cor0.col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + col1 * 42 AS col0 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT ALL col2 + col2 * 68 FROM tab2
----
1794
1863
2622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + - col1 + + tab0.col1 col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - col1 * ( col0 ) * + col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT + 42 AS col2 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT + col2 * 3 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT + + col0 * cor0.col1 * + col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT - col1 + - col0 - cor0.col1 * col1 * 84 FROM tab0 cor0
----
-621374
-695784
-790488

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL tab2.col0 - col0 * 93 FROM tab2
----
-644
-7176
-7268

query I rowsort
SELECT + col0 * + 11 + 9 FROM tab1
----
42
713
889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2251
SELECT ALL tab0.col2 * + tab0.col0 + + ( - col0 ) + - CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0
----
-1296
-3395
-890

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL tab0.col2 * + tab0.col0 + + ( - col0 ) + - CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0
----
-1296
-3395
-890

query I rowsort
SELECT DISTINCT + col1 + - 65 * - 95 AS col2 FROM tab0
----
6261
6266
6272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2253
SELECT DISTINCT + tab0.col0 + + CAST( NULL AS DECIMAL ) * - tab0.col2 AS col1 FROM tab0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT ALL col2 + + CAST( - col2 AS SIGNED ) DIV + col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL col2 + + CAST ( - col2 AS INTEGER ) / + col1 FROM tab1
----
52
52
89

query I rowsort
SELECT + tab2.col1 + - 36 AS col2 FROM tab2
----
-19
-5
23

query I rowsort
SELECT ALL + col0 + - col2 * + col2 * col2 + + col0 AS col2 FROM tab0
----
-35889
-551190
69

query I rowsort
SELECT ALL - col0 * col2 + + col1 * - col1 FROM tab1 cor0
----
-3748
-7849
-838

query I rowsort
SELECT ALL + cor0.col1 + col2 - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + cor0.col1 * 90 + col2 FROM tab2 AS cor0
----
1568
2817
5336

query I rowsort
SELECT - col0 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT ( 51 * col0 ) AS col0 FROM tab1
----
153
3264
4080

query I rowsort
SELECT - ( col0 ) * col2 * - col0 + 58 FROM tab0
----
1283
19066
649580

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - ( - 73 ) AS col2 FROM tab0
----
73
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2266
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2266
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * col1 col0 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * cor0.col2 col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - 5 * + col0 AS col1 FROM tab0 cor0
----
-120
-175
-445

query I rowsort
SELECT + 42 * - col2 * - col0 FROM tab1 AS cor0
----
153216
322560
6804

query I rowsort
SELECT - cor0.col0 + - col2 * col1 * + col2 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT - col1 + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL + ( - col0 ) DIV - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + ( - col0 ) / - col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + + col1 * col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - ( col1 ) + + cor0.col2 * + col2 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT - - 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT DISTINCT - 78 * col0 AS col1 FROM tab0 AS cor0
----
-1872
-2730
-6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col1 FROM tab1 cor0
----
-2916
-3249
-9216

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

query I rowsort
SELECT ALL - - 0 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 35 FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to ca814400b6361c20866ff8fe01717430

query I rowsort
SELECT DISTINCT - col2 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT ALL col2 * 8 + col1 DIV + cor0.col1 + - 5 FROM tab1 cor0
----
428
452
764

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL col2 * 8 + col1 / + cor0.col1 + - 5 FROM tab1 cor0
----
428
452
764

query I rowsort
SELECT + col2 + 89 AS col0 FROM tab0 AS cor0
----
122
171
90

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + col2 + col2 * cor0.col0 - col1 AS col2 FROM tab1 AS cor0
----
190
3695
7763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT DISTINCT + cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - 14 * - col0 AS col2 FROM tab2
----
1092
1106
98

skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col0 AS REAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2292
SELECT + col0 * - CAST( 63 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1512
-2205
-5607

skipif mysql # not compatible
query I rowsort label-2292
SELECT + col0 * - CAST ( 63 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT - - 19 - - 57 * col1 AS col1 FROM tab2 AS cor0
----
1786
3382
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col0 col1 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + col1 + col2 * 27 col0 FROM tab2 AS cor0
----
1774
2093
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 6 col2 FROM tab0 cor0
----
516
546
582

query I rowsort
SELECT 80 * - col0 FROM tab2 cor0
----
-560
-6240
-6320

query I rowsort
SELECT col0 + + ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col0 + + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2300
SELECT DISTINCT + + col2 + ( col2 ) DIV 36 AS col0 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + + col2 + ( col2 ) / 36 AS col0 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT DISTINCT - - ( col1 ) * - col2 - + col0 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT - 38 + col1 AS col1 FROM tab0 AS cor0
----
48
53
59

query I rowsort
SELECT DISTINCT ( col1 ) * col0 - 80 AS col1 FROM tab1 cor0
----
-2
560
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2304
SELECT ALL col0 * ( col0 + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 94 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + ( - 43 ) + col2 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT + + ( - col2 ) + + cor0.col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2308
SELECT DISTINCT - col2 * col0 + + col1 * + CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-2356
-494
648

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - col2 * col0 + + col1 * + CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL + col2 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - - 71 + + col0 AS col1 FROM tab2 AS cor0
----
149
150
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 + + 53 * + col1 AS col2 FROM tab2 AS cor0
----
1670
3153
939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 81 + col1 col2 FROM tab2 AS cor0
----
1394
2542
4838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 * - col1 + ( - cor0.col0 + col0 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - + cor0.col0 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col2 + + col2 * col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
133
14842
3663

query I rowsort
SELECT + col1 * col1 + col0 AS col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT col0 + - cor0.col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2322
SELECT - col1 DIV tab2.col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2322
SELECT - col1 / tab2.col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * + col0 * col1 AS col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + - ( - col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * - col2 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + 26 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT 17 * col1 + col0 FROM tab0
----
1486
1636
1684

query I rowsort
SELECT ALL + 2 * col2 + col0 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 + + col1 col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - cor0.col1 + - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) < - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col0 FROM tab2 WHERE - col0 >= ( NULL )
----

query I rowsort
SELECT + col1 * + col1 * col0 AS col1 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL - col2 DIV col0 col0 FROM tab2
----
-3
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT DISTINCT + col1 * col0 DIV - col0 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + col1 * col0 / - col0 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT tab0.col2 * col2 DIV col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2338
SELECT tab0.col2 * col2 / col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 * tab2.col1 - + tab2.col1 AS col0 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL + tab0.col2 + col2 - + col1 * + col0 AS col2 FROM tab0
----
-1998
-3393
-7935

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

query I rowsort
SELECT ALL col0 * + col0 + tab1.col1 * col1 * tab1.col2 FROM tab1
----
22624
36513
9796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * - tab2.col0 - col1 * col2 * col0 col2 FROM tab2
----
-157131
-478608
-7378

query I rowsort
SELECT DISTINCT + tab1.col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT tab1.col2 + - tab1.col2 + - tab1.col0 DIV + tab1.col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2346
SELECT tab1.col2 + - tab1.col2 + - tab1.col0 / + tab1.col0 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT + col1 DIV - col0 AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2347
SELECT + col1 / - col0 AS col1 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2348
SELECT ALL - col1 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - col1 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - col1 * col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT DISTINCT col1 DIV col1 col0 FROM tab0
----
1

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

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

query I rowsort
SELECT + cor0.col2 * cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT - col2 * col0 + col1 * col2 + - cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
-2645
-313
-3975

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

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

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT col1 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( cor0.col1 * - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 + + 78 * - ( col2 ) FROM tab0 AS cor0
----
3317
65538
657722

query I rowsort
SELECT ALL col2 + 75 - col1 FROM tab1 AS cor0
----
103
122
158

query I rowsort
SELECT - 92 + col0 AS col0 FROM tab0 AS cor0
----
-3
-57
-68

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 + - col2 * + 95 FROM tab0 AS cor0
----
-1071
309
3300

query I rowsort
SELECT DISTINCT + - ( col1 ) + + col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - + ( col2 ) + + col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col2 + col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2365
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT - CAST( ( col0 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2366
SELECT - CAST ( ( col0 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + col0 + ( cor0.col2 ) FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - 46 * + 13 + col0 - col0 FROM tab1 AS cor0
----
-598
-598
-598

query I rowsort
SELECT DISTINCT + col2 + + 38 AS col1 FROM tab2 AS cor0
----
64
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2370
SELECT - CAST( col0 AS SIGNED ) DIV cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2370
SELECT - CAST ( col0 AS INTEGER ) / cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 + col0 * cor0.col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT 48 + + col0 FROM tab2 AS cor0
----
126
127
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 + - col0 * col0 + - col2 * + col2 * + col1 col2 FROM tab2 AS cor0
----
-22555
-30696
-45875

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT tab1.col1 + 95 DIV tab1.col0 FROM tab1
----
11
14
57

skipif mysql # not compatible
query I rowsort label-2374
SELECT tab1.col1 + 95 / tab1.col0 FROM tab1
----
11
14
57

query I rowsort
SELECT + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 77 * - 47 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-3619

query I rowsort
SELECT DISTINCT + - col0 * ( col0 * + col0 ) - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-13857
-42876
-705051

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT - col1 DIV col0 - 4 AS col2 FROM tab0
----
-5
-6
-7

skipif mysql # not compatible
query I rowsort label-2379
SELECT - col1 / col0 - 4 AS col2 FROM tab0
----
-5
-6
-7

query I rowsort
SELECT + 73 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT 40 + 69 AS col0 FROM tab2 cor0
----
109
109
109

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT DISTINCT + 25 DIV + 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + 25 / + 48 FROM tab1 AS cor0
----
0

query I rowsort
SELECT tab1.col1 + col0 * + col1 AS col0 FROM tab1
----
104
1053
650

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

query I rowsort
SELECT DISTINCT + col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT DISTINCT + ( + col0 ) + - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + ( + col0 ) + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT ALL ( 58 ) FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 - - col1 AS col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL + 20 * col0 * - col1 + col2 FROM tab2
----
-26822
-4313
-92014

query I rowsort
SELECT tab1.col1 + + 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 320a4e9765c8856c092441111046d612

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT DISTINCT + col1 + col1 * 86 + - col2 DIV - col1 AS col1 FROM tab1
----
1138
2264
875

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + col1 + col1 * 86 + - col2 / - col1 AS col1 FROM tab1
----
1138
2264
875

query I rowsort
SELECT 74 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + - 90 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT ALL col0 * col0 + + ( col1 * col1 ) AS col2 FROM tab1
----
4196
6569
685

query I rowsort
SELECT + 13 + - col2 AS col0 FROM tab2
----
-13
-14
-25

query I rowsort
SELECT + - ( + col2 ) + ( - col1 ) FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + col2 col1 FROM tab2
----
110
111
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT 95 DIV + tab2.col0 AS col1 FROM tab2
----
1
1
13

skipif mysql # not compatible
query I rowsort label-2399
SELECT 95 / + tab2.col0 AS col1 FROM tab2
----
1
1
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2400
SELECT col1 + - col0 * CAST( NULL AS SIGNED ) * 18 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - cor0.col0 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT + - ( - col2 ) * CAST( NULL AS SIGNED ) + 62 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - cor0.col1 * + 81 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT - col0 * - 79 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col1 * + col0 + col1 + + col0 AS col2 FROM tab1 cor0
----
107
1133
714

query I rowsort
SELECT - col2 * - ( - 1 * + col2 ) + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col0 * col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT ALL - col0 / col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - col0 col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - col1 + col0 + 60 AS col1 FROM tab2
----
122
36
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2415
SELECT + cor0.col0 * - 79 + col1 DIV col2 FROM tab0 AS cor0
----
-1894
-2668
-7030

skipif mysql # not compatible
query I rowsort label-2415
SELECT + cor0.col0 * - 79 + col1 / col2 FROM tab0 AS cor0
----
-1894
-2668
-7030

query I rowsort
SELECT ALL - col2 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT cor0.col0 DIV 10 FROM tab1 AS cor0
----
0
6
8

skipif mysql # not compatible
query I rowsort label-2417
SELECT cor0.col0 / 10 FROM tab1 AS cor0
----
0
6
8

query I rowsort
SELECT cor0.col1 + - ( col1 ) * - col2 * + col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL ( - col2 ) + - col2 + + ( col2 ) * col1 FROM tab1
----
1056
1296
456

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT 89 + - col2 DIV 11 AS col2 FROM tab0
----
82
86
89

skipif mysql # not compatible
query I rowsort label-2421
SELECT 89 + - col2 / 11 AS col2 FROM tab0
----
82
86
89

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col2 + - col2 * col1 - col1 FROM tab1 AS cor0
----
-1357
-1484
-637

query I rowsort
SELECT + col2 * - col2 + cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + col1 * 86 + col1 - col2 FROM tab1 AS cor0
----
1035
2208
813

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT ALL + col0 + tab2.col0 + ( col0 ) * col0 DIV - col0 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + col0 + tab2.col0 + ( col0 ) * col0 / - col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT col1 + - 94 FROM tab2 AS cor0
----
-35
-63
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT ALL + + cor0.col0 DIV col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL + + cor0.col0 / col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ( + ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col0 * + 65 AS col2 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

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

query I rowsort
SELECT ALL - cor0.col2 - col1 * col2 * ( + col2 ) FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT ALL + ( - 21 ) + col0 AS col1 FROM tab0 cor0
----
14
3
68

query I rowsort
SELECT + + ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT DISTINCT - col0 DIV - tab2.col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT - col0 / - tab2.col0 FROM tab2
----
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
3645 values hashing to 48b1d5d88e8ac6a6daea5a8e5606f112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT - col1 DIV ( col0 ) FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - col1 / ( col0 ) FROM tab1
----
-8
0

query I rowsort
SELECT + + col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

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

query I rowsort
SELECT DISTINCT - col2 + - col1 + 16 AS col1 FROM tab1 AS cor0
----
-51
-64
-93

query I rowsort
SELECT ALL col0 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT - - 65 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - - col1 * col1 + - ( col0 ) FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT 20 DIV 27 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT 20 / 27 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
0

query I rowsort
SELECT ALL col2 + + 29 FROM tab1 cor0
----
125
83
86

query I rowsort
SELECT ALL - - 68 * 4 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7f6e6ef4468adbe629deeb71410b2d

query I rowsort
SELECT + + 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT + col1 * - col0 + col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT - col0 DIV - col2 + + col2 AS col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-2453
SELECT - col0 / - col2 + + col2 AS col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT + + col2 * 37 FROM tab0 cor0
----
1221
3034
37

query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT - + col1 * + col2 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26

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

query I rowsort
SELECT DISTINCT cor0.col0 * + 51 + - col2 * cor0.col0 * + col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-230144
-330
-610240

query I rowsort
SELECT + - cor0.col0 * - col1 + - col2 + - col2 * - col2 FROM tab0 cor0
----
14741
3120
3395

query I rowsort
SELECT col1 * - 16 + cor0.col1 + - col2 FROM tab1 AS cor0
----
-207
-291
-444

query I rowsort
SELECT col0 * - ( col0 ) * - col1 + - ( + col1 ) FROM tab1 AS cor0
----
208
40950
83187

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT DISTINCT + - col1 + + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + - col1 + + col1 / - col2 AS col1 FROM tab0 AS cor0
----
-194
-88
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT + col1 + + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2462
SELECT + col1 + + cor0.col0 / - col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT col2 * 55 * col0 FROM tab0 cor0
----
1925
401390
43560

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2465
SELECT DISTINCT + ( ( + col2 ) ) + + col0 DIV + col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + ( ( + col2 ) ) + + col0 / + col0 FROM tab1 AS cor0
----
55
58
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT ALL + ( + cor0.col2 ) DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + ( + cor0.col2 ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT + + 25 + - ( - col0 ) DIV + 26 FROM tab2 AS cor0
----
25
28
28

skipif mysql # not compatible
query I rowsort label-2468
SELECT + + 25 + - ( - col0 ) / + 26 FROM tab2 AS cor0
----
25
28
28

query I rowsort
SELECT DISTINCT + col1 * 90 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT col2 * col1 * col0 AS col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - + col0 * col0 - - 58 * + col2 * + col1 AS col0 FROM tab2 AS cor0
----
31227
48497
82888

query I rowsort
SELECT + 60 + col1 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT ALL - 4 + col1 + + col0 FROM tab2 AS cor0
----
133
34
92

query I rowsort
SELECT ALL col0 * col0 + 77 AS col0 FROM tab0 AS cor0
----
1302
653
7998

query I rowsort
SELECT - 39 * + col2 + - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
-11297
-3351
-3434

query I rowsort
SELECT + - cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT - col2 + col0 DIV - col1 AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2478
SELECT - col2 + col0 / - col1 AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 - col2 col2 FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT + + cor0.col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 86 AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT + + col2 + + 5 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
-263
-304
39

query I rowsort
SELECT ALL - - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT + + col2 DIV cor0.col0 + + col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2484
SELECT + + col2 / cor0.col0 + + col1 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL + cor0.col1 + ( col1 ) + + col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT - ( - tab2.col0 ) + col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 + + col1 col0 FROM tab1
----
82
85
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT 17 * tab0.col2 DIV 24 + - 41 * col1 FROM tab0
----
-3503
-3673
-3977

skipif mysql # not compatible
query I rowsort label-2488
SELECT 17 * tab0.col2 / 24 + - 41 * col1 FROM tab0
----
-3503
-3673
-3977

query I rowsort
SELECT 24 * - cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 671e380e5d7f2f2976bec5f419db193f

query I rowsort
SELECT DISTINCT + - col2 * ( col2 ) + + col0 AS col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - - cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 47 * 54 + - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f84d576984fc42d4d6f883accfebddbc

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

query I rowsort
SELECT col1 + 80 AS col2 FROM tab2
----
111
139
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2495
SELECT col1 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2495
SELECT col1 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - col2 * 39 FROM tab0
----
-1287
-3198
-39

query I rowsort
SELECT + tab2.col2 + - ( col0 ) * - col1 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL - col0 + col0 * - 79 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT ALL + col2 + - ( cor0.col1 + + col0 ) AS col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT + col2 * 36 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT ALL col0 * col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 95 col1 FROM tab0
----
-2280
-3325
-8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab1.col2 ) col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col2 * - 18 * col1 AS col1 FROM tab0
----
-134316
-1746
-51084

query I rowsort
SELECT tab0.col0 * col1 + + tab0.col1 FROM tab0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - ( - col0 ) * - col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 59 + - col2 * - col1 FROM tab0 AS cor0
----
156
2897
7521

query I rowsort
SELECT ALL + col0 * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - 36 + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL 20 + - tab1.col0 * - col0 AS col0 FROM tab1
----
29
4116
6420

query I rowsort
SELECT ALL - 77 * + col0 * + ( - cor0.col0 ) + col0 FROM tab2 AS cor0
----
3780
468546
480636

query I rowsort
SELECT DISTINCT + 89 * col2 FROM tab1 AS cor0
----
4806
5073
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT ALL - - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - - col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + 73 * col1 + - 41 - col0 AS col2 FROM tab1 AS cor0
----
1854
625
828

query I rowsort
SELECT DISTINCT - col1 * + col0 + 24 + col1 FROM tab2 AS cor0
----
-1302
-162
-4519

query I rowsort
SELECT DISTINCT 87 * + col2 + - col2 FROM tab2 AS cor0
----
2236
2322
3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 84 - - col2 AS col2 FROM tab1 cor0
----
-27
-30
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT DISTINCT CAST( NULL AS SIGNED ) * 5 FROM tab2, tab1 cor0
----
NULL

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

query I rowsort
SELECT + cor0.col0 + + 72 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 762098405502f13225a711608ac94782

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

query I rowsort
SELECT ALL + 60 AS col1 FROM tab2
----
60
60
60

query I rowsort
SELECT 43 FROM tab1, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT col1 - 16 FROM tab1
----
-3
-6
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT tab2.col0 * - tab2.col0 + + col1 DIV + col0 FROM tab2
----
-45
-6084
-6241

skipif mysql # not compatible
query I rowsort label-2528
SELECT tab2.col0 * - tab2.col0 + + col1 / + col0 FROM tab2
----
-45
-6084
-6241

query I rowsort
SELECT DISTINCT 91 * col2 AS col1 FROM tab0
----
3003
7462
91

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + col0 * col1 + + col1 * + col0 * - col1 FROM tab0
----
-175440
-325920
-728910

query I rowsort
SELECT + 42 * - col1 FROM tab1
----
-1092
-420
-546

query I rowsort
SELECT DISTINCT + col2 * col0 * + col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + col1 + - 59 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT - cor0.col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + cor2.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
10
13
26

query I rowsort
SELECT DISTINCT + + col0 + col2 * 60 AS col1 FROM tab1 AS cor0
----
3243
3484
5840

query I rowsort
SELECT DISTINCT + col0 * - col1 + 75 AS col2 FROM tab2 AS cor0
----
-1268
-142
-4527

query I rowsort
SELECT col1 * - 25 AS col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT + + col2 * + 45 + - col2 FROM tab2 cor0
----
1144
1188
1672

query I rowsort
SELECT col0 * - 24 FROM tab2 AS cor0
----
-168
-1872
-1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( - col2 ) * col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col0 + 14 FROM tab2
----
21
92
93

query I rowsort
SELECT col2 * + ( - col1 ) AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col2 * col2 * col0 - + col2 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT ALL col2 * col2 * + 79 + col0 * 35 * + col0 FROM tab0
----
106191
42954
808431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT ALL + tab1.col0 * CAST( NULL AS SIGNED ) + + 60 * - col1 * - col0 + 75 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + tab1.col0 * CAST ( NULL AS INTEGER ) + + 60 * - col1 * - col0 + 75 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col1 + - col0 FROM tab0
----
-80
29
61

query I rowsort
SELECT - col1 * 21 - col2 AS col1 FROM tab2
----
-1265
-395
-678

onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT - - col1 DIV - col0 + col2 + col1 FROM tab1 cor0
----
109
67
72

skipif mysql # not compatible
query I rowsort label-2550
SELECT - - col1 / - col0 + col2 + col1 FROM tab1 cor0
----
109
67
72

query I rowsort
SELECT - + col1 * - 50 * - col0 + col1 FROM tab1 AS cor0
----
-31990
-3874
-51987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT + col2 + + CAST( NULL AS SIGNED ) * + col1 + - cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 + - ( - col0 + col2 ) * - col2 * col0 FROM tab1 AS cor0
----
-25479
122976
8316

query I rowsort
SELECT + cor0.col2 * 13 + + cor0.col1 FROM tab2 AS cor0
----
382
397
511

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2555
SELECT - - col0 + + CAST( + col2 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-2555
SELECT - - col0 + + CAST ( + col2 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + 61 + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
157
198
99

query I rowsort
SELECT ALL ( + 50 ) + cor0.col1 * - 45 FROM tab1 AS cor0
----
-1120
-400
-535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT - + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + + ( cor0.col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 + ( cor0.col2 ) + - ( + col0 ) FROM tab2 AS cor0
----
-11
-111
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 40 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT DISTINCT col1 + 51 + col2 FROM tab2 AS cor0
----
106
109
136

query I rowsort
SELECT - + ( - col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 89 * + 32 AS col1 FROM tab2 cor0
----
2848
2848
2848

query I rowsort
SELECT - col2 + - 28 + col0 AS col1 FROM tab1 AS cor0
----
-21
-44
-79

query I rowsort
SELECT DISTINCT - ( 46 ) * + col0 AS col1 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT + + col1 + - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - 37 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL + 37 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT 95 * - col2 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1728
-2964
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * col0 + - cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + cor0.col0 - - col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT - ( + col0 ) * - CAST( col0 AS SIGNED ) - col0 col2 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2577
SELECT - ( + col0 ) * - CAST ( col0 AS INTEGER ) - col0 col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - + 80 + col1 FROM tab1 AS cor0
----
-54
-67
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT + col2 * col2 * - 90 + 84 DIV - col1 FROM tab2
----
-129964
-60841
-65612

skipif mysql # not compatible
query I rowsort label-2579
SELECT + col2 * col2 * - 90 + 84 / - col1 FROM tab2
----
-129964
-60841
-65612

query I rowsort
SELECT - col0 * - col0 + 7 FROM tab1 cor0
----
16
4103
6407

onlyif mysql # use DIV operator for integer division
query I rowsort label-2581
SELECT ALL col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - tab0.col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT + - 24 * cor0.col0 - 91 FROM tab1 AS cor0
----
-1627
-163
-2011

query I rowsort
SELECT - ( + col1 ) + ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + + col1 - ( col2 + + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 * - ( col1 ) + cor0.col0 * col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
13689
2704
6500

query I rowsort
SELECT 16 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + + col2 * 47 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT col1 - - 99 AS col1 FROM tab1
----
109
112
125

query I rowsort
SELECT ALL 22 + col0 AS col0 FROM tab1 AS cor0
----
102
25
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT DISTINCT - + 23 + col1 - ( - cor0.col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-5
37
9

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - + 23 + col1 - ( - cor0.col0 ) / col0 AS col0 FROM tab2 AS cor0
----
-5
37
9

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + ( - col0 ) - + ( + col2 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + + 1 + col1 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT col0 * + col0 + tab0.col0 + - tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 68 + ( - col1 * + col0 ) FROM tab1
----
-10
-572
-972

query I rowsort
SELECT ALL + tab2.col0 + + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL - 14 + 40 + + tab1.col0 FROM tab1
----
106
29
90

query I rowsort
SELECT - ( - cor0.col0 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ( cor0.col2 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + + col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + 35 col1 FROM tab2 AS cor0
----
6119
6276
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * col0 + col2 * - col0 col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT 82 + col2 * + col1 FROM tab2 AS cor0
----
1616
728
919

query I rowsort
SELECT ALL - 90 * - col0 + col2 FROM tab0 AS cor0
----
2193
3151
8092

query I rowsort
SELECT - ( - col2 ) * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 + + cor0.col2 * col2 col2 FROM tab2 AS cor0
----
1499
731
784

onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT DISTINCT - 21 DIV - col0 FROM tab1 cor0
----
0
7

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - 21 / - col0 FROM tab1 cor0
----
0
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT + - 74 + col0 DIV 68 FROM tab1 AS cor0
----
-73
-74
-74

skipif mysql # not compatible
query I rowsort label-2609
SELECT + - 74 + col0 / 68 FROM tab1 AS cor0
----
-73
-74
-74

query I rowsort
SELECT - ( - col2 ) * + col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL + - col1 + cor0.col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - tab1.col0 * + 20 FROM tab1
----
-1280
-1600
-60

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + ( col0 ) + col2 AS col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2615
SELECT ALL ( - cor0.col0 ) * col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL ( - cor0.col0 ) * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 + + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + col1 + col2 - - col2 FROM tab0 cor0
----
152
255
99

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

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + + 63 * col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT DISTINCT - 21 * col2 AS col1 FROM tab1
----
-1134
-1197
-2016

query I rowsort
SELECT + 11 + - cor0.col2 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT ALL - + ( 68 ) + + col0 + ( 22 ) * + col0 AS col1 FROM tab1 AS cor0
----
1
1404
1772

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT DISTINCT + col0 * + col2 / - col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + col1 * + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT DISTINCT col2 * - 24 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT col0 - col1 * - 45 * col0 FROM tab1 cor0
----
28864
3513
46880

query I rowsort
SELECT + + 12 * col0 FROM tab1 cor0
----
36
768
960

query I rowsort
SELECT DISTINCT col1 * + 32 + col2 * 11 AS col0 FROM tab1
----
1426
1472
947

query I rowsort
SELECT - col1 + - col1 * 7 FROM tab1 AS cor0
----
-104
-208
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2633
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * col2 + + col0 AS col2 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * col2 + + col0 AS col2 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT ALL col2 + col0 DIV + col1 AS col0 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL col2 + col0 / + col1 AS col0 FROM tab2
----
27
27
42

query I rowsort
SELECT DISTINCT + col1 * - ( - 63 * col0 ) FROM tab0 AS cor0
----
130032
213885
510237

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT DISTINCT + col2 + - ( 54 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
57
72
96

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + col2 + - ( 54 ) / - col0 AS col1 FROM tab1 AS cor0
----
57
72
96

query I rowsort
SELECT DISTINCT - col0 * 18 + - col1 FROM tab0 AS cor0
----
-1693
-518
-727

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - col0 * - ( col1 * - col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + cor0.col2 + ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - tab2.col0 * - col1 * col0 + col0 FROM tab2
----
106176
1526
359034

query I rowsort
SELECT + col2 - 87 AS col1 FROM tab1
----
-30
-33
9

query I rowsort
SELECT 61 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
51

query I rowsort
SELECT ALL - 24 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT - - col1 * cor0.col0 * - CAST( + col0 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

skipif mysql # not compatible
query I rowsort label-2647
SELECT - - col1 * cor0.col0 * - CAST ( + col0 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT ALL - CAST( + 14 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - CAST ( + 14 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT - ( - tab0.col2 ) + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c345857bb273aa2639457b7deb30fe90

query I rowsort
SELECT - + 95 + - col0 FROM tab0 cor0
----
-119
-130
-184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * ( + col2 + - col0 ) * col0 col0 FROM tab0 cor0
----
-41650
-55447
5184

query I rowsort
SELECT + 48 * + cor0.col0 FROM tab1 AS cor0
----
144
3072
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 43 col1 FROM tab1
----
17
30
33

query I rowsort
SELECT DISTINCT ( 53 ) AS col0 FROM tab2, tab0 cor0
----
53

query I rowsort
SELECT 50 + - 64 * + col2 FROM tab1 AS cor0
----
-3406
-3598
-6094

query I rowsort
SELECT + col2 + 10 * col1 AS col1 FROM tab2 cor0
----
208
337
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT - col2 + col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2657
SELECT - col2 + col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col0 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - tab2.col1 * - col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2660
SELECT ALL col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) * - col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT ( col0 ) * col2 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 - + col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + 57 * - ( + col1 ) * col1 FROM tab0 AS cor0
----
-421572
-472017
-536313

query I rowsort
SELECT + col2 + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT ( + 67 ) + col1 AS col1 FROM tab0 cor0
----
153
158
164

query I rowsort
SELECT ALL - ( col0 ) + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-253
-37
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT - 97 DIV + col0 AS col0 FROM tab1
----
-1
-1
-32

skipif mysql # not compatible
query I rowsort label-2668
SELECT - 97 / + col0 AS col0 FROM tab1
----
-1
-1
-32

query I rowsort
SELECT - 15 * 43 FROM tab2
----
-645
-645
-645

query I rowsort
SELECT + 37 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * col2 col1 FROM tab0
----
2442
6068
74

query I rowsort
SELECT - + tab2.col2 * 22 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ddae91ec516f163c638c12fe31699a87

query I rowsort
SELECT DISTINCT + 56 * + col2 * + col0 FROM tab0
----
1960
408688
44352

query I rowsort
SELECT + 13 + col0 AS col2 FROM tab0
----
102
37
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * - col1 col0 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT + 44 * + cor0.col2 + CAST( ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
1476
3697
79

skipif mysql # not compatible
query I rowsort label-2676
SELECT + 44 * + cor0.col2 + CAST ( ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
1476
3697
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2677
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 - - col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ( col2 ) + col2 AS col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT DISTINCT + cor0.col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + cor0.col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL 89 - + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
89
89
93

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL 89 - + col1 / - col0 AS col2 FROM tab2 AS cor0
----
89
89
93

query I rowsort
SELECT DISTINCT - + 50 * col1 FROM tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT - ( col2 ) + col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL + + col1 + col1 * - ( + 86 * col0 ) AS col1 FROM tab2 AS cor0
----
-115481
-18631
-395713

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT - 62 * - col1 - + col0 FROM tab2 AS cor0
----
1915
3580
975

query I rowsort
SELECT + col2 * - cor0.col0 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT cor0.col0 * + cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - 65 * - 22 + col1 + 6 FROM tab0 AS cor0
----
1522
1527
1533

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT ( + 1 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
1

query I rowsort
SELECT - + cor0.col1 + + col0 * - col1 - col1 FROM tab1 cor0
----
-1066
-130
-660

query I rowsort
SELECT ALL cor0.col1 + 37 AS col1 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT col2 + + col0 - col1 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
7453
8452
9445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2695
SELECT ALL - CAST( NULL AS DECIMAL ) + col2 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - cor0.col2 + 36 AS col1 FROM tab0 AS cor0
----
-46
3
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2697
SELECT DISTINCT - cor0.col2 / CAST( NULL AS SIGNED ) - 20 * col0 * - cor0.col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - cor0.col2 / CAST ( NULL AS INTEGER ) - 20 * col0 * - cor0.col1 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT DISTINCT col1 * col2 - 8 DIV col0 AS col2 FROM tab1 AS cor0
----
1248
1402
570

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT col1 * col2 - 8 / col0 AS col2 FROM tab1 AS cor0
----
1248
1402
570

query I rowsort
SELECT DISTINCT col1 * 9 AS col0 FROM tab2 cor0
----
153
279
531

query I rowsort
SELECT ALL - col0 + + col1 * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT cor0.col2 + ( + col1 * col0 ) AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col2 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col1 * - cor0.col0 + col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT ALL + cor0.col2 * + CAST( + col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + cor0.col2 * + CAST ( + col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col1 - col2 * - 69 * 92 FROM tab1
----
342766
361826
609395

query I rowsort
SELECT DISTINCT ( - col2 ) * tab0.col0 - + tab0.col1 AS col1 FROM tab0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2708
SELECT + cor0.col0 - - col0 DIV - ( + col2 ) FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-2708
SELECT + cor0.col0 - - col0 / - ( + col2 ) FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col2 * col0 - - 63 AS col1 FROM tab2
----
-126
-1965
-2939

query I rowsort
SELECT + col0 - - 50 * - ( col1 + + col1 ) FROM tab1
----
-1220
-2597
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - col1 + ( col2 ) AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - cor0.col2 * - col2 * 85 FROM tab0 AS cor0
----
571540
85
92565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 - col1 * col1 * - col1 col0 FROM tab0 AS cor0
----
634967
746847
912672

query I rowsort
SELECT DISTINCT col0 + 40 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT - col0 * col0 + + 81 * + col1 FROM tab1
----
-3286
-5347
2097

query I rowsort
SELECT DISTINCT 84 * tab2.col0 FROM tab2
----
588
6552
6636

query I rowsort
SELECT + cor0.col2 * 58 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to f477a8642b77daad5ebbab5e90eb52d1

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + 77 - - col1 AS col2 FROM tab2
----
108
136
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT ALL - + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + + cor0.col2 + + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT DISTINCT - col1 DIV - col1 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - col1 / - col1 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-288
-3480
-960

query I rowsort
SELECT DISTINCT - - 38 + + col2 AS col0 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT + col1 + - col2 * ( - col2 ) FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2727
SELECT ALL + - col1 + + col2 * + CAST( 20 AS SIGNED ) FROM tab0 AS cor0
----
-77
1549
574

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + - col1 + + col2 * + CAST ( 20 AS INTEGER ) FROM tab0 AS cor0
----
-77
1549
574

query I rowsort
SELECT 84 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT DISTINCT + col0 + - cor0.col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + col0 + - cor0.col0 / - col1 AS col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT ALL - + 1 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT - ( col0 ) + tab1.col2 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - 22 * - col1 AS col1 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT ALL - 54 * + col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 38 * + cor0.col1 * - col0 FROM tab0 AS cor0
----
129010
307762
78432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 5 + cor1.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to f39c8002930faaf7cd244787c1458495

query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col0 * col2 * + 44 AS col0 FROM tab2
----
132088
8316
89232

query I rowsort
SELECT DISTINCT + col2 * 67 FROM tab2 AS cor0
----
1742
1809
2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 * - ( + col0 * col2 ) col0 FROM tab2 AS cor0
----
-14553
-156156
-231154

query I rowsort
SELECT ALL - + col0 * - col2 + + col1 * 47 FROM tab1 AS cor0
----
1384
4118
8291

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT DISTINCT + 58 + cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
58
59
93

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + 58 + cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
58
59
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT + + cor0.col1 * + col1 + + col0 DIV 40 + - ( + col2 + 54 ) * + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1093181
-172172
-177316

skipif mysql # not compatible
query I rowsort label-2745
SELECT + + cor0.col1 * + col1 + + col0 / 40 + - ( + col2 + 54 ) * + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1093181
-172172
-177316

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + col2 + + col1 FROM tab0 cor0
----
-673
-7125
63

query I rowsort
SELECT - col1 + - col0 + col0 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 + col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT - 34 + + cor0.col1 - + cor0.col2 * col0 FROM tab1 AS cor0
----
-170
-3672
-7701

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

query I rowsort
SELECT - - col1 * col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT + + col0 DIV + col2 col1 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT - 94 + col0 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT + col1 + + col1 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT ALL + col2 DIV + cor0.col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + col2 / + cor0.col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 46 + - col0 * 92 * - col0 FROM tab1 AS cor0
----
376786
588754
782

query I rowsort
SELECT - col2 * + 31 AS col0 FROM tab0
----
-1023
-2542
-31

query I rowsort
SELECT ( col1 ) - + col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - 80 * tab0.col2 AS col1 FROM tab0
----
-2640
-6560
-80

query I rowsort
SELECT + 30 * - ( - col1 * 56 ) AS col2 FROM tab0
----
144480
152880
162960

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
86
91
97

query I rowsort
SELECT col2 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - + cor0.col1 + col0 * - cor0.col2 AS col1 FROM tab0 cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * - cor0.col0 * + 5 col0 FROM tab2 AS cor0
----
-1085
-23010
-6715

query I rowsort
SELECT 17 * col0 + + col0 * + col2 FROM tab0 AS cor0
----
1200
630
8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT col0 DIV 95 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT col0 / 95 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT 88 * - tab1.col0 AS col0 FROM tab1, tab0 cor0
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT + ( col1 ) * ( + cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2773
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2773
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 + col2 * col1 * - col2 FROM tab0 AS cor0
----
-611795
-62
-93630

query I rowsort
SELECT ALL - + cor0.col0 * - 87 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 92 * - col2 + - col2 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT ALL - col0 + - cor0.col0 + - col2 * - 70 AS col0 FROM tab1 AS cor0
----
3774
3862
6560

query I rowsort
SELECT ALL col1 + 96 FROM tab1
----
106
109
122

query I rowsort
SELECT DISTINCT col1 + + 24 * col0 AS col1 FROM tab1
----
1546
1933
98

query I rowsort
SELECT ALL tab2.col2 * + col2 + 95 + tab2.col2 FROM tab2
----
1577
797
851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2782
SELECT CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT + CAST( col1 AS SIGNED ) DIV col2 - 85 FROM tab0 AS cor0
----
-83
-84
12

skipif mysql # not compatible
query I rowsort label-2783
SELECT + CAST ( col1 AS INTEGER ) / col2 - 85 FROM tab0 AS cor0
----
-83
-84
12

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1, tab1 AS cor0
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT ALL - col1 * - ( + col0 ) + - CAST( - ( - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - col1 * - ( + col0 ) + - CAST ( - ( - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ( - col1 ) * cor0.col1 + 20 FROM tab2 AS cor0
----
-269
-3461
-941

query I rowsort
SELECT ALL 6 + + col2 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT DISTINCT - 33 * - 32 AS col1 FROM tab0, tab1 AS cor0
----
1056

query I rowsort
SELECT ALL - tab2.col1 * 7 * - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to db94dac9f0012914304ea9cd28a388a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT + + CAST( - 62 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-59
18
2

skipif mysql # not compatible
query I rowsort label-2790
SELECT + + CAST ( - 62 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-59
18
2

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT ALL + 74 * col1 - col0 FROM tab1 cor0
----
1921
676
882

query I rowsort
SELECT DISTINCT col2 * col2 + col1 * 45 AS col0 FROM tab1 AS cor0
----
3699
4086
9801

query I rowsort
SELECT ALL + 80 - - tab2.col0 * tab2.col0 * - 85 FROM tab2
----
-4085
-517060
-530405

query I rowsort
SELECT DISTINCT ( + 66 ) - col0 FROM tab0
----
-23
31
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT 65 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-2796
SELECT 65 / col1 FROM tab1 AS cor0
----
2
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * + tab1.col2 * + col1 + col1 - col2 col0 FROM tab1
----
36433
4184
99757

query I rowsort
SELECT - 21 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-487
-536
-781

query I rowsort
SELECT ( - 13 ) + col1 - - col1 AS col0 FROM tab0
----
159
169
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + - 79 + - col0 * + ( + tab2.col1 ) col1 FROM tab2
----
-1344
-218
-4603

query I rowsort
SELECT ALL - col0 * + col0 - + col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT ALL 29 - + col0 * - col1 AS col1 FROM tab1
----
1069
107
669

query I rowsort
SELECT DISTINCT + + col1 * + col0 + 43 AS col2 FROM tab1 AS cor0
----
1083
121
683

query I rowsort
SELECT ALL - col1 * - col1 + 0 + - col1 * + 19 AS col0 FROM tab2 cor0
----
-34
2360
372

query I rowsort
SELECT ALL - col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - col1 - - 88 FROM tab1 AS cor0
----
62
75
78

query I rowsort
SELECT - col1 * + 13 * col0 + + col1 FROM tab0 cor0
----
-105196
-26746
-44038

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb

query I rowsort
SELECT DISTINCT - col0 * - col1 + + cor0.col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL - + col0 - - 27 * - col2 * col2 FROM tab2 cor0
----
-18330
-19690
-39067

query I rowsort
SELECT ALL - 58 * col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT ALL + 59 DIV col1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 59 / col1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL + - 60 * - col1 * col1 FROM tab2 cor0
----
17340
208860
57660

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL - - cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - - cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 15 + - col0 AS col0 FROM tab0 AS cor0
----
-104
-39
-50

query I rowsort
SELECT - 63 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT ALL + col2 * col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + - col0 * - ( + col2 ) FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2819
SELECT + cor0.col0 * + CAST( - ( col2 ) AS SIGNED ) * + cor0.col1 + - col2 DIV + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

skipif mysql # not compatible
query I rowsort label-2819
SELECT + cor0.col0 * + CAST ( - ( col2 ) AS INTEGER ) * + cor0.col1 + - col2 / + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT col0 + ( col1 ) * + cor0.col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col1 + + ( col1 ) * + col1 - col0 AS col2 FROM tab0 AS cor0
----
7458
8283
9471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 72 * col0 col0 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT + cor0.col2 - col1 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col0 * 69 * ( col1 + - col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + - ( + col2 ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT ALL - col1 DIV - col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - col1 / - col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - col0 FROM tab2 WHERE + col0 IN ( col0 )
----
-7
-78
-79

query I rowsort
SELECT ALL - col2 * col0 * col1 + - tab1.col0 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT tab0.col1 * col0 + - col1 AS col0 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT tab1.col1 DIV + col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2831
SELECT tab1.col1 / + col1 AS col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT ALL + col2 * col2 - - col2 * col2 DIV col0 FROM tab2
----
1462
684
833

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + col2 * col2 - - col2 * col2 / col0 FROM tab2
----
1462
684
833

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 * col1 * col2 AS col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col1 * - tab0.col2 + col0 * col0 AS col2 FROM tab0
----
-2262
1128
459

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <= tab0.col1 + col0
----

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - col2 * col2 * + ( col1 ) FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col1 IN ( - col0 )
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 * col0 - + col0 AS col1 FROM tab1
----
159
3584
7600

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

query I rowsort
SELECT 34 * + col0 AS col1 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT ( col1 ) * col0 * + 79 + tab0.col1 FROM tab0
----
163142
268302
639912

query I rowsort
SELECT col0 + 2 AS col1 FROM tab0
----
26
37
91

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - cor0.col1 * 22 FROM tab0, tab2 AS cor0
----
9 values hashing to 42424e50866a2df939208db6eb570b51

query I rowsort
SELECT DISTINCT - 30 - col1 AS col2 FROM tab1 cor0
----
-40
-43
-56

query I rowsort
SELECT ALL col2 * col0 + col2 + - 97 * - col1 * - 87 AS col0 FROM tab1 AS cor0
----
-101931
-219198
-80685

query I rowsort
SELECT - 73 + - col1 * 86 FROM tab2 AS cor0
----
-1535
-2739
-5147

query I rowsort
SELECT - + col2 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL col0 * col0 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-1280
-153
448

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT - + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT - + col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT col0 + ( 62 ) AS col2 FROM tab2
----
140
141
69

query I rowsort
SELECT - col0 + ( - col2 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL - 81 * - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ddde7d51e284856e0cecc596b775720b

query I rowsort
SELECT ALL - col0 + 55 FROM tab0 AS cor0
----
-34
20
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT 34 DIV col2 + col1 * + col2 * 41 FROM tab1 AS cor0
----
23370
51168
57564

skipif mysql # not compatible
query I rowsort label-2859
SELECT 34 / col2 + col1 * + col2 * 41 FROM tab1 AS cor0
----
23370
51168
57564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 - + ( + col0 ) col2 FROM tab1 cor0
----
22
6
83

query I rowsort
SELECT - ( 98 ) * col2 + col0 * col1 FROM tab2 AS cor0
----
-2381
-2429
2054

query I rowsort
SELECT 9 * + cor0.col0 + + col2 FROM tab0 AS cor0
----
249
316
883

query I rowsort
SELECT ALL - + ( - 77 ) * col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT - + ( 57 ) + + col1 * - 8 FROM tab2 AS cor0
----
-193
-305
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + col0 - + col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT DISTINCT + col1 DIV + col1 - col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
636057
753572
912674

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + col1 / + col1 - col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
636057
753572
912674

query I rowsort
SELECT col0 - ( 15 ) AS col2 FROM tab1 AS cor0
----
-12
49
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT + CAST( NULL AS SIGNED ) + 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2869
SELECT + CAST ( NULL AS INTEGER ) + 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL col1 - ( col1 + col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT tab2.col0 * col1 - - col2 AS col2 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 94 - + 12 * col2 col0 FROM tab0
----
2706
6724
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT + col1 + + col0 - - col1 * col2 DIV 51 AS col1 FROM tab0 AS cor0
----
133
165
326

skipif mysql # not compatible
query I rowsort label-2874
SELECT + col1 + + col0 - - col1 * col2 / 51 AS col1 FROM tab0 AS cor0
----
133
165
326

query I rowsort
SELECT ALL + + 32 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT DISTINCT + ( col0 + col0 ) * tab0.col0 AS col1 FROM tab0
----
1152
15842
2450

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) + 35 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
161044
46967
7568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2878
SELECT ALL CAST( ( - col2 ) AS SIGNED ) * col2 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) * col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - ( + col1 ) + col1 * + 14 + ( col0 ) AS col2 FROM tab2 AS cor0
----
300
410
845

query I rowsort
SELECT - col2 * 92 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT DISTINCT - + ( - col2 ) * + cor0.col0 + 40 FROM tab1 AS cor0
----
202
3688
7720

query I rowsort
SELECT + col2 + col0 * + 64 AS col2 FROM tab0 AS cor0
----
1569
2241
5778

query I rowsort
SELECT - 56 * col0 AS col0 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT - - col2 * col1 * - 61 FROM tab2 AS cor0
----
-39406
-51057
-93574

query I rowsort
SELECT - - 10 + + col1 FROM tab2 AS cor0
----
27
41
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * cor0.col2 col0 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT CAST( NULL AS DECIMAL ) * - col0 + col0 * 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT CAST ( NULL AS REAL ) * - col0 + col0 * 91 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 + - tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
14
27
30

query I rowsort
SELECT ALL - 13 * - col2 FROM tab1
----
1248
702
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT DISTINCT ( - col2 ) DIV - ( - col0 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT ( - col2 ) / - ( - col0 ) FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + 55 * col0 AS col2 FROM tab1
----
165
3520
4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT + 72 * + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 72 * + col1 / col1 AS col0 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT col1 * + cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT 63 * col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT ALL - 53 + - col1 FROM tab1 cor0
----
-63
-66
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2897
SELECT ALL + + col0 + CAST( NULL AS SIGNED ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 99 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL + col0 * 96 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT DISTINCT col0 * 51 AS col2 FROM tab1 AS cor0
----
153
3264
4080

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

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + + col1 * + 30 * 53 FROM tab2 AS cor0
----
27030
49290
93810

query I rowsort
SELECT 72 - + col2 AS col2 FROM tab1
----
-24
15
18

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

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - + col0 - - col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + 12 * ( + col1 ) AS col1 FROM tab2 cor0
----
204
372
708

query I rowsort
SELECT ALL - col1 + - 40 AS col0 FROM tab1 AS cor0
----
-50
-53
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT - ( - col1 ) DIV col0 + col2 AS col1 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2911
SELECT - ( - col1 ) / col0 + col2 AS col1 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT ALL - ( 3 ) FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104

query I rowsort
SELECT col1 * 24 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT ALL + + col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - tab2.col0 * - tab2.col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col1 * 43 AS col1 FROM tab1
----
-1118
-430
-559

query I rowsort
SELECT + 9 + + 11 AS col0 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT + 17 + - ( col0 ) FROM tab0
----
-18
-7
-72

query I rowsort
SELECT col0 * ( - col0 ) + 42 * tab2.col0 AS col0 FROM tab2
----
-2808
-2923
245

query I rowsort
SELECT col1 + 81 * - 72 AS col0 FROM tab2
----
-5773
-5801
-5815

query I rowsort
SELECT cor0.col1 * - 54 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 29318c1c22be782782f6ded3122de6bf

query I rowsort
SELECT ALL + 9 * - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-737
-741
-872

query I rowsort
SELECT DISTINCT - 82 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7314
8199
9327

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT 3 * - col1 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT - + 37 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
125615
299663
76368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2927
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col2 * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col2 * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT DISTINCT - 79 DIV col0 FROM tab1 AS cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - 79 / col0 FROM tab1 AS cor0
----
-1
-26
0

query I rowsort
SELECT ALL + + col1 + + col1 * + col2 AS col0 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT 94 + 32 FROM tab0 cor0
----
126
126
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT - tab2.col2 DIV ( + 21 ) + col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2932
SELECT - tab2.col2 / ( + 21 ) + col1 AS col0 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab0, tab2 AS cor0
----
1

query I rowsort
SELECT + + ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * ( - col2 * + ( + col0 ) ) col2 FROM tab2 cor0
----
-18522
-198744
-294196

query I rowsort
SELECT - - col1 * - col2 - 67 FROM tab0 AS cor0
----
-164
-2905
-7529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - 3 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * ( col1 ) FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL + 58 + + cor0.col2 FROM tab2 AS cor0
----
84
85
96

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

query I rowsort
SELECT - + col2 * + cor0.col2 + ( - 19 ) + - col0 AS col2 FROM tab1 AS cor0
----
-2938
-3332
-9315

query I rowsort
SELECT ALL - 11 * - col1 AS col2 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT - ( + col2 ) - + 60 AS col2 FROM tab1 cor0
----
-114
-117
-156

query I rowsort
SELECT ALL - col1 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT col2 * + col2 + - 89 * - cor0.col1 FROM tab2 AS cor0
----
2957
3488
5927

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT DISTINCT + col1 * col0 DIV - 31 FROM tab1 AS cor0
----
-2
-20
-33

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT + col1 * col0 / - 31 FROM tab1 AS cor0
----
-2
-20
-33

query I rowsort
SELECT + 15 + + col2 * + ( 19 + col0 ) FROM tab2 AS cor0
----
2537
3739
717

query I rowsort
SELECT ( - col1 ) * ( col2 * col1 ) + ( 92 ) AS col1 FROM tab1 AS cor0
----
-16132
-36412
-5608

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

query I rowsort
SELECT + col1 * + col0 + col2 AS col0 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col2 + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + col2 + col2 * - 91 * - tab2.col1 AS col0 FROM tab2
----
139620
58824
76194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2953
SELECT DISTINCT + ( - col1 ) * CAST( col0 AS SIGNED ) + + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + ( - col1 ) * CAST ( col0 AS INTEGER ) + + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2954
SELECT + col0 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-2954
SELECT + col0 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col1 + - col1 * 98 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT ALL + - cor0.col0 + col1 DIV col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + - cor0.col0 + col1 / col2 FROM tab0 AS cor0
----
-22
-88
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT + - col1 * + col2 + 65 + col0 DIV col0 col0 FROM tab1 AS cor0
----
-1182
-1338
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2958
SELECT + - col1 * + col2 + 65 + col0 / col0 col0 FROM tab1 AS cor0
----
-1182
-1338
-504

query I rowsort
SELECT col1 + - ( - col2 ) * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - col1 * - col2 + col1 AS col0 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - col1 * col1 + + col0 * + col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT ALL + 68 + col0 * + tab1.col0 AS col0 FROM tab1
----
4164
6468
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 - 4 * + 13 AS col2 FROM tab1 AS cor0
----
2
44
5

query I rowsort
SELECT + col2 + + 64 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + col1 * - 91 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT + 93 * + col2 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT - - ( + col1 ) + col2 * - 84 * col2 FROM tab2 AS cor0
----
-121279
-56725
-61205

query I rowsort
SELECT DISTINCT - ( col2 * col0 ) AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 97 * col1 + - col1 FROM tab2
----
-1666
-3038
-5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT + 3 DIV - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 3 / - col0 AS col0 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * - col2 + 78 + col0 col0 FROM tab0
----
-79
110
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT ALL tab1.col1 DIV + col1 + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL tab1.col1 / + col1 + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL - col2 * - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT + 8 + col1 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT DISTINCT + 95 * col2 + - 45 * + 48 AS col1 FROM tab0 AS cor0
----
-2065
5630
975

query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2979
SELECT DISTINCT - col2 * col1 + - CAST( 39 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1287
-1443
-609

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - col2 * col1 + - CAST ( 39 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1287
-1443
-609

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT - ( + col2 ) DIV + 90 + - col2 FROM tab1 AS cor0
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-2980
SELECT - ( + col2 ) / + 90 + - col2 FROM tab1 AS cor0
----
-54
-57
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT + 72 + + cor0.col0 DIV + cor0.col0 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-2981
SELECT + 72 + + cor0.col0 / + cor0.col0 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT + CAST( + col1 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2982
SELECT + CAST ( + col1 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT + - 66 * col1 DIV - col1 FROM tab2 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-2984
SELECT + - 66 * col1 / - col1 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL col1 * + col2 + col2 * 43 AS col2 FROM tab0 cor0
----
10988
140
4257

query I rowsort
SELECT ALL + col1 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 47 col2 FROM tab2 AS cor0
----
-31
-32
40

query I rowsort
SELECT DISTINCT ( col1 ) * 25 FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL 28 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT ALL - col2 DIV 94 + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - col2 / 94 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 + + cor0.col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0, tab2 AS cor0
----
72

query I rowsort
SELECT - + col2 * 3 + col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - col2 + 35 AS col1 FROM tab1 AS cor0
----
-19
-22
-61

query I rowsort
SELECT ALL 75 - col2 AS col2 FROM tab1 cor0
----
-21
18
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2997
SELECT ALL - CAST( + ( col0 ) AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - CAST ( + ( col0 ) AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col2 * - ( col1 ) * ( - col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT + 93 * cor0.col2 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0759b089d6fb4e40e511a1f725137392

query I rowsort
SELECT + + col0 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT 83 + col0 * + 35 * - col2 FROM tab2 AS cor0
----
-104987
-6532
-70897

onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT DISTINCT + col1 DIV + col0 - + ( - 63 + tab1.col2 ) FROM tab1
----
-33
17
6

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + col1 / + col0 - + ( - 63 + tab1.col2 ) FROM tab1
----
-33
17
6

query I rowsort
SELECT - ( col2 + - 3 ) FROM tab1
----
-51
-54
-93

query I rowsort
SELECT ALL - ( - 4 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - col2 * + col2 + - cor0.col2 * + col1 * col0 FROM tab0 AS cor0
----
-3396
-670842
-69201

query I rowsort
SELECT + + col0 * + col2 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-18975
-649440

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

query I rowsort
SELECT ALL col2 * - 64 FROM tab0 AS cor0
----
-2112
-5248
-64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * - col0 + col0 col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 * - cor0.col1 + col0 * 95 col2 FROM tab1 AS cor0
----
-34880
-75600
51

query I rowsort
SELECT - cor0.col0 * 89 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT DISTINCT col0 - + col2 * + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col2 + ( cor0.col2 + - col0 ) AS col0 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT col2 + + col0 + + col1 * - col2 FROM tab0
----
-2781
-61
-7291

query I rowsort
SELECT ALL - col1 * - 63 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT 34 * col1 AS col0 FROM tab2
----
1054
2006
578

query I rowsort
SELECT DISTINCT + 87 + - col1 FROM tab2 AS cor0
----
28
56
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT col1 + + col2 * col2 DIV cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
114
142
145

skipif mysql # not compatible
query I rowsort label-3019
SELECT col1 + + col2 * col2 / cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
114
142
145

query I rowsort
SELECT ALL - 80 * - col2 AS col1 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT + col2 + - cor0.col0 + col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT DISTINCT + - 12 * col0 DIV + 79 + - col2 + - col1 FROM tab0 AS cor0
----
-103
-122
-186

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + - 12 * col0 / + 79 + - col2 + - col1 FROM tab0 AS cor0
----
-103
-122
-186

query I rowsort
SELECT 63 * 39 + + col0 * 59 AS col1 FROM tab2
----
2870
7059
7118

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT DISTINCT - col0 * - col1 + col1 DIV + 53 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - col0 * - col1 + col1 / + 53 FROM tab0
----
2065
3396
8100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3025
SELECT CAST( NULL AS DECIMAL ) - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3025
SELECT CAST ( NULL AS REAL ) - col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2, tab2 cor0
----
26
27
38

query I rowsort
SELECT - 66 AS col2 FROM tab1
----
-66
-66
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT DISTINCT ( - col0 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT ALL - ( col0 ) DIV col2 col0 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - ( col0 ) / col2 col0 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT ALL - col0 * - cor0.col1 - + col1 DIV - 58 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - col0 * - cor0.col1 - + col1 / - 58 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - tab0.col1 - - col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col2 * 10 - + col0 FROM tab0
----
-25
306
731

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

query I rowsort
SELECT col2 * + tab1.col0 + col2 * - col1 AS col1 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT + ( 36 ) - col0 * - 47 FROM tab1 AS cor0
----
177
3044
3796

query I rowsort
SELECT col0 * + 55 - 65 AS col0 FROM tab2
----
320
4225
4280

query I rowsort
SELECT + col2 + + ( + col1 * col1 ) FROM tab1
----
157
265
730

query I rowsort
SELECT ALL - col0 * - ( - tab0.col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col2 + + col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 91 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-58
-9
-90

query I rowsort
SELECT ALL + + ( - 17 ) + col1 FROM tab2 AS cor0
----
0
14
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + 48 * col1 - + col2 AS col1 FROM tab1 AS cor0
----
1194
423
528

query I rowsort
SELECT ( - 94 ) - - col1 FROM tab2 AS cor0
----
-35
-63
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3045
SELECT ALL + ( col0 ) DIV - cor0.col2 + - ( col0 + col0 ) AS col0 FROM tab0 cor0
----
-105
-179
-48

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + ( col0 ) / - cor0.col2 + - ( col0 + col0 ) AS col0 FROM tab0 cor0
----
-105
-179
-48

query I rowsort
SELECT ALL 27 + col1 AS col0 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT - + 71 + - col0 + col0 * 94 AS col1 FROM tab0 AS cor0
----
2161
3184
8206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 11 col0 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT DISTINCT + + col1 * - ( col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - cor0.col2 * 78 FROM tab2 AS cor0
----
-2028
-2106
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - 3 + + col2 col0 FROM tab1 AS cor0
----
198
201
240

query I rowsort
SELECT ALL - ( ( col0 ) ) * ( col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col0 * col2 - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) * + col0 - - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - 81 * + col0 - - col2 AS col2 FROM tab0 AS cor0
----
-1911
-2834
-7127

query I rowsort
SELECT ALL + 5 * col2 AS col1 FROM tab1
----
270
285
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT - col0 DIV 65 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT - col0 / 65 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT - 82 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT ALL - CAST( 42 AS SIGNED ) * + col2 FROM tab0
----
-1386
-3444
-42

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - CAST ( 42 AS INTEGER ) * + col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT + ( col1 ) * col0 * + 7 AS col0 FROM tab1
----
4480
546
7280

query I rowsort
SELECT DISTINCT 24 + col0 AS col1 FROM tab1 AS cor0
----
104
27
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT - - cor0.col0 + cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-3064
SELECT - - cor0.col0 + cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT + col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 58 * + 22 AS col2 FROM tab0 cor0
----
1276
1276
1276

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT ALL + CAST( col0 AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + CAST ( col0 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * - col1 * + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT col2 * col2 - + ( 8 ) AS col2 FROM tab1 AS cor0
----
2908
3241
9208

query I rowsort
SELECT ALL 43 + - col1 FROM tab1 cor0
----
17
30
33

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

query I rowsort
SELECT + + col1 + + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT 27 + col2 + 47 * + cor0.col0 FROM tab0 AS cor0
----
1188
1673
4292

query I rowsort
SELECT - ( - 81 * col1 ) + + col1 * + col0 + col1 FROM tab0
----
11349
15561
9116

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT DISTINCT + - col2 DIV + cor0.col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + - col2 / + cor0.col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col0 * ( + col0 ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - + col1 + + ( col1 ) * col2 * ( col2 ) FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT DISTINCT - - col1 * + 9 * - col2 AS col1 FROM tab0 AS cor0
----
-25542
-67158
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col0 * - 94 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT cor0.col2 * + 60 + 3 * - col1 AS col2 FROM tab2 AS cor0
----
1383
1527
2229

query I rowsort
SELECT + - col0 * 82 FROM tab2 cor0
----
-574
-6396
-6478

query I rowsort
SELECT ( col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 48 * col2 AS col2 FROM tab2 cor0
----
1248
1296
1824

query I rowsort
SELECT col2 * 79 FROM tab2 cor0
----
2054
2133
3002

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - ( + col2 ) * - col0 * 83 FROM tab0 AS cor0
----
2905
605734
65736

query I rowsort
SELECT - 29 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2931072f433f29dd0ee3a9dc40931eb

query I rowsort
SELECT ALL tab0.col0 * tab0.col0 AS col2 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT + col0 DIV col2 + col0 + col2 FROM tab0 AS cor0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-3091
SELECT + col0 / col2 + col0 + col2 FROM tab0 AS cor0
----
172
57
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT + 48 + - col0 DIV + col0 + - col2 AS col2 FROM tab2 AS cor0
----
20
21
9

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 48 + - col0 / + col0 + - col2 AS col2 FROM tab2 AS cor0
----
20
21
9

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + tab0.col1 + col2 + col0 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT - + cor0.col2 + + col2 + cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + col0 + - col2 * - col0 + - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col2 + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT + ( + cor0.col0 ) + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + col0 * - col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT + col2 + cor0.col1 * + col2 * - col2 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT 56 * col1 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT - 12 - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1456
-688
-741

query I rowsort
SELECT + cor0.col0 - 40 AS col1 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT - 8 + col0 + + cor0.col0 FROM tab2 AS cor0
----
148
150
6

query I rowsort
SELECT ALL col2 * + ( + col1 * col2 ) + col2 * col2 AS col0 FROM tab1
----
129024
35739
78732

query I rowsort
SELECT - 61 + 65 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 12 * + col2 FROM tab1
----
1152
648
684

query I rowsort
SELECT DISTINCT - 76 * - col1 AS col1 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT 56 * col0 AS col1 FROM tab2
----
392
4368
4424

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3110
SELECT - CAST( + col2 AS SIGNED ) * col1 AS col0 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3110
SELECT - CAST ( + col2 AS INTEGER ) * col1 AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3111
SELECT DISTINCT - CAST( - 60 AS SIGNED ) AS col2 FROM tab2
----
60

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

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

query I rowsort
SELECT 77 + - 70 AS col0 FROM tab0
----
7
7
7

query I rowsort
SELECT + + 86 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1131
2262
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 + col2 col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT 46 * - col2 AS col0 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT + ( - col0 ) * col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 * col1 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT col0 + col0 DIV col2 FROM tab0 cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3120
SELECT col0 + col0 / col2 FROM tab0 cor0
----
24
70
90

query I rowsort
SELECT col2 - - col0 * col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 * - col1 * - tab2.col0 + - tab2.col0 FROM tab2
----
106018
1512
358878

query I rowsort
SELECT col1 FROM tab0 WHERE ( col2 + col0 * + col1 ) NOT IN ( - col1 + col2 )
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * tab1.col1 col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - col0 + + col2 + col1 AS col1 FROM tab0
----
63
84
95

query I rowsort
SELECT col0 + col2 - - tab1.col0 * + col1 AS col2 FROM tab1
----
1216
135
761

query I rowsort
SELECT ALL - col1 * col0 * col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col2 * col1 * - tab0.col0 + col1 * col2 + col1 * + col0 * col0 AS col0 FROM tab0
----
-15738
115527
64155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 * tab0.col2 * + col0 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 + + col0 * col2 * - col0 AS col0 FROM tab1 cor0
----
-233462
-460
-614387

query I rowsort
SELECT ALL col2 * col1 * - cor0.col0 + - col0 * col1 AS col1 FROM tab2 cor0
----
-124254
-52377
-6076

query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 + + cor0.col1 FROM tab1 AS cor0
----
1357
1484
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT col1 DIV - col1 + + col0 + tab0.col0 DIV + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3135
SELECT col1 / - col1 + + col0 + tab0.col0 / + col0 AS col2 FROM tab0
----
24
35
89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT col1 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3137
SELECT col1 / col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col1 + + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT - col1 * col0 DIV + col2 - col2 col1 FROM tab1
----
-106
-55
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3139
SELECT - col1 * col0 / + col2 - col2 col1 FROM tab1
----
-106
-55
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * col0 col1 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT - tab1.col0 + + tab1.col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col0 * + col2 col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - + cor0.col2 * + col2 + - cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col2 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT DISTINCT + + col1 + + col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + + col1 + + col2 / - col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + - col2 * ( col2 ) - + col0 FROM tab2 cor0
----
-1523
-736
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT DISTINCT - + col0 + + CAST( NULL AS SIGNED ) * 23 * cor0.col2 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - + col0 + + CAST ( NULL AS INTEGER ) * 23 * cor0.col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col1 + col1 + - col2 AS col0 FROM tab0 AS cor0
----
100
139
193

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 + CAST ( - col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT DISTINCT col2 + - ( - col2 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT col2 + - ( - col2 ) / - col0 AS col2 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT ALL col0 * + ( 66 ) * - col0 + - col1 + 12 FROM tab0 AS cor0
----
-38090
-522865
-80935

query I rowsort
SELECT + ( - cor0.col2 ) * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col1 * tab2.col2 + - 97 FROM tab2
----
1437
549
740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * - col2 * - cor0.col0 col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - ( 76 ) + cor0.col2 * + 42 FROM tab1 AS cor0
----
2192
2318
3956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) + col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3158
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3159
SELECT DISTINCT - col1 * cor0.col1 + CAST( + col2 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-4558
-819
-9312

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - col1 * cor0.col1 + CAST ( + col2 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 * + tab0.col2 * col2 + - col0 FROM tab0
----
0
26112
598347

query I rowsort
SELECT ALL col1 * + col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + 79 + + col1 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-1455
-567
-758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + col0 * - 65 + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-975
2718
3936

query I rowsort
SELECT col0 - 52 AS col2 FROM tab1
----
-49
12
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * col2 * - col0 col1 FROM tab2
----
-15120
-162240
-240160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( - col2 ) * - col2 * col0 col2 FROM tab0
----
26160
598525
70

query I rowsort
SELECT 43 * col1 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT + 75 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ( + col0 + ( 90 ) ) FROM tab0
----
114
125
179

query I rowsort
SELECT ALL + + col1 - col2 * + col0 * - 3 AS col2 FROM tab0 cor0
----
202
21985
2462

query I rowsort
SELECT ALL - 21 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT - + col0 + 75 FROM tab0 AS cor0
----
-14
40
51

query I rowsort
SELECT DISTINCT - 79 FROM tab2, tab1, tab0 cor0
----
-79

query I rowsort
SELECT DISTINCT + 39 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
39

query I rowsort
SELECT - col2 * ( 8 ) + - col1 FROM tab1 AS cor0
----
-458
-466
-781

query I rowsort
SELECT - col2 * ( - 78 ) AS col1 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT + col0 * + ( col2 + col2 ) FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT col1 * - col0 * + col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - 0 FROM tab2, tab0 cor0
----
0

query I rowsort
SELECT ALL col2 * - 85 AS col1 FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT ALL + + ( col2 ) + col0 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT + - col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT + ( 23 ) * - col1 + 86 FROM tab0 AS cor0
----
-1892
-2007
-2145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT - CAST( NULL AS DECIMAL ) * col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + ( col2 ) + + cor0.col1 * + 56 FROM tab0 AS cor0
----
4849
5178
5433

query I rowsort
SELECT + col2 + + 33 AS col2 FROM tab2 AS cor0
----
59
60
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT - - col2 + - cor0.col2 * - col2 + - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1121
6805

skipif mysql # not compatible
query I rowsort label-3190
SELECT - - col2 + - cor0.col2 * - col2 + - col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1121
6805

query I rowsort
SELECT DISTINCT + 53 * + 26 AS col1 FROM tab1 cor0
----
1378

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT DISTINCT col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL + 47 * + col0 FROM tab0 AS cor0
----
1128
1645
4183

onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT ALL + + col0 - + col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + + col0 - + col1 / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( + col0 ) * 13 AS col1 FROM tab1 AS cor0
----
1040
39
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT DISTINCT col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - col1 * col0 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - 50 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 22 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
1344
1680
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT DISTINCT col1 + col2 * col0 DIV + ( + col1 ) + - 56 col1 FROM tab1 cor0
----
-24
318
547

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT col1 + col2 * col0 / + ( + col1 ) + - 56 col1 FROM tab1 cor0
----
-24
318
547

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT 30 * col2 DIV col0 FROM tab2
----
10
115
14

skipif mysql # not compatible
query I rowsort label-3202
SELECT 30 * col2 / col0 FROM tab2
----
10
115
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT + - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT + col2 DIV - col2 + + col0 AS col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3204
SELECT + col2 / - col2 + + col0 AS col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT DISTINCT + col0 - ( col0 ) * + col2 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ( tab2.col2 ) + - col1 + 23 FROM tab2
----
-10
19
44

query I rowsort
SELECT + col0 + + col1 + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT + col1 + - col0 * + 79 AS col1 FROM tab1 AS cor0
----
-211
-5046
-6307

query I rowsort
SELECT + + col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 * col2 - + 12 FROM tab0 AS cor0
----
-11
1077
6712

query I rowsort
SELECT ALL + 85 * col1 AS col2 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL 77 + + col1 * col2 AS col1 FROM tab2 cor0
----
1611
723
914

query I rowsort
SELECT + col1 * col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT + ( - 96 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT - col1 * 99 DIV col1 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-3215
SELECT - col1 * 99 / col1 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + + cor0.col0 + ( + col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT + + 84 + + col2 AS col1 FROM tab2 AS cor0
----
110
111
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT cor0.col2 DIV cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif mysql # not compatible
query I rowsort label-3219
SELECT cor0.col2 / cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3220
SELECT ALL CAST( col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL CAST ( col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 15 * + ( + col2 ) * col0 - col2 FROM tab1 cor0
----
115104
2376
54663

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT + - 50 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-47
-48
-49

skipif mysql # not compatible
query I rowsort label-3222
SELECT + - 50 + col1 / col0 AS col2 FROM tab0 AS cor0
----
-47
-48
-49

query I rowsort
SELECT DISTINCT + - col2 + 24 * col1 FROM tab2 AS cor0
----
1390
370
717

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT DISTINCT + + cor0.col1 DIV ( + col0 ) FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + + cor0.col1 / ( + col0 ) FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ( 8 ) * + col1 AS col1 FROM tab1 cor0
----
104
208
80

query I rowsort
SELECT col2 * 93 * cor0.col1 AS col0 FROM tab0 AS cor0
----
263934
693966
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT - CAST( NULL AS SIGNED ) * + col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 21 * 34 FROM tab1 AS cor0
----
714
714
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 32 + col0 AS col2 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT - ( - 88 ) + col2 FROM tab1 cor0
----
142
145
184

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col1 * + cor0.col1 + col2 * + ( - 96 + + cor0.col0 ) FROM tab0 AS cor0
----
5020
7707
9348

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - + cor0.col0 - + cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + + cor0.col0 * + col2 * - 57 FROM tab0 cor0
----
-1995
-415986
-45144

query I rowsort
SELECT col0 + 89 FROM tab2 AS cor0
----
167
168
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3238
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3239
SELECT ALL + cor0.col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + cor0.col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT 50 + col1 DIV col0 AS col2 FROM tab0
----
51
52
53

skipif mysql # not compatible
query I rowsort label-3240
SELECT 50 + col1 / col0 AS col2 FROM tab0
----
51
52
53

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab0 cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT ALL + col0 + - col1 * - 1 * + col0 AS col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL - 54 * col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT - + 36 AS col0 FROM tab2 cor0
----
-36

query I rowsort
SELECT 73 * + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 98da61e8a51570231a162eb73a577ce7

query I rowsort
SELECT DISTINCT - + 55 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT DISTINCT - col2 * + col0 + 65 AS col0 FROM tab2 AS cor0
----
-124
-1963
-2937

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT cor0.col1 DIV 78 + 23 AS col2 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3248
SELECT cor0.col1 / 78 + 23 AS col2 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT ALL col1 + + 61 AS col2 FROM tab1 AS cor0
----
71
74
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3250
SELECT - col1 DIV 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT - col1 / 73 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + 41 * col0 + col0 FROM tab2 AS cor0
----
1131
3964
4810

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

query I rowsort
SELECT + 23 FROM tab0, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + tab2.col2 * + 46 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a0d44611c46529e3ed6510c31f77e77

query I rowsort
SELECT ALL col2 + + 70 AS col1 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT col0 * 2 + col1 AS col0 FROM tab1 AS cor0
----
138
173
32

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

query I rowsort
SELECT - + cor0.col2 * - col2 + col1 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-225
-2727
1234

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2, tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT - col2 * - 96 AS col1 FROM tab0
----
3168
7872
96

query I rowsort
SELECT DISTINCT ( + col2 * col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + 23 * col0 FROM tab1 AS cor0
----
1472
1840
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT + + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3263
SELECT + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col2 + - 71 FROM tab0 AS cor0
----
-38
-70
11

query I rowsort
SELECT ALL + - col1 * col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 97 * col1 + + col1 + - cor0.col2 FROM tab1 cor0
----
1178
2494
923

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - - 81 * col2 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
4212
96
969

query I rowsort
SELECT + + col0 * col2 * 5 AS col0 FROM tab1 AS cor0
----
18240
38400
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT + 21 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL - col0 + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT + - ( - col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + - col0 - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT 28 + col1 FROM tab2
----
45
59
87

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT + col1 * col1 DIV - ( 18 ) FROM tab0 AS cor0
----
-410
-460
-522

skipif mysql # not compatible
query I rowsort label-3277
SELECT + col1 * col1 / - ( 18 ) FROM tab0 AS cor0
----
-410
-460
-522

query I rowsort
SELECT col1 + + col1 + col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT - - ( + col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT - cor0.col0 + col2 DIV col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3281
SELECT - cor0.col0 + col2 / col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 * - CAST ( ( + col0 ) AS REAL ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 85 + col2 col1 FROM tab0 AS cor0
----
7343
7817
8246

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT ALL - + col1 DIV 39 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT - - col0 * - col1 * 87 AS col1 FROM tab1 AS cor0
----
-55680
-6786
-90480

query I rowsort
SELECT ALL 57 * tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 845086b0033ec6c263d53a1cb16671ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * + col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 + col2 * + col2 + ( col2 ) * - col0 * ( + ( - col0 ) ) FROM tab0 AS cor0
----
1261
20121
656335

query I rowsort
SELECT - + col0 * col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0, tab0 AS cor0
----
63

query I rowsort
SELECT ALL - col0 * 27 * + 82 + col2 AS col2 FROM tab2
----
-15471
-172666
-174868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT ALL CAST( - tab1.col1 AS SIGNED ) * col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL CAST ( - tab1.col1 AS INTEGER ) * col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - 11 * col1 + - col2 AS col2 FROM tab0 cor0
----
-1068
-1083
-979

query I rowsort
SELECT col1 * col2 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col2 * cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT ALL - ( col0 ) + col0 DIV 58 FROM tab0 AS cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL - ( col0 ) + col0 / 58 FROM tab0 AS cor0
----
-24
-35
-88

query I rowsort
SELECT DISTINCT + + 10 * + 75 + + col1 * - col1 AS col0 FROM tab0 cor0
----
-6646
-7531
-8659

query I rowsort
SELECT - 35 * 16 + + col0 AS col0 FROM tab2 AS cor0
----
-481
-482
-553

query I rowsort
SELECT - - col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - cor0.col2 + + col1 AS col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + ( col2 ) col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col0 + - ( col0 * - col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 - ( + col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
SELECT ALL + cor0.col2 + - CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + cor0.col2 + - CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1482
702
756

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

query I rowsort
SELECT col1 + - 43 FROM tab1
----
-17
-30
-33

query I rowsort
SELECT 53 AS col0 FROM tab2, tab1 cor0, tab1, tab2 AS cor1
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT - col1 * 96 * + col0 FROM tab0
----
-198144
-325920
-777504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 - 34 col0 FROM tab0
----
-120
-125
-131

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT + - cor0.col2 * + col0 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

skipif mysql # not compatible
query I rowsort label-3311
SELECT + - cor0.col2 * + col0 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

query I rowsort
SELECT ALL - 57 + - tab1.col0 * 98 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f633c1166d13d0f7ad09be2654ebb107

query I rowsort
SELECT + 85 * col0 FROM tab1
----
255
5440
6800

query I rowsort
SELECT ALL + 47 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab2, tab1 AS cor0
----
78

query I rowsort
SELECT ( col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col0 * + ( - cor0.col0 * - cor0.col0 ) FROM tab1 AS cor0
----
262144
27
512000

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 + + cor0.col0 col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3321
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + cor1.col1 ) * cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 98035271089455e681d20c65fd337c0a

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

query I rowsort
SELECT ALL - 55 * + col2 FROM tab0
----
-1815
-4510
-55

query I rowsort
SELECT ALL + + col2 + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL + + col2 + - cor0.col0 * col2 * - 3 AS col0 FROM tab1 AS cor0
----
11001
23136
540

query I rowsort
SELECT ALL 6 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1349
223
4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col0 + col1 * + col2 + - cor0.col1 AS col1 FROM tab1 cor0
----
1315
1381
624

query I rowsort
SELECT DISTINCT + 43 + col0 AS col0 FROM tab0 cor0
----
132
67
78

query I rowsort
SELECT ALL + - cor0.col1 + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + 96 * - col1 AS col1 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT - cor0.col1 * 10 AS col1 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT DISTINCT - - col0 * 18 + col0 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
119455
49968
722413

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT ALL + cor0.col1 * - ( + col0 ) DIV col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + cor0.col1 * - ( + col0 ) / col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col1 + 80 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2006
2897
7211

query I rowsort
SELECT + col2 * - ( col1 ) FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 * 14 AS col0 FROM tab1 cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT + col2 * - 15 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT + 26 * - col0 + + cor0.col1 * 42 FROM tab1 AS cor0
----
-1244
-1534
1014

query I rowsort
SELECT + - cor0.col1 + - 36 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1274
-133
-3043

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 8 FROM tab0, tab0 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT + 51 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL + + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL 90 * col2 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT ( cor0.col2 ) * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 17 + col1 FROM tab0 AS cor0
----
103
108
114

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + ( - cor0.col0 ) * ( col2 * col2 ) FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - + col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col1 + + 79 FROM tab0
----
165
170
176

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to f464d40c605db608927f2c4d66190a23

query I rowsort
SELECT ALL tab2.col2 * ( col0 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 87 FROM tab0, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

query I rowsort
SELECT DISTINCT - + 0 * col1 + - col2 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 97 + - col1 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 95 + tab2.col0 FROM tab2
----
102
173
174

query I rowsort
SELECT ALL - 46 + tab2.col2 AS col0 FROM tab2
----
-19
-20
-8

query I rowsort
SELECT col2 * - col1 + + 77 * - col2 + - col1 FROM tab1
----
-4969
-5588
-8653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3364
SELECT ALL - col2 + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 * col0 + + 60 FROM tab1 AS cor0
----
222
3708
7740

query I rowsort
SELECT - col0 * col2 + col2 * - cor0.col2 - - cor0.col0 FROM tab2 AS cor0
----
-2626
-4367
-911

query I rowsort
SELECT + + col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT 63 + col0 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT ALL - col2 + col2 * col0 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + + 94 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL col1 + - ( - col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + - col0 * ( col0 ) + col2 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT + cor0.col1 + - col0 * - col0 FROM tab2 cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + cor0.col0 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + + cor0.col2 * col0 - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + col0 * ( - cor0.col2 ) + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col0 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT DISTINCT - + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT ALL + - col1 DIV - 87 + - 25 * - col1 AS col2 FROM tab1 AS cor0
----
250
325
650

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + - col1 / - 87 + - 25 * - col1 AS col2 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL col0 * 71 FROM tab0 cor0
----
1704
2485
6319

query I rowsort
SELECT col2 + 78 FROM tab0 AS cor0
----
111
160
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * col1 + col1 * col2 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 - - col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - col1 * - 97 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT DISTINCT + - col2 * + 93 AS col2 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT + cor0.col0 + 89 AS col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT - + cor0.col2 + ( col2 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + + col0 + - col0 * - col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col2 + 7 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT - - col2 * ( ( col1 ) ) + - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col0 * col0 * - 60 FROM tab0
----
-34560
-475260
-73500

query I rowsort
SELECT 60 + + col0 FROM tab0 AS cor0
----
149
84
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3396
SELECT + CAST( col0 AS SIGNED ) * col0 + 12 + - ( col1 ) FROM tab1 AS cor0
----
-5
4098
6399

skipif mysql # not compatible
query I rowsort label-3396
SELECT + CAST ( col0 AS INTEGER ) * col0 + 12 + - ( col1 ) FROM tab1 AS cor0
----
-5
4098
6399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT - CAST( 74 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
-138
-154
-77

skipif mysql # not compatible
query I rowsort label-3397
SELECT - CAST ( 74 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-138
-154
-77

query I rowsort
SELECT col1 * + 50 AS col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT col2 * col1 * - col2 AS col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT tab0.col2 + ( 87 ) AS col2 FROM tab0
----
120
169
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3401
SELECT + 73 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 73 / cor0.col0 FROM tab2 AS cor0
----
0
0
10

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

query I rowsort
SELECT ALL + cor0.col1 * col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT - 69 + + col2 * col2 DIV col0 FROM tab0 AS cor0
----
-24
-69
6

skipif mysql # not compatible
query I rowsort label-3404
SELECT - 69 + + col2 * col2 / col0 FROM tab0 AS cor0
----
-24
-69
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3405
SELECT - CAST( 80 AS SIGNED ) FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-3405
SELECT - CAST ( 80 AS INTEGER ) FROM tab2
----
-80
-80
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * + tab2.col0 col2 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT col1 * col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT - 3 * + col2 + col1 FROM tab2
----
-19
-50
-97

query I rowsort
SELECT ALL cor0.col0 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT DISTINCT + col2 * - col2 * + CAST( - 25 AS SIGNED ) AS col1 FROM tab0 cor0
----
168100
25
27225

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT + col2 * - col2 * + CAST ( - 25 AS INTEGER ) AS col1 FROM tab0 cor0
----
168100
25
27225

query I rowsort
SELECT + cor0.col0 - col2 * - cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 27 * - col0 + + col2 - - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1771
-2233
-703

query I rowsort
SELECT ALL - 32 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - - 21 * + col1 AS col0 FROM tab0 AS cor0
----
1806
1911
2037

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + col2 * CAST ( cor0.col2 AS REAL ) FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-52

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3419
SELECT - CAST( ( col0 ) AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3419
SELECT - CAST ( ( col0 ) AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - ( - col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ( - cor0.col2 ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

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

query I rowsort
SELECT 36 * - col2 + col2 * col0 AS col2 FROM tab0
----
-1
-396
4346

query I rowsort
SELECT DISTINCT + - 18 + 74 * col0 FROM tab1 AS cor0
----
204
4718
5902

query I rowsort
SELECT - 87 * - cor0.col0 FROM tab2 AS cor0
----
609
6786
6873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * + col0 col2 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT ALL - - col1 * col1 - col1 AS col0 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col1 col1 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - + 38 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
-25688
-27702
-54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL - col2 DIV col1 - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - col2 / col1 - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT DISTINCT - col2 DIV col1 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - col2 / col1 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 99 * - tab1.col1 + - col1 AS col0 FROM tab1
----
1274
2548
980

query I rowsort
SELECT col0 + ( tab2.col1 ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + col1 * - col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-13507
-2002
-6390

query I rowsort
SELECT - col0 + + 14 AS col1 FROM tab0 AS cor0
----
-10
-21
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT + col2 DIV col0 col2 FROM tab2
----
0
0
3

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

query I rowsort
SELECT - col2 * + col1 * col2 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 * + col2 col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * 40 + + 82 col1 FROM tab1
----
202
2642
3282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT tab2.col2 - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 + - 61 * - col1 + col1 FROM tab0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT col1 - col1 DIV col2 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-3445
SELECT col1 - col1 / col2 FROM tab0
----
0
84
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT tab0.col2 - - col0 DIV + col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3446
SELECT tab0.col2 - - col0 / + col2 AS col2 FROM tab0
----
33
36
83

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + col2 * col2 ) OR NOT col0 * - cor0.col0 - col2 <= col2
----

query I rowsort
SELECT ALL + + col1 - - col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - + col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT cor0.col1 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - - col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col0 * col0 * + col0 + col1 AS col1 FROM tab1
----
-1
-262134
-511987

onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT ALL col0 DIV col0 + - col0 DIV col1 FROM tab2
----
-3
0
1

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL col0 / col0 + - col0 / col1 FROM tab2
----
-3
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT col2 * col2 + col1 DIV col2 FROM tab0
----
1091
6725
98

skipif mysql # not compatible
query I rowsort label-3454
SELECT col2 * col2 + col1 / col2 FROM tab0
----
1091
6725
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + col2 * + col2 col2 FROM tab1
----
2942
3259
9229

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2 / col1 + + tab1.col0 * tab1.col2 )
----

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

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT DISTINCT - + cor0.col0 * col0 + col0 DIV col2 FROM tab0 AS cor0
----
-1190
-576
-7920

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT - + cor0.col0 * col0 + col0 / col2 FROM tab0 AS cor0
----
-1190
-576
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 + - col0 col1 FROM tab2 cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT ALL col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL col0 / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + + col2 * - cor0.col1 + - col0 * - col1 AS col0 FROM tab0 cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT + col1 * col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT + col1 DIV - col2 + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-3465
SELECT + col1 / - col2 + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT + col2 - col1 * - tab1.col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL 57 - + tab2.col0 FROM tab2
----
-21
-22
50

query I rowsort
SELECT DISTINCT 32 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-236672
-264992
-301088

query I rowsort
SELECT - ( - col0 ) + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - 76 AS col0 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT + cor0.col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT cor0.col0 DIV col0 + + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3472
SELECT cor0.col0 / col0 + + col1 / + col0 AS col1 FROM tab0 AS cor0
----
2
3
4

query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT ALL col2 + col2 * col1 DIV col2 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL col2 + col2 * col1 / col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + cor0.col2 * + col1 + + col1 * cor0.col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
1330
1701
3094

query I rowsort
SELECT + cor0.col0 - col0 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
350
474630
493118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col1 + col2 col2 FROM tab1
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * + tab1.col2 col1 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT DISTINCT cor0.col0 DIV col0 + col2 + - col1 * - cor0.col1 * col0 FROM tab0 cor0
----
177538
329317
737092

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT cor0.col0 / col0 + col2 + - col1 * - cor0.col1 * col0 FROM tab0 cor0
----
177538
329317
737092

query I rowsort
SELECT DISTINCT + col1 * - col2 * - cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT cor0.col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - col2 * cor0.col2 + col1 * - col0 * + col0 AS col2 FROM tab2 cor0
----
-107541
-2248
-359632

query I rowsort
SELECT + cor0.col2 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + + col1 - col0 AS col2 FROM tab0 AS cor0
----
7458
8283
9471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - ( - col0 ) + - 31 AS col2 FROM tab1 AS cor0
----
-28
33
49

query I rowsort
SELECT DISTINCT col0 + col2 * col2 * - cor0.col2 + col2 FROM tab1 cor0
----
-157407
-185072
-884560

query I rowsort
SELECT ALL - 7 + + col1 * col2 AS col2 FROM tab2 cor0
----
1527
639
830

query I rowsort
SELECT ALL + col0 * col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL tab1.col1 * col0 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col0 + col1 + col2 AS col1 FROM tab0 AS cor0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col0 * - cor0.col0 col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - 97 * col2 AS col1 FROM tab1 AS cor0
----
-5238
-5529
-9312

query I rowsort
SELECT + col1 * + col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + cor0.col2 * 6 col0 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT - 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT col2 * + tab2.col0 * - col2 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT 85 DIV - ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-3499
SELECT 85 / - ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT ALL - ( 56 ) + - col1 * + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - ( 56 ) + - col1 * + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + ( + col2 + ( + col2 ) ) FROM tab1
----
15360
324
7296

query I rowsort
SELECT ALL col1 + - 74 FROM tab0
----
12
17
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT tab0.col1 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3503
SELECT tab0.col1 / tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT col1 + 12 AS col2 FROM tab1
----
22
25
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT DISTINCT - col2 + + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - col2 + + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL - cor0.col1 + 20 AS col0 FROM tab1 AS cor0
----
-6
10
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 41 + - col0 col1 FROM tab0 cor0
----
1329
3273
6

query I rowsort
SELECT ALL + ( col2 ) * col1 + col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT DISTINCT tab1.col0 DIV + col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT tab1.col0 / + col1 FROM tab1
----
0
6

query I rowsort
SELECT - 78 FROM tab0, tab1 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 30 col0 FROM tab0 AS cor0
----
-119
-54
-65

query I rowsort
SELECT DISTINCT 40 * + 16 FROM tab1 AS cor0
----
640

query I rowsort
SELECT ALL + cor0.col1 + - 68 FROM tab2 AS cor0
----
-37
-51
-9

query I rowsort
SELECT ALL - 99 - - col1 AS col0 FROM tab0
----
-13
-2
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT - 39 - col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 + tab0.col1 - - ( + 94 ) AS col0 FROM tab0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * + tab0.col1 col1 FROM tab0
----
-3612
-3822
-4074

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

query I rowsort
SELECT cor0.col0 - + col0 * - 69 * col1 FROM tab1 AS cor0
----
44224
5385
71840

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL 56 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - ( - 26 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + 92 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - tab0.col2 + - ( + 22 ) AS col0 FROM tab0
----
-104
-23
-55

query I rowsort
SELECT ALL col1 + ( + col1 ) AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT tab2.col0 * col2 * col2 AS col0 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 + - col2 col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - col1 * + col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col2 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * ( col1 ) + col1 * - 54 FROM tab1 AS cor0
----
-440
-533
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 * col2 col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT ALL + 34 + 50 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 + col1 - - col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - ( 67 ) * col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT DISTINCT - - 46 + ( col2 ) FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT col1 * + 37 FROM tab2
----
1147
2183
629

query I rowsort
SELECT ALL - col0 * + 9 AS col0 FROM tab1
----
-27
-576
-720

query I rowsort
SELECT ALL ( col2 ) - - col0 * + ( - col0 ) FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - - col1 * + 8 AS col0 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3541
SELECT ALL + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT ( col1 ) + - cor0.col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT DISTINCT 95 * 52 + - col1 DIV 2 FROM tab2 AS cor0
----
4911
4925
4932

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 95 * 52 + - col1 / 2 FROM tab2 AS cor0
----
4911
4925
4932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col0 * 41 * + col1 FROM tab1 AS cor0
----
-26240
-3198
-42640

query I rowsort
SELECT cor0.col0 + col2 * 92 AS col1 FROM tab1 AS cor0
----
4971
5308
8912

query I rowsort
SELECT - col1 * + cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - + 5 * + cor0.col0 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1041
-1924
-872

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT col2 * - col2 - 72 DIV col1 AS col1 FROM tab1 AS cor0
----
-2918
-3256
-9221

skipif mysql # not compatible
query I rowsort label-3549
SELECT col2 * - col2 - 72 / col1 AS col1 FROM tab1 AS cor0
----
-2918
-3256
-9221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT col0 * col1 + + CAST( - 7 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1033
633
71

skipif mysql # not compatible
query I rowsort label-3550
SELECT col0 * col1 + + CAST ( - 7 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1033
633
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - cor0.col2 col2 FROM tab0 AS cor0
----
10
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT DISTINCT col1 DIV cor0.col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT col1 / cor0.col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * + col2 + col0 * ( 90 ) * - col2 FROM tab0
----
-3149
-650096
-70191

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT + + 45 * col0 DIV col1 FROM tab1 AS cor0
----
276
288
5

skipif mysql # not compatible
query I rowsort label-3554
SELECT + + 45 * col0 / col1 FROM tab1 AS cor0
----
276
288
5

query I rowsort
SELECT + - cor0.col0 * - col1 + 29 FROM tab1 AS cor0
----
1069
107
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 86 col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT + col1 + - ( col1 ) * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col0 + ( col0 + col2 ) * ( - 93 * col0 ) FROM tab0 AS cor0
----
-117145
-127200
-1415278

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + 58 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL tab1.col1 + - col2 - - col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + cor0.col2 * ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - col2 * col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - + col0 + + col1 * 42 AS col1 FROM tab2 AS cor0
----
1295
2400
635

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT col0 * 80 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT col2 * + col2 - + 93 FROM tab1 AS cor0
----
2823
3156
9123

query I rowsort
SELECT ALL col0 * + 69 + - col1 * - col0 FROM tab0 AS cor0
----
14240
3720
5810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( col1 ) col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT + col0 * - 85 * 66 + col0 * col1 + - cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-132576
-192920
-491190

skipif mysql # not compatible
query I rowsort label-3571
SELECT + col0 * - 85 * 66 + col0 * col1 + - cor0.col0 / - col2 FROM tab0 AS cor0
----
-132576
-192920
-491190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT tab1.col1 DIV - tab1.col2 + - col0 - - tab1.col1 AS col1 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3572
SELECT tab1.col1 / - tab1.col2 + - col0 - - tab1.col1 AS col1 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3573
SELECT + 69 DIV col2 + 69 AS col2 FROM tab0
----
138
69
71

skipif mysql # not compatible
query I rowsort label-3573
SELECT + 69 / col2 + 69 AS col2 FROM tab0
----
138
69
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT ALL - 89 - - col0 DIV ( - 57 ) AS col0 FROM tab0
----
-89
-89
-90

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 89 - - col0 / ( - 57 ) AS col0 FROM tab0
----
-89
-89
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * - col2 - - col0 col0 FROM tab2
----
-1222
-1343
-1821

query I rowsort
SELECT DISTINCT + col2 * 98 + - col1 AS col1 FROM tab1 AS cor0
----
5266
5576
9395

query I rowsort
SELECT - col1 + 1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT - + col2 DIV - col1 - 81 FROM tab0 AS cor0
----
-81
-81
-81

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

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT ALL + cor0.col2 * + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + cor0.col2 * + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col0 + 10 AS col1 FROM tab2
----
17
88
89

query I rowsort
SELECT DISTINCT col0 * 31 * col1 + col1 * 99 FROM tab1
----
20830
33527
4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 41 col2 FROM tab0
----
-45
-50
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 - 35 col2 FROM tab0
----
-11
0
54

query I rowsort
SELECT DISTINCT + ( - ( + cor0.col0 ) ) + 11 AS col1 FROM tab0, tab2 AS cor0
----
-67
-68
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col0 + - col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col2 * + 72 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT - cor0.col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 + + ( 10 ) FROM tab2
----
27
41
69

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

query I rowsort
SELECT ALL + + 96 + - col0 FROM tab2 cor0
----
17
18
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3592
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT + ( col0 ) * col0 + col1 * + col2 DIV col2 FROM tab1
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-3593
SELECT + ( col0 ) * col0 + col1 * + col2 / col2 FROM tab1
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT + 64 DIV col2 AS col1 FROM tab0
----
0
1
64

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 64 / col2 AS col1 FROM tab0
----
0
1
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT DISTINCT + col0 DIV + col2 + + col0 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + col0 / + col2 + + col0 FROM tab1
----
3
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT ALL 9 + - col1 + CAST( NULL AS SIGNED ) * ( + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 * col0 - + col2 col2 FROM tab0 AS cor0
----
-1329
-1891
-4888

query I rowsort
SELECT 84 + cor0.col1 AS col0 FROM tab0 AS cor0
----
170
175
181

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

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col2 IN ( col2 * + col2 * - col1 )
----
7
78
79

query I rowsort
SELECT tab2.col2 + col1 * col1 * - col2 AS col1 FROM tab2
----
-10944
-25920
-90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT - tab0.col0 DIV col0 - tab0.col2 AS col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-3606
SELECT - tab0.col0 / col0 - tab0.col2 AS col2 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT - 56 * col0 + - 89 AS col0 FROM tab2 AS cor0
----
-4457
-4513
-481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3608
SELECT - 28 - col0 * - CAST( - col2 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
114048
5075
52700

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 28 - col0 * - CAST ( - col2 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
114048
5075
52700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT col2 + + cor0.col1 DIV + 10 FROM tab1 AS cor0
----
56
58
97

skipif mysql # not compatible
query I rowsort label-3609
SELECT col2 + + cor0.col1 / + 10 FROM tab1 AS cor0
----
56
58
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + tab0.col2 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - tab1.col0 - + col0 AS col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT + col0 * tab1.col2 DIV col1 + - col1 AS col2 FROM tab1
----
-20
354
577

skipif mysql # not compatible
query I rowsort label-3614
SELECT + col0 * tab1.col2 / col1 + - col1 AS col2 FROM tab1
----
-20
354
577

query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 * - col1 - - col0 * col2 * col1 AS col2 FROM tab1
----
2808
35910
98592

query I rowsort
SELECT DISTINCT - col1 - + col1 * col2 FROM tab1
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3619
SELECT DISTINCT + col0 * - col0 * tab1.col0 - col0 DIV + tab1.col0 AS col1 FROM tab1 WHERE col0 + + col1 NOT IN ( tab1.col0 )
----
-262145
-28
-512001

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + col0 * - col0 * tab1.col0 - col0 / + tab1.col0 AS col1 FROM tab1 WHERE col0 + + col1 NOT IN ( tab1.col0 )
----
-262145
-28
-512001

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT DISTINCT - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT + col2 * cor0.col1 DIV col0 AS col0 FROM tab1 cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-3622
SELECT + col2 * cor0.col1 / col0 AS col0 FROM tab1 cor0
----
15
468
8

query I rowsort
SELECT + col0 + cor0.col0 * col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL cor0.col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col0 + + cor0.col0 + col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT col0 / col1 IN ( col1 )
----
1
33
82

query I rowsort
SELECT col0 + col1 * + col1 + + col1 AS col1 FROM tab2
----
3618
385
999

query I rowsort
SELECT ALL col0 + + tab2.col0 AS col1 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT col1 + col1 DIV col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3629
SELECT col1 + col1 / col1 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT + col2 + - col0 * + col2 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

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

query I rowsort
SELECT ALL col2 + + col1 * + tab0.col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT ALL 18 DIV - 71 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL 18 / - 71 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - tab2.col2 ) * - col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( tab1.col1 * col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT + 41 + - col1 AS col0 FROM tab1
----
15
28
31

query I rowsort
SELECT DISTINCT - - 87 + col2 AS col2 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT 51 + + col1 FROM tab0 cor0
----
137
142
148

query I rowsort
SELECT DISTINCT 52 + col2 AS col2 FROM tab2 AS cor0
----
78
79
90

query I rowsort
SELECT + col0 * col2 + - 48 AS col2 FROM tab1 AS cor0
----
114
3600
7632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT DISTINCT - ( col0 ) * CAST( - col1 AS SIGNED ) - col2 * col2 AS col1 FROM tab1 cor0
----
-2609
-2838
-8176

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - ( col0 ) * CAST ( - col1 AS INTEGER ) - col2 * col2 AS col1 FROM tab1 cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL 5 AS col2 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3644
SELECT DISTINCT - col0 * + col2 + + CAST( NULL AS SIGNED ) + col0 * - cor0.col0 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 + - tab2.col1 col2 FROM tab2
----
100
3
45

query I rowsort
SELECT ALL - col1 * col1 + + col2 + + col1 FROM tab2
----
-234
-3396
-903

query I rowsort
SELECT cor0.col0 + + 22 FROM tab0, tab0 cor0
----
9 values hashing to 2db72803afc9edec7fcc9ef560f6e2c7

query I rowsort
SELECT ALL col1 * - tab2.col0 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col0 + col0 * col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 * - col0 AS col2 FROM tab1 cor0
----
-15616
-2925
-7345

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT ALL - ( col1 ) DIV col0 + + cor0.col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - ( col1 ) / col0 + + cor0.col2 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT + col0 + + col2 * 80 AS col1 FROM tab2 cor0
----
2158
2167
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT ALL 83 DIV col2 + - col1 AS col2 FROM tab0 AS cor0
----
-14
-84
-90

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 83 / col2 + - col1 AS col2 FROM tab0 AS cor0
----
-14
-84
-90

query I rowsort
SELECT ALL 66 + col0 * + 78 + + col1 AS col2 FROM tab1 AS cor0
----
326
5068
6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT + + 0 * col0 DIV 1 + + ( - col0 ) + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3655
SELECT + + 0 * col0 / 1 + + ( - col0 ) + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col0 - col1 * col2 AS col1 FROM tab1
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT ALL + tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT cor0.col0 * 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT cor0.col2 + + 41 * + cor0.col1 FROM tab0 AS cor0
----
3559
3813
3978

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

query I rowsort
SELECT col2 * - 19 + col0 * col1 * col2 FROM tab2
----
119158
50312
5346

query I rowsort
SELECT col0 - 74 * 84 AS col2 FROM tab1
----
-6136
-6152
-6213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT - + CAST( col2 AS SIGNED ) * col0 - - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT CAST( NULL AS SIGNED ) - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 24 + col1 * col2 col2 FROM tab0 AS cor0
----
2814
73
7438

query I rowsort
SELECT - + 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col2 + 61 AS col2 FROM tab1 cor0
----
115
118
157

query I rowsort
SELECT DISTINCT - ( - 66 ) + col1 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT ALL + col1 + 91 FROM tab1 AS cor0
----
101
104
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT - + ( 2 ) DIV + cor0.col2 - + col0 * - 85 * + col0 AS col1 FROM tab0 AS cor0
----
104123
48960
673285

skipif mysql # not compatible
query I rowsort label-3672
SELECT - + ( 2 ) / + cor0.col2 - + col0 * - 85 * + col0 AS col1 FROM tab0 AS cor0
----
104123
48960
673285

onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT ALL + 4 * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
11
14
4

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + 4 * col1 / col0 AS col1 FROM tab0 AS cor0
----
11
14
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT DISTINCT + 28 * ( col2 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + + col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL col0 + 4 * col0 FROM tab1 AS cor0
----
15
320
400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 93 col0 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT ALL - ( + 95 ) + + col1 FROM tab2 cor0
----
-36
-64
-78

query I rowsort
SELECT - + 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT DISTINCT - col0 DIV 58 AS col2 FROM tab1 AS cor0
----
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( cor0.col1 ) col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT + + 75 + 35 DIV col0 AS col0 FROM tab0 AS cor0
----
75
76
76

skipif mysql # not compatible
query I rowsort label-3682
SELECT + + 75 + 35 / col0 AS col0 FROM tab0 AS cor0
----
75
76
76

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab1, tab2 AS cor0
----
-7

query I rowsort
SELECT ALL col0 + - col2 * cor0.col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - 12 * - col2 AS col0 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + col1 * cor0.col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-25898
-4741
-84422

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

query I rowsort
SELECT - - col2 - - col1 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT col2 * col0 - 89 DIV + col2 FROM tab0 AS cor0
----
-54
7297
790

skipif mysql # not compatible
query I rowsort label-3689
SELECT col2 * col0 - 89 / + col2 FROM tab0 AS cor0
----
-54
7297
790

query I rowsort
SELECT - col1 - col1 * - cor0.col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col2 + - ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 90 + col2 AS col1 FROM tab1
----
144
147
186

query I rowsort
SELECT - 14 + + col1 * + col1 FROM tab0
----
7382
8267
9395

query I rowsort
SELECT - 41 * + cor0.col2 - + col2 * - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-18642
-20790
-56430

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

query I rowsort
SELECT 85 * - col0 + col0 + 38 FROM tab2
----
-550
-6514
-6598

query I rowsort
SELECT - col0 * 1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col0 + 6 AS col2 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT ALL - + col0 * col0 * 80 FROM tab1 AS cor0
----
-327680
-512000
-720

query I rowsort
SELECT - col2 * - col0 + + col1 + cor0.col0 * 79 FROM tab1 AS cor0
----
14013
425
8714

query I rowsort
SELECT ALL + + col1 * 64 FROM tab2 AS cor0
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT - + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT cor0.col1 * ( + col0 * + cor0.col2 + ( - 16 ) ) AS col0 FROM tab0 AS cor0
----
1843
662662
66736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3704
SELECT cor0.col2 * CAST( - col1 AS SIGNED ) + - col0 * + col1 + col0 FROM tab2 AS cor0
----
-1047
-1910
-6058

skipif mysql # not compatible
query I rowsort label-3704
SELECT cor0.col2 * CAST ( - col1 AS INTEGER ) + - col0 * + col1 + col0 FROM tab2 AS cor0
----
-1047
-1910
-6058

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3705
SELECT DISTINCT - + col2 + CAST( - col0 AS SIGNED ) * col1 * col2 AS col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - + col2 + CAST ( - col0 AS INTEGER ) * col1 * col2 AS col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 97 * col0 + col1 + - col1 * col0 AS col2 FROM tab0
----
350
625
97

query I rowsort
SELECT ALL col0 + col2 * - col0 + - 92 FROM tab1
----
-251
-3676
-7692

query I rowsort
SELECT - - col0 + cor0.col0 + 92 * col0 * + ( - col0 * - col0 ) AS col2 FROM tab1 cor0
----
24117376
2490
47104160

query I rowsort
SELECT ALL - + col2 * + col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + col1 * col0 * - ( + col2 + cor0.col1 ) FROM tab2 AS cor0
----
-12586
-391170
-73865

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT + col2 * 8 + - col1 DIV cor0.col0 + col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
425
457
769

skipif mysql # not compatible
query I rowsort label-3712
SELECT + col2 * 8 + - col1 / cor0.col0 + col1 / cor0.col1 AS col1 FROM tab1 AS cor0
----
425
457
769

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f

query I rowsort
SELECT DISTINCT 41 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
41

query I rowsort
SELECT - 6 + - tab0.col1 FROM tab0
----
-103
-92
-97

query I rowsort
SELECT ALL ( col2 + 75 ) AS col1 FROM tab0
----
108
157
76

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

query I rowsort
SELECT + - col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + col2 * - ( 49 ) + + col2 FROM tab2 AS cor0
----
-1248
-1296
-1824

query I rowsort
SELECT ALL tab0.col2 * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col1 + cor0.col1 * col0 AS col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT - cor0.col2 * 89 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT DISTINCT + 17 * col2 AS col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL + - col2 * ( - cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - - 69 + cor0.col2 AS col0 FROM tab2 AS cor0
----
107
95
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT CAST( col0 AS SIGNED ) + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + ( + col0 ) - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + 10 + cor0.col1 AS col0 FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT - + 19 + + 69 * col0 FROM tab0 AS cor0
----
1637
2396
6122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - - ( 47 ) AS col1 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + 13 - col0 FROM tab0 AS cor0
----
-11
-22
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT DISTINCT + + col1 * + col1 + - CAST( 66 AS SIGNED ) - + col2 DIV + 60 FROM tab1 AS cor0
----
102
34
610

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + + col1 * + col1 + - CAST ( 66 AS INTEGER ) - + col2 / + 60 FROM tab1 AS cor0
----
102
34
610

query I rowsort
SELECT - - 74 FROM tab0 cor0
----
74
74
74

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

query I rowsort
SELECT + cor0.col1 * - col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT - - cor0.col1 * col1 + + ( col0 + - cor0.col2 ) DIV cor0.col0 FROM tab1 AS cor0
----
100
169
659

skipif mysql # not compatible
query I rowsort label-3737
SELECT - - cor0.col1 * col1 + + ( col0 + - cor0.col2 ) / cor0.col0 FROM tab1 AS cor0
----
100
169
659

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT + col0 - col1 DIV tab0.col0 AS col2 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-3738
SELECT + col0 - col1 / tab0.col0 AS col2 FROM tab0
----
21
33
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3739
SELECT DISTINCT col0 / tab1.col2 + CAST( NULL AS DECIMAL ) + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT col0 / tab1.col2 + CAST ( NULL AS REAL ) + - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 + col1 * - 91 * - col0 FROM tab2 AS cor0
----
122251
19774
418808

query I rowsort
SELECT DISTINCT col2 + col0 * - 2 AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT col2 * col2 * col1 AS col2 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT col2 + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - cor0.col0 + + 11 * + col0 AS col0 FROM tab2 cor0
----
70
780
790

query I rowsort
SELECT ALL col2 * col0 + 0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 + - col2 * + 74 * col2 FROM tab1 AS cor0
----
-215758
-240416
-681971

query I rowsort
SELECT DISTINCT + + cor0.col0 + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
111
122
176

query I rowsort
SELECT ALL + 11 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + + 3 * + col1 FROM tab2 AS cor0
----
177
51
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT - col2 * ( cor0.col0 * + 62 ) + + col1 * + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col1 * - col2 - - col0 * col1 * 13 FROM tab2 AS cor0
----
16813
1984
58292

query I rowsort
SELECT - + 28 * + col1 + - col2 * - col1 FROM tab2 cor0
----
-118
-31
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT + col0 + - col0 DIV - col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3753
SELECT + col0 + - col0 / - col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ( col2 ) - col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 38 * col1 FROM tab2
----
1178
2242
646

query I rowsort
SELECT DISTINCT ( + col0 ) * col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 29 * col2 * col1 FROM tab0
----
216398
2813
82302

query I rowsort
SELECT DISTINCT 35 + cor0.col2 AS col1 FROM tab1 cor0
----
131
89
92

query I rowsort
SELECT DISTINCT col2 * + col2 - col1 AS col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL ( + 13 ) * + col1 + ( 56 ) * + col2 * col2 - tab2.col0 AS col1 FROM tab2
----
38545
41220
81006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3762
SELECT ALL + CAST( - col2 AS SIGNED ) * + col0 AS col0 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + CAST ( - col2 AS INTEGER ) * + col0 AS col0 FROM tab1
----
-162
-3648
-7680

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

query I rowsort
SELECT col2 * - ( - 8 ) + + col1 AS col2 FROM tab0 AS cor0
----
105
350
747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * col2 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-10965
-25916
-90447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( col2 + - cor0.col2 ) col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * - col2 + - ( + col0 ) * ( + 68 ) AS col0 FROM tab0 AS cor0
----
-13350
-2415
-2424

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

query I rowsort
SELECT ALL - - col1 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col1 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + col2 + - col0 + 19 FROM tab1
----
12
35
70

query I rowsort
SELECT col2 + 16 FROM tab2
----
42
43
54

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2, tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT col1 - col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT + ( - 79 ) + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT + 10 + ( - col2 ) DIV - 3 col1 FROM tab2 AS cor0
----
18
19
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3777
SELECT + 10 + ( - col2 ) / - 3 col1 FROM tab2 AS cor0
----
18
19
22

query I rowsort
SELECT + 56 * col1 + col1 FROM tab2 AS cor0
----
1767
3363
969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3779
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + ( ( - col2 ) ) AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT col1 + - 55 + + col2 AS col1 FROM tab1
----
12
25
54

query I rowsort
SELECT ALL + col2 * col0 * 53 + + col2 * col1 + - col1 AS col1 FROM tab2
----
10823
108959
159735

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3784
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) - + 6 AS col2 FROM tab0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT col2 + col2 * 52 * + col1 + - CAST( + 53 AS SIGNED ) * col1 AS col2 FROM tab1
----
29167
64303
71684

skipif mysql # not compatible
query I rowsort label-3785
SELECT col2 + col2 * 52 * + col1 + - CAST ( + 53 AS INTEGER ) * col1 AS col2 FROM tab1
----
29167
64303
71684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + tab0.col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + tab0.col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT + CAST( NULL AS SIGNED ) * + col0 col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT DISTINCT 44 + - cor0.col2 DIV - 20 + - col2 FROM tab0 AS cor0
----
-34
12
43

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT 44 + - cor0.col2 / - 20 + - col2 FROM tab0 AS cor0
----
-34
12
43

query I rowsort
SELECT ALL cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - 83 - col2 * + 70 AS col2 FROM tab1 AS cor0
----
-3863
-4073
-6803

query I rowsort
SELECT DISTINCT - + col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 72 + - ( + col0 ) FROM tab0
----
-107
-161
-96

query I rowsort
SELECT 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + + ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 + col2 * + col0 col0 FROM tab0 AS cor0
----
55
7318
812

query I rowsort
SELECT DISTINCT - col1 - - cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + - ( col0 ) * col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 cor0, tab2 cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + col2 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + col0 col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col1 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( col2 ) col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 + 19 * - col1 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT ALL col0 + - 88 AS col1 FROM tab0 AS cor0
----
-53
-64
1

query I rowsort
SELECT - col0 * + 20 + - col2 AS col2 FROM tab1
----
-114
-1337
-1696

query I rowsort
SELECT DISTINCT - + col0 * 16 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT DISTINCT - cor0.col0 + - tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
-104
-105
-106
-116
-117
-33
-34
-45

query I rowsort
SELECT DISTINCT col1 * col2 * 86 + col0 AS col0 FROM tab1 AS cor0
----
107408
120747
49084

query I rowsort
SELECT ALL + col2 * + 49 + ( col1 ) + col1 * col2 FROM tab0 AS cor0
----
11571
243
4541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3811
SELECT DISTINCT - col1 * CAST( col2 AS SIGNED ) + + col2 * ( 99 + - col1 ) FROM tab0 AS cor0
----
-2409
-6806
-95

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT - col1 * CAST ( col2 AS INTEGER ) + + col2 * ( 99 + - col1 ) FROM tab0 AS cor0
----
-2409
-6806
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + + col1 * + 46 * ( col2 ) col1 FROM tab2 AS cor0
----
29733
38533
70623

onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT - ( 88 ) - cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-88
-88
-92

skipif mysql # not compatible
query I rowsort label-3813
SELECT - ( 88 ) - cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
-88
-88
-92

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 37 * + col1 AS col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + col0 + - 12 * cor0.col1 * + 79 FROM tab0 cor0
----
-81504
-86179
-91921

query I rowsort
SELECT tab0.col1 * 46 AS col1 FROM tab0
----
3956
4186
4462

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT col0 + + ( - col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-3819
SELECT col0 + + ( - col2 ) / col0 AS col0 FROM tab2 AS cor0
----
4
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT + col2 * - col0 + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-70
-7299
-792

skipif mysql # not compatible
query I rowsort label-3820
SELECT + col2 * - col0 + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-70
-7299
-792

query I rowsort
SELECT - + cor0.col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - cor0.col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + 7 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT ALL 44 + - col0 AS col0 FROM tab1 AS cor0
----
-20
-36
41

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT DISTINCT + - col2 DIV col1 - 93 * - 60 FROM tab2 AS cor0
----
5578
5580

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + - col2 / col1 - 93 * - 60 FROM tab2 AS cor0
----
5578
5580

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

query I rowsort
SELECT col1 * - col1 - + col0 * 55 FROM tab0
----
-11334
-13176
-8716

query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * - col1 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + ( cor0.col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT 90 DIV col0 col2 FROM tab2 AS cor0
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3832
SELECT 90 / col0 col2 FROM tab2 AS cor0
----
1
1
12

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

query I rowsort
SELECT + 63 * - 65 FROM tab1 AS cor0
----
-4095
-4095
-4095

query I rowsort
SELECT col0 * + 61 FROM tab1
----
183
3904
4880

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT 18 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT cor0.col0 * + 59 FROM tab1 cor0
----
177
3776
4720

query I rowsort
SELECT ALL 92 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1435
309
4694

query I rowsort
SELECT col1 * - 17 AS col2 FROM tab1 AS cor0
----
-170
-221
-442

query I rowsort
SELECT DISTINCT 11 + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
107
65
68

query I rowsort
SELECT DISTINCT ( col2 ) * col1 + + 86 FROM tab1
----
1334
1490
656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT DISTINCT + 46 + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + 46 + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL - 65 * - col0 - + col2 FROM tab2 AS cor0
----
428
5044
5097

query I rowsort
SELECT - 96 + col2 FROM tab1
----
-39
-42
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3848
SELECT ALL col1 * - col0 + col0 + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3849
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * + col2 * - col2 AS col2 FROM tab1
----
-207936
-737280
-8748

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

query I rowsort
SELECT + col2 * ( - col1 ) + + cor0.col1 * ( col0 ) AS col0 FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT + col0 - + col0 * + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT - + col2 + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-30
-81
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT - col0 + 41 DIV 30 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3855
SELECT - col0 + 41 / 30 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT - + cor0.col2 - - ( + cor0.col1 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 91 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + col0 * cor0.col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - 35 FROM tab2, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3861
SELECT CAST( NULL AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 36 - col2 AS col1 FROM tab0 AS cor0
----
-46
3
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT DISTINCT - col2 DIV - ( col2 + - cor0.col0 ) FROM tab0 AS cor0
----
-11
0
3

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - col2 / - ( col2 + - cor0.col0 ) FROM tab0 AS cor0
----
-11
0
3

query I rowsort
SELECT ( + col0 ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - 70 * - cor0.col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT DISTINCT + 8 * tab1.col2 FROM tab1
----
432
456
768

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab0, tab2, tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT col1 DIV + col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3868
SELECT col1 / + col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + 49 col2 FROM tab1, tab1 cor0
----
9 values hashing to a1522f87dd9ffdb2963602e616515136

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - - col0 * + col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT ALL - col0 DIV + ( col0 * col1 ) - 52 * + 34 FROM tab0 AS cor0
----
-1768
-1768
-1768

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - col0 / + ( col0 * col1 ) - 52 * + 34 FROM tab0 AS cor0
----
-1768
-1768
-1768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT - + col0 + CAST( NULL AS SIGNED ) * - 93 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3873
SELECT - + col0 + CAST ( NULL AS INTEGER ) * - 93 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT ALL col0 DIV col1 + + col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL col0 / col1 + + col1 FROM tab2
----
21
31
60

query I rowsort
SELECT ALL - ( - tab1.col2 * col1 ) + + 80 * + col0 AS col1 FROM tab1
----
1644
5690
7648

query I rowsort
SELECT col2 + + ( col2 ) * + col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT - col1 - col0 * - 49 FROM tab2 AS cor0
----
312
3763
3854

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * 58 col2 FROM tab1
----
174
3712
4640

query I rowsort
SELECT ALL 6 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT - col1 * tab2.col2 * - ( + 12 ) AS col1 FROM tab2
----
10044
18408
7752

query I rowsort
SELECT DISTINCT - - col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 4 + cor0.col2 AS col0 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT 14 * col0 AS col2 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT ALL 57 * col2 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT DISTINCT + 8 + col1 AS col0 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT - - col0 * col1 + + 30 * col0 FROM tab1 AS cor0
----
168
2560
3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT DISTINCT - + col2 + col2 - - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * col2 col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL 27 - col0 FROM tab1 AS cor0
----
-37
-53
24

query I rowsort
SELECT DISTINCT + col2 + + 76 * - col1 FROM tab0 cor0
----
-6503
-6834
-7371

query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 42bf3b8f2bb865dbe16abdf6d3d647fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 + 53 * + col2 * - col1 col1 FROM tab1 AS cor0
----
-34306
-72544
-74421

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT + col1 + 86 DIV col0 AS col0 FROM tab2 AS cor0
----
18
43
60

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + col1 + 86 / col0 AS col0 FROM tab2 AS cor0
----
18
43
60

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT cor0.col0 * ( col1 ) * - col0 + + col2 * col2 FROM tab2 AS cor0
----
-104653
-358280
-790

query I rowsort
SELECT 8 * 1 + col0 FROM tab0 AS cor0
----
32
43
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3898
SELECT - CAST( NULL AS SIGNED ) + + cor0.col0 * col1 / ( col0 + col0 * + 85 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3898
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col0 * col1 / ( col0 + col0 * + 85 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 65 ) * - col0 - - col0 AS col0 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT ALL - - CAST( col0 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - - CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT + cor0.col1 DIV 39 + col2 + col1 AS col1 FROM tab0 AS cor0
----
100
121
175

skipif mysql # not compatible
query I rowsort label-3901
SELECT + cor0.col1 / 39 + col2 + col1 AS col1 FROM tab0 AS cor0
----
100
121
175

query I rowsort
SELECT + 70 + 70 + col0 AS col1 FROM tab2 AS cor0
----
147
218
219

query I rowsort
SELECT DISTINCT + + cor0.col1 * 93 FROM tab0 AS cor0
----
7998
8463
9021

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374

query I rowsort
SELECT + - 15 + - 96 FROM tab0 cor0
----
-111
-111
-111

query I rowsort
SELECT + col1 * col1 * - cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT 82 + 41 * cor0.col1 FROM tab2 AS cor0
----
1353
2501
779

query I rowsort
SELECT + col2 * tab1.col0 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col0 * + col1 * - 41 FROM tab2 cor0
----
-188682
-55063
-8897

query I rowsort
SELECT ALL + 90 FROM tab0 cor0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT cor0.col0 + col0 * + 58 + cor0.col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
159
3776
4719

skipif mysql # not compatible
query I rowsort label-3911
SELECT cor0.col0 + col0 * + 58 + cor0.col2 / - col0 AS col1 FROM tab1 AS cor0
----
159
3776
4719

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * - col0 FROM tab0 cor0
----
-706
-7207
62

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

query I rowsort
SELECT 68 * tab0.col2 * 21 FROM tab0, tab0 AS cor0
----
9 values hashing to f6cc18efc2c67628e4d3ff71b8400b1c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3915
SELECT - 98 DIV - col0 + + col2 col1 FROM tab0
----
3
37
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3915
SELECT - 98 / - col0 + + col2 col1 FROM tab0
----
3
37
83

query I rowsort
SELECT DISTINCT ( col1 ) * + 96 + - col0 FROM tab2 AS cor0
----
1553
2969
5586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3917
SELECT - - col0 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 43 + cor0.col1 + 52 AS col0 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT DISTINCT col2 * col1 + col2 * col1 AS col0 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT ALL ( + cor0.col0 ) AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - col1 * col0 * ( + col2 + - tab2.col0 ) FROM tab2
----
-4340
239304
55063

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT col1 DIV CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * tab0.col2 col1 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3924
SELECT DISTINCT col0 + CAST( + 28 AS SIGNED ) - tab0.col0 AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT col0 + CAST ( + 28 AS INTEGER ) - tab0.col0 AS col0 FROM tab0
----
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT - col1 * CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-3925
SELECT - col1 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + ( - col2 ) - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col0 * - 4 + col1 AS col0 FROM tab1
----
266
333
38

query I rowsort
SELECT - 57 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 49 + + 56 col2 FROM tab2
----
1330
1379
1918

query I rowsort
SELECT ALL col1 * tab2.col1 * col2 FROM tab2
----
10982
25947
90506

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

query I rowsort
SELECT + - 10 * cor0.col1 - col2 FROM tab0 AS cor0
----
-893
-971
-992

query I rowsort
SELECT ALL - - 61 * col0 + col2 AS col0 FROM tab1 AS cor0
----
237
3961
4976

query I rowsort
SELECT + - ( cor0.col1 ) * col1 + + ( - 5 ) * - col0 FROM tab2 cor0
----
-3091
-926
106

query I rowsort
SELECT ALL + ( 20 ) * col2 + + col0 * + 88 AS col0 FROM tab2 AS cor0
----
1156
7384
7712

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

query I rowsort
SELECT ALL + col0 + 36 * col0 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT ALL cor0.col1 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + ( + 74 ) * - col1 + - 81 * col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-551378
-7259
-94573

query I rowsort
SELECT ALL - col2 * tab2.col1 + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab1 cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT col1 + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * cor0.col2 * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 AS cor0 WHERE ( col0 + col0 ) < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL + col2 - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + tab0.col1 * col0 FROM tab0
----
2040
3360
8010

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( + col0 - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col1 + - tab2.col1 AS col0 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL > tab1.col1
----

query I rowsort
SELECT col2 FROM tab1 WHERE col2 <> col0 * col2
----
54
57
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * - col1 col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - col2 + - col1 - cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-2
573
931

query I rowsort
SELECT - - col1 + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - + cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col2 col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT col0 * + col1 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col0 * col0 * + tab1.col1 + col1 FROM tab1
----
260
40970
83213

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - cor0.col2 ) >= NULL
----

query I rowsort
SELECT - col1 * - col2 + col0 * - col2 * col0 - col2 AS col1 FROM tab1 cor0
----
-232959
-613248
864

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col0 + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - + col0 + 14 AS col2 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT ALL - + col0 + ( col0 ) 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 tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * 8 + col0 AS col0 FROM tab0 cor0
----
216
315
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT col0 + + col1 DIV - col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3973
SELECT col0 + + col1 / - col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL + + 51 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col0 - - 31 FROM tab2
----
109
110
38

query I rowsort
SELECT + col0 + cor0.col2 - col2 * + col1 FROM tab0 AS cor0
----
-2781
-61
-7291

query I rowsort
SELECT col2 * col1 - col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT col0 DIV col1 AS col2 FROM tab2 cor0
----
0
1
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 - col2 col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col0 + - col2 + col2 * col2 FROM tab0
----
1080
35
6731

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 AS col0 FROM tab2
----
106097
1519
358956

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT - col2 DIV + tab1.col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT - col2 / + tab1.col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT 49 + - col0 AS col1 FROM tab0
----
-40
14
25

query I rowsort
SELECT - col0 - + col0 * 43 FROM tab2
----
-308
-3432
-3476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col2 * - col0 + + 8 FROM tab2 AS cor0
----
-181
-2020
-2994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col2 col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - + col1 * col2 + - cor0.col1 * - cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
3298
65274
656656

query I rowsort
SELECT - - cor0.col2 + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( 77 ) + col1 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
125968
37418
76047

query I rowsort
SELECT + 14 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT - col2 + 21 * + ( col2 ) AS col2 FROM tab0
----
1640
20
660

query I rowsort
SELECT 25 * col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6734
7191
724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL - - col2 DIV + col1 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - - col2 / + col1 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1442
-676
-729

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4001
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT ALL col0 * + col2 + cor0.col1 DIV + ( 14 ) FROM tab1 AS cor0
----
163
3648
7680

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL col0 * + col2 + cor0.col1 / + ( 14 ) FROM tab1 AS cor0
----
163
3648
7680

query I rowsort
SELECT DISTINCT - - col1 * ( col0 + - 22 ) FROM tab2 AS cor0
----
-465
3304
969

query I rowsort
SELECT ALL col1 + tab2.col0 * col2 - 17 FROM tab2
----
203
2070
3002

query I rowsort
SELECT DISTINCT tab2.col1 - - tab2.col0 * tab2.col2 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT ALL col2 DIV col0 - 78 FROM tab0
----
-77
-78
-78

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL col2 / col0 - 78 FROM tab0
----
-77
-78
-78

query I rowsort
SELECT + col0 * + col0 + + col2 * tab0.col1 * col1 - + 13 FROM tab0
----
10621
244631
686950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col0 + - cor0.col0 * 60 col0 FROM tab0 AS cor0
----
-2065
-648
1958

query I rowsort
SELECT DISTINCT - col1 * col2 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - - 57 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2781
-40
-7405

query I rowsort
SELECT ALL col2 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 58 col0 FROM tab1 cor0
----
32
45
48

query I rowsort
SELECT + col1 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL col0 * - col2 + - col1 + col0 FROM tab2 cor0
----
-2009
-213
-2940

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT DISTINCT - - col2 DIV 25 AS col0 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT - - col2 / 25 AS col0 FROM tab1 AS cor0
----
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT DISTINCT cor0.col0 * col0 DIV - col0 + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT cor0.col0 * col0 / - col0 + col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - col1 + + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT col1 * - tab2.col0 - - col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL + col1 * 97 + 23 AS col0 FROM tab0 AS cor0
----
8365
8850
9432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT ALL col2 - CAST( - ( + col0 ) AS SIGNED ) * col0 * + 81 FROM tab2 AS cor0
----
3996
492830
505559

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL col2 - CAST ( - ( + col0 ) AS INTEGER ) * col0 * + 81 FROM tab2 AS cor0
----
3996
492830
505559

query I rowsort
SELECT col1 * - col1 * col1 AS col2 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT + col1 * + col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col0 + 25 AS col1 FROM tab0 AS cor0
----
114
49
60

query I rowsort
SELECT + col1 * + 64 + col2 * col2 FROM tab1 AS cor0
----
10048
3889
4580

query I rowsort
SELECT cor0.col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * col2 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 + - col1 * 16 + - tab2.col1 * ( + col1 ) AS col1 FROM tab2
----
-1430
-4399
-523

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col1 + - ( cor0.col2 + + col0 ) AS col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT - - col1 * col0 * cor0.col0 + col2 - + col1 FROM tab2 AS cor0
----
106118
1515
358923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT + cor0.col2 DIV cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif mysql # not compatible
query I rowsort label-4032
SELECT + cor0.col2 / cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

query I rowsort
SELECT col1 + 6 - - col2 * + col2 AS col0 FROM tab0 AS cor0
----
104
1181
6821

query I rowsort
SELECT + col1 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT col0 DIV - col1 + - col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4035
SELECT col0 / - col1 + - col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL tab1.col2 + 70 FROM tab1
----
124
127
166

query I rowsort
SELECT - cor0.col2 + - 8 AS col1 FROM tab2 AS cor0
----
-34
-35
-46

query I rowsort
SELECT - 83 * - col0 FROM tab0 AS cor0
----
1992
2905
7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4039
SELECT + cor0.col0 / + col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 13 col0 FROM tab1
----
109
67
70

query I rowsort
SELECT DISTINCT cor0.col2 * 35 FROM tab2, tab0, tab2 AS cor0
----
1330
910
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT ALL - col1 DIV - col0 + col2 AS col2 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - col1 / - col0 + col2 AS col2 FROM tab2
----
26
31
38

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - + col0 + + col0 * ( col1 ) AS col1 FROM tab1 cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT DISTINCT - + 93 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - + 93 / + col1 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + 42 * col0 FROM tab0 AS cor0
----
1008
1470
3738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT 94 + + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT - - 94 DIV + col0 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-4048
SELECT - - 94 / + col0 FROM tab2 AS cor0
----
1
1
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4049
SELECT ALL + 43 / col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT DISTINCT cor0.col1 + + col2 DIV - 7 FROM tab1 cor0
----
0
19
2

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT cor0.col1 + + col2 / - 7 FROM tab1 cor0
----
0
19
2

query I rowsort
SELECT + col0 * col1 + + ( col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT DISTINCT 83 DIV 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT 83 / 96 FROM tab0
----
0

query I rowsort
SELECT ( cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL col1 - - col0 * - col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT + + cor0.col2 * cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837

query I rowsort
SELECT ALL - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT DISTINCT - col1 * - col2 + - col1 DIV 75 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT - col1 * - col2 + - col1 / 75 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - 25 * + col2 FROM tab0 cor0
----
2050
25
825

query I rowsort
SELECT DISTINCT + 75 + - col1 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT + 38 * cor0.col0 FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT DISTINCT - - 71 * - col2 AS col0 FROM tab2 AS cor0
----
-1846
-1917
-2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT DISTINCT - 96 + + cor0.col1 DIV col1 + + 51 * + col2 FROM tab1 AS cor0
----
2659
2812
4801

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - 96 + + cor0.col1 / col1 + + 51 * + col2 FROM tab1 AS cor0
----
2659
2812
4801

query I rowsort
SELECT 88 + - col1 FROM tab2
----
29
57
71

query I rowsort
SELECT + 36 * 26 * + col0 AS col0 FROM tab1
----
2808
59904
74880

query I rowsort
SELECT ALL - 80 * col0 + - tab0.col2 * - col1 FROM tab0
----
-2703
342
918

query I rowsort
SELECT ALL 23 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ( 50 * col1 ) FROM tab1
----
1300
500
650

query I rowsort
SELECT - + col1 + + 37 AS col0 FROM tab0 cor0
----
-49
-54
-60

query I rowsort
SELECT DISTINCT + - col2 + - col0 + col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 23 * + col0 AS col2 FROM tab0 cor0
----
2047
552
805

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

query I rowsort
SELECT - col2 * 10 FROM tab2
----
-260
-270
-380

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT + col1 + 62 DIV - col2 FROM tab1 AS cor0
----
13
25
9

skipif mysql # not compatible
query I rowsort label-4075
SELECT + col1 + 62 / - col2 FROM tab1 AS cor0
----
13
25
9

query I rowsort
SELECT + 80 + col2 * ( ( - col2 ) ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-17470
-19576
-54754

query I rowsort
SELECT - cor0.col0 * + col1 + 84 FROM tab1 AS cor0
----
-556
-956
6

query I rowsort
SELECT - col1 + col0 * + col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - 94 + col2 * cor0.col0 * col0 FROM tab0 AS cor0
----
1131
18914
649428

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT - ( - col0 ) - + col2 * col1 DIV col0 AS col2 FROM tab0 cor0
----
-94
33
6

skipif mysql # not compatible
query I rowsort label-4080
SELECT - ( - col0 ) - + col2 * col1 / col0 AS col2 FROM tab0 cor0
----
-94
33
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4081
SELECT DISTINCT col2 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT col2 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - col2 * + 83 AS col2 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * + 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - cor0.col2 - 10 AS col0 FROM tab2 cor0
----
-36
-37
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT DISTINCT + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL col0 + cor0.col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col1 + - ( - col1 ) AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT - col0 * ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 + 97 AS col0 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT 55 * cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to a9ac1870cd1d3b91eef55464077bbaad

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + ( col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 * + col2 * + col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT + col2 DIV - 41 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT + col2 / - 41 AS col1 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT + CAST( + 54 AS SIGNED ) * col0 FROM tab1 AS cor0
----
162
3456
4320

skipif mysql # not compatible
query I rowsort label-4098
SELECT + CAST ( + 54 AS INTEGER ) * col0 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT 7 * col1 AS col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT ALL col0 * + col0 * 32 AS col2 FROM tab1
----
131072
204800
288

query I rowsort
SELECT ALL col1 * + 29 FROM tab2
----
1711
493
899

query I rowsort
SELECT ( - col2 ) * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + ( + 58 ) * col2 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT - col2 * + 72 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT + ( col1 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL ( - 84 ) * col1 AS col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT DISTINCT - CAST( + col2 + col1 AS SIGNED ) DIV 21 col0 FROM tab0
----
-4
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - CAST ( + col2 + col1 AS INTEGER ) / 21 col0 FROM tab0
----
-4
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - col2 + - 37 col0 FROM tab1 AS cor0
----
-129
-132
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * col1 col1 FROM tab1
----
1027
2054
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT DISTINCT cor0.col0 DIV + ( 50 ) FROM tab2, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT cor0.col0 / + ( 50 ) FROM tab2, tab1 AS cor0
----
0
1

query I rowsort
SELECT - 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT 37 * - col0 AS col2 FROM tab1
----
-111
-2368
-2960

query I rowsort
SELECT col1 * col1 * 4 FROM tab2
----
1156
13924
3844

query I rowsort
SELECT tab2.col2 * - 69 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 0b46d3064756fb6a7b09c01456eb7036

query I rowsort
SELECT - col2 * 31 + + col0 FROM tab2 AS cor0
----
-1099
-728
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT 32 * col0 DIV col1 FROM tab0 AS cor0
----
11
31
8

skipif mysql # not compatible
query I rowsort label-4117
SELECT 32 * col0 / col1 FROM tab0 AS cor0
----
11
31
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + ( - cor0.col1 ) * col0 col1 FROM tab1 AS cor0
----
-1280
-156
-2080

query I rowsort
SELECT col0 + + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + 85 + col1 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT ALL col1 + - col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + + 83 * col2 AS col1 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT - + col1 * - col0 + - 36 FROM tab1 AS cor0
----
1004
42
604

query I rowsort
SELECT DISTINCT + - 65 FROM tab0, tab2, tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + - col2 - + col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT tab2.col2 * + 74 AS col2 FROM tab2
----
1924
1998
2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4127
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col0 - + tab1.col2 FROM tab1
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col0 - + tab1.col2 FROM tab1
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT - col2 * - col1 + - col2 DIV + col1 AS col0 FROM tab2
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-4128
SELECT - col2 * - col1 + - col2 / + col1 AS col0 FROM tab2
----
1534
644
837

query I rowsort
SELECT ( col0 ) + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + - 46 * col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

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

query I rowsort
SELECT ( + col0 ) * 51 FROM tab1
----
153
3264
4080

query I rowsort
SELECT DISTINCT - 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query I rowsort
SELECT col1 - - 57 FROM tab1
----
67
70
83

query I rowsort
SELECT DISTINCT col0 * col2 + col1 + col2 AS col1 FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-4136
SELECT DISTINCT - 63 * col2 + col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1637
-1701
-2390

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - 63 * col2 + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1637
-1701
-2390

onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT DISTINCT ( col1 ) + col1 DIV 12 FROM tab0 AS cor0
----
105
93
98

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT ( col1 ) + col1 / 12 FROM tab0 AS cor0
----
105
93
98

query I rowsort
SELECT + - 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) + + ( + ( + tab1.col2 ) + ( - col2 ) ) AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - tab2.col0 * - col1 + col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT DISTINCT col2 + - 78 DIV col0 FROM tab2 AS cor0
----
16
25
38

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT col2 + - 78 / col0 FROM tab2 AS cor0
----
16
25
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT + cor1.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4143
SELECT + cor1.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - cor0.col0 * - 48 AS col2 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab0 cor0
----
57

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
38

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT ALL - CAST( - ( + col0 ) AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - CAST ( - ( + col0 ) AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT + ( tab1.col2 ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT col1 + 15 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT ALL col1 + + col1 - + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4153
SELECT ALL - - col1 DIV - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1
30
81

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

query I rowsort
SELECT - 5 * + col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT DISTINCT + col1 * - col1 - col1 * + col1 * + cor0.col0 FROM tab2 AS cor0
----
-23120
-274999
-7688

query I rowsort
SELECT ALL col0 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + - col0 + - ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT - col0 * + col2 + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 28 * + col2 + 77 * col2 AS col1 FROM tab0 AS cor0
----
105
3465
8610

query I rowsort
SELECT ( col0 + - col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - + col0 + - col1 * - col1 * - col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
-53

query I rowsort
SELECT - ( + col2 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL 87 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL + col2 * + ( col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 + 44 + - col0 AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT - col0 + col0 * + col1 * - col2 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT DISTINCT col2 * + col1 * 59 FROM tab0
----
167442
440258
5723

query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL cor0.col0 - - 28 * + col0 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT ALL + col1 * - ( + 83 ) FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL 80 * col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL + - cor0.col2 + 33 AS col0 FROM tab0 AS cor0
----
-49
0
32

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT - - 8 + col1 * col0 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
3403
664126
68120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT - col2 DIV 98 + + ( col0 ) AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4176
SELECT - col2 / 98 + + ( col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT col0 * - tab0.col2 + + tab0.col2 AS col2 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT - tab1.col2 + + col1 DIV 15 FROM tab1
----
-53
-57
-96

skipif mysql # not compatible
query I rowsort label-4178
SELECT - tab1.col2 + + col1 / 15 FROM tab1
----
-53
-57
-96

query I rowsort
SELECT + + col2 + ( 94 ) * col0 FROM tab0 AS cor0
----
2289
3291
8448

query I rowsort
SELECT - col1 + col1 * 32 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL + col0 * + col2 * - 65 FROM tab0
----
-2275
-474370
-51480

query I rowsort
SELECT + cor0.col1 + ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ( 98 + col2 ) * - 34 AS col1 FROM tab2
----
-4216
-4250
-4624

query I rowsort
SELECT DISTINCT ( tab1.col2 ) FROM tab1
----
54
57
96

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

query I rowsort
SELECT col0 * + col2 * tab2.col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab0
----
55

query I rowsort
SELECT ALL 39 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + 41 AS col0 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT - cor0.col0 * col1 + 53 AS col1 FROM tab0 AS cor0
----
-2011
-3342
-8046

query I rowsort
SELECT col0 + + col0 * - 82 AS col2 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT + 96 + col0 * 8 AS col1 FROM tab2 cor0
----
152
720
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT + + col0 DIV cor0.col0 + col2 DIV + col0 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4194
SELECT + + col0 / cor0.col0 + col2 / + col0 FROM tab0 AS cor0
----
1
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT ALL 20 * col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL tab2.col0 + + col2 * + ( - col2 * - col0 ) AS col1 FROM tab2
----
114155
5110
52806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT ALL + col2 DIV - col1 + CAST( 15 AS SIGNED ) * col2 + - tab2.col1 FROM tab2
----
331
374
551

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + col2 / - col1 + CAST ( 15 AS INTEGER ) * col2 + - tab2.col1 FROM tab2
----
331
374
551

query I rowsort
SELECT 45 * col1 + col0 FROM tab2 AS cor0
----
1402
2733
844

query I rowsort
SELECT ( + col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 * + col2 + col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL col1 + - 55 AS col0 FROM tab1 AS cor0
----
-29
-42
-45

query I rowsort
SELECT ALL + + col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - - col0 * - col1 - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + + col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT col1 DIV 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT col1 / 92 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * 77 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT cor0.col2 * 46 AS col0 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT ALL + - col1 - + col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT col2 * - 72 AS col1 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT ALL cor0.col2 + 21 AS col0 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT DISTINCT col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT ALL - col0 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - col0 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - col1 + + col0 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT col1 * col1 / col1 + col2 - - ( - col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 43 + col0 AS col2 FROM tab2 AS cor0
----
-36
35
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT - col1 DIV - col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-4218
SELECT - col1 / - col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - 12 - 39 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + 69 * col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT DISTINCT - + ( + col0 ) + + col0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + 12 * col2 AS col0 FROM tab0 cor0
----
12
396
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT ALL - - col2 DIV - col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - - col2 / - col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - col2 + + col1 * ( col0 + col1 ) FROM tab2 AS cor0
----
1151
1594
8057

query I rowsort
SELECT ALL col2 - tab2.col0 * col0 * + col1 AS col0 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT 75 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - col2 * + 59 AS col1 FROM tab0 AS cor0
----
-1947
-4838
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT ALL + + col2 DIV - CAST( - col1 * col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col1 + - col0 * - col1 FROM tab1 AS cor0
----
1200
1456
2275

query I rowsort
SELECT ALL + col1 * cor0.col2 - col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT tab2.col1 + - 95 FROM tab2
----
-36
-64
-78

query I rowsort
SELECT + + col2 * cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + col2 * - 25 AS col0 FROM tab0 cor0
----
-2050
-25
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT ALL cor0.col1 + col1 DIV col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL cor0.col1 + col1 / col2 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT DISTINCT + + col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL col0 * + 9 AS col1 FROM tab1 cor0
----
27
576
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT ALL + + col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT + cor0.col1 * + col0 + col0 - - col2 AS col0 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL - 13 - - 31 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT ALL 79 DIV cor0.col0 col1 FROM tab1 AS cor0
----
0
1
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 79 / cor0.col0 col1 FROM tab1 AS cor0
----
0
1
26

query I rowsort
SELECT - ( 17 ) + + col2 - cor0.col1 FROM tab1 AS cor0
----
11
30
66

query I rowsort
SELECT ALL - col1 - ( col0 ) * col0 FROM tab1
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col2 * ( col1 ) col2 FROM tab0 AS cor0
----
-201498
-529802
-6887

query I rowsort
SELECT DISTINCT 34 * - col1 * - 3 FROM tab1 AS cor0
----
1020
1326
2652

query I rowsort
SELECT + - 28 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT DISTINCT 3 * + col2 AS col0 FROM tab0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT + 64 DIV col1 - col2 FROM tab2
----
-25
-25
-35

skipif mysql # not compatible
query I rowsort label-4250
SELECT + 64 / col1 - col2 FROM tab2
----
-25
-25
-35

query I rowsort
SELECT 62 * col1 * - col0 - + col0 AS col0 FROM tab0
----
-127992
-210525
-502227

query I rowsort
SELECT ALL + 31 AS col0 FROM tab1
----
31
31
31

query I rowsort
SELECT DISTINCT + 92 * col2 FROM tab0
----
3036
7544
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT ALL tab0.col1 DIV col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL tab0.col1 / col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT ( - 12 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 + - tab2.col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col1 + + col2 * col0 AS col2 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT ALL + tab0.col0 DIV col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + tab0.col0 / col0 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - col1 * col1 * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT - - col1 + col0 * + col0 * col1 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT cor0.col2 * - col1 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + 20 + col0 * - tab2.col2 FROM tab2
----
-169
-2008
-2982

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT ALL tab1.col1 * - col2 + - col2 DIV col2 col0 FROM tab1
----
-1249
-1405
-571

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL tab1.col1 * - col2 + - col2 / col2 col0 FROM tab1
----
-1249
-1405
-571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4267
SELECT ALL - CAST( + col0 AS SIGNED ) + col2 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - CAST ( + col0 AS INTEGER ) + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - 3 AS col2 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT 88 + col2 AS col2 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT + col2 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + 23 + - col0 AS col2 FROM tab2 AS cor0
----
-55
-56
16

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT DISTINCT - + ( col1 ) * col0 - col1 DIV col1 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - + ( col1 ) * col0 - col1 / col1 FROM tab1 AS cor0
----
-1041
-641
-79

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

query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b

query I rowsort
SELECT DISTINCT - - col0 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - cor0.col0 * - col0 + col0 * col0 FROM tab2 AS cor0
----
12168
12482
98

query I rowsort
SELECT 69 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1603
715
906

onlyif mysql # use DIV operator for integer division
query I rowsort label-4281
SELECT 68 * + col2 + - col2 DIV col1 FROM tab2 AS cor0
----
1768
1836
2582

skipif mysql # not compatible
query I rowsort label-4281
SELECT 68 * + col2 + - col2 / col1 FROM tab2 AS cor0
----
1768
1836
2582

query I rowsort
SELECT 63 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + - 57 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1485
-634
-821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4284
SELECT + ( 53 ) * col0 + CAST( col2 AS SIGNED ) * - cor0.col0 + 33 FROM tab0 AS cor0
----
-2548
1853
513

skipif mysql # not compatible
query I rowsort label-4284
SELECT + ( 53 ) * col0 + CAST ( col2 AS INTEGER ) * - cor0.col0 + 33 FROM tab0 AS cor0
----
-2548
1853
513

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - col0 + col1 + + col1 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT 85 * col2 AS col0 FROM tab2 cor0
----
2210
2295
3230

query I rowsort
SELECT + - 54 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 * 99 AS col0 FROM tab2 AS cor0
----
-151866
-63954
-82863

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 81 * - tab0.col0 AS col1 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT col0 * - col2 * + col1 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * - col1 + - ( 39 ) col2 FROM tab2
----
-1382
-256
-4641

query I rowsort
SELECT ALL - col1 * + col0 * - 91 + - 39 FROM tab2
----
122174
19708
418743

query I rowsort
SELECT + col0 * 7 AS col0 FROM tab2 AS cor0
----
49
546
553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT col1 DIV 80 + + 24 col1 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4296
SELECT col1 / 80 + + 24 col1 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT + col2 - col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT ALL 36 DIV + 86 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 36 / + 86 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4299
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT ( 69 ) AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
69

query I rowsort
SELECT ALL + col1 * tab0.col1 * col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - cor0.col1 * + 84 AS col2 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT col0 + 32 * col1 * cor0.col2 FROM tab2 cor0
----
20751
26791
49166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4304
SELECT col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4304
SELECT col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT - col1 + + CAST( col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4305
SELECT - col1 + + CAST ( col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + - 61 AS col2 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT - col2 + - col0 + + col2 * - col0 FROM tab2 AS cor0
----
-2132
-223
-3119

query I rowsort
SELECT col0 * + col1 * + ( - col2 * tab2.col1 ) AS col0 FROM tab2
----
-181629
-7059468
-867578

query I rowsort
SELECT ALL ( + ( + cor0.col0 ) ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT DISTINCT + col1 DIV + col2 AS col0 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT - ( + 42 ) FROM tab1, tab1 AS cor0
----
-42

query I rowsort
SELECT col1 * ( col1 * tab1.col0 ) AS col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL + + ( + col2 ) * col0 + 13 + col2 AS col1 FROM tab2 AS cor0
----
2067
229
3053

query I rowsort
SELECT - col1 * col2 + - col1 + col2 AS col2 FROM tab1
----
-1165
-1376
-523

query I rowsort
SELECT DISTINCT - col2 * 93 - - col2 AS col1 FROM tab0
----
-3036
-7544
-92

query I rowsort
SELECT DISTINCT + 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT - CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + ( 13 ) * col2 + + ( ( - col2 ) ) + - cor0.col1 AS col0 FROM tab2 cor0
----
253
293
439

query I rowsort
SELECT DISTINCT + 71 + - col0 AS col1 FROM tab1
----
-9
68
7

query I rowsort
SELECT DISTINCT + 43 + 78 * col1 AS col1 FROM tab0 cor0
----
6751
7141
7609

query I rowsort
SELECT DISTINCT - 32 * col2 AS col0 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT ALL + - ( - cor0.col2 ) + + cor0.col0 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1127
-457
-7748

query I rowsort
SELECT - col0 + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT ALL + CAST( NULL AS SIGNED ) + + 21 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT CAST( col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-4325
SELECT CAST ( col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col1 + cor0.col0 + + col2 AS col0 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 * 48 AS col1 FROM tab2 AS cor0
----
13793
167010
46121

query I rowsort
SELECT - + 82 * 52 FROM tab0 AS cor0
----
-4264
-4264
-4264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4330
SELECT + CAST( cor0.col0 AS SIGNED ) + - col1 + - col0 col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4330
SELECT + CAST ( cor0.col0 AS INTEGER ) + - col1 + - col0 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 32 * col1 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT col2 + - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col0 + ( + ( col2 ) * 18 ) FROM tab2 AS cor0
----
390
479
605

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col0 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 91 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT + cor0.col2 - 34 AS col0 FROM tab1 cor0
----
20
23
62

query I rowsort
SELECT DISTINCT 35 * + tab2.col1 FROM tab2
----
1085
2065
595

query I rowsort
SELECT DISTINCT col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 - + ( + 97 ) FROM tab2 AS cor0
----
-104
-175
-176

query I rowsort
SELECT col1 + 41 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT DISTINCT + + 70 + col2 AS col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT ALL 17 AS col1 FROM tab2 cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4344
SELECT DISTINCT 33 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 33 / col1 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL + - col0 * + col2 + 78 AS col1 FROM tab1 AS cor0
----
-3570
-7602
-84

query I rowsort
SELECT ALL + col0 + - col1 + ( col1 * ( col1 ) ) FROM tab2 cor0
----
3500
351
937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + - col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - - col1 * col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col1 * 91 AS col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT - + col1 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - col1 * + 4 FROM tab0 AS cor0
----
-344
-364
-388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + + 71 FROM tab0 AS cor0
----
71

query I rowsort
SELECT + 56 * + col2 AS col0 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT + 32 * col0 FROM tab0
----
1120
2848
768

query I rowsort
SELECT - col1 * - ( cor0.col2 ) + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4361
SELECT - CAST( NULL AS SIGNED ) * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4362
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 - cor0.col2 * - col0 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 - cor0.col2 * - col0 AS col0 FROM tab2 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4363
SELECT ALL CAST( NULL AS SIGNED ) / - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL CAST ( NULL AS INTEGER ) / - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT + ( col2 ) * - col0 + - 80 DIV col2 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7680

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + ( col2 ) * - col0 + - 80 / col2 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7680

query I rowsort
SELECT ALL - 73 - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
1152
503
7848

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT ALL + CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT ALL + CAST( col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + CAST ( col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + ( - col1 ) - + cor0.col1 * + col0 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT + - col2 + - col1 DIV 24 AS col1 FROM tab1 AS cor0
----
-55
-57
-96

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + - col2 + - col1 / 24 AS col1 FROM tab1 AS cor0
----
-55
-57
-96

query I rowsort
SELECT ALL 11 * cor0.col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT 80 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT - 82 + col1 FROM tab1
----
-56
-69
-72

query I rowsort
SELECT ALL 68 + col0 * + col0 FROM tab2
----
117
6152
6309

query I rowsort
SELECT - 74 * col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT + + 38 * col2 AS col2 FROM tab1 AS cor0
----
2052
2166
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + cor0.col0 + - 4 * + col0 col0 FROM tab2 cor0
----
266
2964
3002

query I rowsort
SELECT + + 33 * - col0 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT + 11 * col2 AS col0 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - 57 * col2 * + col0 + - cor0.col1 * col2 * cor0.col0 FROM tab1 AS cor0
----
-13446
-244416
-537600

query I rowsort
SELECT ALL + ( col2 ) + col1 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4381
SELECT + 55 + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL tab1.col2 * + col0 * 70 AS col0 FROM tab1
----
11340
255360
537600

query I rowsort
SELECT ALL + 96 * - col0 AS col1 FROM tab2
----
-672
-7488
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT cor0.col2 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 - + col1 col0 FROM tab1 AS cor0
----
136
3638
7667

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query I rowsort
SELECT ALL 93 + - col0 FROM tab2
----
14
15
86

query I rowsort
SELECT 81 * + 55 FROM tab0
----
4455
4455
4455

query I rowsort
SELECT + 32 FROM tab2, tab1, tab2 cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT ALL - col1 DIV col2 + - col0 AS col2 FROM tab0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - col1 / col2 + - col0 AS col2 FROM tab0
----
-132
-26
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL ( + col2 ) + + col1 * + col1 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL + - 85 + + col1 AS col1 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT ALL ( ( col0 ) ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( + col0 ) - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT 60 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
60

query I rowsort
SELECT - ( - col0 ) * + col2 + 39 AS col0 FROM tab1 cor0
----
201
3687
7719

query I rowsort
SELECT ALL + 35 * - col0 AS col1 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT ALL + cor1.col2 + ( 9 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 0e7cfbc81382421d2d5aaaf1088d9b3a

query I rowsort
SELECT - col0 * 4 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
18486
5451
875

query I rowsort
SELECT ALL - col1 * + 0 * tab1.col0 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 * 26 + + col1 * - col2 * - col2 FROM tab1
----
120146
32750
76492

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT col1 DIV ( cor0.col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4404
SELECT col1 / ( cor0.col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT - col1 + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT 80 DIV + col2 + + col2 col0 FROM tab0 AS cor0
----
35
81
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4406
SELECT 80 / + col2 + + col2 col0 FROM tab0 AS cor0
----
35
81
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT CAST( 11 AS SIGNED ) FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( 11 AS INTEGER ) FROM tab0 AS cor0
----
11
11
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT + CAST( cor0.col2 AS SIGNED ) * + col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-4408
SELECT + CAST ( cor0.col2 AS INTEGER ) * + col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 94 + cor0.col2 * - col1 * 31 col1 FROM tab0 AS cor0
----
-231139
-2878
-87860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 cor0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT + + 87 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT DISTINCT col0 * - col2 * col0 - + col2 FROM tab0
----
-1226
-19041
-649604

query I rowsort
SELECT - ( col0 ) * - 59 AS col0 FROM tab1 AS cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT cor0.col2 + + col0 + + col0 DIV + col0 FROM tab0 AS cor0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT cor0.col2 + + col0 + + col0 / + col0 FROM tab0 AS cor0
----
172
37
58

query I rowsort
SELECT ALL ( col0 ) * ( + tab1.col0 ) + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT cor0.col2 + 66 AS col1 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT col1 * col1 * + col0 - - col0 FROM tab0 cor0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab1
----
-53

query I rowsort
SELECT + 54 - + 73 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT ALL - col0 * - 85 AS col0 FROM tab1 AS cor0
----
255
5440
6800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT - col2 * ( - col2 ) DIV + col0 FROM tab2 cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-4425
SELECT - col2 * ( - col2 ) / + col0 FROM tab2 cor0
----
104
18
8

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col2 + + 99 * + cor0.col1 FROM tab1 AS cor0
----
1191
2520
933

query I rowsort
SELECT - 42 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT ALL col2 + + ( col1 ) * + col0 - - cor0.col0 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL col2 * col0 * + 89 + + col2 AS col0 FROM tab2 cor0
----
16848
180518
267216

query I rowsort
SELECT DISTINCT - col1 * + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT - col2 - col1 * - col1 AS col1 FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT + col1 * col0 - col2 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT DISTINCT col2 - - col2 DIV - tab1.col1 AS col0 FROM tab1
----
52
89

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT col2 - - col2 / - tab1.col1 AS col0 FROM tab1
----
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 57 col2 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT ALL ( + col0 ) + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col1 + cor0.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - col0 + + 44 FROM tab1 cor0
----
-20
-36
41

query I rowsort
SELECT DISTINCT tab0.col1 - - 23 AS col1 FROM tab0
----
109
114
120

query I rowsort
SELECT ALL + 81 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + ( - 15 ) FROM tab2
----
-15
-15
-15

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + ( + 54 * + col1 ) FROM tab0
----
4644
4914
5238

query I rowsort
SELECT ALL - 33 + col2 AS col2 FROM tab1 cor0
----
21
24
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT ALL + col0 + cor0.col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
26160
598525
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * col0 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT ALL - - col0 DIV cor0.col2 + - ( - col1 ) AS col2 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - - col0 / cor0.col2 + - ( - col1 ) AS col2 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT DISTINCT - 13 FROM tab0, tab0 cor0
----
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4451
SELECT ALL - CAST( NULL AS SIGNED ) + - tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT 34 - col2 AS col2 FROM tab2
----
-4
7
8

query I rowsort
SELECT 54 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-115
-46
-622

query I rowsort
SELECT DISTINCT + 29 * + col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT + 49 DIV + col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4456
SELECT + 49 / + col1 FROM tab1 AS cor0
----
1
3
4

query I rowsort
SELECT - 51 + col0 * - 85 FROM tab1 cor0
----
-306
-5491
-6851

query I rowsort
SELECT ALL - col2 * col0 + - col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL col1 + 9 FROM tab0
----
100
106
95

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

query I rowsort
SELECT + - ( - cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT + + cor0.col0 * col2 DIV cor0.col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4462
SELECT + + cor0.col0 * col2 / cor0.col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + - col1 * + col2 + - col2 FROM tab0 cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT ALL - col2 + + CAST( col0 AS SIGNED ) FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - col2 + + CAST ( col0 AS INTEGER ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT tab0.col0 * + 79 * - col2 + col2 AS col0 FROM tab0
----
-2764
-576460
-62535

query I rowsort
SELECT ALL col1 + col2 + 71 AS col1 FROM tab2
----
126
129
156

query I rowsort
SELECT ALL - - col2 * col2 + + col2 * + col0 AS col0 FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT + - 87 * 80 FROM tab1 AS cor0
----
-6960
-6960
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT ALL ( cor0.col0 ) * + col2 + ( col1 ) DIV - col2 + + ( ( - col1 ) ) AS col2 FROM tab0 cor0
----
-159
704
7206

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL ( cor0.col0 ) * + col2 + ( col1 ) / - col2 + + ( ( - col1 ) ) AS col2 FROM tab0 cor0
----
-159
704
7206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * ( + col1 ) col1 FROM tab1 AS cor0
----
1248
1404
570

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

query I rowsort
SELECT ALL + - cor0.col0 * 94 * + col2 AS col0 FROM tab0 AS cor0
----
-3290
-686012
-74448

query I rowsort
SELECT col2 + + cor0.col2 * + col2 * 6 AS col1 FROM tab1 AS cor0
----
17550
19551
55392

query I rowsort
SELECT ALL col2 + - 77 * - col0 AS col0 FROM tab0 cor0
----
1881
2696
6935

query I rowsort
SELECT col1 * col1 + col1 + ( + ( + col0 ) * - col2 ) AS col1 FROM tab0 AS cor0
----
1074
6690
9471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + + col2 * - col2 col2 FROM tab2 AS cor0
----
-1391
-623
-676

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT col2 DIV col0 + ( - tab1.col2 ) AS col1 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-4479
SELECT col2 / col0 + ( - tab1.col2 ) AS col1 FROM tab1
----
-36
-57
-95

query I rowsort
SELECT ALL + 94 + - col0 FROM tab2 cor0
----
15
16
87

query I rowsort
SELECT 44 * col2 + col1 * 78 FROM tab1 cor0
----
3288
4404
5238

query I rowsort
SELECT DISTINCT 69 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT - + 66 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-1084
-2019
-3868

query I rowsort
SELECT DISTINCT + 97 + - cor0.col2 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-119711
-32393
-75719

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT ALL ( col2 ) * CAST( NULL AS SIGNED ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 97 + + col2 * + ( - ( + col1 ) + ( - cor0.col0 ) ) * - col1 FROM tab1 AS cor0
----
115967
40619
42083

query I rowsort
SELECT ALL 30 + col0 AS col0 FROM tab2 AS cor0
----
108
109
37

query I rowsort
SELECT - + col0 * - col1 + + 79 AS col0 FROM tab2 AS cor0
----
1422
296
4681

query I rowsort
SELECT DISTINCT col1 + 40 FROM tab0 AS cor0
----
126
131
137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4490
SELECT DISTINCT + + col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - cor0.col2 + + 19 * + col2 AS col1 FROM tab0 AS cor0
----
1476
18
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 - col0 col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * 42 FROM tab0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + col2 ) col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col0 + - 9 FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + 20 FROM tab0 cor0
----
117
2858
7482

query I rowsort
SELECT - cor0.col0 + - 65 * 48 * + cor0.col2 + col1 FROM tab1 AS cor0
----
-168457
-177894
-299587

query I rowsort
SELECT DISTINCT col1 * - 30 + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-741
2492
258

query I rowsort
SELECT - col1 + col0 * ( - col2 ) + col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 * col0 + 26 AS col1 FROM tab2 cor0
----
-163
-2002
-2976

query I rowsort
SELECT ALL - 15 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

query I rowsort
SELECT cor0.col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT cor0.col1 - col0 FROM tab1 cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT + col2 * col2 - col2 DIV col1 FROM tab2 AS cor0
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + col2 * col2 - col2 / col1 FROM tab2 AS cor0
----
1442
676
729

query I rowsort
SELECT - col2 - ( col1 ) FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col1 + 86 col0 FROM tab1 AS cor0
----
153
166
195

query I rowsort
SELECT + - col1 * - ( col1 ) + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT 9 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT col0 * col1 + 41 FROM tab2
----
1384
258
4643

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
50

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4514
SELECT ALL - - ( cor0.col0 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - - ( cor0.col0 ) / + col1 AS col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - + col0 + col0 * - ( 41 ) FROM tab1 cor0
----
-126
-2688
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT ALL - + 21 + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-22
-39

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - + 21 + col2 / - col0 FROM tab1 AS cor0
----
-21
-22
-39

query I rowsort
SELECT col1 + col0 * + 41 AS col1 FROM tab2 AS cor0
----
318
3256
3257

skipif mysql # not compatible
query I rowsort
SELECT 37 * - col1 + CAST ( col2 AS REAL ) * col0 FROM tab1
----
-800
3278
7199

query I rowsort
SELECT - - 52 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT + - col1 * - col2 + col0 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
132
28974
605898

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

query I rowsort
SELECT + - col1 + - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT 48 DIV tab2.col1 + col2 FROM tab2
----
26
28
40

skipif mysql # not compatible
query I rowsort label-4523
SELECT 48 / tab2.col1 + col2 FROM tab2
----
26
28
40

query I rowsort
SELECT DISTINCT 36 FROM tab1, tab2 AS cor0
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT - ( - col1 ) DIV - ( - col1 ) - col0 col2 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4525
SELECT - ( - col1 ) / - ( - col1 ) - col0 col2 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT + 63 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

query I rowsort
SELECT + 43 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT col2 + - col1 * - col0 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - 38 + col2 AS col2 FROM tab1
----
16
19
58

query I rowsort
SELECT - + col2 * 10 AS col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT DISTINCT 78 FROM tab2, tab1 cor0, tab1 AS cor1
----
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4532
SELECT + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT CAST( - col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4533
SELECT CAST ( - col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4534
SELECT + - CAST( NULL AS SIGNED ) * - 11 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - 53 col2 FROM tab1 AS cor0
----
-107
-110
-149

query I rowsort
SELECT DISTINCT - 23 * - 42 * col0 FROM tab1
----
2898
61824
77280

query I rowsort
SELECT DISTINCT col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4538
SELECT DISTINCT - cor0.col0 + + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - cor0.col0 + + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-7
-79
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 * - col2 col0 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + 12 * col0 FROM tab2 cor0
----
84
936
948

query I rowsort
SELECT - - 65 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 + col0 * 79 FROM tab2 AS cor0
----
526
6136
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + col2 col1 FROM tab1 cor0
----
28
31
70

query I rowsort
SELECT DISTINCT + col2 * + col1 - + 36 * col2 AS col2 FROM tab0 AS cor0
----
1650
4510
61

query I rowsort
SELECT + col2 * + col0 * + col0 + ( - col1 + col1 ) AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col0 + + 34 AS col0 FROM tab1
----
114
37
98

query I rowsort
SELECT col0 * - col0 * 93 FROM tab0 cor0
----
-113925
-53568
-736653

query I rowsort
SELECT col0 + col1 * - 45 * + col0 + 0 * - col1 AS col2 FROM tab2 AS cor0
----
-207012
-60356
-9758

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT + col0 + 92 DIV 62 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4552
SELECT + col0 + 92 / 62 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT col0 * - col1 * + cor0.col2 + col1 + - col2 * 50 AS col1 FROM tab2 AS cor0
----
-120893
-52917
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 27 * 1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT col1 * + tab1.col0 * - ( - col2 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 41 * ( col2 ) FROM tab1
----
119556
133209
377856

query I rowsort
SELECT + + cor0.col0 + - col2 * col2 + + col2 FROM tab0 AS cor0
----
-1032
-6553
35

query I rowsort
SELECT ALL col0 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col0 * col1 * - col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - col2 + 88 FROM tab0
----
55
6
87

query I rowsort
SELECT DISTINCT 69 * + cor2.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( + col0 ) col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - tab1.col0 * + 77 + col2 FROM tab1
----
-177
-4871
-6064

query I rowsort
SELECT ALL - ( - col2 ) + 20 * - col0 AS col1 FROM tab0 cor0
----
-1698
-447
-699

query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + cor0.col1 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - 69 + - col1 FROM tab2 AS cor0
----
-100
-128
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4569
SELECT + + col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4569
SELECT + + col0 / col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + col2 * col1 * col0 - - col1 * col1 DIV + col2 FROM tab0 AS cor0
----
12804
664218
68336

skipif mysql # not compatible
query I rowsort label-4570
SELECT + col2 * col1 * col0 - - col1 * col1 / + col2 FROM tab0 AS cor0
----
12804
664218
68336

query I rowsort
SELECT - 73 - + col0 FROM tab2 AS cor0
----
-151
-152
-80

query I rowsort
SELECT DISTINCT 41 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col2 * + col1 + 95 FROM tab0 AS cor0
----
-2
-2743
-7367

query I rowsort
SELECT - col1 * + col2 + + 15 - - 51 FROM tab0 AS cor0
----
-2772
-31
-7396

query I rowsort
SELECT ALL - + 83 * col2 + 42 FROM tab0 AS cor0
----
-2697
-41
-6764

query I rowsort
SELECT + 27 + col0 FROM tab2 AS cor0
----
105
106
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4578
SELECT - col2 + + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 + + tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * col0 * + 19 AS col1 FROM tab1
----
12160
1482
19760

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4582
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + ( - col0 ) * + col2 col1 FROM tab1 AS cor0
----
-149
-3635
-7667

query I rowsort
SELECT 62 * col2 AS col2 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT ALL - col0 * 63 AS col1 FROM tab1 cor0
----
-189
-4032
-5040

query I rowsort
SELECT ALL + - 26 * + 66 FROM tab1 AS cor0
----
-1716
-1716
-1716

query I rowsort
SELECT ALL + 53 AS col1 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 40 + cor0.col1 FROM tab0 AS cor0
----
126
131
137

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT DISTINCT - - col0 * col2 DIV + cor0.col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - - col0 * col2 / + cor0.col0 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4591
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4591
SELECT CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 + tab2.col2 * - col0 AS col2 FROM tab2
----
-238
-8112
-9243

query I rowsort
SELECT col2 * 50 + col0 * - col0 FROM tab1
----
-1246
-1600
2691

query I rowsort
SELECT col1 + 19 AS col2 FROM tab1
----
29
32
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT ALL CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 96 + - tab1.col2 * col0 FROM tab1
----
-3552
-66
-7584

query I rowsort
SELECT + 41 * - col1 AS col1 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 67 AS col0 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT 77 * + col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + - col0 + 4 AS col0 FROM tab2 AS cor0
----
-3
-74
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4602
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col2 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0
----
27
27
27

query I rowsort
SELECT - 80 * + col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT - 24 * + col1 * col0 AS col2 FROM tab0 cor0
----
-194376
-49536
-81480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * + col0 col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + tab2.col0 * 53 FROM tab2
----
371
4134
4187

query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab1
----
17

query I rowsort
SELECT ALL + 60 * + col1 AS col0 FROM tab1
----
1560
600
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT col0 + + col0 DIV col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4610
SELECT col0 + + col0 / col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT + 82 * cor0.col0 * col1 FROM tab0 AS cor0
----
169248
278390
664118

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT - col0 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4612
SELECT - col0 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - + 3 - col2 FROM tab2 AS cor0
----
-29
-30
-41

query I rowsort
SELECT DISTINCT - + col1 + - ( 47 ) * col2 FROM tab0 AS cor0
----
-144
-1637
-3945

query I rowsort
SELECT - col1 * + 44 + col2 AS col0 FROM tab0 AS cor0
----
-3751
-3922
-4267

query I rowsort
SELECT DISTINCT + + col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT DISTINCT col0 + + col2 DIV cor0.col2 + col2 FROM tab1 AS cor0
----
122
177
58

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT col0 + + col2 / cor0.col2 + col2 FROM tab1 AS cor0
----
122
177
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT + + col1 * col1 + 49 DIV col1 AS col2 FROM tab1 AS cor0
----
104
172
677

skipif mysql # not compatible
query I rowsort label-4618
SELECT + + col1 * col1 + 49 / col1 AS col2 FROM tab1 AS cor0
----
104
172
677

query I rowsort
SELECT - cor0.col0 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + 95 + col1 AS col1 FROM tab2 AS cor0
----
129
157
213

query I rowsort
SELECT ALL - + col0 * col1 + - 55 FROM tab2 AS cor0
----
-1398
-272
-4657

query I rowsort
SELECT + + cor0.col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 10 + cor0.col2 FROM tab1 AS cor0
----
44
47
86

query I rowsort
SELECT 31 * + ( col0 + + col2 ) * col0 FROM tab2 AS cor0
----
251472
286533
7378

query I rowsort
SELECT - - col1 * col1 * col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT - + col1 * 65 FROM tab2 cor0
----
-1105
-2015
-3835

query I rowsort
SELECT ( + col1 * 56 ) FROM tab0
----
4816
5096
5432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT ALL - + col0 + CAST( NULL AS SIGNED ) * 9 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 - + ( + col1 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - col0 + ( + cor0.col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT col2 + - col2 * + 17 AS col2 FROM tab0 AS cor0
----
-1312
-16
-528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4632
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + + col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col2 * col2 - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + + col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 32 col0 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
56

query I rowsort
SELECT ALL + col1 + col1 * - col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL tab2.col0 * + col2 + ( + ( + tab2.col0 ) ) AS col1 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT DISTINCT + col2 + + 99 DIV + col2 FROM tab0 AS cor0
----
100
36
83

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + col2 + + 99 / + col2 FROM tab0 AS cor0
----
100
36
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT + 98 * - tab0.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 98 * - tab0.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 82 + col0 + - ( - 31 ) * col0 FROM tab1
----
178
2130
2642

query I rowsort
SELECT DISTINCT + col2 + - col1 * tab2.col0 AS col0 FROM tab2
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + col1 * col1 + col2 * col0 col1 FROM tab1
----
-1367
-2078
499

query I rowsort
SELECT + 27 * col0 AS col1 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL + ( col2 ) + col0 + + col0 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT - tab1.col1 * ( + 22 ) AS col0 FROM tab1
----
-220
-286
-572

query I rowsort
SELECT - cor0.col0 * + 1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 * + cor0.col2 col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col1 + 57 * col0 FROM tab2
----
430
4505
4520

query I rowsort
SELECT 83 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT ALL - cor0.col2 DIV + col0 + col0 * cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
216
40960
83199

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - cor0.col2 / + col0 + col0 * cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
216
40960
83199

query I rowsort
SELECT DISTINCT col2 * + 85 AS col0 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT - col1 * ( col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT 28 * - 20 FROM tab0
----
-560
-560
-560

query I rowsort
SELECT - 81 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT col0 * + 15 + col1 FROM tab2 AS cor0
----
1202
1229
136

query I rowsort
SELECT col2 * tab1.col1 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - col2 * - col0 - col1 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT ALL + 48 + tab2.col1 DIV - col1 col1 FROM tab2
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + 48 + tab2.col1 / - col1 col1 FROM tab2
----
47
47
47

query I rowsort
SELECT ALL + ( tab0.col0 ) * - col2 + col1 * + col0 FROM tab0
----
1272
3360
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 17 ) * col1 + col0 col0 FROM tab0 AS cor0
----
1486
1636
1684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4665
SELECT ALL + CAST( 14 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-40
-43
-82

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + CAST ( 14 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT ( + cor0.col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT DISTINCT - - CAST( cor0.col0 AS SIGNED ) * col0 * + cor0.col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1224
17919
642798

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - - CAST ( cor0.col0 AS INTEGER ) * col0 * + cor0.col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1224
17919
642798

query I rowsort
SELECT + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 49 + col0 FROM tab0 AS cor0
----
-14
-25
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT ALL - - col2 DIV - col2 + + col2 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - - col2 / - col2 + + col2 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT ( col0 ) * 8 * - col1 + + col2 FROM tab0 AS cor0
----
-16479
-27159
-64710

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT ALL - + col0 DIV col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - + col0 / col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL col0 * - col1 + + 53 FROM tab1 cor0
----
-25
-587
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 ) + col0 - col1 col0 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL - - col2 + col2 - 19 FROM tab0 AS cor0
----
-17
145
47

query I rowsort
SELECT cor0.col1 * col1 + 27 * - 28 * col0 FROM tab2 AS cor0
----
-4331
-55487
-59435

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT ALL - CAST( - col0 AS SIGNED ) * col1 col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - CAST ( - col0 AS INTEGER ) * col1 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 * 95 * col0 AS col2 FROM tab0
----
116375
54720
752495

onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT DISTINCT col1 * ( - col0 ) DIV col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT col1 * ( - col0 ) / col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL + 18 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT col2 * col0 + col0 * - 75 AS col1 FROM tab2
----
-2923
-336
-3822

query I rowsort
SELECT - 20 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + - cor0.col0 + 51 * - col2 FROM tab0 AS cor0
----
-1707
-4271
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL col0 DIV + ( + col1 ) FROM tab1 AS cor0
----
0
6
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * + ( - col2 * col0 ) col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + + cor0.col1 * + ( 80 ) * col2 col1 FROM tab0 AS cor0
----
226951
596871
7671

query I rowsort
SELECT ALL - col2 * col2 + - ( 70 ) AS col0 FROM tab0 AS cor0
----
-1159
-6794
-71

query I rowsort
SELECT ALL + - col1 * cor0.col0 + - col1 FROM tab2 cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + + col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4083
-6387
4

query I rowsort
SELECT ALL + col1 * + col0 * - 21 AS col2 FROM tab0 AS cor0
----
-170079
-43344
-71295

query I rowsort
SELECT + 11 * + col0 * - tab1.col2 + col2 FROM tab1
----
-1728
-40071
-84384

query I rowsort
SELECT + col0 + col1 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-151
-1891
-2906

query I rowsort
SELECT - col1 + col2 + + col1 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT CAST( - col1 AS SIGNED ) * + tab0.col2 + - 18 - ( col0 * + col2 ) AS col0 FROM tab0
----
-14778
-150
-3648

skipif mysql # not compatible
query I rowsort label-4695
SELECT CAST ( - col1 AS INTEGER ) * + tab0.col2 + - 18 - ( col0 * + col2 ) AS col0 FROM tab0
----
-14778
-150
-3648

query I rowsort
SELECT DISTINCT - + col2 * 83 * col2 FROM tab1 cor0
----
-242028
-269667
-764928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT ALL + - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - col0 + + 73 * 56 AS col2 FROM tab2 AS cor0
----
4009
4010
4081

query I rowsort
SELECT ALL col0 * ( col2 ) * + col1 - ( - 38 ) * col1 FROM tab2 AS cor0
----
121894
51680
7037

query I rowsort
SELECT ALL 56 + col2 AS col2 FROM tab2
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT ALL - col1 - + col0 DIV - 63 AS col1 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - col1 - + col0 / - 63 AS col1 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT + + cor0.col2 * 19 AS col1 FROM tab1 cor0
----
1026
1083
1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT DISTINCT - cor0.col0 + col2 + + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
8

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - cor0.col0 + col2 + + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
8

query I rowsort
SELECT DISTINCT tab2.col1 * + ( col0 * tab2.col0 ) FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col0 - ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col2 * - col0 col2 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT ( cor0.col0 ) * col2 + + 96 FROM tab2 AS cor0
----
2124
285
3098

query I rowsort
SELECT - + col2 + ( + col2 ) * + 6 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT + 22 * col0 AS col1 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT - 63 + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-28
7235
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + col2 ) * + col2 col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT col0 * tab2.col2 * - col0 FROM tab2
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( col0 + col0 * - ( - col0 ) AS REAL ) FROM tab1
----
312
41600
84240

query I rowsort
SELECT ALL 15 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL 45 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT DISTINCT + ( col0 + col2 ) DIV + tab0.col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + ( col0 + col2 ) / + tab0.col1 FROM tab0
----
0
1

query I rowsort
SELECT ( cor0.col0 ) + + tab0.col2 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to c345857bb273aa2639457b7deb30fe90

query I rowsort
SELECT DISTINCT 21 * col2 FROM tab2
----
546
567
798

query I rowsort
SELECT ALL - 39 * 69 AS col0 FROM tab2 AS cor0
----
-2691
-2691
-2691

query I rowsort
SELECT + 91 * + col2 AS col0 FROM tab1 cor0
----
4914
5187
8736

query I rowsort
SELECT - + cor0.col1 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col1 * col0 * ( - 49 ) AS col2 FROM tab2
----
-10633
-225498
-65807

query I rowsort
SELECT DISTINCT + col1 + col2 + col1 AS col1 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT col1 * 0 * + tab0.col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * 87 * col0 FROM tab1
----
-14094
-317376
-668160

query I rowsort
SELECT + col0 * - 85 FROM tab2
----
-595
-6630
-6715

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 + 50 + col1 AS col0 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
7
78
79

query I rowsort
SELECT DISTINCT tab1.col0 + - col1 * - tab1.col2 * + col2 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT + + col2 * - col1 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT col0 + - tab2.col0 * col2 * col0 AS col0 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT ALL + col2 * - cor0.col0 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT - col2 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT DISTINCT + col2 + col0 * + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL + cor0.col2 - - col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + col2 + col0 * col0 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND ( NULL )
----

query I rowsort
SELECT + col0 * + col2 AS col2 FROM tab1 WHERE + col1 * col0 NOT IN ( + col2 / tab1.col0 )
----
162
3648
7680

query I rowsort
SELECT DISTINCT tab2.col1 * tab2.col0 * - col2 + col2 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT - col1 DIV col0 + - cor0.col0 * col0 - + col1 FROM tab1 AS cor0
----
-4106
-43
-6413

skipif mysql # not compatible
query I rowsort label-4743
SELECT - col1 / col0 + - cor0.col0 * col0 - + col1 FROM tab1 AS cor0
----
-4106
-43
-6413

query I rowsort
SELECT + cor0.col1 + col1 * + col0 * - cor0.col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT col0 DIV col0 + + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4746
SELECT col0 / col0 + + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - - col2 + col1 * cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT DISTINCT + col1 - col2 DIV col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + col1 - col2 / col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT DISTINCT tab1.col2 + + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - tab0.col0 + col1 AS col2 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 * ( col1 ) FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col2 * + col2 + 95 * + col2 FROM tab1 AS cor0
----
-96
2166
2214

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT - col2 * tab1.col1 - + col0 DIV col1 FROM tab1
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-4754
SELECT - col2 * tab1.col1 - + col0 / col1 FROM tab1
----
-1254
-1404
-576

query I rowsort
SELECT + col1 * col2 + ( + col1 ) AS col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT col0 + col1 * - tab0.col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 + + col2 * - col1 + + col1 < ( NULL )
----

query I rowsort
SELECT - col2 * - col0 * - tab1.col1 + col2 AS col2 FROM tab1
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT DISTINCT + tab0.col2 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + tab0.col2 / - col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col0 + tab2.col0 - col1 * + col1 AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col1 + + col2 + col1 FROM tab2
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT DISTINCT - tab0.col0 DIV - col0 col1 FROM tab0
----
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT tab0.col2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT tab0.col2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 56 + col2 AS col2 FROM tab1
----
-2
1
40

query I rowsort
SELECT ALL 43 * col0 + + 99 * tab2.col2 AS col0 FROM tab2
----
2974
5928
7159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT 47 + + col2 * CAST( col0 AS SIGNED ) * + col1 AS col2 FROM tab1
----
36527
4259
99887

skipif mysql # not compatible
query I rowsort label-4766
SELECT 47 + + col2 * CAST ( col0 AS INTEGER ) * + col1 AS col2 FROM tab1
----
36527
4259
99887

query I rowsort
SELECT ALL + col2 + col0 + 74 FROM tab1
----
131
195
250

query I rowsort
SELECT + 0 * - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + col2 ) * - ( + 30 * col2 ) AS col2 FROM tab0 AS cor0
----
201720
30
32670

query I rowsort
SELECT ALL ( + col2 ) * + col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 31 * cor0.col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT + 71 * + col2 AS col1 FROM tab2 AS cor0
----
1846
1917
2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT - 10 DIV - col1 + 87 FROM tab1
----
87
87
88

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 10 / - col1 + 87 FROM tab1
----
87
87
88

query I rowsort
SELECT DISTINCT - col0 / - col2 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + col2 + - col1 * - col1 FROM tab1
----
214
361
784

query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 FROM tab0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col0 col0 FROM tab0
----
1225
576
7921

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

query I rowsort
SELECT DISTINCT - col2 + tab1.col2 / - col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 / + col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 AND col2
----

query I rowsort
SELECT - col1 + col0 * col0 + col0 FROM tab0
----
1163
514
7919

query I rowsort
SELECT col0 * col2 + + tab1.col0 AS col1 FROM tab1
----
165
3712
7760

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

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

query I rowsort
SELECT ALL col2 + col1 * col0 - - col0 FROM tab1
----
1216
135
761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * tab0.col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL tab2.col2 * tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * + col2 + col0 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT + col0 * col2 * + ( col1 ) AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
10
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT ALL col0 DIV tab0.col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL col0 / tab0.col0 AS col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT ALL + + cor0.col1 + CAST( - ( - col2 ) AS SIGNED ) DIV col1 AS col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + + cor0.col1 + CAST ( - ( - col2 ) AS INTEGER ) / col1 AS col1 FROM tab1 AS cor0
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT DISTINCT + col1 * col1 DIV col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + col1 * col1 / col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + tab0.col0 + + col0 + col0 AS col1 FROM tab0
----
105
267
72

query I rowsort
SELECT ALL - 87 * + tab1.col2 + tab1.col1 + 83 AS col2 FROM tab1
----
-4589
-4866
-8256

query I rowsort
SELECT + 78 * col1 + col0 + ( - col2 + col2 * - cor0.col0 ) FROM tab2 AS cor0
----
-1635
2209
2626

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL + 86 DIV + col0 + + col0 FROM tab2 AS cor0
----
19
79
80

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + 86 / + col0 + + col0 FROM tab2 AS cor0
----
19
79
80

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

query I rowsort
SELECT ALL + col1 * col0 + + col2 + - 60 * ( cor0.col1 ) FROM tab1 AS cor0
----
-1428
356
97

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

query I rowsort
SELECT ALL + - col0 * - cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - + cor0.col2 * col2 + - ( - 99 ) + cor0.col2 * + ( + col1 + col0 ) FROM tab1 AS cor0
----
-1251
-189
1068

query I rowsort
SELECT ALL - - 46 FROM tab1 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 * col2 col0 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 + - 85 FROM tab1 AS cor0
----
-10
491
875

query I rowsort
SELECT DISTINCT - 12 + col1 AS col2 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT ALL + - ( col0 ) * 24 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT 62 * + col1 + - col1 + col1 AS col0 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col1 + col2 * col0 + col1 * + 93 AS col2 FROM tab2 AS cor0
----
10996
4033
4872

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT + + col0 * col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT cor0.col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - 28 + col1 AS col0 FROM tab1 AS cor0
----
-15
-18
-2

query I rowsort
SELECT - 71 + + cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 79016718eeaa74a368e457d2070aed6a

query I rowsort
SELECT col0 * - col1 * + tab2.col0 AS col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT 14 + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 1365360c800686ad89d1b7f08a91fba2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4818
SELECT - col2 + + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT - col2 + + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + col0 * col2 col1 FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT + col1 * cor0.col1 DIV 13 + 87 FROM tab1 cor0
----
100
139
94

skipif mysql # not compatible
query I rowsort label-4820
SELECT + col1 * cor0.col1 / 13 + 87 FROM tab1 cor0
----
100
139
94

query I rowsort
SELECT - - col0 * - 54 AS col1 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 57 + col0 * col1 col0 FROM tab2 AS cor0
----
1984
2312
7965

query I rowsort
SELECT ALL 71 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col0 col2 FROM tab1
----
180
3840
4800

query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + 75 * + 31 AS col0 FROM tab0 AS cor0
----
2325
2325
2325

query I rowsort
SELECT ALL 90 FROM tab0 cor0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT 69 + ( + col1 ) * col1 DIV - 64 col0 FROM tab2 AS cor0
----
15
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4830
SELECT 69 + ( + col1 ) * col1 / - 64 col0 FROM tab2 AS cor0
----
15
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 11 ) - col1 col0 FROM tab0 AS cor0
----
-102
-108
-97

query I rowsort
SELECT col0 + - ( col1 * - col0 + - col0 ) FROM tab0
----
2112
3465
8277

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT - col2 DIV col0 + + tab2.col0 AS col0 FROM tab2
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4834
SELECT - col2 / col0 + + tab2.col0 AS col0 FROM tab2
----
4
78
79

query I rowsort
SELECT ( + col0 ) - + col0 * - col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - col1 + - 97 * + col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL + + 96 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4839
SELECT + CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-4839
SELECT + CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
4096
6400
9

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

query I rowsort
SELECT tab0.col2 + + 59 AS col2 FROM tab0
----
141
60
92

query I rowsort
SELECT ALL 63 * 32 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 896c492ca649b9543d0f2ce199c7f55d

query I rowsort
SELECT DISTINCT + 98 * - col0 FROM tab1 cor0
----
-294
-6272
-7840

query I rowsort
SELECT - 61 + - col0 * + col2 FROM tab2 cor0
----
-2089
-250
-3063

query I rowsort
SELECT ALL 9 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT col2 * + col1 * + 20 AS col0 FROM tab1
----
11400
24960
28080

query I rowsort
SELECT + col0 * ( 75 ) FROM tab0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT + col2 * 16 + tab0.col1 * - col2 FROM tab0
----
-2310
-6150
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - col2 + cor0.col0 * + 56 col1 FROM tab0 AS cor0
----
1383
2031
4974

query I rowsort
SELECT ALL + + 45 + + 73 AS col0 FROM tab2 AS cor0
----
118
118
118

query I rowsort
SELECT - cor0.col0 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT ALL 75 DIV - col0 col1 FROM tab2 AS cor0
----
-10
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL 75 / - col0 col1 FROM tab2 AS cor0
----
-10
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 * ( - col2 ) FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT 14 * col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

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

query I rowsort
SELECT + col2 * cor0.col0 + + col1 * - col1 FROM tab1 AS cor0
----
-514
3548
7511

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4859
SELECT + - col1 * - CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - col1 * - CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - col1 + ( 23 ) AS col1 FROM tab0 AS cor0
----
-63
-68
-74

query I rowsort
SELECT ALL - col0 + + col0 * - 18 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT + col2 - col0 * - col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT ALL - cor0.col0 + 46 FROM tab1 cor0
----
-18
-34
43

query I rowsort
SELECT DISTINCT + col2 * 76 + 4 * - col0 AS col0 FROM tab1 AS cor0
----
4076
4092
6976

query I rowsort
SELECT DISTINCT + col0 - 32 * - col1 FROM tab1 AS cor0
----
384
496
835

query I rowsort
SELECT ALL + cor0.col0 - 9 FROM tab0 AS cor0
----
15
26
80

query I rowsort
SELECT - col0 + - 40 FROM tab1 AS cor0
----
-104
-120
-43

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

query I rowsort
SELECT DISTINCT + col2 * col0 + - 67 * + cor0.col2 * - 27 FROM tab0 AS cor0
----
155636
1844
60489

query I rowsort
SELECT DISTINCT - col1 * + col1 - 99 FROM tab1 AS cor0
----
-199
-268
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 * col2 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1226
14645
1665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL col2 + 9 AS col0 FROM tab1
----
105
63
66

query I rowsort
SELECT - col1 - + 29 AS col2 FROM tab1 AS cor0
----
-39
-42
-55

query I rowsort
SELECT ALL col0 + 84 + col1 * cor0.col0 * + 47 FROM tab0 cor0
----
159684
380826
97116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4877
SELECT DISTINCT - col0 * CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - col0 * CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 - + col0 * col2 * col2 FROM tab2 AS cor0
----
-114114
-5130
-52754

query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + - col0 - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + cor0.col2 + 93 * 78 AS col0 FROM tab1 AS cor0
----
7308
7311
7350

query I rowsort
SELECT DISTINCT + col1 * + 60 + col0 AS col0 FROM tab0 cor0
----
5184
5549
5855

query I rowsort
SELECT - - col0 * 92 AS col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT + - col1 * 26 AS col0 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ( 41 ) + - col0 AS col1 FROM tab0 AS cor0
----
-48
17
6

query I rowsort
SELECT ALL ( col1 ) + + col0 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-11
-5947
-6145

onlyif mysql # use DIV operator for integer division
query I rowsort label-4889
SELECT + - col2 - col0 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4889
SELECT + - col2 - col0 / - col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + - 99 + + 78 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 70 * cor0.col0 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT + 15 + - cor0.col1 * - 10 AS col0 FROM tab0 AS cor0
----
875
925
985

query I rowsort
SELECT DISTINCT + 3 + + col2 AS col2 FROM tab0
----
36
4
85

query I rowsort
SELECT ( + col1 + + col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT 24 * col1 - 24 AS col0 FROM tab2
----
1392
384
720

query I rowsort
SELECT - 58 + tab0.col2 * + col1 * + col1 AS col0 FROM tab0
----
244010
678984
9351

query I rowsort
SELECT ALL + tab1.col1 * tab1.col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT ( col1 ) + + 20 FROM tab1
----
30
33
46

query I rowsort
SELECT DISTINCT - - col1 * - col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + 29 * - col0 FROM tab2
----
-203
-2262
-2291

query I rowsort
SELECT 88 + col2 FROM tab1
----
142
145
184

query I rowsort
SELECT + col0 * col1 + + 99 * 58 AS col1 FROM tab2
----
10344
5959
7085

query I rowsort
SELECT ALL - 88 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT - + 93 + + 17 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - tab2.col2 + col1 * + col1 AS col2 FROM tab2
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 * col0 col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + 99 * tab0.col0 + col0 AS col0 FROM tab0
----
2400
3500
8900

query I rowsort
SELECT - ( + 66 ) + col2 FROM tab0
----
-33
-65
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4911
SELECT ALL - CAST( NULL AS DECIMAL ) - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT DISTINCT + - col2 DIV 48 - col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7922

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + - col2 / 48 - col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7922

query I rowsort
SELECT DISTINCT - col1 * col2 * col2 FROM tab1
----
-119808
-32490
-75816

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

query I rowsort
SELECT + ( - 48 ) * col0 * + 35 AS col1 FROM tab2
----
-11760
-131040
-132720

query I rowsort
SELECT DISTINCT + cor0.col2 * 13 AS col2 FROM tab0, tab2 AS cor0
----
338
351
494

query I rowsort
SELECT DISTINCT 60 * col2 - ( col0 ) * - col0 AS col0 FROM tab2
----
1669
7644
8521

query I rowsort
SELECT col1 * - col1 + 16 FROM tab1
----
-153
-660
-84

query I rowsort
SELECT - col2 * - 38 - col1 * col1 AS col0 FROM tab1 AS cor0
----
1376
2066
3479

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT col0 DIV col2 + col0 AS col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4920
SELECT col0 / col2 + col0 AS col2 FROM tab1
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT + col2 DIV - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4921
SELECT + col2 / - col2 AS col0 FROM tab1
----
-1
-1
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT - col1 DIV 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT - col1 / 68 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - + col1 * - 21 FROM tab0 cor0
----
1806
1911
2037

query I rowsort
SELECT col0 * tab0.col1 + - col1 AS col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT + - col0 * 47 FROM tab2 cor0
----
-329
-3666
-3713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4928
SELECT - col1 + CAST( NULL AS DECIMAL ) * 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT - col1 + CAST ( NULL AS REAL ) * 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 72 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT + col0 * ( - col1 * + col2 ) - 79 FROM tab2 AS cor0
----
-119731
-51113
-5938

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT DISTINCT - col0 + + ( - col0 ) DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - col0 + + ( - col0 ) / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT tab1.col2 * + tab1.col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT - col1 + 50 DIV + 29 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4933
SELECT - col1 + 50 / + 29 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT - col2 + + 43 * col2 FROM tab1 AS cor0
----
2268
2394
4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT col1 + col0 * 73 DIV col2 col0 FROM tab0 cor0
----
139
170
2652

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4935
SELECT col1 + col0 * 73 / col2 col0 FROM tab0 cor0
----
139
170
2652

onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT col0 DIV - 6 AS col0 FROM tab0
----
-14
-4
-5

skipif mysql # not compatible
query I rowsort label-4936
SELECT col0 / - 6 AS col0 FROM tab0
----
-14
-4
-5

query I rowsort
SELECT col1 * - col1 + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT - col2 * col2 + + col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT 9 * cor0.col0 FROM tab0, tab1 cor0
----
27
576
720

query I rowsort
SELECT - col1 * col0 + col0 * col1 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - 28 * col2 AS col1 FROM tab2 cor0
----
-1064
-728
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT + ( col2 ) * col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-4943
SELECT + ( col2 ) * col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + ( cor0.col2 ) + col0 * - 87 FROM tab0 cor0
----
-2055
-3044
-7661

query I rowsort
SELECT - col2 * - 70 AS col0 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ALL - 13 + + cor0.col1 * - col1 - 96 FROM tab0 AS cor0
----
-7505
-8390
-9518

query I rowsort
SELECT DISTINCT + - 88 + col0 AS col1 FROM tab1 AS cor0
----
-24
-8
-85

query I rowsort
SELECT ALL + + 93 * + cor0.col2 - + col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT 75 + - col2 AS col2 FROM tab2 cor0
----
37
48
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86

query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + cor0.col2 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + - 10 FROM tab0 AS cor0
----
-34
-45
-99

query I rowsort
SELECT ALL + col2 * + col1 * ( - col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + cor0.col0 + + col1 * 23 AS col2 FROM tab2 AS cor0
----
1435
470
720

query I rowsort
SELECT 32 * - col1 * col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-239510
-272454
-301185

query I rowsort
SELECT ALL col1 * ( - col1 ) FROM tab1
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4959
SELECT ALL CAST( 81 AS SIGNED ) col2 FROM tab0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL CAST ( 81 AS INTEGER ) col2 FROM tab0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT ALL col0 * col0 DIV col1 AS col0 FROM tab1
----
0
409
492

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL col0 * col0 / col1 AS col0 FROM tab1
----
0
409
492

query I rowsort
SELECT + 8 * 97 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c66895bd021c7aa4b13b10b837015de6

query I rowsort
SELECT - col2 * col0 - 29 AS col1 FROM tab2 AS cor0
----
-2057
-218
-3031

query I rowsort
SELECT + col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col1 + + col2 + 52 FROM tab2
----
107
110
137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4965
SELECT - ( - col0 ) + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - ( tab2.col0 ) FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT - col1 * + 3 AS col2 FROM tab2 cor0
----
-177
-51
-93

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd

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

query I rowsort
SELECT - 14 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to a58fbac92f43bc63036f08d7bd355007

query I rowsort
SELECT - 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 74 * - col0 FROM tab2 AS cor0
----
-518
-5772
-5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT - - ( - 24 ) + cor0.col2 DIV 73 FROM tab1 AS cor0
----
-23
-24
-24

skipif mysql # not compatible
query I rowsort label-4975
SELECT - - ( - 24 ) + cor0.col2 / 73 FROM tab1 AS cor0
----
-23
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + + col1 col0 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT ALL 60 * - 52 FROM tab1 cor0
----
-3120
-3120
-3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT ALL - + cor0.col0 + 5 * col0 + + col2 DIV col2 FROM tab1 AS cor0
----
13
257
321

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - + cor0.col0 + 5 * col0 + + col2 / col2 FROM tab1 AS cor0
----
13
257
321

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT DISTINCT - ( - col0 ) * col1 * 15 + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
121485
30960
50925

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - ( - col0 ) * col1 * 15 + col2 / + col1 AS col0 FROM tab0 AS cor0
----
121485
30960
50925

query I rowsort
SELECT DISTINCT col1 + - col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + + cor0.col2 * - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - ( + ( cor0.col0 ) ) - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + - ( + 64 ) * - col0 + col1 FROM tab0 AS cor0
----
1622
2337
5787

query I rowsort
SELECT DISTINCT col2 + - 29 + - col1 FROM tab0 cor0
----
-125
-38
-82

query I rowsort
SELECT + 75 * cor0.col2 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT DISTINCT - + 65 + col1 * col1 FROM tab0 AS cor0
----
7331
8216
9344

query I rowsort
SELECT DISTINCT - 54 * col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT - - col0 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - 55 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT - 2 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-164
-3650
-7682

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

query I rowsort
SELECT col1 * + 77 - - col0 AS col0 FROM tab0
----
6646
7096
7504

query I rowsort
SELECT ALL col1 * cor0.col0 * - 78 + - col0 AS col1 FROM tab0 AS cor0
----
-161016
-264845
-631811

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

query I rowsort
SELECT 30 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT + col0 + + col1 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT col2 DIV 74 + - 10 AS col0 FROM tab0 AS cor0
----
-10
-10
-9

skipif mysql # not compatible
query I rowsort label-4997
SELECT col2 / 74 + - 10 AS col0 FROM tab0 AS cor0
----
-10
-10
-9

query I rowsort
SELECT + col1 + 61 AS col0 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT + + col0 + + col2 * - col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - - col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
18

query I rowsort
SELECT ALL + ( + 82 ) - + cor0.col1 AS col1 FROM tab0 cor0
----
-15
-4
-9

query I rowsort
SELECT - 75 FROM tab0, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 80 - + 61 col1 FROM tab0
----
19
2579
6499

query I rowsort
SELECT DISTINCT - col1 + 1 AS col1 FROM tab2
----
-16
-30
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5006
SELECT ALL CAST( - 19 AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
-1691
-456
-665

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL CAST ( - 19 AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT + 16 * col2 AS col2 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT DISTINCT - col2 + + col1 + + col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL - + ( col1 ) - + col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT - cor0.col2 + 70 FROM tab0 AS cor0
----
-12
37
69

query I rowsort
SELECT + tab0.col0 * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL tab1.col1 + 50 AS col0 FROM tab1
----
60
63
76

query I rowsort
SELECT ALL cor0.col1 * 89 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT + col2 * ( ( col1 ) ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL ( 42 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + col0 - + col1 * - col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( 37 * + col2 AS REAL ) + ( ( col0 ) ) FROM tab2 AS cor0
----
-1248
-806
-985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT + - cor0.col1 DIV - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT + - cor0.col1 / - 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - 35 AS col2 FROM tab1 AS cor0
----
-115
-38
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT DISTINCT cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT DISTINCT + col1 * CAST( col2 * + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + col1 * CAST ( col2 * + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT col2 + 0 + + col2 * + col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT ALL + col0 + col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT DISTINCT - 27 DIV + cor0.col0 FROM tab1 AS cor0
----
-9
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - 27 / + cor0.col0 FROM tab1 AS cor0
----
-9
0

query I rowsort
SELECT + 1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL - col2 + - col2 * 57 * - 18 FROM tab1 AS cor0
----
55350
58425
98400

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1 WHERE - col0 = ( NULL )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( - col2 )
----

query I rowsort
SELECT - col2 * col0 + col2 + + col0 AS col1 FROM tab1
----
-105
-3527
-7504

query I rowsort
SELECT - - 0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 9 + - col0 AS col1 FROM tab0
----
-15
-26
-80

query I rowsort
SELECT + 8 + - col1 + + ( col0 ) FROM tab2
----
-16
27
70

query I rowsort
SELECT - col1 - ( 0 ) FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 col1 FROM tab2
----
158
1969
2985

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

query I rowsort
SELECT DISTINCT + - 42 AS col2 FROM tab0, tab1, tab1 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT DISTINCT - col1 DIV + 22 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - col1 / + 22 FROM tab0 AS cor0
----
-3
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * 80 * col0 FROM tab1
----
327680
512000
720

query I rowsort
SELECT tab2.col2 + 58 FROM tab2, tab0 AS cor0
----
9 values hashing to dd1f7f854e75e37d5b8e7dfdbf54f05f

query I rowsort
SELECT ALL col2 + 84 - + 17 AS col2 FROM tab2
----
105
93
94

query I rowsort
SELECT + col2 * + ( - col1 ) + - col0 * col1 AS col1 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL 30 * 43 AS col1 FROM tab0
----
1290
1290
1290

query I rowsort
SELECT + ( + col2 + col0 * - tab1.col2 ) AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL + + 64 + + col1 * col2 FROM tab2 AS cor0
----
1598
710
901

query I rowsort
SELECT - - 15 + - col2 AS col0 FROM tab0 AS cor0
----
-18
-67
14

query I rowsort
SELECT DISTINCT + 65 * col2 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT 95 * + 67 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 85d6f81b446a5e9455423dadcc2f90ff

query I rowsort
SELECT - 94 * + cor0.col2 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT 23 AS col2 FROM tab0 cor0
----
23
23
23

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT - + cor0.col1 DIV col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5055
SELECT - + cor0.col1 / col0 FROM tab0 cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT - - 3 * col0 DIV + ( col1 ) AS col0 FROM tab1 AS cor0
----
0
18
19

skipif mysql # not compatible
query I rowsort label-5056
SELECT - - 3 * col0 / + ( col1 ) AS col0 FROM tab1 AS cor0
----
0
18
19

query I rowsort
SELECT - col1 * col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT DISTINCT - col0 DIV + col0 AS col2 FROM tab2 cor0
----
-1

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

query I rowsort
SELECT - tab2.col0 + col2 * col1 AS col2 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * cor0.col0 * cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5df9c9366fb6f6a381510dc53ed60e4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT ALL + cor0.col2 + col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + cor0.col2 + col0 / - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT ALL - + cor0.col0 * col0 + col2 * - col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT ALL - col1 + + col2 + - col0 FROM tab0 AS cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + col2 col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL - col0 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - + col2 + - col0 - cor0.col2 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT DISTINCT col2 - + col0 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - cor0.col2 + + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT col0 + - col0 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 51 * col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT + 25 + col1 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT - 55 + col1 AS col1 FROM tab1 cor0
----
-29
-42
-45

query I rowsort
SELECT ( - 94 ) * col0 AS col1 FROM tab0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL ( tab2.col0 ) * - col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + - cor0.col1 * + col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - col1 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col1 * - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - cor0.col2 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT DISTINCT - ( + col1 ) + col2 DIV col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - ( + col1 ) + col2 / col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT - ( + col0 * col1 ) + col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col1 * col1 * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col2 + col2 * - col2 + col0 FROM tab2
----
-1327
-572
-695

query I rowsort
SELECT ALL + col1 * + col2 * tab0.col2 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT ( col0 * - col1 * col1 ) <> NULL
----

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

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab2 WHERE ( NULL ) IN ( + col1 * + col0 )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL NOT IN ( tab0.col1 + - col1 * col2 / col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT - col0 + + col1 * + col1 DIV col1 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col0 + + col1 * + col1 / col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - tab2.col0 * - col1 AS col0 FROM tab2
----
1343
217
4602

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + col1 col2 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT - col1 * + col1 * tab0.col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL col0 * col2 * + col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT tab0.col1 - col0 * col0 * - col0 AS col2 FROM tab0
----
13910
42972
705060

query I rowsort
SELECT col1 - col2 * + col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL col2 - - col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 * + tab2.col0 + - col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col1 * col0 * + col0 - + col0 * col1 FROM tab1
----
-312
-41600
-84240

query I rowsort
SELECT col1 - + col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - - col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col0 * + col1 - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT col1 + tab1.col1 * col0 * - col0 AS col2 FROM tab1
----
-208
-40950
-83187

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT - col2 DIV col1 + + col2 + + col1 DIV - col1 FROM tab2
----
25
26
35

skipif mysql # not compatible
query I rowsort label-5107
SELECT - col2 / col1 + + col2 + + col1 / - col1 FROM tab2
----
25
26
35

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

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col1 * col2 + col1 + col1 AS col0 FROM tab0 AS cor0
----
291
3010
7644

query I rowsort
SELECT ALL col1 + + tab1.col0 * col2 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col1 + - col1 * - col1 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-340
155
2006

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT col0 DIV cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5113
SELECT col0 / cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL + col1 * cor0.col2 + col1 FROM tab2 cor0
----
1593
663
868

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

query I rowsort
SELECT DISTINCT 68 FROM tab1 cor0
----
68

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

query I rowsort
SELECT + 92 + col1 FROM tab0 AS cor0
----
178
183
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT - col1 * ( cor0.col2 ) DIV ( + col0 ) AS col1 FROM tab0 AS cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-5119
SELECT - col1 * ( cor0.col2 ) / ( + col0 ) AS col1 FROM tab0 AS cor0
----
-118
-2
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + + col1 col1 FROM tab2 AS cor0
----
122
80
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5121
SELECT CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 67 * - 42 FROM tab1 cor0
----
2814

query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT cor0.col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 52 * col1 FROM tab1
----
-1352
-520
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - + col2 * col1 + CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab0, tab0 AS cor0
----
95

query I rowsort
SELECT + + col2 - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT + col1 DIV col1 + - col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-5129
SELECT + col1 / col1 + - col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT + - 51 * cor2.col0 + cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab2 cor2
----
9 values hashing to 7a267791e84f8ec2bdf76769ad2e7562

query I rowsort
SELECT ALL - + col1 * + col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + col1 - col0 * col1 AS col1 FROM tab0 cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT - - col0 DIV - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5134
SELECT - - col0 / - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT - + ( - 11 ) * + col2 AS col1 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - + 68 AS col1 FROM tab1 cor0
----
-68
-68
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5137
SELECT - 38 DIV 64 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT - 38 / 64 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 + + col2 * col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) / ( tab0.col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) / ( tab0.col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * 52 FROM tab1
----
1352
520
676

query I rowsort
SELECT col0 + - tab1.col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 + - 85 AS col2 FROM tab2 AS cor0
----
-111
-112
-123

query I rowsort
SELECT + - ( - col2 ) FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab0, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT ALL + - 73 DIV + cor0.col2 + col1 FROM tab0 AS cor0
----
24
84
91

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + - 73 / + cor0.col2 + col1 FROM tab0 AS cor0
----
24
84
91

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - - 69 * + 22 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 61190bdc64f64b2e6a283092181f4dee

query I rowsort
SELECT cor0.col0 * - col0 * - 54 FROM tab2 AS cor0
----
2646
328536
337014

query I rowsort
SELECT + cor0.col1 * + ( - col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - col0 + + col2 * col1 * tab0.col2 AS col0 FROM tab0
----
611795
62
93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT cor0.col2 + - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5151
SELECT cor0.col2 + - col2 / - col1 AS col0 FROM tab1 AS cor0
----
103
56
62

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

query I rowsort
SELECT - - cor0.col1 * - col2 + 70 FROM tab1 AS cor0
----
-1178
-1334
-500

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
69

query I rowsort
SELECT ALL + col2 + + col0 + 63 AS col0 FROM tab2
----
167
180
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5156
SELECT - - cor0.col0 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5156
SELECT - - cor0.col0 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col2 * - 75 + ( + col1 ) FROM tab2 AS cor0
----
-1891
-1994
-2833

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT DISTINCT 34 DIV + col1 + + ( - 93 ) FROM tab2
----
-91
-92
-93

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 34 / + col1 + + ( - 93 ) FROM tab2
----
-91
-92
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT ALL col0 * col2 + - CAST( - col1 AS SIGNED ) * col1 + - col0 FROM tab2
----
1143
3212
5431

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL col0 * col2 + - CAST ( - col1 AS INTEGER ) * col1 + - col0 FROM tab2
----
1143
3212
5431

query I rowsort
SELECT + ( cor0.col2 ) * col1 + + col0 * - col2 * 4 + + ( col2 ) FROM tab2 cor0
----
-11324
-6552
108

query I rowsort
SELECT ALL + 52 + col1 * 48 AS col0 FROM tab1 cor0
----
1300
532
676

query I rowsort
SELECT + 12 * ( - cor1.col1 ) AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 5515695b8c1e27feb131ceffce2f14f0

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

query I rowsort
SELECT ALL + + col1 + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + col1 * + 70 FROM tab0 cor0
----
6020
6370
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL - cor0.col2 DIV - 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - cor0.col2 / - 70 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + + 32 * + col2 * col1 FROM tab2 cor0
----
20634
26757
49062

query I rowsort
SELECT DISTINCT - + col2 + col0 * - col1 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181

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

query I rowsort
SELECT ALL 30 * tab2.col0 FROM tab2
----
210
2340
2370

query I rowsort
SELECT - + col2 * - ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col0 + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT ALL + + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 * 0 + col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col1 + ( 33 + + col0 ) FROM tab0 AS cor0
----
143
165
213

query I rowsort
SELECT ALL - - col2 * + ( 20 ) AS col0 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT + + col0 * - 44 + + cor0.col1 FROM tab1 cor0
----
-106
-2806
-3507

query I rowsort
SELECT - + 6 + - col0 AS col1 FROM tab0 AS cor0
----
-30
-41
-95

query I rowsort
SELECT - + col1 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT cor0.col1 * - 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT + - 89 + - cor0.col2 FROM tab1 AS cor0
----
-143
-146
-185

query I rowsort
SELECT ALL - + ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 + + col1 col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT 29 + + col2 * + col1 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1083
2018
6165

onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT cor0.col0 + - col2 DIV - col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5186
SELECT cor0.col0 + - col2 / - col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - 38 + 35 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 * 39 FROM tab1 AS cor0
----
-1040
-400
-520

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

query I rowsort
SELECT DISTINCT + 84 + + col1 * - ( - ( - col1 ) ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-22747
-271434
-6643

query I rowsort
SELECT DISTINCT + col2 + - 56 FROM tab0
----
-23
-55
26

query I rowsort
SELECT ALL ( - col0 ) - col0 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT DISTINCT 20 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT 20 / cor0.col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - cor0.col2 + cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col0 * col0 + + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
10686
266
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT ALL + - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + - col2 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 - - col0 * ( + cor0.col2 ) * - col0 FROM tab1 cor0
----
-233462
-460
-614387

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT + 25 + col1 DIV col0 FROM tab1 AS cor0
----
25
25
33

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 25 + col1 / col0 FROM tab1 AS cor0
----
25
25
33

query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 * - cor0.col1 + - 95 FROM tab2 AS cor0
----
119557
50939
5764

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT + tab0.col0 + col0 DIV + col2 + + tab0.col1 AS col2 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-5201
SELECT + tab0.col0 + col0 / + col2 + + tab0.col1 AS col2 FROM tab0
----
110
167
181

query I rowsort
SELECT - + col1 * - col1 + + col1 - - 33 FROM tab1 AS cor0
----
143
215
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT 36 - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
33
34
35

skipif mysql # not compatible
query I rowsort label-5203
SELECT 36 - col1 / col0 AS col0 FROM tab0 AS cor0
----
33
34
35

query I rowsort
SELECT DISTINCT + col2 - col2 * - col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT - + col1 * - cor0.col0 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT ALL - 3 * col0 FROM tab0
----
-105
-267
-72

query I rowsort
SELECT DISTINCT - 23 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-101
-102
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT + cor0.col2 + col2 * ( col1 ) DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-5208
SELECT + cor0.col2 + col2 * ( col1 ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT 18 * + col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT ALL - - cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5212
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5212
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 92 + col1 FROM tab2
----
-33
-61
-75

query I rowsort
SELECT - ( 64 ) * + col1 FROM tab1
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * col1 + col0 col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - 15 AS col1 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + 43 + 64 AS col1 FROM tab1
----
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + cor0.col0 * - 9 + + col2 col2 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT - 61 * 14 FROM tab1 AS cor0
----
-854
-854
-854

query I rowsort
SELECT DISTINCT + + ( + 40 ) * - col1 FROM tab0 cor0
----
-3440
-3640
-3880

query I rowsort
SELECT + cor0.col2 + 68 AS col1 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT - col0 * - 46 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT + col1 * 83 FROM tab1 cor0
----
1079
2158
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5225
SELECT 75 + tab0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 45 * tab1.col0 * col0 AS col0 FROM tab1
----
184320
288000
405

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

query I rowsort
SELECT ALL - col1 * 77 AS col0 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT col2 * + 95 AS col1 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT + + 94 * + col0 * cor0.col0 + 19 AS col1 FROM tab0 AS cor0
----
115169
54163
744593

query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col0 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 51 ) * - col0 col2 FROM tab2
----
357
3978
4029

query I rowsort
SELECT col2 * - col0 + - 37 FROM tab1 AS cor0
----
-199
-3685
-7717

query I rowsort
SELECT col2 + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + + 16 * + 2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - col2 * col1 * tab1.col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col1 * + col2 + ( cor0.col2 ) AS col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + ( - col2 ) + - ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - 87 * ( + cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-609
-6786
-6873

query I rowsort
SELECT - col0 + col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT col2 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL cor1.col1 * 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce0d6eb0f90eb4d84810c590310b44f6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT + col0 + col0 DIV 7 AS col0 FROM tab2 AS cor0
----
8
89
90

skipif mysql # not compatible
query I rowsort label-5245
SELECT + col0 + col0 / 7 AS col0 FROM tab2 AS cor0
----
8
89
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT ALL + + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + + col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 72 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL col2 * - ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT - ( - col1 ) + - col2 DIV 90 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5249
SELECT - ( - col1 ) + - col2 / 90 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - - cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + 56 - - 85 FROM tab1
----
141

query I rowsort
SELECT col2 + + col1 * col2 + - 8 AS col2 FROM tab2
----
1552
676
856

query I rowsort
SELECT ALL - 14 + 44 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT 10 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT ( 47 ) * + col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT - col1 + - col1 + 42 * 92 FROM tab0 AS cor0
----
3670
3682
3692

query I rowsort
SELECT - + col0 * col0 - + 45 FROM tab0 AS cor0
----
-1270
-621
-7966

query I rowsort
SELECT DISTINCT + + 34 + + col0 * col0 FROM tab2 AS cor0
----
6118
6275
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + cor0.col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT 5 + col1 * + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
3400
664123
68117

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 + - 21 * col1 col0 FROM tab1 AS cor0
----
-150
-213
-486

query I rowsort
SELECT + - ( + 84 ) * col1 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT ALL - - col2 - + ( col1 ) * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT DISTINCT - 2 DIV 12 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - 2 / 12 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5268
SELECT col1 + - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5268
SELECT col1 + - col2 / + col1 AS col0 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT + + ( 23 ) * + cor0.col0 - + ( - col2 + col0 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
1472
1840
86

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + + ( 23 ) * + cor0.col0 - + ( - col2 + col0 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
1472
1840
86

query I rowsort
SELECT ALL col1 * + ( + tab2.col1 ) + col2 + + 73 * 47 AS col2 FROM tab2
----
3758
4419
6938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5271
SELECT ALL CAST( 56 AS SIGNED ) + + tab2.col0 FROM tab2
----
134
135
63

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL CAST ( 56 AS INTEGER ) + + tab2.col0 FROM tab2
----
134
135
63

query I rowsort
SELECT ALL 82 + col1 AS col2 FROM tab0
----
168
173
179

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) + tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col1 * - col0 + tab1.col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL + 33 * col0 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 * + col1 FROM tab2 AS cor0
----
2686
434
9204

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab2 cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col2 FROM tab0
----
81
81
81

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab2
----
30

query I rowsort
SELECT - 98 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
1704
3065
5808

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT col2 DIV col2 + col0 * + col2 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5283
SELECT col2 / col2 + col0 * + col2 FROM tab0
----
36
7299
793

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + cor0.col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT cor0.col2 DIV - ( col1 * + col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT cor0.col2 / - ( col1 * + col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT tab0.col1 * ( col0 ) AS col2 FROM tab0
----
2064
3395
8099

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

query I rowsort
SELECT DISTINCT col0 + tab2.col1 * + tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL - col1 * - ( col2 ) + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
229
2948
7642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col0 * col0 * 96 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
117565
55272
760327

query I rowsort
SELECT + - col2 * 40 + col0 * col1 * 34 + col2 AS col0 FROM tab2 AS cor0
----
155454
44180
6325

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT ALL + col0 + - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + col0 + - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + col2 + 56 - + col1 AS col2 FROM tab2 AS cor0
----
23
52
77

query I rowsort
SELECT DISTINCT cor0.col0 + 28 * - 36 FROM tab1 AS cor0
----
-1005
-928
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT + + col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + col0 / cor0.col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col1 + ( - 34 ) FROM tab0 AS cor0
----
-120
-125
-131

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT + - col0 DIV + 19 + - col0 FROM tab0 AS cor0
----
-25
-36
-93

skipif mysql # not compatible
query I rowsort label-5302
SELECT + - col0 / + 19 + - col0 FROM tab0 AS cor0
----
-25
-36
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5303
SELECT + + col1 + CAST( NULL AS SIGNED ) - 94 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT + + col1 + CAST ( NULL AS INTEGER ) - 94 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT tab0.col1 * + 72 * col2 + col2 + + tab0.col1 DIV col0 FROM tab0
----
204372
537347
6987

skipif mysql # not compatible
query I rowsort label-5304
SELECT tab0.col1 * + 72 * col2 + col2 + + tab0.col1 / col0 FROM tab0
----
204372
537347
6987

query I rowsort
SELECT col0 * ( col2 * tab0.col1 ) + 81 AS col0 FROM tab0
----
3476
664199
68193

onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT - tab2.col1 DIV 40 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT - tab2.col1 / 40 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab0, tab2 cor0
----
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT DISTINCT - col0 * - CAST( 14 AS SIGNED ) + + col0 * - col1 col1 FROM tab2 AS cor0
----
-119
-237
-3510

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - col0 * - CAST ( 14 AS INTEGER ) + + col0 * - col1 col1 FROM tab2 AS cor0
----
-119
-237
-3510

query I rowsort
SELECT col0 * - 72 + ( + cor0.col0 ) FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT + - col2 * + 59 FROM tab2 cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
9 values hashing to 5a475cfe41f7ddfc26a553f412abc75a

query I rowsort
SELECT + - col2 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col0 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - ( cor0.col2 ) * + col0 * - col1 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT - CAST( + 37 AS SIGNED ) + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2801
60
7425

skipif mysql # not compatible
query I rowsort label-5315
SELECT - CAST ( + 37 AS INTEGER ) + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2801
60
7425

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL + 77 + 52 DIV col0 AS col1 FROM tab1 AS cor0
----
77
77
94

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + 77 + 52 / col0 AS col1 FROM tab1 AS cor0
----
77
77
94

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT col1 * col0 DIV col1 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5318
SELECT col1 * col0 / col1 AS col0 FROM tab1 AS cor0
----
3
64
80

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

query I rowsort
SELECT DISTINCT - tab2.col1 + 40 AS col2 FROM tab2
----
-19
23
9

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col2 + ( + col0 + col1 ) * - col0 FROM tab1
----
-33
-4679
-7344

query I rowsort
SELECT col1 + - 42 AS col1 FROM tab1
----
-16
-29
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 36 col1 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT DISTINCT col0 - + 72 FROM tab1
----
-69
-8
8

query I rowsort
SELECT + col1 + + col0 * ( + col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 63 - - col0 AS col1 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT ALL + 34 + col1 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT ALL + - col1 * col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col1 * col1 + col0 + col1 FROM tab2 AS cor0
----
3618
385
999

query I rowsort
SELECT 74 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
2475
6150
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + + col2 col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + 18 + col2 * cor0.col1 FROM tab2 AS cor0
----
1552
664
855

query I rowsort
SELECT DISTINCT 58 + 98 + col0 * + col1 * + tab0.col1 FROM tab0
----
177660
329471
737165

query I rowsort
SELECT DISTINCT - col0 * tab1.col1 * col1 + + 21 FROM tab1
----
-13499
-2007
-6379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 * + col1 - 17 * col1 col0 FROM tab1 AS cor0
----
-13
288
44

query I rowsort
SELECT DISTINCT - - col0 * col2 - + 31 FROM tab2 AS cor0
----
158
1997
2971

query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL 44 + - cor0.col2 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT ALL 94 + - col1 FROM tab1 AS cor0
----
68
81
84

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - - 23 * cor0.col1 * + 47 FROM tab2 AS cor0
----
18377
33511
63779

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT col2 DIV + col1 + - 25 FROM tab0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-5344
SELECT col2 / + col1 + - 25 FROM tab0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - ( - col2 ) * cor0.col2 * 88 FROM tab1 AS cor0
----
-256608
-285912
-811008

query I rowsort
SELECT DISTINCT col0 + 31 AS col1 FROM tab1 AS cor0
----
111
34
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5348
SELECT CAST( NULL AS SIGNED ) + col1 / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 + - col0 * ( col0 ) AS col2 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - ( + cor0.col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - ( + col0 ) + - col1 * 84 AS col0 FROM tab1 cor0
----
-1012
-2181
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT + cor0.col2 DIV col1 col2 FROM tab2 AS cor0
----
0
0
2

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

query I rowsort
SELECT + 68 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + tab1.col1 * 79 AS col2 FROM tab1
----
1027
2054
790

query I rowsort
SELECT + col0 * ( col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL tab0.col0 + 52 AS col1 FROM tab0
----
141
76
87

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

query I rowsort
SELECT - - col0 * + 72 + + 3 * col0 * 37 FROM tab1 AS cor0
----
11712
14640
549

query I rowsort
SELECT cor0.col1 + + ( - col2 ) AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT col1 - 25 AS col2 FROM tab0 AS cor0
----
61
66
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT DISTINCT + col0 DIV - 10 + - col2 AS col1 FROM tab1 AS cor0
----
-104
-54
-63

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + col0 / - 10 + - col2 AS col1 FROM tab1 AS cor0
----
-104
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT + col1 * + 22 - + 91 DIV + cor0.col0 FROM tab1 AS cor0
----
219
285
542

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + col1 * + 22 - + 91 / + cor0.col0 FROM tab1 AS cor0
----
219
285
542

query I rowsort
SELECT ALL - - col2 * 21 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT - + cor0.col0 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + ( + 17 ) * + col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL - + col0 + col1 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
118790
49512
720722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT ALL - + CAST( + col0 AS SIGNED ) * col2 col1 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - + CAST ( + col0 AS INTEGER ) * col2 col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT ALL 27 DIV cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 27 / cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83c163442931d28e4160369d40047ea7

query I rowsort
SELECT ALL - col2 - - col2 * - ( - col2 ) FROM tab0
----
0
1056
6642

query I rowsort
SELECT ALL 95 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT 19 + - col2 AS col0 FROM tab2
----
-19
-7
-8

query I rowsort
SELECT + col0 - ( - col2 ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT 12 * ( tab1.col1 * col0 ) + - col2 FROM tab1
----
12384
7623
882

query I rowsort
SELECT DISTINCT + 15 * + col0 + + col0 * col1 * - col0 AS col1 FROM tab1
----
-189
-40000
-82000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - cor0.col1 * col1 - - col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - ( cor0.col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT - CAST( col0 AS SIGNED ) * - col0 + col0 col1 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5382
SELECT - CAST ( col0 AS INTEGER ) * - col0 + col0 col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - 26 * - 36 FROM tab0 cor0
----
936
936
936

query I rowsort
SELECT 33 + 27 * + col1 FROM tab1 cor0
----
303
384
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT cor0.col2 DIV + 66 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5385
SELECT cor0.col2 / + 66 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - ( col0 ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * ( col2 + col2 ) * col0 FROM tab0 AS cor0
----
1299044
2450
38016

query I rowsort
SELECT - col2 + + col0 - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - col0 + 77 * - col0 FROM tab2 AS cor0
----
-532
-5928
-6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT 37 - cor0.col1 DIV 63 AS col0 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-5390
SELECT 37 - cor0.col1 / 63 AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT + + col2 * - col1 * + col0 + 0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5392
SELECT DISTINCT + col2 + + col0 - + CAST( col0 AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
-3975
-6224
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT + col2 + + col0 - + CAST ( col0 AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT DISTINCT - 45 FROM tab2, tab1 cor0
----
-45

query I rowsort
SELECT ALL + col2 + cor0.col0 + + col1 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT ALL 46 - + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 938742757395e93513e3281ac4d5518e

query I rowsort
SELECT - - col0 - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + - col0 - - tab1.col1 * - 24 AS col0 FROM tab1
----
-294
-379
-601

query I rowsort
SELECT ALL + tab0.col2 * + col1 - col1 FROM tab0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5399
SELECT col0 * col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col1 + - ( + ( - cor0.col2 ) ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL col2 + col1 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT 28 * + col2 - col0 * col0 FROM tab0
----
-1197
-5625
348

query I rowsort
SELECT 24 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

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

query I rowsort
SELECT 50 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5406
SELECT DISTINCT ( tab2.col1 ) * + CAST( NULL AS DECIMAL ) + + ( - col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT ( tab2.col1 ) * + CAST ( NULL AS REAL ) + + ( - col2 ) AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT - col0 DIV col0 + - ( col2 ) + - col0 FROM tab2
----
-105
-118
-35

skipif mysql # not compatible
query I rowsort label-5407
SELECT - col0 / col0 + - ( col2 ) + - col0 FROM tab2
----
-105
-118
-35

query I rowsort
SELECT + col0 + tab2.col2 + tab2.col2 * - 37 AS col0 FROM tab2
----
-1289
-858
-965

query I rowsort
SELECT 50 * col1 + - col2 * 42 FROM tab1
----
-1894
-3382
-968

query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - - 49 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-113
-3599
-7631

query I rowsort
SELECT + - 46 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT ALL - cor0.col1 - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 - + col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5415
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + 40 * + col0 * + col1 + col0 FROM tab1 AS cor0
----
25664
3123
41680

query I rowsort
SELECT + 63 * col1 AS col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT DISTINCT - cor0.col2 DIV - 12 FROM tab0 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - cor0.col2 / - 12 FROM tab0 AS cor0
----
0
2
6

query I rowsort
SELECT ALL - ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 99 + col2 * + col1 FROM tab1 AS cor0
----
1347
1503
669

query I rowsort
SELECT ALL + col0 + 32 FROM tab0
----
121
56
67

query I rowsort
SELECT - col0 * 66 + col2 FROM tab2
----
-435
-5122
-5176

query I rowsort
SELECT - ( + col2 ) + - cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5425
SELECT ALL + ( - col1 ) * + col0 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT DISTINCT + cor0.col2 DIV col1 + + col2 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + cor0.col2 / col1 + + col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col1 * 73 AS col0 FROM tab1 cor0
----
1898
730
949

query I rowsort
SELECT + 77 * - col0 FROM tab1 AS cor0
----
-231
-4928
-6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT ALL tab1.col2 DIV 12 FROM tab1
----
4
4
8

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL tab1.col2 / 12 FROM tab1
----
4
4
8

query I rowsort
SELECT ( - tab0.col0 ) + + col1 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT tab2.col0 * cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bf51d387ba44128cb3ec1426ea3afc8

query I rowsort
SELECT ALL 41 * - col0 FROM tab0
----
-1435
-3649
-984

query I rowsort
SELECT DISTINCT + - 8 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2072
-3403
-8107

query I rowsort
SELECT ALL - col0 * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col0 + + 81 AS col2 FROM tab1 AS cor0
----
1
17
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab1, tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 + + col0 * col1 col1 FROM tab2 AS cor0
----
1326
200
4585

query I rowsort
SELECT ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - cor0.col2 * - col2 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + - ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col1 * + col2 * + 33 FROM tab0 cor0
----
-246246
-3201
-93654

query I rowsort
SELECT + col1 + - col2 * 80 AS col0 FROM tab1 AS cor0
----
-4294
-4550
-7667

query I rowsort
SELECT - col0 + col2 * + 50 FROM tab2 AS cor0
----
1222
1343
1821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - ( col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5450
SELECT + 75 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-5450
SELECT + 75 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
25

query I rowsort
SELECT - cor0.col0 * col1 * ( - cor0.col1 + - col1 ) FROM tab2 AS cor0
----
13454
45662
543036

query I rowsort
SELECT - col2 * + 48 + - 59 AS col0 FROM tab2 AS cor0
----
-1307
-1355
-1883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( - col2 + - col2 ) col2 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT - col1 * - 24 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-1067
-5915
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT ALL + + col2 DIV - col1 - + 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-97

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL + + col2 / - col1 - + 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-97

query I rowsort
SELECT ALL col2 * col1 + 28 * + col0 AS col1 FROM tab2 AS cor0
----
1033
2858
3718

query I rowsort
SELECT ALL + col0 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - cor0.col2 + + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-48
64
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + 26 col2 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT - col1 * col0 + 29 AS col1 FROM tab2 AS cor0
----
-1314
-188
-4573

query I rowsort
SELECT DISTINCT + col0 + + ( - ( cor0.col0 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + + col0 * + 29 AS col2 FROM tab1 AS cor0
----
1846
2307
61

query I rowsort
SELECT DISTINCT + col2 + 31 * - col1 FROM tab2 AS cor0
----
-1803
-489
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col0 + + ( cor0.col1 * col2 ) AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col0 * - ( + col2 ) * + 13 AS col2 FROM tab2 cor0
----
2457
26364
39026

query I rowsort
SELECT ALL + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 + col0 * col2 * 55 FROM tab2 AS cor0
----
10368
111514
165072

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT + + col0 + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5471
SELECT + + col0 + col2 / + col2 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT + 72 + + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1320
1476
642

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab0 cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT DISTINCT + col0 + + col0 + - col0 DIV - col1 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + col0 + + col0 + - col0 / - col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - 48 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT + - col0 + cor0.col1 DIV + col1 AS col2 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5476
SELECT + - col0 + cor0.col1 / + col1 AS col2 FROM tab0 cor0
----
-23
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5477
SELECT - + col0 * - CAST( NULL AS SIGNED ) + + 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col1 * + ( - col1 ) - + col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + col0 + - 0 * - ( + col1 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - + 24 * 25 AS col2 FROM tab0 AS cor0
----
-600
-600
-600

query I rowsort
SELECT - col0 * - 7 + col0 + col0 FROM tab2 cor0
----
63
702
711

query I rowsort
SELECT - + 29 * + col2 FROM tab2 cor0
----
-1102
-754
-783

query I rowsort
SELECT + col0 * - col0 * col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT ( - 60 ) * col1 + 85 + col2 AS col1 FROM tab2 AS cor0
----
-1748
-3429
-897

query I rowsort
SELECT ALL + - col1 * 36 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT + - ( + col2 ) + + col0 * - 6 FROM tab0 AS cor0
----
-177
-211
-616

query I rowsort
SELECT 87 * col1 FROM tab0 cor0
----
7482
7917
8439

query I rowsort
SELECT + 21 * + 90 + - col0 AS col0 FROM tab1 AS cor0
----
1810
1826
1887

query I rowsort
SELECT + col2 + ( - col1 ) * - 94 FROM tab0 cor0
----
8117
8636
9119

query I rowsort
SELECT + + 36 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT 41 * col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT - - ( col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col2 * col1 + - 21 FROM tab2 AS cor0
----
1513
625
816

query I rowsort
SELECT - col2 * - 55 + - col2 * + col1 FROM tab1 AS cor0
----
1566
2565
4032

query I rowsort
SELECT - col0 * + tab0.col1 * + ( 0 ) + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 - - 15 * + cor0.col2 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT + + col0 - + cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - + 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT + + col2 * + 69 AS col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT col1 * + 54 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT ( - col1 * + 22 ) FROM tab1
----
-220
-286
-572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * - col1 * col2 col0 FROM tab2 AS cor0
----
-22630
-24565
-39943

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT ALL - - col0 * + CAST( col2 AS SIGNED ) + + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - - col0 * + CAST ( col2 AS INTEGER ) + + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT ALL + cor0.col0 * CAST( 20 AS SIGNED ) - col2 FROM tab0 AS cor0
----
1698
447
699

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + cor0.col0 * CAST ( 20 AS INTEGER ) - col2 FROM tab0 AS cor0
----
1698
447
699

query I rowsort
SELECT ALL col2 + - 47 FROM tab2 cor0
----
-20
-21
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT DISTINCT - col0 DIV col1 - - col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - col0 / col1 - - col0 FROM tab2 AS cor0
----
7
75
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5507
SELECT DISTINCT - cor0.col0 + + col1 * + col1 * CAST( ( - col2 ) * 86 AS SIGNED ) AS col0 FROM tab2 cor0
----
-2231449
-7783594
-944531

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - cor0.col0 + + col1 * + col1 * CAST ( ( - col2 ) * 86 AS INTEGER ) AS col0 FROM tab2 cor0
----
-2231449
-7783594
-944531

query I rowsort
SELECT cor1.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 + cor0.col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT 8 * col1 AS col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL 60 + - col2 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT 17 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 71801088bb30ca6eac036729ebfbbace

query I rowsort
SELECT DISTINCT + cor0.col0 * 81 AS col1 FROM tab1 AS cor0
----
243
5184
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5515
SELECT DISTINCT + ( col0 ) + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT + - ( + col0 ) + - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 66 + - col0 + col1 AS col2 FROM tab0 AS cor0
----
-4
-64

query I rowsort
SELECT - 34 + - col2 AS col2 FROM tab0 AS cor0
----
-116
-35
-67

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 91 * 38 + col1 * - CAST ( + col2 AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
-116350
-29032
-72358

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT col0 DIV 34 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5521
SELECT col0 / 34 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5522
SELECT - - col0 * + col1 + - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1326
186
4543

skipif mysql # not compatible
query I rowsort label-5522
SELECT - - col0 * + col1 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + + col1 + col0 * + 22 FROM tab0 AS cor0
----
2049
614
867

query I rowsort
SELECT DISTINCT + col1 * + col1 * - 5 FROM tab1 AS cor0
----
-3380
-500
-845

query I rowsort
SELECT + col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT 15 + - tab1.col1 FROM tab1
----
-11
2
5

query I rowsort
SELECT 81 * - col0 AS col1 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT DISTINCT + 70 * col2 FROM tab1 AS cor0
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT - ( cor0.col0 ) DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5529
SELECT - ( cor0.col0 ) / col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * + col0 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT ALL - - col0 DIV col0 + + 56 DIV col2 FROM tab0 AS cor0
----
1
2
57

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - - col0 / col0 + + 56 / col2 FROM tab0 AS cor0
----
1
2
57

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT ALL tab1.col0 DIV + ( - tab1.col2 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL tab1.col0 / + ( - tab1.col2 ) AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - col1 + 98 * col2 AS col1 FROM tab0 cor0
----
1
3148
7945

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT + + col2 DIV + ( col0 * col1 ) + + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5535
SELECT + + col2 / + ( col0 * col1 ) + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col1 - + col0 * - col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + - cor0.col0 * - 44 - col0 * cor0.col0 FROM tab0 AS cor0
----
-4005
315
480

query I rowsort
SELECT + col1 - + 76 FROM tab2
----
-17
-45
-59

query I rowsort
SELECT ALL + 71 * col1 FROM tab0 cor0
----
6106
6461
6887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5540
SELECT + CAST( col2 AS SIGNED ) + - col0 * + cor0.col1 col2 FROM tab0 cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5540
SELECT + CAST ( col2 AS INTEGER ) + - col0 * + cor0.col1 col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * + col1 * col1 FROM tab1 cor0
----
1010
17602
2210

query I rowsort
SELECT ALL 15 + col1 AS col0 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT ALL col2 + + 10 FROM tab1
----
106
64
67

query I rowsort
SELECT 83 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT col1 + col0 * - ( tab0.col0 ) FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + tab1.col0 AS col0 FROM tab1, tab2, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 + + 34 FROM tab0
----
116
35
67

query I rowsort
SELECT + col1 + 92 AS col0 FROM tab1
----
102
105
118

query I rowsort
SELECT - col2 * 93 AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT 18 * 42 AS col1 FROM tab0 AS cor0
----
756
756
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5551
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT ALL 76 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + col2 * - col0 * - col0 + tab1.col0 * 4 FROM tab1
----
233728
498
614720

query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab0
----
75

query I rowsort
SELECT col1 + - col2 * col2 FROM tab0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT ALL CAST( + tab2.col1 + + col2 AS SIGNED ) * 33 AS col0 FROM tab2
----
1815
1914
2805

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL CAST ( + tab2.col1 + + col2 AS INTEGER ) * 33 AS col0 FROM tab2
----
1815
1914
2805

query I rowsort
SELECT ALL - + 63 - ( + col2 ) FROM tab2 AS cor0
----
-101
-89
-90

query I rowsort
SELECT ALL - + ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 7 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL 76 + ( - tab0.col1 ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38fa8c0737ab678941452689f41ab988

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT ALL + ( col0 ) + + col0 DIV col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + ( col0 ) + + col0 / col1 FROM tab2
----
7
79
83

query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col0 AS col0 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT tab1.col0 DIV + tab1.col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5564
SELECT tab1.col0 / + tab1.col1 FROM tab1
----
0
6
6

query I rowsort
SELECT - 60 + col0 * + col0 * 30 + col0 AS col1 FROM tab1
----
122884
192020
213

query I rowsort
SELECT col1 + - cor0.col0 - col0 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT + col0 * col1 + 45 FROM tab1 AS cor0
----
1085
123
685

query I rowsort
SELECT col1 + col1 + + col0 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL 12 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT ALL 12 DIV col0 + - CAST( col2 AS SIGNED ) DIV - col2 + + col0 FROM tab1
----
65
8
81

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL 12 / col0 + - CAST ( col2 AS INTEGER ) / - col2 + + col0 FROM tab1
----
65
8
81

query I rowsort
SELECT + cor0.col1 * 81 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d978491f1f731dfbcdb7a39b597dea4a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT col2 DIV + col2 + col0 AS col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5572
SELECT col2 / + col2 + col0 AS col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - col2 + col1 * 79 FROM tab0 cor0
----
6761
7107
7662

query I rowsort
SELECT ALL + col2 * col2 + - 66 AS col1 FROM tab2 AS cor0
----
1378
610
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT ALL col1 * - CAST( + col2 + col0 AS SIGNED ) FROM tab2
----
-1054
-1989
-6136

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL col1 * - CAST ( + col2 + col0 AS INTEGER ) FROM tab2
----
-1054
-1989
-6136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT DISTINCT - + cor0.col0 * + CAST( NULL AS SIGNED ) / 24 - + col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT DISTINCT - + col1 DIV 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - + col1 / 85 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT - 32 DIV - 32 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 32 / - 32 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - 33 + 88 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT + col1 * - 48 * col0 FROM tab2 AS cor0
----
-10416
-220896
-64464

query I rowsort
SELECT + col1 + ( col0 ) FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col1 * cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + - col1 + - ( - ( col0 ) ) FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT ALL + - cor0.col0 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + - cor0.col0 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 6 * col2 FROM tab0
----
-198
-492
-6

query I rowsort
SELECT + 75 FROM tab1, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

query I rowsort
SELECT + 65 * - col0 FROM tab0
----
-1560
-2275
-5785

query I rowsort
SELECT - col1 - - col2 * col1 * 78 AS col2 FROM tab1 AS cor0
----
109486
44450
97331

query I rowsort
SELECT - ( col0 ) * + ( 4 ) FROM tab1
----
-12
-256
-320

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

query I rowsort
SELECT 20 + - col1 FROM tab1 AS cor0
----
-6
10
7

query I rowsort
SELECT 92 + col2 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT - 27 + col0 FROM tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT - 4 + + col0 - col2 * + col2 FROM tab2 cor0
----
-1369
-602
-726

query I rowsort
SELECT - col0 + - col1 * - cor0.col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT col2 * 10 AS col0 FROM tab0
----
10
330
820

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT ALL - col2 * ( + tab1.col2 ) AS col0 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT DISTINCT tab2.col2 DIV 1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT tab2.col2 / 1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT cor0.col1 + + ( col2 ) * col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT ALL - + col2 DIV - col2 + col1 col2 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + col2 / - col2 + col1 col2 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + col0 + - col2 col2 FROM tab2 AS cor0
----
1586
687
817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT ALL col1 DIV 31 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL col1 / 31 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT - + col0 DIV + 38 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT - + col0 / + 38 FROM tab0 cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT + CAST( 76 AS SIGNED ) * cor0.col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
1791
2659
6682

skipif mysql # not compatible
query I rowsort label-5611
SELECT + CAST ( 76 AS INTEGER ) * cor0.col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
1791
2659
6682

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - + 12 * col1 AS col0 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT DISTINCT - 63 * - col0 FROM tab0 cor0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + + col2 + col0 + - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + - ( - ( cor0.col1 ) ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - col0 - 4 AS col2 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT + + col2 * col1 * - 26 FROM tab0 cor0
----
-194012
-2522
-73788

query I rowsort
SELECT ALL - + 88 * col2 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT DISTINCT - + col2 * col0 + col0 * - col2 AS col2 FROM tab1 cor0
----
-15360
-324
-7296

query I rowsort
SELECT DISTINCT - 61 + cor0.col2 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-28
-60
21

query I rowsort
SELECT - - cor0.col1 + 39 FROM tab1 AS cor0
----
49
52
65

query I rowsort
SELECT - col1 * col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 49 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL 27 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 092918b9163061e291041d594b1a402a

query I rowsort
SELECT ALL + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

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

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT col2 + - 51 FROM tab1
----
3
45
6

query I rowsort
SELECT - col0 + + 50 FROM tab0 cor0
----
-39
15
26

query I rowsort
SELECT + tab2.col1 * 60 AS col0 FROM tab2
----
1020
1860
3540

query I rowsort
SELECT - col0 * - tab2.col2 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col1 + + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col1 * col0 + 95 * + col2 FROM tab2 AS cor0
----
2782
4953
7072

query I rowsort
SELECT - col0 + - col1 * + col2 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
119728
32426
75813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT DISTINCT - 95 + col0 DIV 21 AS col1 FROM tab0 AS cor0
----
-91
-94

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - 95 + col0 / 21 AS col1 FROM tab0 AS cor0
----
-91
-94

query I rowsort
SELECT 34 * - col1 * col0 AS col1 FROM tab0
----
-115430
-275366
-70176

query I rowsort
SELECT ALL 14 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 + 61 + + col1 AS col2 FROM tab1
----
135
154
90

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 + - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 11 + 31 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT + col2 + ( col1 ) DIV - col1 + + col2 FROM tab1
----
107
113
191

skipif mysql # not compatible
query I rowsort label-5647
SELECT + col2 + ( col1 ) / - col1 + + col2 FROM tab1
----
107
113
191

query I rowsort
SELECT - + col0 + col2 * + col0 * + col2 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT ALL 75 - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8c6484584323081345902b4a3fa89562

query I rowsort
SELECT + 11 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-75
-80
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT tab0.col2 + + col0 * col0 DIV - col1 + 90 FROM tab0
----
117
79
85

skipif mysql # not compatible
query I rowsort label-5651
SELECT tab0.col2 + + col0 * col0 / - col1 + 90 FROM tab0
----
117
79
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT DISTINCT + ( col0 * + col0 ) + tab0.col0 DIV col1 + col1 FROM tab0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + ( col0 * + col0 ) + tab0.col0 / col1 + col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) + + col2 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT col0 * - 88 + + col0 AS col0 FROM tab1
----
-261
-5568
-6960

query I rowsort
SELECT ALL col1 + ( tab2.col2 * + tab2.col1 ) + col0 AS col0 FROM tab2
----
1671
742
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT + col0 - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5656
SELECT + col0 - col0 / col0 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL - 67 - col1 AS col1 FROM tab2 AS cor0
----
-126
-84
-98

query I rowsort
SELECT - col0 * 56 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1377
-1961
-5066

query I rowsort
SELECT - 14 * col0 * col2 + + 89 * - cor0.col0 FROM tab2 AS cor0
----
-3269
-35334
-49059

query I rowsort
SELECT ALL - ( + col1 ) * + col1 + + 96 AS col0 FROM tab0 AS cor0
----
-7300
-8185
-9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + cor0.col0 * + col0 + col0 col0 FROM tab1 AS cor0
----
4217
6576
66

query I rowsort
SELECT DISTINCT - + 76 * col1 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

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

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT + - col2 + + col0 + CAST( 46 AS SIGNED ) * - col0 col0 FROM tab1 cor0
----
-189
-2937
-3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5666
SELECT + - col2 + + col0 + CAST ( 46 AS INTEGER ) * - col0 col0 FROM tab1 cor0
----
-189
-2937
-3696

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col2 * + 33 + col1 - + 99 AS col1 FROM tab0
----
1076
2698
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT + ( 55 ) * - col2 - - ( col1 ) DIV col0 AS col1 FROM tab1
----
-2962
-3135
-5280

skipif mysql # not compatible
query I rowsort label-5669
SELECT + ( 55 ) * - col2 - - ( col1 ) / col0 AS col1 FROM tab1
----
-2962
-3135
-5280

query I rowsort
SELECT col2 + + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - + 86 + + col1 AS col2 FROM tab0 AS cor0
----
0
11
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * - col1 col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + 89 * - col2 AS col2 FROM tab1
----
-4806
-5073
-8544

query I rowsort
SELECT DISTINCT - + col0 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col2 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT ( - col1 ) * - cor0.col2 + col2 * + col0 * - col0 + ( + cor0.col1 ) FROM tab0 AS cor0
----
-1031
-16084
-641969

query I rowsort
SELECT + 86 * - col2 - col2 * 6 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT + 49 * cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT 23 - + col2 AS col2 FROM tab0 AS cor0
----
-10
-59
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT DISTINCT 71 - - col2 DIV - col0 AS col0 FROM tab1
----
53
70
71

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT 71 - - col2 / - col0 AS col0 FROM tab1
----
53
70
71

query I rowsort
SELECT ALL - col0 * col1 - + col0 * col0 AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT col2 + - col2 DIV - 99 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5682
SELECT col2 + - col2 / - 99 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col1 * col1 + + cor0.col1 * + col0 + 38 AS col0 FROM tab0 AS cor0
----
12842
16418
9498

query I rowsort
SELECT - - col2 + col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1460
251
4706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 + col2 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT - cor0.col2 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col2 + + 10 AS col1 FROM tab1 AS cor0
----
106
64
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT - cor0.col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT - cor0.col1 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT - - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5689
SELECT - - cor0.col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col0 FROM tab1
----
100
169
676

query I rowsort
SELECT 6 + - col1 FROM tab1
----
-20
-4
-7

query I rowsort
SELECT DISTINCT + col0 * + 7 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
22
515
520

query I rowsort
SELECT - ( - col0 ) * - cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL + + col0 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + + col0 * col2 col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL - col1 + col1 DIV col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - col1 + col1 / col1 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5697
SELECT ALL 11 + + ( - col0 + - CAST( NULL AS SIGNED ) ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL 11 + + ( - col0 + - CAST ( NULL AS INTEGER ) ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 8 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-602
-637
-679

query I rowsort
SELECT + 96 + + 82 AS col1 FROM tab2 AS cor0
----
178
178
178

query I rowsort
SELECT ALL col0 * 92 AS col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT DISTINCT col2 * 0 FROM tab0
----
0

query I rowsort
SELECT ( - tab0.col1 ) FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL - col0 + - col0 * - tab1.col2 FROM tab1
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col2 col2 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL - - 75 * + 86 FROM tab2 AS cor0
----
6450
6450
6450

onlyif mysql # use DIV operator for integer division
query I rowsort label-5709
SELECT ALL + - 58 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + - 58 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 93 * 24 AS col1 FROM tab2, tab1 AS cor0
----
-2232

query I rowsort
SELECT + col2 * + 22 FROM tab1 AS cor0
----
1188
1254
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 95 col0 FROM tab0 cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT + - cor0.col0 * 38 + + col1 AS col1 FROM tab1 AS cor0
----
-2422
-3027
-88

query I rowsort
SELECT - - cor0.col0 * - ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 * + 40 * - col2 FROM tab1
----
-116640
-129960
-368640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5716
SELECT ALL - CAST( 93 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
-4
-58
-69

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - CAST ( 93 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT DISTINCT - col1 + - 43 AS col1 FROM tab1 AS cor0
----
-53
-56
-69

query I rowsort
SELECT ALL 30 + + 99 FROM tab1 AS cor0
----
129
129
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + - cor0.col2 * 54 FROM tab0 AS cor0
----
-1782
-4428
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT ALL - 16 DIV + 72 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - 16 / + 72 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 97 * - 30 + + col1 AS col1 FROM tab1
----
-2884
-2897
-2900

query I rowsort
SELECT 94 * + col1 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT + + ( col0 ) * 10 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL ( - col1 * tab0.col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 34 * - 70 AS col1 FROM tab1
----
2380
2380
2380

query I rowsort
SELECT + ( + col2 ) * ( + 40 ) FROM tab0
----
1320
3280
40

query I rowsort
SELECT + + col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + 80 + cor0.col2 * 55 FROM tab2 AS cor0
----
1510
1565
2170

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT ALL col1 * CAST( col1 * col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL col1 * CAST ( col1 * col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT + + col2 + col2 * cor0.col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col0 + col2 * + 44 FROM tab0
----
1476
3697
79

query I rowsort
SELECT - 9 * col1 * col0 - + 93 FROM tab2
----
-12180
-2046
-41511

query I rowsort
SELECT 55 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT col0 + tab2.col0 DIV col1 col1 FROM tab2
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5736
SELECT col0 + tab2.col0 / col1 col1 FROM tab2
----
7
79
83

query I rowsort
SELECT + 36 + col0 + col2 * + col1 AS col0 FROM tab0
----
168
2898
7587

query I rowsort
SELECT - col1 + + col1 * - 76 FROM tab0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT col0 * + col1 + - 50 AS col0 FROM tab1
----
28
590
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT col2 DIV + tab1.col1 + - ( col0 ) DIV + col1 AS col1 FROM tab1
----
-1
1
2

skipif mysql # not compatible
query I rowsort label-5740
SELECT col2 / + tab1.col1 + - ( col0 ) / + col1 AS col1 FROM tab1
----
-1
1
2

query I rowsort
SELECT col1 - - col2 * - 56 FROM tab0
----
-1762
-4501
41

query I rowsort
SELECT col1 + + ( - 63 + col2 ) FROM tab0 AS cor0
----
110
35
56

query I rowsort
SELECT - col1 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + + col2 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col1 * col1 - + 30 AS col0 FROM tab2 AS cor0
----
259
3451
931

query I rowsort
SELECT + col1 * col0 + - col2 + + col0 * - col0 FROM tab2 cor0
----
-1508
-4936
141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5748
SELECT CAST( - col2 * + col0 AS SIGNED ) + col2 * col2 FROM tab2
----
-1352
-1558
540

skipif mysql # not compatible
query I rowsort label-5748
SELECT CAST ( - col2 * + col0 AS INTEGER ) + col2 * col2 FROM tab2
----
-1352
-1558
540

query I rowsort
SELECT ALL cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT DISTINCT + col2 - + 65 DIV col0 AS col1 FROM tab2
----
18
26
38

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + col2 - + 65 / col0 AS col1 FROM tab2
----
18
26
38

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT + col0 DIV - 83 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT + col0 / - 83 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 94 * col2 FROM tab1 AS cor0
----
5076
5358
9024

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT - ( col1 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5754
SELECT - ( col1 ) / col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 * col2 + 9 * col0 FROM tab2 cor0
----
-126
-1326
-2291

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT DISTINCT - - col1 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT 42 * + col0 - + col2 * col0 FROM tab1 AS cor0
----
-36
-4320
-960

query I rowsort
SELECT ALL + 92 + col2 AS col2 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT - 39 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-15
-4
50

query I rowsort
SELECT 99 + col2 * cor0.col1 FROM tab1 AS cor0
----
1347
1503
669

query I rowsort
SELECT - 99 + + col0 * - col0 FROM tab0 AS cor0
----
-1324
-675
-8020

query I rowsort
SELECT DISTINCT + col1 + - col1 - col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5765
SELECT + + CAST( 20 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
102
21
53

skipif mysql # not compatible
query I rowsort label-5765
SELECT + + CAST ( 20 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5767
SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT DISTINCT - - cor0.col0 + col2 * - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - - cor0.col0 + col2 * - col1 / + col1 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 93 + + col2 * + col2 FROM tab0 AS cor0
----
-92
6631
996

query I rowsort
SELECT col1 * col2 * tab2.col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - col2 + 15 FROM tab2
----
-11
-12
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT DISTINCT + - col2 * - col0 + + col2 * - col2 + - col0 DIV + col0 col1 FROM tab0 cor0
----
-298
33
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + - col2 * - col0 + + col2 * - col2 + - col0 / + col0 col1 FROM tab0 cor0
----
-298
33
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + ( + cor0.col1 ) * + col1 col2 FROM tab2 AS cor0
----
1011
339
3531

query I rowsort
SELECT col0 * col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - tab1.col1 * col0 + col0 * col0 + col0 * - col2 * col0 AS col1 FROM tab1
----
-230016
-555
-609040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT ALL tab1.col1 DIV tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL tab1.col1 / tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730

query I rowsort
SELECT + col1 * 97 AS col2 FROM tab1
----
1261
2522
970

query I rowsort
SELECT ALL - - col1 * - 90 - - col2 AS col1 FROM tab0 AS cor0
----
-7707
-8108
-8729

query I rowsort
SELECT + cor0.col2 + ( - col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col0 * 42 + col1 FROM tab1 AS cor0
----
152
2698
3373

query I rowsort
SELECT ALL cor0.col0 * tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + col0 * + col1 col2 FROM tab0
----
2069
3400
8104

query I rowsort
SELECT + col2 + + 9 FROM tab1
----
105
63
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT + col0 * - CAST( - col0 + col2 AS SIGNED ) AS col1 FROM tab1
----
-1280
-153
448

skipif mysql # not compatible
query I rowsort label-5785
SELECT + col0 * - CAST ( - col0 + col2 AS INTEGER ) AS col1 FROM tab1
----
-1280
-153
448

query I rowsort
SELECT + tab1.col2 + - col0 + col1 FROM tab1
----
29
3
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( tab0.col0 + col1 ) col1 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL - - cor0.col0 * - 18 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab2 cor0
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT col0 * ( col0 ) DIV tab0.col2 AS col1 FROM tab0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-5790
SELECT col0 * ( col0 ) / tab0.col2 AS col1 FROM tab0
----
1225
17
96

query I rowsort
SELECT ALL - col1 * - 53 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT - col2 - - 13 FROM tab1 AS cor0
----
-41
-44
-83

query I rowsort
SELECT - 86 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT + col2 DIV col2 - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5794
SELECT + col2 / col2 - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - col0 + - ( col2 ) AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col2 * 59 + cor0.col1 - + col0 * - 70 AS col1 FROM tab0 AS cor0
----
11159
2606
3713

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 46 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT - cor0.col0 DIV + 84 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5800
SELECT - cor0.col0 / + 84 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 + + 73 AS col2 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT DISTINCT + col0 * + 61 + col2 FROM tab1 AS cor0
----
237
3961
4976

query I rowsort
SELECT 30 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT DISTINCT + + CAST( cor0.col2 AS SIGNED ) * + cor0.col1 + - col2 FROM tab0 cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + + CAST ( cor0.col2 AS INTEGER ) * + cor0.col1 + - col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT 69 - col1 FROM tab0 AS cor0
----
-17
-22
-28

query I rowsort
SELECT + col2 * - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT + col2 - + col0 DIV + col1 AS col0 FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-5807
SELECT + col2 - + col0 / + col1 AS col0 FROM tab2 cor0
----
25
27
34

query I rowsort
SELECT - cor0.col0 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT DISTINCT col1 + col0 DIV 51 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT col1 + col0 / 51 FROM tab1 AS cor0
----
11
14
26

query I rowsort
SELECT cor0.col0 + + 57 AS col1 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT ALL + col1 + col1 + 39 FROM tab2 AS cor0
----
101
157
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT ALL - col1 DIV col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - col1 / col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 48 FROM tab0, tab1 cor0, tab2 AS cor1
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT ALL + 71 DIV col0 AS col1 FROM tab2
----
0
0
10

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + 71 / col0 AS col1 FROM tab2
----
0
0
10

query I rowsort
SELECT DISTINCT col1 * tab2.col1 + - ( + col1 * col0 ) + 88 * 30 FROM tab2
----
1519
1586
3384

query I rowsort
SELECT + col1 + - col1 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 87 * + col2 + + 9 FROM tab1 AS cor0
----
4707
4968
8361

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + 80 * + col1 AS col0 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT - 42 + col0 AS col1 FROM tab0 AS cor0
----
-18
-7
47

query I rowsort
SELECT + - col2 * - 16 * + col2 + col0 * + col0 FROM tab0 cor0
----
115505
1241
18000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + col2 + col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5825
SELECT col2 * CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5825
SELECT col2 * CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( col0 + 53 ) AS col1 FROM tab0
----
142
77
88

query I rowsort
SELECT - col1 * tab0.col2 * col0 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2 + col2 * - tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT DISTINCT + col2 DIV col1 AS col0 FROM tab0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col0 + col2 col0 FROM tab1
----
2973
3370
9392

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 * - tab0.col2 / - tab0.col0 + tab0.col2 )
----

query I rowsort
SELECT ALL + col0 * col1 + col2 - col0 FROM tab1
----
1056
129
633

query I rowsort
SELECT - col0 * col1 * col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col0 + col2 + + col1 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT col0 * - tab2.col0 * - col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL tab1.col0 + col0 - col1 * - col1 FROM tab1
----
228
329
682

query I rowsort
SELECT + col0 * + tab0.col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT col1 * - col2 * - col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL tab2.col1 * + col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * col0 * col2 + col1 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT - col0 * tab1.col0 + - col1 FROM tab1 WHERE ( NULL ) = NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5842
SELECT - - col1 / - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - col0 * - col2 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - tab1.col0 * col2 * col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT ALL col0 DIV + col2 - col1 AS col0 FROM tab1
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL col0 / + col2 - col1 AS col0 FROM tab1
----
-13
-26
-9

query I rowsort
SELECT - col2 + + col1 * - tab2.col2 AS col0 FROM tab2
----
-1560
-684
-864

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col0 * col0 * + col0 - col2 AS col0 FROM tab2
----
-370
-474578
-493077

query I rowsort
SELECT ALL - col2 * col1 + 54 * col0 FROM tab2 AS cor0
----
-459
2678
3620

query I rowsort
SELECT ALL ( + col0 ) + + ( col0 * col2 ) + 13 FROM tab0 AS cor0
----
7400
829
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5852
SELECT DISTINCT + 12 + col0 - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-11
66
79

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + 12 + col0 - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-11
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT - + col0 - col2 DIV col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-5853
SELECT - + col0 - col2 / col0 FROM tab2 AS cor0
----
-10
-78
-79

query I rowsort
SELECT DISTINCT - - ( col2 ) + - col2 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT + + col1 - - col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 61 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-71
-74
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT ALL col0 + - col0 DIV + col1 + col1 AS col2 FROM tab2 AS cor0
----
136
38
92

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL col0 + - col0 / + col1 + col1 AS col2 FROM tab2 AS cor0
----
136
38
92

query I rowsort
SELECT DISTINCT + + 75 * col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT + 21 FROM tab0 cor0
----
21

query I rowsort
SELECT DISTINCT + 72 * + col2 + - col0 FROM tab2 AS cor0
----
1794
1937
2657

query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 83 + col1 AS col0 FROM tab0 AS cor0
----
14
3
8

query I rowsort
SELECT col0 + - 4 - col0 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT ALL col1 * - 39 - col2 AS col0 FROM tab0
----
-3387
-3631
-3784

query I rowsort
SELECT + 88 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL ( col2 ) * col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - - cor0.col0 + - col1 * col2 AS col1 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT 0 + col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 51 * col0 + col0 FROM tab1 cor0
----
-150
-3200
-4000

query I rowsort
SELECT - ( col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL col0 * + 53 FROM tab0
----
1272
1855
4717

query I rowsort
SELECT 6 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col2 * ( - 82 ) + - col1 AS col1 FROM tab2
----
-2191
-2245
-3133

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab0, tab2 cor0
----
-51

query I rowsort
SELECT + + col0 * + ( 30 ) FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT ( + col1 + + col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT - + 58 * - cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
148
3702
4627

query I rowsort
SELECT + - col2 + col2 * + col1 * col0 FROM tab0 cor0
----
3394
664036
68079

query I rowsort
SELECT - 7 + col0 + - col0 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - col2 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * - tab1.col0 col0 FROM tab1
----
-237
-5056
-6320

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 - - col2 * col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col1 * col0 col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT DISTINCT + col1 DIV - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + col1 / - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL col1 * col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col1 * - col1 + - col1 AS col0 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + - col2 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - col0 + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 92 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1132
-170
-732

onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT ALL - col1 DIV col0 + - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-684

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - col1 / col0 + - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-684

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 * col0 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT ALL - 32 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col0 * - col0 col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT cor0.col1 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT cor0.col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5899
SELECT DISTINCT CAST( NULL AS SIGNED ) * 74 + col1 * + col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - + col0 * - 3 AS col2 FROM tab0 AS cor0
----
105
267
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5902
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 + - ( + 50 ) AS col1 FROM tab1
----
-104
-107
-146

query I rowsort
SELECT ALL + + ( col0 ) * col1 + col1 * - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-242004
-6014
-670943

query I rowsort
SELECT ALL - 99 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT col0 + + col1 - - col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL + + 57 * col2 AS col1 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT + col0 * 95 + col2 FROM tab1 AS cor0
----
339
6137
7696

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

query I rowsort
SELECT ALL ( tab1.col0 * + col2 + - col0 ) FROM tab1
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT + CAST( NULL AS SIGNED ) * - col2 + col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 37 + + col1 FROM tab2
----
-20
-6
22

query I rowsort
SELECT col2 * col2 + + col1 AS col2 FROM tab0
----
1175
6815
98

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

query I rowsort
SELECT DISTINCT + col2 * col2 * - col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT + col1 * col2 + col0 * + col0 AS col1 FROM tab0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT col2 * - tab0.col1 + col0 * col2 * col2 FROM tab0
----
-62
23298
590974

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT + col2 DIV - col2 + + tab2.col1 AS col2 FROM tab2 WHERE col1 < col2 * col2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5918
SELECT + col2 / - col2 + + tab2.col1 AS col2 FROM tab2 WHERE col1 < col2 * col2
----
16
30
58

query I rowsort
SELECT ALL + col0 + + col0 * + col0 AS col0 FROM tab2
----
56
6162
6320

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

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT DISTINCT tab0.col0 + col2 + + tab0.col1 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL col2 * + col2 + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - + col1 * - cor0.col0 + col2 AS col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT col1 * - col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - + col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col1 * + col2 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - col0 * col2 * col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - - cor0.col1 + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT DISTINCT + + col2 DIV - col2 - + col0 FROM tab1 cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + + col2 / - col2 - + col0 FROM tab1 cor0
----
-4
-65
-81

query I rowsort
SELECT - col2 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5937
SELECT CAST( NULL AS SIGNED ) * - ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 90 * col2 AS col1 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT + - 42 + + 6 - + cor0.col2 * - 38 AS col1 FROM tab2 AS cor0
----
1408
952
990

query I rowsort
SELECT DISTINCT tab1.col0 - tab1.col0 * 62 FROM tab1
----
-183
-3904
-4880

query I rowsort
SELECT + col1 * - 23 AS col0 FROM tab2
----
-1357
-391
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT + 12 DIV tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be31d481de114b1d25122291681592df

skipif mysql # not compatible
query I rowsort label-5942
SELECT + 12 / tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be31d481de114b1d25122291681592df

query I rowsort
SELECT ALL + cor1.col2 * cor1.col1 + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5b15ceba1715b5da5271c21820c191bb

query I rowsort
SELECT - col2 - 7 FROM tab1
----
-103
-61
-64

query I rowsort
SELECT DISTINCT ( + col1 * tab2.col2 ) + - 28 FROM tab2
----
1506
618
809

query I rowsort
SELECT - col1 + - col1 * col0 * 58 FROM tab0 AS cor0
----
-119798
-197007
-469833

query I rowsort
SELECT 94 + ( - col0 ) AS col2 FROM tab1 cor0
----
14
30
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT - - col1 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-5948
SELECT - - col1 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + col1 * 30 * col1 col0 FROM tab0 AS cor0
----
219042
240968
282173

query I rowsort
SELECT ALL 53 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL + tab1.col2 * + tab1.col0 * 12 FROM tab1
----
1944
43776
92160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT - CAST( NULL AS SIGNED ) * 96 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5952
SELECT - CAST ( NULL AS INTEGER ) * 96 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
-44

query I rowsort
SELECT - 67 * + col0 * 95 FROM tab1 AS cor0
----
-19095
-407360
-509200

query I rowsort
SELECT + col0 * 63 * - col1 FROM tab0 AS cor0
----
-130032
-213885
-510237

query I rowsort
SELECT - + col2 + + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + col0 + cor0.col2 - col0 FROM tab0 cor0
----
-1259
-567
-7928

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

query I rowsort
SELECT DISTINCT 72 * col1 AS col2 FROM tab1
----
1872
720
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT cor0.col1 * - CAST( 45 AS SIGNED ) FROM tab2 AS cor0
----
-1395
-2655
-765

skipif mysql # not compatible
query I rowsort label-5960
SELECT cor0.col1 * - CAST ( 45 AS INTEGER ) FROM tab2 AS cor0
----
-1395
-2655
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT DISTINCT - col2 DIV - 16 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - col2 / - 16 AS col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT - + col1 * - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + tab2.col1 * ( 7 ) AS col0 FROM tab2, tab1, tab2 cor0
----
119
217
413

query I rowsort
SELECT cor0.col2 + - col2 * - col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col2 - 19 * 77 FROM tab2
----
-1489
-1490
-1501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT ALL - + cor0.col1 + - CAST( + ( col0 ) AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - + cor0.col1 + - CAST ( + ( col0 ) AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 col1 FROM tab2 cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + 94 * - col1 AS col2 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL + ( - col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT DISTINCT - col1 DIV 30 FROM tab0 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - col1 / 30 FROM tab0 AS cor0
----
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + + col0 + - cor0.col0 * + cor0.col1 * cor0.col2 col0 FROM tab1 AS cor0
----
-36359
-4152
-99703

query I rowsort
SELECT - 27 + + col2 FROM tab2 AS cor0
----
-1
0
11

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - + cor0.col0 * - 42 + cor0.col2 * + col2 FROM tab1 AS cor0
----
12576
3042
5937

query I rowsort
SELECT 75 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - ( + 68 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT ALL - col2 * 46 DIV col0 AS col1 FROM tab2
----
-15
-177
-22

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - col2 * 46 / col0 AS col1 FROM tab2
----
-15
-177
-22

query I rowsort
SELECT DISTINCT 21 * cor0.col0 * col2 FROM tab2 AS cor0
----
3969
42588
63042

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

query I rowsort
SELECT - col1 * cor0.col1 * 80 + + 16 FROM tab0 AS cor0
----
-591664
-662464
-752704

query I rowsort
SELECT ALL cor0.col0 + col0 * - 89 * col1 AS col0 FROM tab1 AS cor0
----
-56896
-6939
-92480

query I rowsort
SELECT ALL - col1 + col0 * - ( + 34 + col2 * 58 ) AS col2 FROM tab0 AS cor0
----
-3317
-426401
-46838

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT DISTINCT 85 + - col1 DIV col0 FROM tab2 cor0
----
81
85

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT 85 + - col1 / col0 FROM tab2 cor0
----
81
85

query I rowsort
SELECT - 43 + - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1205
1361
527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * 1 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 42 * - col2 * - col0 + + cor0.col2 * col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
137066
175682
33885

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5991
SELECT ALL + CAST( + col1 * col0 AS SIGNED ) AS col2 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + CAST ( + col1 * col0 AS INTEGER ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - - ( + 92 ) AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT 6 + - col0 AS col0 FROM tab0 AS cor0
----
-18
-29
-83

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT tab0.col1 + col1 AS col1 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 + col2 * ( - col1 ) col1 FROM tab2 AS cor0
----
-1600
-712
-903

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

query I rowsort
SELECT ALL - 69 AS col2 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT + 68 + + 97 * + cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 60688cc7237da4e50dff1f874bc02bfa

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 + 40 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT DISTINCT 78 FROM tab1, tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - 57 * + col2 FROM tab0 AS cor0
----
-1881
-4674
-57

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

query I rowsort
SELECT ALL ( col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + col1 * - ( + col1 ) * - 9 AS col2 FROM tab2 cor0
----
-2601
-31329
-8649

query I rowsort
SELECT DISTINCT - ( + col2 + - col0 * + 95 ) FROM tab1
----
231
6023
7504

query I rowsort
SELECT ALL + - col0 + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT DISTINCT + 86 * + col0 - - 16 DIV - 1 AS col2 FROM tab0 cor0
----
2048
2994
7638

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + 86 * + col0 - - 16 / - 1 AS col2 FROM tab0 cor0
----
2048
2994
7638

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT DISTINCT - col1 / + col1 + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * col1 col2 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT + 81 * col1 + ( + 19 + + col1 ) FROM tab2 AS cor0
----
1413
2561
4857

query I rowsort
SELECT ALL - + col1 * cor0.col2 - 92 * 96 AS col2 FROM tab1 AS cor0
----
-10080
-10236
-9402

query I rowsort
SELECT - - ( cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 + col0 * - 7 AS col1 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT + 55 * - col1 + col0 FROM tab0 cor0
----
-4706
-4916
-5300

query I rowsort
SELECT - - col1 * col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 81 + - col2 AS col0 FROM tab0 AS cor0
----
-114
-163
-82

query I rowsort
SELECT ALL - col0 - - col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT 55 * - col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2, tab0
----
13122 values hashing to 6faa8335c6739caefb804792251fdd90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col2 + CAST ( + col0 AS REAL ) + - col1 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT + - col0 + - col0 * + col1 * col0 + 56 AS col2 FROM tab1 AS cor0
----
-181
-40968
-83224

query I rowsort
SELECT ALL + - col0 + ( + 19 ) AS col0 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT DISTINCT - + col2 + col2 * - col2 * col0 FROM tab0 AS cor0
----
-26169
-36
-598518

query I rowsort
SELECT cor0.col0 + + 53 AS col0 FROM tab2 AS cor0
----
131
132
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col2 * 35 AS col2 FROM tab2 cor0
----
1330
910
945

query I rowsort
SELECT DISTINCT col1 + 35 AS col0 FROM tab2 cor0
----
52
66
94

query I rowsort
SELECT DISTINCT + ( + col0 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + ( + col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + col0 * - 22 AS col1 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT + 1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col1 * 6 AS col2 FROM tab1
----
156
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col2 FROM tab1, tab0 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

query I rowsort
SELECT ( + col0 ) * col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - - col1 + - 38 + - col2 * 92 AS col1 FROM tab0 AS cor0
----
-2988
-33
-7491

query I rowsort
SELECT DISTINCT - col2 + + 37 AS col0 FROM tab1 AS cor0
----
-17
-20
-59

query I rowsort
SELECT ALL + - 63 * col1 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT + 54 * - col0 * + col1 + 72 * + col1 FROM tab0 AS cor0
----
-105264
-176346
-430794

query I rowsort
SELECT - col0 * + 58 FROM tab1
----
-174
-3712
-4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT ALL - col0 + - col0 DIV + col2 col0 FROM tab0
----
-24
-70
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - col0 + - col0 / + col2 col0 FROM tab0
----
-24
-70
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT DISTINCT - tab0.col1 + - col2 DIV + col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - tab0.col1 + - col2 / + col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + col0 + col1 * cor0.col2 AS col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - - cor0.col1 + 90 * + col0 * 62 FROM tab0 AS cor0
----
134006
195397
496711

query I rowsort
SELECT ( 34 ) * + col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT ALL 27 * + col1 AS col0 FROM tab2
----
1593
459
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + col1 - - ( 71 ) FROM tab1 AS cor0
----
45
58
61

query I rowsort
SELECT - col1 + ( + col2 ) * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + + cor0.col1 + - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT - 56 DIV 12 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - 56 / 12 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-4

query I rowsort
SELECT ALL col1 * - col0 + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col1 + 80 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) + col1 - cor0.col2 FROM tab1 AS cor0
----
134
3601
7597

onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT ALL + 27 DIV - 4 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + 27 / - 4 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT 63 - + 57 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT + + col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 * col0 + 17 * + col0 AS col0 FROM tab0 AS cor0
----
1820
9434
984

query I rowsort
SELECT ALL + - col2 - + cor0.col0 FROM tab0 cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT 8 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 - - col2 col0 FROM tab0
----
123
42
74

query I rowsort
SELECT DISTINCT - 10 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-10

query I rowsort
SELECT DISTINCT - col1 * - ( ( + col0 ) ) FROM tab1
----
1040
640
78

query I rowsort
SELECT + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT + 50 * col2 FROM tab1 AS cor0
----
2700
2850
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab1, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col0 * 48 FROM tab2
----
336
3744
3792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6078
SELECT - - col2 + - CAST( - col1 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
144
72
89

skipif mysql # not compatible
query I rowsort label-6078
SELECT - - col2 + - CAST ( - col1 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + col0 + - 94 + + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1166
506
7916

query I rowsort
SELECT + + 75 + - col1 * + col1 FROM tab1 AS cor0
----
-25
-601
-94

query I rowsort
SELECT + + cor0.col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * + 58 AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT ALL CAST( + ( - col0 ) AS SIGNED ) * + 32 FROM tab1
----
-2048
-2560
-96

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL CAST ( + ( - col0 ) AS INTEGER ) * + 32 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT ALL 91 * + col2 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT DISTINCT + col1 + 9 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col0 + + col1 + - ( + col0 ) * - col0 * - 43 AS col2 FROM tab2 AS cor0
----
-2069
-261475
-268267

query I rowsort
SELECT ALL + + 12 * - col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT ALL - 55 * - col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT + 10 + + col2 * 6 FROM tab0 AS cor0
----
16
208
502

query I rowsort
SELECT - + col1 + col1 AS col0 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT - + col0 + col1 DIV col0 col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6095
SELECT - + col0 + col1 / col0 col2 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL + 46 + col1 FROM tab1 cor0
----
56
59
72

query I rowsort
SELECT DISTINCT - 80 * - col2 - - cor0.col1 FROM tab0 AS cor0
----
177
2726
6651

query I rowsort
SELECT ALL - 42 * col2 * - col2 FROM tab0 cor0
----
282408
42
45738

query I rowsort
SELECT ALL + - 49 * - col1 AS col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT ALL + - 88 + col1 FROM tab2 AS cor0
----
-29
-57
-71

query I rowsort
SELECT + - col1 * ( col0 ) + - col0 + col0 * + cor0.col2 FROM tab2 cor0
----
-2652
-35
1580

query I rowsort
SELECT + col2 + - ( + col0 ) * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
4163
6509
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col2 col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT col0 DIV 5 + - 85 DIV col1 + + cor0.col2 DIV cor0.col1 FROM tab2 AS cor0
----
-1
12
14

skipif mysql # not compatible
query I rowsort label-6104
SELECT col0 / 5 + - 85 / col1 + + cor0.col2 / cor0.col1 FROM tab2 AS cor0
----
-1
12
14

query I rowsort
SELECT - col0 * 32 + + 16 FROM tab0 AS cor0
----
-1104
-2832
-752

query I rowsort
SELECT ALL col0 + col1 + - col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 - ( col2 + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 * 48 AS col1 FROM tab1 AS cor0
----
2592
2736
4608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6110
SELECT ALL col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 * - col2 + - ( cor0.col0 + col2 ) * + 56 AS col2 FROM tab2 AS cor0
----
-2633
-6500
-7996

query I rowsort
SELECT ALL - ( + 92 ) + - col2 AS col0 FROM tab1 AS cor0
----
-146
-149
-188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT ALL + col0 DIV - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + col0 / - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL 86 * col0 + 51 AS col1 FROM tab2
----
653
6759
6845

query I rowsort
SELECT + col2 * col0 + col0 AS col1 FROM tab1
----
165
3712
7760

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

query I rowsort
SELECT ALL 92 * + col2 + + col1 AS col1 FROM tab0
----
189
3122
7635

query I rowsort
SELECT DISTINCT - col1 * 47 - col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT + + cor0.col2 + ( - 72 ) * + col1 FROM tab0 AS cor0
----
-6159
-6470
-6983

query I rowsort
SELECT col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 + col2 * 6 AS col2 FROM tab2 cor0
----
193
215
245

query I rowsort
SELECT ALL - col0 + - 86 AS col2 FROM tab0 AS cor0
----
-110
-121
-175

query I rowsort
SELECT col0 * - cor0.col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 + + 46 * - col2 * + col2 FROM tab2 AS cor0
----
-31070
-33507
-66386

query I rowsort
SELECT DISTINCT col1 * col1 - col2 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL - 28 + - tab0.col1 AS col1 FROM tab0
----
-114
-119
-125

query I rowsort
SELECT col1 * + 34 + cor0.col2 AS col2 FROM tab1 cor0
----
397
538
938

query I rowsort
SELECT - ( 17 ) - + cor0.col1 FROM tab0 AS cor0
----
-103
-108
-114

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

query I rowsort
SELECT DISTINCT - - col1 + - 22 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT ALL + 57 * - 29 FROM tab1 AS cor0
----
-1653
-1653
-1653

query I rowsort
SELECT - col2 * ( - col1 ) + - col1 FROM tab2 AS cor0
----
1475
629
806

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

query I rowsort
SELECT ALL + + col2 * - 18 AS col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 FROM tab2 cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + 56 col1 FROM tab1 AS cor0
----
3024
3192
5376

onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT ALL - - col0 + - col1 DIV 68 col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - - col0 + - col1 / 68 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND cor0.col0
----

query I rowsort
SELECT DISTINCT + - 27 - col2 FROM tab2 AS cor0
----
-53
-54
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL + cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - 21 * col1 + - col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT + 72 + 14 FROM tab2, tab2 AS cor0
----
86

query I rowsort
SELECT + ( + 15 * - col0 ) - 93 * - col0 FROM tab2
----
546
6084
6162

query I rowsort
SELECT - 66 AS col0 FROM tab1, tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
81 values hashing to 18b0c368baac0e3433d1e072f8b49f81

query I rowsort
SELECT - cor2.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT + + 39 * col1 * 58 FROM tab1 AS cor0
----
22620
29406
58812

query I rowsort
SELECT ALL - col1 * - col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + 8 + col0 AS col0 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT 49 * + col2 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT + - 62 * - col1 * col1 FROM tab2 cor0
----
17918
215822
59582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 + 91 col2 FROM tab2 AS cor0
----
125
195
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT - - 15 * - col2 * + col1 + ( col2 ) DIV col1 FROM tab2 AS cor0
----
-12555
-23010
-9688

skipif mysql # not compatible
query I rowsort label-6154
SELECT - - 15 * - col2 * + col1 + ( col2 ) / col1 FROM tab2 AS cor0
----
-12555
-23010
-9688

query I rowsort
SELECT + - ( - col1 ) * 32 - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-3328
-7264
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab2 cor0
----
0
2

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

query I rowsort
SELECT - cor0.col1 * + col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + 24 * - col0 AS col0 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT - + col2 * col0 * col0 + col1 * ( + col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
-233002
-613321
242

query I rowsort
SELECT cor0.col2 * - 40 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT - 96 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT ALL - CAST( 81 AS SIGNED ) FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - CAST ( 81 AS INTEGER ) FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT - col1 - + 81 AS col1 FROM tab1
----
-107
-91
-94

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1, tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT + tab2.col1 + 24 + + col1 * 29 * + 31 AS col0 FROM tab2
----
15324
27924
53124

query I rowsort
SELECT col2 * - 16 + col0 + 83 AS col0 FROM tab1
----
-1373
-765
-778

query I rowsort
SELECT + - cor0.col1 * + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + ( col1 ) * col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * + 9 + col0 FROM tab1
----
154
197
237

query I rowsort
SELECT DISTINCT 3 + col0 * col0 * - tab1.col1 FROM tab1
----
-231
-40957
-83197

query I rowsort
SELECT + col2 + col1 * col1 + col2 AS col2 FROM tab1
----
214
361
784

query I rowsort
SELECT - tab2.col0 + + col2 * + col2 * col1 + + col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL - col0 * col1 FROM tab1 WHERE ( NULL ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 - + col1 col0 FROM tab2
----
158
1969
2985

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

query I rowsort
SELECT col1 + + col0 + col1 * - tab1.col1 * - tab1.col0 AS col2 FROM tab1
----
13613
2057
6474

query I rowsort
SELECT DISTINCT + col1 * - col1 + col1 AS col0 FROM tab2
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col1 FROM tab1
----
128
160
6

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6183
SELECT DISTINCT cor0.col0 + - col1 DIV + 96 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT cor0.col0 + - col1 / + 96 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 + + col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6185
SELECT ALL 40 DIV col2 col0 FROM tab0 cor0
----
0
1
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL 40 / col2 col0 FROM tab0 cor0
----
0
1
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 50 + 11 col1 FROM tab0, tab0 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT + col2 + cor0.col0 DIV + col2 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6187
SELECT + col2 + cor0.col0 / + col2 FROM tab0 cor0
----
33
36
83

query I rowsort
SELECT col0 + col1 * + col1 * col1 FROM tab1
----
1064
17579
2277

query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 col1 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col1 FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( col2 + col1 )
----
1040
640
78

query I rowsort
SELECT col2 + col0 + col2 * - col0 FROM tab1 cor0
----
-105
-3527
-7504

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

query I rowsort
SELECT - col1 * col0 + + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - tab1.col2 * - tab1.col2 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT - tab1.col0 - col1 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col0 * col0 + + col0 * col1 FROM tab1
----
4736
7440
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( col2 / col1 )
----

query I rowsort
SELECT ALL + col1 * + col2 - + col0 AS col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT tab2.col0 * + tab2.col0 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col1 * col2 + - col0 AS col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT col0 * col0 + - col0 + col2 AS col1 FROM tab1
----
4089
60
6416

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

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 + col0 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab2 cor0
----
-14

query I rowsort
SELECT + col0 * - 48 + + col0 FROM tab1 AS cor0
----
-141
-3008
-3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col2 * 68 DIV col0 AS col0 FROM tab0 cor0
----
-20
0
60

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col2 * 68 / col0 AS col0 FROM tab0 cor0
----
-20
0
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + + 43 + col0 FROM tab2 cor0
----
121
122
50

query I rowsort
SELECT DISTINCT - + 0 * + cor0.col2 - + col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT ( 34 ) + - col2 DIV + ( - 1 ) AS col1 FROM tab1 AS cor0
----
130
88
91

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT ( 34 ) + - col2 / + ( - 1 ) AS col1 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT ALL 46 + + ( - cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to bb0812e1d5fdc6868b422c30a69bb970

query I rowsort
SELECT - tab2.col1 * - ( - col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT ALL + CAST( + 84 + col2 AS SIGNED ) col0 FROM tab1
----
138
141
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + CAST ( + 84 + col2 AS INTEGER ) col0 FROM tab1
----
138
141
180

query I rowsort
SELECT col0 + - 21 AS col0 FROM tab0
----
14
3
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT ALL - + CAST( col1 AS SIGNED ) * col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - + CAST ( col1 AS INTEGER ) * col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT col2 * + col0 + 6 FROM tab1
----
168
3654
7686

query I rowsort
SELECT + + ( + col1 ) + 78 AS col1 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT - 28 * + col1 AS col0 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT ALL 66 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT ALL cor0.col1 DIV col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL cor0.col1 / col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * + ( - 97 ) + + col0 FROM tab0 AS cor0
----
132
3225
8043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 * - col2 - - col0 col1 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT DISTINCT - col1 * - ( col0 ) + - cor0.col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL col1 + + 12 FROM tab2
----
29
43
71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 - + ( col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 + + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - + cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - cor0.col1 * 69 + + col2 - col1 FROM tab0 AS cor0
----
5881
6270
6597

onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT DISTINCT + + col0 DIV col1 + - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1242
-1404
-564

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + + col0 / col1 + - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1242
-1404
-564

query I rowsort
SELECT col2 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col2 col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - + cor0.col0 + + col1 AS col2 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL - cor0.col0 * + 9 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-302
-412
-892

query I rowsort
SELECT cor0.col2 + - 51 * col1 AS col2 FROM tab1 AS cor0
----
-1272
-453
-567

query I rowsort
SELECT ALL - - cor0.col1 + + col1 * - col1 + cor0.col1 AS col2 FROM tab0 cor0
----
-7224
-8099
-9215

query I rowsort
SELECT - 4 + + col0 * col2 + - col2 FROM tab2 AS cor0
----
158
1998
2960

query I rowsort
SELECT + 11 FROM tab2, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col0 + + col2 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + 22 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-162712
-182182
-206998

onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT - + 50 - col0 DIV col2 FROM tab0 cor0
----
-50
-51
-85

skipif mysql # not compatible
query I rowsort label-6248
SELECT - + 50 - col0 / col2 FROM tab0 cor0
----
-50
-51
-85

query I rowsort
SELECT - col0 + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-44
-54
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT DISTINCT ( col1 ) + - col0 DIV col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT ( col1 ) + - col0 / col1 FROM tab2
----
13
31
58

query I rowsort
SELECT DISTINCT tab1.col2 + + 81 AS col1 FROM tab1
----
135
138
177

query I rowsort
SELECT col0 + - 77 + - col0 FROM tab0
----
-77
-77
-77

query I rowsort
SELECT ALL - col2 * + ( + ( col0 ) ) + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col2 * + col2 * 30 + col1 AS col2 FROM tab0 AS cor0
----
-201629
-32584
67

query I rowsort
SELECT ALL - col0 * 83 - - 45 * - col1 AS col0 FROM tab1 AS cor0
----
-1419
-5762
-7225

query I rowsort
SELECT ALL + col0 * col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT DISTINCT + col1 DIV - 95 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT + col1 / - 95 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 - + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - tab0.col0 * + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to fa8f09039d622159cb79f83c1d68bd00

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL col0 DIV - tab1.col1 + 19 AS col1 FROM tab1
----
13
13
19

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL col0 / - tab1.col1 + 19 AS col1 FROM tab1
----
13
13
19

query I rowsort
SELECT ALL col1 * + ( 61 ) + col0 FROM tab2
----
1116
1898
3677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 * + col2 col2 FROM tab2
----
2787
5278
946

query I rowsort
SELECT ALL tab1.col1 + ( col1 + col2 ) AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL cor0.col2 * - col1 * - 48 FROM tab2 AS cor0
----
31008
40176
73632

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col0 * - 67 - + cor0.col0 FROM tab2 cor0
----
-476
-5304
-5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT DISTINCT - + col2 * + CAST( + col1 AS SIGNED ) + cor0.col2 DIV cor0.col2 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT - + col2 * + CAST ( + col1 AS INTEGER ) + cor0.col2 / cor0.col2 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT - + col1 * + 45 - 82 * cor0.col0 FROM tab0 AS cor0
----
-11393
-5838
-7235

query I rowsort
SELECT - col0 * 67 + col2 FROM tab1 AS cor0
----
-147
-4231
-5264

query I rowsort
SELECT - col2 * 65 FROM tab2
----
-1690
-1755
-2470

query I rowsort
SELECT ALL - col0 * - col2 + 74 FROM tab2 cor0
----
2102
263
3076

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL IN ( col0 ) AND NULL IN ( + col2 * col1 * + col1 )
----

query I rowsort
SELECT + col2 * + col2 * col0 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - - col2 + - col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT DISTINCT + - 37 + col0 DIV - cor0.col0 col2 FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + - 37 + col0 / - cor0.col0 col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + + col2 * + cor0.col0 + col2 * + col2 + - col0 FROM tab1 AS cor0
----
16816
3075
6833

query I rowsort
SELECT - 77 * - col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT ( - col0 ) * + tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 40 + col1 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2104
3435
8139

query I rowsort
SELECT - + 85 * + col0 + col1 FROM tab2 AS cor0
----
-564
-6571
-6698

query I rowsort
SELECT - + col2 * + col0 + - ( 45 ) + cor0.col1 FROM tab0 AS cor0
----
-7252
-751
17

query I rowsort
SELECT + ( cor0.col1 ) * - col0 + + cor0.col2 * - col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - 59 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT + cor0.col0 + col0 * + ( 48 ) AS col2 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT 89 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + - 17 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT DISTINCT - col1 DIV 2 FROM tab0 AS cor0
----
-43
-45
-48

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - col1 / 2 FROM tab0 AS cor0
----
-43
-45
-48

query I rowsort
SELECT col2 + 70 AS col1 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab2, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT cor0.col0 * 44 + col2 AS col1 FROM tab2 AS cor0
----
335
3458
3514

query I rowsort
SELECT DISTINCT - col1 * col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 53 - - col1 col2 FROM tab0 AS cor0
----
-1663
-4255
44

query I rowsort
SELECT + ( - col0 ) + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 68 * + ( - col0 ) * col0 - ( col0 ) AS col1 FROM tab1
----
-278592
-435280
-615

query I rowsort
SELECT 90 * + 19 * - tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e553552195fdbd90b3417ca7dfd22524

query I rowsort
SELECT DISTINCT - 35 - + ( col1 + col0 ) * col1 FROM tab0
----
-12839
-16415
-9495

query I rowsort
SELECT + ( col1 ) * col2 * + col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + + cor0.col1 - + 56 AS col2 FROM tab1 AS cor0
----
-30
-43
-46

query I rowsort
SELECT ALL + 82 * + cor0.col2 * + ( ( col2 ) ) FROM tab1 AS cor0
----
239112
266418
755712

query I rowsort
SELECT DISTINCT - + col2 * col2 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT + - col0 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - 38 AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 9 * + col1 AS col2 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT ALL + col2 * + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) * col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 1 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7297
-791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6308
SELECT - cor0.col2 + - col2 * + CAST( - 17 AS SIGNED ) * col0 FROM tab1 AS cor0
----
130464
2700
61959

skipif mysql # not compatible
query I rowsort label-6308
SELECT - cor0.col2 + - col2 * + CAST ( - 17 AS INTEGER ) * col0 FROM tab1 AS cor0
----
130464
2700
61959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 + - ( + ( col0 ) + col0 ) col1 FROM tab2 AS cor0
----
-103
-71
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT ALL 14 DIV col0 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL 14 / col0 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL + ( - 35 * - col1 ) AS col2 FROM tab0
----
3010
3185
3395

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

query I rowsort
SELECT ALL col2 * ( col0 + ( 18 ) * - col2 ) FROM tab0
----
-113734
-18810
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * ( + col1 + col0 ) col2 FROM tab2 AS cor0
----
10764
273
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT - col1 DIV col0 - 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-70

skipif mysql # not compatible
query I rowsort label-6315
SELECT - col1 / col0 - 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-70

query I rowsort
SELECT - col2 * - col2 - col1 FROM tab1 cor0
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * + CAST ( 96 * col0 AS REAL ) col2 FROM tab2 cor0
----
4677
584038
599098

query I rowsort
SELECT col2 + col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 + + ( - col2 ) * - col1 + + col2 col2 FROM tab2 AS cor0
----
1593
2128
2236

query I rowsort
SELECT + col1 * cor0.col1 + - 30 FROM tab2 AS cor0
----
259
3451
931

query I rowsort
SELECT ALL + col1 + - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - 52 FROM tab0, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - + 76 * cor0.col1 + + col2 FROM tab0 AS cor0
----
-6503
-6834
-7371

query I rowsort
SELECT ALL - cor0.col2 + col1 * - 36 AS col1 FROM tab1 AS cor0
----
-417
-564
-990

query I rowsort
SELECT DISTINCT + 25 * - col0 * + 78 FROM tab1 AS cor0
----
-124800
-156000
-5850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT col0 * col0 * - CAST( ( - col2 ) AS SIGNED ) col0 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6327
SELECT col0 * col0 * - CAST ( ( - col2 ) AS INTEGER ) col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + col0 + + col1 * - ( col1 ) + tab0.col2 AS col1 FROM tab0
----
-7339
-8110
-9373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 + - col2 + + col0 col0 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT - + cor0.col0 + - 7 FROM tab2 AS cor0
----
-14
-85
-86

query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL tab1.col1 * + col2 + 83 DIV 4 FROM tab1
----
1268
1424
590

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL tab1.col1 * + col2 + 83 / 4 FROM tab1
----
1268
1424
590

query I rowsort
SELECT + col0 * col2 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL - col2 * 39 * col0 - + 99 AS col0 FROM tab1 cor0
----
-142371
-299619
-6417

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * col2 + ( + cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
3024
3363
9408

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * col2 + ( + cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
3024
3363
9408

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + - ( + col2 ) col0 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT ALL - cor0.col0 * - 12 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT ALL - col2 * 20 FROM tab1 cor0
----
-1080
-1140
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT + col0 - col0 * col2 DIV col1 col1 FROM tab1
----
-3
-300
-510

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6340
SELECT + col0 - col0 * col2 / col1 col1 FROM tab1
----
-3
-300
-510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + tab1.col0 * tab1.col2 col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT - col0 + + 10 FROM tab1 AS cor0
----
-54
-70
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6343
SELECT ALL + + CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6344
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + col1 - + 19 FROM tab0 AS cor0
----
7377
8262
9390

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + col1 - + 19 FROM tab0 AS cor0
----
7377
8262
9390

query I rowsort
SELECT - + ( - 10 ) * + col1 FROM tab2 AS cor0
----
170
310
590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6346
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 87 * - col1 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT - 89 - 9 * - cor0.col1 AS col0 FROM tab0 cor0
----
685
730
784

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT ALL cor0.col2 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL cor0.col2 / col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT tab2.col1 * - 74 AS col2 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT DISTINCT - tab2.col1 + col0 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT - col0 + col0 + - col1 AS col2 FROM tab0
----
-86
-91
-97

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6354
SELECT CAST( 7 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
query I rowsort label-6354
SELECT CAST ( 7 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT 78 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
78

query I rowsort
SELECT + cor0.col1 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - - col1 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + - col0 * col2 col0 FROM tab0 AS cor0
----
-717
-7223
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + 24 * col2 col0 FROM tab1 AS cor0
----
1299
1432
2384

query I rowsort
SELECT DISTINCT - col1 * 18 AS col0 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT ( - col1 ) - cor0.col0 * col2 * + ( - cor0.col1 * col0 ) FROM tab0 AS cor0
----
118728
1634602
59106411

query I rowsort
SELECT DISTINCT - tab1.col1 + 14 AS col0 FROM tab1
----
-12
1
4

query I rowsort
SELECT col2 + 40 * - col1 FROM tab2
----
-1213
-2334
-642

query I rowsort
SELECT ( - col0 ) - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col1 * - col2 + 79 + col1 AS col0 FROM tab0 AS cor0
----
-2673
-7292
79

query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT ALL + + 76 * cor0.col1 DIV + col1 FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + + 76 * cor0.col1 / + col1 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - + 77 AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT ALL + - 90 DIV + col1 FROM tab2 cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + - 90 / + col1 FROM tab2 cor0
----
-1
-2
-5

query I rowsort
SELECT ALL - - col2 * col2 + + 8 AS col0 FROM tab0 AS cor0
----
1097
6732
9

query I rowsort
SELECT ALL - col1 + - 58 AS col0 FROM tab1
----
-68
-71
-84

query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT col2 + + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6375
SELECT col2 + + col0 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + cor0.col1 + - col1 * + ( - col0 ) FROM tab2 cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT col1 + - col1 DIV + col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-6377
SELECT col1 + - col1 / + col0 FROM tab1 AS cor0
----
10
13
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * col1 col2 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT ALL 41 DIV + col0 AS col1 FROM tab2
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 41 / + col0 AS col1 FROM tab2
----
0
0
5

query I rowsort
SELECT 38 + col1 * 83 FROM tab0
----
7176
7591
8089

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( - col0 * - col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT col1 * + ( 86 ) FROM tab2 AS cor0
----
1462
2666
5074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 26 - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to edaaa11ddd00346eddabe1273919a537

query I rowsort
SELECT + + col2 + col2 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT DISTINCT + 61 DIV + cor0.col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT + 61 / + cor0.col1 FROM tab1 AS cor0
----
2
4
6

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

query I rowsort
SELECT ALL 10 - + ( cor0.col0 ) * ( 2 ) FROM tab0 AS cor0
----
-168
-38
-60

query I rowsort
SELECT 69 + - col0 AS col1 FROM tab2 AS cor0
----
-10
-9
62

query I rowsort
SELECT DISTINCT - + col1 * 56 + - col0 * col2 FROM tab1 AS cor0
----
-1618
-4208
-8408

query I rowsort
SELECT DISTINCT 71 + 35 * - col0 FROM tab2 AS cor0
----
-174
-2659
-2694

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

query I rowsort
SELECT ALL - + ( ( - col1 ) ) + + 71 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
535
5675
5705

query I rowsort
SELECT ALL cor0.col0 - col1 * col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col0 * + 42 * col0 + ( col0 ) + col0 FROM tab0 cor0
----
24240
332860
51520

query I rowsort
SELECT DISTINCT - + col2 * 43 + - col2 AS col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT ALL + CAST( NULL AS SIGNED ) * 44 - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL ( - cor0.col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col2 * + col2 * + col2 FROM tab2 AS cor0
----
17498
19676
54793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 + col0 / ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + 62 FROM tab0, tab1 AS cor0, tab1 cor1
----
62

query I rowsort
SELECT + 47 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT ( + 4 * + col0 ) FROM tab2
----
28
312
316

query I rowsort
SELECT ALL 51 + + 46 AS col0 FROM tab2
----
97
97
97

query I rowsort
SELECT 84 + col0 AS col2 FROM tab2 AS cor0
----
162
163
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT DISTINCT + col2 * - col1 * col0 + - cor0.col1 DIV col1 FROM tab0 AS cor0
----
-3396
-664119
-68113

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT + col2 * - col1 * col0 + - cor0.col1 / col1 FROM tab0 AS cor0
----
-3396
-664119
-68113

query I rowsort
SELECT DISTINCT col0 + + 33 AS col0 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT 57 * col1 FROM tab1
----
1482
570
741

query I rowsort
SELECT DISTINCT + tab2.col1 * + tab2.col0 FROM tab2, tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 + - cor0.col0 * ( 52 ) FROM tab2 cor0
----
-357
-3978
-4029

query I rowsort
SELECT ALL - col0 - + col0 AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col0 * - 14 FROM tab1
----
-1120
-42
-896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6416
SELECT col1 + CAST( 71 AS SIGNED ) + + col1 AS col0 FROM tab2
----
105
133
189

skipif mysql # not compatible
query I rowsort label-6416
SELECT col1 + CAST ( 71 AS INTEGER ) + + col1 AS col0 FROM tab2
----
105
133
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT ALL + col0 + + 18 DIV cor0.col0 FROM tab2 AS cor0
----
78
79
9

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + col0 + + 18 / cor0.col0 FROM tab2 AS cor0
----
78
79
9

query I rowsort
SELECT + cor2.col1 * 60 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 044114a6dcf202459282fec0be6f8daf

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

query I rowsort
SELECT DISTINCT - col0 - - ( col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT DISTINCT - cor0.col0 + ( - col1 * - cor0.col2 ) + col0 * col0 DIV - col0 AS col2 FROM tab1 cor0
----
1088
1398
442

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - cor0.col0 + ( - col1 * - cor0.col2 ) + col0 * col0 / - col0 AS col2 FROM tab1 cor0
----
1088
1398
442

query I rowsort
SELECT - tab1.col1 + col1 * col0 AS col0 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT col1 / col2 AS col1 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * 73 FROM tab1 AS cor0
----
3942
4161
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + col1 * + ( col2 ) * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + - 13 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT ALL - - cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 38 + col0 AS col2 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT + + col1 * col0 * col1 + 77 - col2 * cor0.col1 * 83 FROM tab1 AS cor0
----
-114427
-40833
-89987

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL 94 AS col2 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ( col0 ) + + col0 + + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - ( - 62 ) AS col1 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

query I rowsort
SELECT - 96 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT - 48 + col0 FROM tab0 AS cor0
----
-13
-24
41

query I rowsort
SELECT + ( 59 ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 05f41d0d3fd0b5c29af79ab9209cab27

query I rowsort
SELECT + 78 + + col1 * ( col1 ) FROM tab1 cor0
----
178
247
754

query I rowsort
SELECT + + ( col0 ) + ( - cor0.col2 ) AS col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT + - col2 DIV + cor0.col0 + 22 FROM tab0 cor0
----
21
22

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT + - col2 / + cor0.col0 + 22 FROM tab0 cor0
----
21
22

query I rowsort
SELECT ALL + - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + cor0.col2 * - col2 * + col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT col0 + + 84 DIV + col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6446
SELECT col0 + + 84 / + col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT ALL + cor0.col0 * - 28 * + col2 FROM tab0 cor0
----
-204344
-22176
-980

query I rowsort
SELECT tab0.col0 + col2 * - col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT DISTINCT - col1 * - CAST( col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - col1 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col2 * ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col1 + 72 AS col0 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT + + col2 * + ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6453
SELECT - col1 * CAST( NULL AS DECIMAL ) * ( - col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 70 * col2 + 40 FROM tab1
----
3820
4030
6760

query I rowsort
SELECT DISTINCT 70 * col0 FROM tab2
----
490
5460
5530

query I rowsort
SELECT - 96 + col2 FROM tab0
----
-14
-63
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6457
SELECT col0 DIV - col1 AS col2 FROM tab2 cor0
----
-1
-4
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col2 * + col2 * - col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT - 8 FROM tab2, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT col2 * 21 + col2 AS col2 FROM tab1
----
1188
1254
2112

query I rowsort
SELECT DISTINCT col2 * + 34 + col2 * col2 AS col2 FROM tab0
----
2211
35
9512

query I rowsort
SELECT ALL col2 * ( col2 * col0 ) FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL + col2 * ( - 58 * col1 ) AS col2 FROM tab1 cor0
----
-33060
-72384
-81432

query I rowsort
SELECT + col1 * col0 + 96 AS col0 FROM tab2 cor0
----
1439
313
4698

query I rowsort
SELECT + + col1 + - 88 AS col2 FROM tab1 AS cor0
----
-62
-75
-78

query I rowsort
SELECT ALL ( 81 ) * + col2 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col2 * - 23 * col1 + - col0 + - col2 FROM tab1 AS cor0
----
-13231
-28880
-32349

query I rowsort
SELECT DISTINCT + 69 * + col0 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT 53 + - col2 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT DISTINCT + + ( 39 ) * + col1 FROM tab2 AS cor0
----
1209
2301
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * + 27 + - col1 * - col0 * col0 - - col1 col0 FROM tab2 AS cor0
----
104737
173
357638

query I rowsort
SELECT ALL ( + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + ( col1 ) * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 30 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT cor0.col0 * + col1 + col0 * ( col0 ) FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT - col2 - ( + ( - col1 ) ) AS col2 FROM tab1
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6480
SELECT + CAST( NULL AS SIGNED ) * 53 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT tab2.col1 * 88 + + col2 FROM tab2
----
1534
2755
5218

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT + cor0.col1 DIV - col0 + col0 + + cor0.col0 FROM tab1 cor0
----
-2
128
160

skipif mysql # not compatible
query I rowsort label-6482
SELECT + cor0.col1 / - col0 + col0 + + cor0.col0 FROM tab1 cor0
----
-2
128
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6483
SELECT DISTINCT + ( - tab0.col0 ) * col0 + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT 36 + col2 AS col0 FROM tab1
----
132
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT DISTINCT col0 * 82 DIV - col2 FROM tab0
----
-2870
-59
-89

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT col0 * 82 / - col2 FROM tab0
----
-2870
-59
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT - CAST( col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6486
SELECT - CAST ( col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + 57 + col2 * + col0 FROM tab1 AS cor0
----
219
3705
7737

query I rowsort
SELECT + - ( - col0 ) * + col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL 12 * col0 AS col2 FROM tab1 cor0
----
36
768
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT DISTINCT + - col1 * col0 DIV + 5 - + col1 FROM tab1 AS cor0
----
-138
-221
-41

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + - col1 * col0 / + 5 - + col1 FROM tab1 AS cor0
----
-138
-221
-41

query I rowsort
SELECT cor0.col0 + col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 94 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT ALL col1 * col1 + + col0 DIV + cor0.col0 - - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
7394
8281
9408

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL col1 * col1 + + col0 / + cor0.col0 - - col1 / - cor0.col0 FROM tab0 AS cor0
----
7394
8281
9408

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col0 - 44 AS col2 FROM tab0 AS cor0
----
-133
-68
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 31 + + 55 col0 FROM tab2 AS cor0
----
-1774
-472
-906

query I rowsort
SELECT - col0 * + 60 + - 84 FROM tab0 AS cor0
----
-1524
-2184
-5424

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT - 20 DIV - col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6498
SELECT - 20 / - col0 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT col2 * col0 + + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ( col1 ) + + col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - col1 + tab1.col2 * - 57 FROM tab1
----
-3104
-3259
-5485

query I rowsort
SELECT - col0 + col0 * - col1 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + col0 + col1 * + 92 AS col0 FROM tab0 cor0
----
7936
8461
8959

query I rowsort
SELECT - col1 - col2 * 31 FROM tab0 AS cor0
----
-1109
-128
-2633

query I rowsort
SELECT + col0 * ( - tab0.col0 + tab0.col1 * + ( ( - col2 ) ) ) AS col1 FROM tab0
----
-4620
-672039
-68688

query I rowsort
SELECT ALL + - col0 * 71 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT + col0 * + ( tab2.col2 ) * - col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col0 * + 88 * 80 AS col0 FROM tab2
----
49280
549120
556160

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2, tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - tab2.col1 * + col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + cor0.col1 - col2 FROM tab0 AS cor0
----
53
9
96

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

query I rowsort
SELECT + 80 AS col1 FROM tab0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT DISTINCT ( col2 ) + - CAST( - ( col0 ) AS SIGNED ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT ( col2 ) + - CAST ( - ( col0 ) AS INTEGER ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT - col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

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

query I rowsort
SELECT ALL - 11 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT - col2 DIV + 56 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT - col2 / + 56 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + ( col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col2 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT 83 - - col1 AS col1 FROM tab0
----
169
174
180

query I rowsort
SELECT - 49 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL col1 + 25 AS col0 FROM tab1 AS cor0
----
35
38
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT CAST( 75 AS SIGNED ) AS col0 FROM tab2 cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-6526
SELECT CAST ( 75 AS INTEGER ) AS col0 FROM tab2 cor0
----
75
75
75

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

query I rowsort
SELECT ALL - - 90 + + 39 FROM tab2 AS cor0
----
129
129
129

query I rowsort
SELECT - 40 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT - col0 * - 55 AS col1 FROM tab1
----
165
3520
4400

query I rowsort
SELECT + col0 + 4 * col2 FROM tab2
----
115
182
231

query I rowsort
SELECT ALL - + 34 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT ALL 20 * + col0 DIV col0 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 20 * + col0 / col0 FROM tab2
----
20
20
20

query I rowsort
SELECT + tab0.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col0 * + col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 * tab0.col2 AS col1 FROM tab0
----
4558
819
9312

query I rowsort
SELECT ALL col1 * + tab0.col2 + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT tab1.col1 * + 47 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
1222
470
611

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT + col2 DIV col1 + col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-6539
SELECT + col2 / col1 + col0 FROM tab2
----
7
78
81

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - 69 FROM tab1 cor0
----
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT DISTINCT - + col1 * 4 DIV col1 AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - + col1 * 4 / col1 AS col2 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT tab1.col2 * + tab1.col1 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT ( + col0 ) + col1 DIV - 85 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6544
SELECT ( + col0 ) + col1 / - 85 FROM tab1
----
3
64
80

query I rowsort
SELECT 86 * col1 AS col0 FROM tab2 AS cor0
----
1462
2666
5074

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

query I rowsort
SELECT ALL + ( + cor0.col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col0 + col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6549
SELECT DISTINCT + + col1 + col2 * CAST( - 46 AS SIGNED ) FROM tab2 AS cor0
----
-1137
-1211
-1731

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + + col1 + col2 * CAST ( - 46 AS INTEGER ) FROM tab2 AS cor0
----
-1137
-1211
-1731

query I rowsort
SELECT ALL col1 * cor0.col2 + ( col0 * col1 ) FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + col2 + - col0 - + tab0.col1 FROM tab0
----
-131
-77
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT col2 * col0 DIV 59 + col0 * col2 AS col0 FROM tab1
----
164
3709
7810

skipif mysql # not compatible
query I rowsort label-6552
SELECT col2 * col0 / 59 + col0 * col2 AS col0 FROM tab1
----
164
3709
7810

query I rowsort
SELECT col1 - 44 * tab1.col0 AS col0 FROM tab1
----
-106
-2806
-3507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6554
SELECT DISTINCT - col2 * CAST( col0 AS SIGNED ) + tab2.col0 AS col2 FROM tab2
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - col2 * CAST ( col0 AS INTEGER ) + tab2.col0 AS col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col2 * ( + tab1.col0 ) + col2 + - col1 AS col2 FROM tab1
----
190
3695
7763

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * + CAST ( - col1 AS REAL ) + col2 * tab2.col1 + - col2 * + col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 * + col1 + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL - 34 FROM tab2, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL tab0.col0 * + col2 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT col2 + 1 * - 13 FROM tab0 AS cor0
----
-12
20
69

query I rowsort
SELECT + col1 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 * cor0.col0 - + 90 FROM tab0 cor0
----
1974
3305
8009

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

query I rowsort
SELECT + cor0.col0 + 49 FROM tab1 AS cor0
----
113
129
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + ( + 92 ) * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-5
2950
7453

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6567
SELECT + - CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6567
SELECT + - CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 16 * 25 AS col0 FROM tab2 cor0
----
-400

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT ALL - + col2 - ( col1 ) * + CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-16320
-36558
-5757

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - + col2 - ( col1 ) * + CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT ALL + 17 - col0 AS col0 FROM tab0 AS cor0
----
-18
-7
-72

query I rowsort
SELECT DISTINCT - + 25 AS col0 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT - 10 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-860
-910
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT ALL - CAST( col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL - ( + col0 ) DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - ( + col0 ) / - cor0.col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - ( col0 ) * - cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL - col1 DIV CAST( - 74 AS SIGNED ) + + col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - col1 / CAST ( - 74 AS INTEGER ) + + col0 AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 82 col0 FROM tab2
----
108
109
120

query I rowsort
SELECT 22 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT - col0 * 86 + + 7 * - col1 AS col0 FROM tab2
----
-6913
-7121
-819

query I rowsort
SELECT DISTINCT 52 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT ALL + - col1 + - 88 + col2 FROM tab1 AS cor0
----
-41
-5
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - + 44 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT ALL + col1 * CAST( - col0 AS SIGNED ) FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + col1 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - col1 + 77 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT ALL col2 * - 4 + - col2 * col2 * - 50 FROM tab1 AS cor0
----
145584
162222
460416

query I rowsort
SELECT DISTINCT - - cor0.col1 + 46 AS col2 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT - 15 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

query I rowsort
SELECT + col2 * + col0 * - ( + col0 ) + + cor0.col0 AS col0 FROM tab2 cor0
----
-1316
-158106
-237079

query I rowsort
SELECT - col2 * 57 * + col2 + + ( tab0.col1 ) + + tab0.col2 FROM tab0
----
-383095
-61954
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT col0 + 35 * col1 * col2 + ( - col0 * col0 ) AS col1 FROM tab1
----
15918
37360
49134

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) + col1 * + col0 * - col0 FROM tab0
----
-118826
-49569
-720893

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT DISTINCT col0 + + col2 DIV col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT col0 + + col2 / col1 FROM tab1
----
5
69
87

query I rowsort
SELECT + + 72 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - ( col2 ) + + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + + col2 * - ( + col2 ) col2 FROM tab2 AS cor0
----
-1383
-615
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT col2 DIV col1 + - 10 FROM tab2 AS cor0
----
-10
-10
-8

skipif mysql # not compatible
query I rowsort label-6604
SELECT col2 / col1 + - 10 FROM tab2 AS cor0
----
-10
-10
-8

query I rowsort
SELECT ALL + + 56 AS col1 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - 68 * cor0.col1 * - col0 + cor0.col2 FROM tab2 AS cor0
----
14783
312962
91362

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT ALL + + cor0.col0 + + col2 DIV 75 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + + cor0.col0 + + col2 / 75 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 76 * - col1 FROM tab1
----
-1976
-760
-988

query I rowsort
SELECT - 99 * - 95 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ca6c60948c69b915ee5123e1f349b03e

query I rowsort
SELECT ALL cor0.col2 - + 57 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c1d8c77b0e6bc9ad17ff454238300856

query I rowsort
SELECT - 21 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT ALL col1 - col0 DIV CAST( + 27 AS SIGNED ) AS col0 FROM tab0
----
86
88
96

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL col1 - col0 / CAST ( + 27 AS INTEGER ) AS col0 FROM tab0
----
86
88
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6613
SELECT col2 + + CAST( col2 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-6613
SELECT col2 + + CAST ( col2 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - - col0 * - col1 + 30 * col1 FROM tab0 AS cor0
----
-485
-5369
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 5 col1 FROM tab1 cor0
----
-15
-320
-400

query I rowsort
SELECT DISTINCT - col1 * + 56 + col0 AS col1 FROM tab1 cor0
----
-1453
-496
-648

query I rowsort
SELECT - col2 * - col0 * col1 AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL cor0.col1 * + ( - col2 ) * - cor0.col0 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT col0 * 73 + + 76 FROM tab0 cor0
----
1828
2631
6573

query I rowsort
SELECT - col2 * 69 + + col0 FROM tab1 AS cor0
----
-3723
-3869
-6544

query I rowsort
SELECT - cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - + 86 * 83 FROM tab0 AS cor0
----
-7138
-7138
-7138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 90 col1 FROM tab2 AS cor0
----
1530
2790
5310

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( cor0.col0 ) * - col2 col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 44 + + col1 FROM tab0 cor0
----
42
47
53

query I rowsort
SELECT 99 * col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT + 66 * - col2 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT + col2 * cor0.col1 * - col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col2 * 65 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT + ( - col2 ) * - col0 * - ( + col2 * + col1 ) AS col0 FROM tab1 AS cor0
----
-2079360
-227448
-9584640

query I rowsort
SELECT + 25 + + 47 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT + col0 * cor0.col1 + + 0 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT + col1 DIV + col1 + cor0.col2 * - cor0.col0 * - cor0.col1 - 80 col0 FROM tab0 AS cor0
----
3316
664039
68033

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6634
SELECT + col1 / + col1 + cor0.col2 * - cor0.col0 * - cor0.col1 - 80 col0 FROM tab0 AS cor0
----
3316
664039
68033

onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT - - col0 + col0 DIV - col0 - - col1 DIV - col1 FROM tab0 AS cor0
----
22
33
87

skipif mysql # not compatible
query I rowsort label-6635
SELECT - - col0 + col0 / - col0 - - col1 / - col1 FROM tab0 AS cor0
----
22
33
87

query I rowsort
SELECT cor0.col1 * + 41 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c4ac02dfdd20f5175849c68fd21eab29

query I rowsort
SELECT ALL + tab2.col1 + 60 AS col0 FROM tab2
----
119
77
91

query I rowsort
SELECT ALL + tab2.col1 * - ( - tab2.col0 * + col2 + + 27 * col2 ) AS col1 FROM tab2
----
-16740
33592
78234

query I rowsort
SELECT DISTINCT ( tab0.col0 ) * - tab0.col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * + cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 * col2 * ( col2 ) + - col1 * ( col0 ) * - col0 FROM tab2 AS cor0
----
130645
24118
398840

query I rowsort
SELECT DISTINCT 5 * col1 * + 64 AS col0 FROM tab0 AS cor0
----
27520
29120
31040

query I rowsort
SELECT DISTINCT + + col2 * col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab0
----
83
83
83

query I rowsort
SELECT DISTINCT + col2 + + col1 * + ( + col2 ) FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + col2 - - col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT 41 * - col0 + col2 * + 98 * + col1 AS col0 FROM tab1
----
119024
137469
53236

query I rowsort
SELECT DISTINCT + 60 + col0 AS col2 FROM tab0 AS cor0
----
149
84
95

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

query I rowsort
SELECT ALL + - col2 * + col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6653
SELECT - - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT - - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 22 + col1 col1 FROM tab1
----
-105
-50
-69

query I rowsort
SELECT ALL + col1 * + col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL col0 * ( + col1 * + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - cor0.col1 * - 86 + - cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
15124
8188
8377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6658
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT + col1 + 49 + col1 DIV - col1 FROM tab1 cor0
----
58
61
74

skipif mysql # not compatible
query I rowsort label-6659
SELECT + col1 + 49 + col1 / - col1 FROM tab1 cor0
----
58
61
74

query I rowsort
SELECT - col1 * 1 - - col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col0 * + col0 + - cor0.col2 * col0 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT DISTINCT + + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT ALL + + col1 * col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + + col1 * col2 / - cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6664
SELECT col0 * - CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6664
SELECT col0 * - CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT + col1 DIV col1 - - col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6665
SELECT + col1 / col1 - - col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - col2 * - ( col2 ) FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 18 col2 FROM tab1 AS cor0
----
-1152
-1440
-54

query I rowsort
SELECT + cor0.col2 + - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL col1 + + ( + col0 ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + 32 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col2 + cor0.col2 * 63 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) + - col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL ( + col1 ) + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 + col0 + - col0 * - 87 FROM tab0 cor0
----
2088
3045
7743

query I rowsort
SELECT ALL - ( + ( col1 ) ) + + 99 FROM tab0 AS cor0
----
13
2
8

query I rowsort
SELECT - 75 + col2 + + col0 FROM tab0 AS cor0
----
-18
-39
96

query I rowsort
SELECT cor0.col1 * col1 + + col0 + 85 FROM tab0 AS cor0
----
7505
8455
9529

query I rowsort
SELECT DISTINCT - 97 + 15 + col2 AS col1 FROM tab1 AS cor0
----
-25
-28
14

query I rowsort
SELECT - 41 * 60 + col1 * - col0 FROM tab1 cor0
----
-2538
-3100
-3500

query I rowsort
SELECT ALL + - ( - col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * col1 col0 FROM tab0 AS cor0
----
4472
4732
5044

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6682
SELECT ALL - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 * col0 * col0 - col2 AS col0 FROM tab2
----
106059
1492
358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT col2 * 46 + col1 - col2 DIV 78 AS col2 FROM tab2
----
1255
1273
1765

skipif mysql # not compatible
query I rowsort label-6684
SELECT col2 * 46 + col1 - col2 / 78 AS col2 FROM tab2
----
1255
1273
1765

query I rowsort
SELECT ALL + col1 * 66 + + col1 + col1 AS col0 FROM tab0
----
5848
6188
6596

query I rowsort
SELECT DISTINCT col0 + col2 * 30 FROM tab2
----
1219
817
858

query I rowsort
SELECT - + 38 AS col1 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - col2 + ( - cor0.col0 ) * - col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - + 22 + col1 * col0 FROM tab2 AS cor0
----
1321
195
4580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT ALL + - CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - 37 + + col2 * + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
1298
1467
617

query I rowsort
SELECT cor1.col0 * 15 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d29e38b716d3bd9e7602e9b4e42c7f8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT DISTINCT + 24 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + 24 / col0 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT col0 + 76 DIV col0 AS col2 FROM tab1 cor0
----
28
65
80

skipif mysql # not compatible
query I rowsort label-6696
SELECT col0 + 76 / col0 AS col2 FROM tab1 cor0
----
28
65
80

query I rowsort
SELECT ALL col0 * - col1 - col0 * + col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT + - col0 * col1 - + 43 * col0 FROM tab0 AS cor0
----
-11926
-3096
-4900

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT + col1 * + tab2.col2 - - col1 DIV - 42 AS col2 FROM tab2
----
1533
646
837

skipif mysql # not compatible
query I rowsort label-6700
SELECT + col1 * + tab2.col2 - - col1 / - 42 AS col2 FROM tab2
----
1533
646
837

query I rowsort
SELECT col0 + 21 AS col2 FROM tab1
----
101
24
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 89 * col1 + col2 col1 FROM tab0
----
7773
8272
8731

query I rowsort
SELECT col2 + + tab2.col0 + col1 AS col0 FROM tab2
----
134
163
65

query I rowsort
SELECT - col2 + + 5 + + 8 AS col0 FROM tab0
----
-20
-69
12

query I rowsort
SELECT + 28 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to aa496b97bc39e0803cfc554a93844d24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - ( + col0 ) ) * 21 + cor0.col0 col2 FROM tab0 cor0
----
-169990
-43320
-71260

query I rowsort
SELECT + col2 - - col1 * 49 FROM tab0 AS cor0
----
4247
4541
4754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6709
SELECT cor0.col0 + - CAST( + ( col1 ) AS SIGNED ) + ( + 66 ) AS col1 FROM tab0 AS cor0
----
4
4
64

skipif mysql # not compatible
query I rowsort label-6709
SELECT cor0.col0 + - CAST ( + ( col1 ) AS INTEGER ) + ( + 66 ) AS col1 FROM tab0 AS cor0
----
4
4
64

query I rowsort
SELECT ALL + col0 + col1 * 95 FROM tab0 AS cor0
----
8194
8734
9250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 col0 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

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

query I rowsort
SELECT col1 - - col1 * + 69 * cor0.col0 FROM tab0 AS cor0
----
142502
234352
558922

query I rowsort
SELECT col2 * col2 + 86 * + 79 AS col2 FROM tab1 AS cor0
----
10043
16010
9710

query I rowsort
SELECT - + cor0.col2 + col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 33 + + col0 FROM tab2 AS cor0
----
111
112
40

query I rowsort
SELECT col0 * col2 + + 25 AS col2 FROM tab1 AS cor0
----
187
3673
7705

query I rowsort
SELECT + col2 * ( - cor0.col1 ) + - col1 * cor0.col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

query I rowsort
SELECT - - 37 + - 68 AS col2 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + - ( - cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 73 * + 43 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 86a2b27a07e3efcb209306c5fa7756e1

query I rowsort
SELECT 53 * - col2 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6724
SELECT - cor0.col1 + col2 * - cor0.col2 * - CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
119795
32480
75790

skipif mysql # not compatible
query I rowsort label-6724
SELECT - cor0.col1 + col2 * - cor0.col2 * - CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
119795
32480
75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT DISTINCT - tab0.col1 + tab0.col0 DIV - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - tab0.col1 + tab0.col0 / - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col0 + - 38 + - col0 FROM tab1
----
-166
-198
-44

skipif mysql # not compatible
query I rowsort
SELECT - 0 + - ( - col0 + - CAST ( col2 AS REAL ) ) FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT DISTINCT CAST( NULL AS SIGNED ) + 23 * col1 AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT + 78 * col1 * col0 FROM tab1 cor0
----
49920
6084
81120

query I rowsort
SELECT ALL col2 * + 77 FROM tab1
----
4158
4389
7392

query I rowsort
SELECT ALL - 46 + + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3825ae82eae23b36d626a808152851c9

query I rowsort
SELECT DISTINCT 0 + col2 * col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT DISTINCT - ( col2 ) DIV - cor0.col1 + col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - ( col2 ) / - cor0.col1 + col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL - + col2 * + col1 + + ( + col1 ) FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + 35 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
3043
3267
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - cor0.col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab2, tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + ( + col0 ) * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT ALL - 65 DIV col0 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - 65 / col0 AS col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + cor0.col0 + + 13 * tab2.col0 + + 1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to 465b3bb74d757b9b1c2cc8324db2090b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT col1 DIV col1 col1 FROM tab1
----
1
1
1

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

query I rowsort
SELECT 60 * + tab1.col0 AS col0 FROM tab1
----
180
3840
4800

query I rowsort
SELECT ALL 23 * col1 * col2 FROM tab0
----
171626
2231
65274

query I rowsort
SELECT col1 * col0 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
288
41017
83296

query I rowsort
SELECT ALL + col0 + col2 * ( + col2 * col2 ) - 81 FROM tab1
----
157386
185176
884735

query I rowsort
SELECT ALL + col2 * col1 * + tab2.col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + ( col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT DISTINCT - 48 DIV 15 + + col1 col2 FROM tab2 AS cor0
----
14
28
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - 48 / 15 + + col1 col2 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT - col1 * + col1 * + 30 FROM tab0
----
-221880
-248430
-282270

query I rowsort
SELECT + 0 * - col1 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6752
SELECT - - CAST( - 65 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65

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

query I rowsort
SELECT + col2 + 35 * col0 FROM tab0 AS cor0
----
1226
3197
873

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT col0 DIV + col1 - ( col1 ) AS col2 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-6754
SELECT col0 / + col1 - ( col1 ) AS col2 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT + tab0.col1 + col2 + tab0.col2 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT col2 - - col1 * + 49 FROM tab1
----
1328
547
733

query I rowsort
SELECT 81 * col2 AS col2 FROM tab1
----
4374
4617
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * col2 col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL cor0.col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT DISTINCT + - col1 DIV - 38 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + - col1 / - 38 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 * ( ( - col0 ) ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col1 + 69 AS col2 FROM tab0 cor0
----
155
160
166

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col1 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + - col2 * + ( ( col1 ) ) + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
-1512
-160212
-240160

query I rowsort
SELECT DISTINCT col0 + 29 FROM tab2 cor0
----
107
108
36

query I rowsort
SELECT ALL - col0 * ( + 34 ) FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) + + col0 * - col1 FROM tab1 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT 82 - col2 FROM tab1
----
-14
25
28

query I rowsort
SELECT - col0 * tab2.col2 + - tab2.col0 AS col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT + 68 + 97 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
8410
8895
9477

query I rowsort
SELECT - col2 + + col2 * - cor0.col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT 92 * cor0.col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT 7 - - cor0.col2 * col2 FROM tab2 cor0
----
1451
683
736

query I rowsort
SELECT + - col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 98 * + col2 FROM tab1 AS cor0
----
5292
5586
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 * col2 * cor0.col1 col1 FROM tab2 AS cor0
----
-16796
-21762
-39884

query I rowsort
SELECT DISTINCT + 5 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
5

query I rowsort
SELECT + + col2 - - col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - col2 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb

query I rowsort
SELECT + col2 + - cor0.col1 - col0 AS col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL + - col2 + col1 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT + 26 * cor0.col1 - col2 DIV cor0.col0 FROM tab0 AS cor0
----
2235
2366
2522

skipif mysql # not compatible
query I rowsort label-6786
SELECT + 26 * cor0.col1 - col2 / cor0.col0 FROM tab0 AS cor0
----
2235
2366
2522

query I rowsort
SELECT DISTINCT 90 * + col1 FROM tab0 AS cor0
----
7740
8190
8730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT ALL - 28 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - 28 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL ( + col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT ( - col0 ) * ( + 2 + - col0 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 85 - col0 FROM tab2 cor0
----
6
7
78

query I rowsort
SELECT ALL + cor0.col2 * + col2 + - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col2 * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT DISTINCT - 82 DIV - cor0.col0 col2 FROM tab2 AS cor0
----
1
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - 82 / - cor0.col0 col2 FROM tab2 AS cor0
----
1
11

query I rowsort
SELECT + - col2 * - col2 - col1 * col1 AS col1 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT + + col2 * - 37 AS col0 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT - cor0.col1 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col2 - col0 * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT + col2 * col2 * - col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + + 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 39 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT ALL + col1 * + col1 * ( - col0 ) + - col2 FROM tab1
----
-13616
-2082
-6457

query I rowsort
SELECT ALL 93 * + 39 + + col0 AS col1 FROM tab0 AS cor0
----
3651
3662
3716

onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT DISTINCT + ( + 44 ) DIV col0 + ( - col0 ) * col2 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5109
52728

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + ( + 44 ) / col0 + ( - col0 ) * col2 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5109
52728

query I rowsort
SELECT - + ( cor0.col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 * - col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT ALL + 84 + col1 AS col1 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT ALL - 13 FROM tab2, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL - + 55 * col2 FROM tab2 cor0
----
-1430
-1485
-2090

query I rowsort
SELECT - col2 * - tab2.col1 + col2 AS col0 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT DISTINCT col0 DIV 83 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT col0 / 83 AS col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * - col2 ) col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT ALL 86 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL 86 / col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - ( 87 ) FROM tab1 cor0
----
-87

query I rowsort
SELECT - + col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT ALL - 51 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - 51 / col1 FROM tab0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT - col0 * 7 AS col2 FROM tab2 AS cor0
----
-49
-546
-553

query I rowsort
SELECT ALL + col0 - cor0.col1 AS col0 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - ( col1 ) + cor0.col0 col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT ALL - col1 + 79 + col2 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
119672
51096
5907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT DISTINCT col0 + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT col0 + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + - cor0.col1 + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + 69 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT cor0.col2 * 55 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
1815
4510
55

query I rowsort
SELECT - col1 * + 40 + col2 AS col2 FROM tab1 AS cor0
----
-343
-424
-986

query I rowsort
SELECT - col2 * col1 + + col0 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT ALL - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - ( - col0 ) * col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + 62 * col2 - col2 FROM tab0 cor0
----
2013
5002
61

query I rowsort
SELECT 21 + - col1 AS col1 FROM tab2 AS cor0
----
-10
-38
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6835
SELECT CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6835
SELECT CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT ALL + 82 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 82 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-27

query I rowsort
SELECT col2 * - 33 FROM tab2 AS cor0
----
-1254
-858
-891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6839
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT + col2 + - col2 DIV + col1 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-6840
SELECT + col2 + - col2 / + col1 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT - col0 + col0 * - ( + col1 ) FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT + + col1 * ( 72 ) FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT + - col2 * - 49 AS col2 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT DISTINCT - col0 * 21 * cor0.col1 FROM tab1 AS cor0
----
-13440
-1638
-21840

query I rowsort
SELECT DISTINCT + 16 * cor0.col0 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT ALL - col1 * - 20 * + cor0.col2 FROM tab0 AS cor0
----
149240
1940
56760

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT + cor0.col0 DIV 30 FROM tab1 cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6848
SELECT + cor0.col0 / 30 FROM tab1 cor0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT tab2.col1 * 15 * - col1 FROM tab2
----
-14415
-4335
-52215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT - CAST( col1 AS SIGNED ) * - tab2.col2 + - col0 * col0 + col2 AS col2 FROM tab2
----
-4524
-5557
815

skipif mysql # not compatible
query I rowsort label-6853
SELECT - CAST ( col1 AS INTEGER ) * - tab2.col2 + - col0 * col0 + col2 AS col2 FROM tab2
----
-4524
-5557
815

query I rowsort
SELECT + 75 + + cor0.col0 FROM tab2 cor0
----
153
154
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab0.col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col2 * col0 + + 20 FROM tab0 AS cor0
----
55
7318
812

query I rowsort
SELECT - col2 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + 85 + - col1 AS col0 FROM tab1 AS cor0
----
59
72
75

query I rowsort
SELECT ALL col2 * + col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT cor0.col2 + 2 * col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ( - col0 ) + cor0.col1 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT col0 DIV col0 + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6866
SELECT col0 / col0 + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT + col2 - + ( col0 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT 86 + col1 AS col2 FROM tab0
----
172
177
183

query I rowsort
SELECT 41 + + ( - col1 ) * col0 FROM tab1
----
-37
-599
-999

query I rowsort
SELECT ALL - ( - col0 ) * + col2 + - ( ( + col1 ) ) AS col0 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT DISTINCT - + col1 + cor0.col2 DIV - 64 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - + col1 + cor0.col2 / - 64 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT ALL - + col0 * col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - ( col0 ) * col2 + col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-1580
2652
35

query I rowsort
SELECT + col1 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT ( col0 ) + col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 71 * col2 + - col0 + col1 FROM tab2
----
1827
1941
2636

query I rowsort
SELECT - 75 * + col1 AS col2 FROM tab1
----
-1950
-750
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT 86 DIV col0 AS col2 FROM tab1
----
1
1
28

skipif mysql # not compatible
query I rowsort label-6879
SELECT 86 / col0 AS col2 FROM tab1
----
1
1
28

query I rowsort
SELECT - 93 * 27 AS col1 FROM tab2
----
-2511
-2511
-2511

query I rowsort
SELECT ALL col2 * + 27 + col1 AS col0 FROM tab1 AS cor0
----
1484
1549
2605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT ALL + col1 + CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 + - col1 + - 46 * + col0 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT ALL + 13 FROM tab2, tab1, tab1 cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT - + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL 60 * 85 FROM tab2, tab2 AS cor0
----
9 values hashing to 59fb89f6f1203718fd8e0cb1b2131e31

query I rowsort
SELECT - tab2.col0 * + col2 * + col0 + tab2.col0 AS col0 FROM tab2
----
-1316
-158106
-237079

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT - col0 + - 9 DIV 79 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6888
SELECT - col0 + - 9 / 79 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT cor0.col0 * - col1 * 51 AS col1 FROM tab2 AS cor0
----
-11067
-234702
-68493

query I rowsort
SELECT ALL - 74 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT - + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT ALL 64 DIV 32 - + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL 64 / 32 - + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097

query I rowsort
SELECT ALL - ( col0 ) * - col2 + - col2 AS col1 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT DISTINCT - cor0.col1 * col0 - + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - cor0.col1 * col0 - + col0 / col0 AS col0 FROM tab2 AS cor0
----
-1344
-218
-4603

query I rowsort
SELECT - + ( 93 ) * - cor0.col2 AS col2 FROM tab1 cor0
----
5022
5301
8928

query I rowsort
SELECT ( 70 ) FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT 39 * + col2 AS col0 FROM tab1 cor0
----
2106
2223
3744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT ALL + + 82 DIV + col0 + + cor0.col2 + 32 AS col2 FROM tab0 AS cor0
----
114
35
68

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + + 82 / + col0 + + cor0.col2 + 32 AS col2 FROM tab0 AS cor0
----
114
35
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT ALL + 13 DIV - ( col0 ) + col2 FROM tab1 AS cor0
----
50
57
96

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 13 / - ( col0 ) + col2 FROM tab1 AS cor0
----
50
57
96

query I rowsort
SELECT DISTINCT - + ( - 90 ) - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1444
-556
-747

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT 18 * + col1 + + 0 DIV col2 FROM tab1
----
180
234
468

skipif mysql # not compatible
query I rowsort label-6902
SELECT 18 * + col1 + + 0 / col2 FROM tab1
----
180
234
468

query I rowsort
SELECT ALL + col0 * - col0 + - col1 + col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col1 * cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL - 83 + + col1 AS col2 FROM tab1 AS cor0
----
-57
-70
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT + + col1 DIV + col1 + col2 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6906
SELECT + + col1 / + col1 + col2 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + 33 * + col1 * + ( col1 ) + col0 * 21 + - col2 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-102880
26757
63783

query I rowsort
SELECT ALL 55 * col0 + - 2 FROM tab1 AS cor0
----
163
3518
4398

query I rowsort
SELECT ALL + - cor0.col0 * 76 + - 72 FROM tab1 AS cor0
----
-300
-4936
-6152

query I rowsort
SELECT - col1 * 84 * - col0 FROM tab1 cor0
----
53760
6552
87360

query I rowsort
SELECT ALL + 83 + - col0 FROM tab2
----
4
5
76

query I rowsort
SELECT - + col1 * - col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - col0 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT + ( - col2 ) DIV + 38 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT + ( - col2 ) / + 38 AS col0 FROM tab2 AS cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT + tab1.col2 * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + col1 * + 28 FROM tab1 AS cor0
----
-280
-364
-728

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT + ( col1 ) * + col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( + col0 ) col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - col2 * - 12 * col2 + + 83 + - col0 AS col0 FROM tab1
----
110595
35072
39007

query I rowsort
SELECT 11 + col2 FROM tab2
----
37
38
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT DISTINCT col2 + + cor0.col2 DIV - 67 AS col2 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT col2 + + cor0.col2 / - 67 AS col2 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT ALL 41 * + col2 AS col0 FROM tab1 cor0
----
2214
2337
3936

query I rowsort
SELECT - 26 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT - - col2 * + col0 - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT - col0 + - ( col1 ) DIV col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-6931
SELECT - col0 + - ( col1 ) / col0 FROM tab1 AS cor0
----
-11
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT ALL + tab0.col0 - col2 DIV 21 AS col2 FROM tab0
----
23
35
86

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + tab0.col0 - col2 / 21 AS col2 FROM tab0
----
23
35
86

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
10

query I rowsort
SELECT + - cor0.col0 * - 37 + 72 FROM tab2 AS cor0
----
2958
2995
331

query I rowsort
SELECT - - col1 + col1 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT col0 * 31 DIV - 40 + col2 AS col1 FROM tab0 AS cor0
----
-26
14
15

skipif mysql # not compatible
query I rowsort label-6937
SELECT col0 * 31 / - 40 + col2 AS col1 FROM tab0 AS cor0
----
-26
14
15

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + + cor0.col1 * - col2 * col0 - + 27 AS col1 FROM tab0 AS cor0
----
-3422
-664145
-68139

query I rowsort
SELECT col2 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - - col0 * + col0 * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ( col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col0 * - 63 AS col2 FROM tab1
----
-189
-4032
-5040

query I rowsort
SELECT tab0.col1 * + ( - col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 * + ( col0 ) AS col2 FROM tab0
----
35
7298
792

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT DISTINCT - col2 DIV + col1 AS col1 FROM tab2 WHERE ( col1 ) NOT IN ( - col0 )
----
-2
0

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - col2 / + col1 AS col1 FROM tab2 WHERE ( col1 ) NOT IN ( - col0 )
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6950
SELECT DISTINCT col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col2 * cor0.col1 col1 FROM tab1, tab1 AS cor0
----
1261
1430
580

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

query I rowsort
SELECT + col2 * - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT col1 DIV + col0 + + col0 col0 FROM tab2
----
11
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6954
SELECT col1 / + col0 + + col0 col0 FROM tab2
----
11
78
79

query I rowsort
SELECT - col1 * tab0.col1 + - col1 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * - tab0.col1 + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + + col2 * col2 * tab1.col0 AS col0 FROM tab1
----
208000
737360
8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT + col1 DIV col0 - - col1 * tab2.col2 FROM tab2
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-6958
SELECT + col1 / col0 - - col1 * tab2.col2 FROM tab2
----
1534
646
841

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 AS col2 FROM tab1
----
2942
3259
9229

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT - col2 * tab0.col0 DIV - col0 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6961
SELECT - col2 * tab0.col0 / - col0 AS col2 FROM tab0
----
1
33
82

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT ALL col0 DIV col1 col2 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL col0 / col1 col2 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT ALL - tab0.col0 DIV col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - tab0.col0 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * col0 + + col0 * col0 + col0 FROM tab0
----
16109
2664
4655

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

query I rowsort
SELECT DISTINCT - col1 + col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT ALL - cor0.col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - cor0.col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 * + col1 col2 FROM tab0 AS cor0
----
-10234
-15743
-9506

query I rowsort
SELECT ALL col2 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT col2 * - col2 + - col2 AS col1 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + col2 * - cor0.col0 * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col0 * col2 + + cor0.col0 * cor0.col1 AS col2 FROM tab0 cor0
----
15397
2856
3430

query I rowsort
SELECT ALL cor0.col2 * + col0 + col2 * + col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT - + col0 * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT DISTINCT - col1 DIV - col0 AS col1 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - col1 / - col0 AS col1 FROM tab2 cor0
----
0
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT - col2 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6978
SELECT - col2 + col1 / col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col1 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT 26 + + tab1.col0 DIV 4 FROM tab1
----
26
42
46

skipif mysql # not compatible
query I rowsort label-6980
SELECT 26 + + tab1.col0 / 4 FROM tab1
----
26
42
46

query I rowsort
SELECT col1 * - col1 + col1 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + col0 + + 51 AS col2 FROM tab0 AS cor0
----
140
75
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6984
SELECT - - col2 DIV 76 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT - - col2 / 76 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + col1 * + col2 + col1 AS col2 FROM tab0 cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT DISTINCT + col2 DIV cor0.col0 col0 FROM tab0 cor0
----
0
1

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

query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + + col2 * + 56 FROM tab1 AS cor0
----
3024
3192
5376

onlyif mysql # use DIV operator for integer division
query I rowsort label-6989
SELECT col2 + col2 * - col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-6989
SELECT col2 + col2 * - col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + + col2 - + tab0.col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col0 * + col0 * + col1 AS col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col2 * - col1 - + tab2.col1 * tab2.col0 AS col2 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT + col1 * + tab0.col0 * col0 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col1 col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT - tab0.col0 + - col0 DIV + col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6996
SELECT - tab0.col0 + - col0 / + col1 FROM tab0
----
-24
-35
-89

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT + col0 DIV col1 + col1 * + col1 * col1 AS col0 FROM tab2
----
205380
29791
4917

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col0 / col1 + col1 * + col1 * col1 AS col0 FROM tab2
----
205380
29791
4917

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col0 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col0 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - col2 * col1 * 38 + col0 * col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-25947
26486
61360

query I rowsort
SELECT ALL - + col1 - + col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col1 + tab0.col0 * - col2 AS col2 FROM tab0
----
6518
892
9277

query I rowsort
SELECT ALL + - 86 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + - col0 + + cor0.col2 + - col1 * + cor0.col1 * col0 FROM tab1 cor0
----
-13504
-1977
-6407

onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT + cor0.col0 * - col1 + + 80 DIV + col0 + col1 FROM tab2 AS cor0
----
-1325
-175
-4542

skipif mysql # not compatible
query I rowsort label-7010
SELECT + cor0.col0 * - col1 + + 80 / + col0 + col1 FROM tab2 AS cor0
----
-1325
-175
-4542

query I rowsort
SELECT col0 * + 36 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
12096
3024
5553

query I rowsort
SELECT + 9 + - col2 * col1 FROM tab2
----
-1525
-637
-828

query I rowsort
SELECT 53 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL - col0 * - 29 + - col1 FROM tab2 AS cor0
----
172
2203
2274

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2, tab2 AS cor0
----
49

query I rowsort
SELECT + 11 + - col2 AS col0 FROM tab0 cor0
----
-22
-71
10

query I rowsort
SELECT 89 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab2 cor0, tab1 cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT DISTINCT tab2.col0 DIV tab2.col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT tab2.col0 / tab2.col0 FROM tab2
----
1

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + - col0 * - col2 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - 62 AS col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - 0 * - col2 * col1 + col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT DISTINCT - col1 + - col1 DIV + col1 AS col1 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - col1 + - col1 / + col1 AS col1 FROM tab2
----
-18
-32
-60

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

query I rowsort
SELECT 14 AS col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT DISTINCT 53 * - col2 FROM tab0
----
-1749
-4346
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT DISTINCT + 47 DIV + tab2.col0 AS col0 FROM tab2
----
0
6

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + 47 / + tab2.col0 AS col0 FROM tab2
----
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7030
SELECT col0 * - col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + + tab2.col0 col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT DISTINCT tab0.col1 DIV col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT tab0.col1 / col0 AS col1 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL + 93 + col2 * cor0.col2 FROM tab1 AS cor0
----
3009
3342
9309

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT + cor0.col1 DIV + col0 + - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
60
630

skipif mysql # not compatible
query I rowsort label-7034
SELECT + cor0.col1 / + col0 + - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
60
630

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT - col1 * col2 + col1 * - col1 * - col0 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
174667
329219
729548

skipif mysql # not compatible
query I rowsort label-7036
SELECT - col1 * col2 + col1 * - col1 * - col0 + col1 / col1 AS col0 FROM tab0 AS cor0
----
174667
329219
729548

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab1, tab2, tab0 AS cor0
----
-20

query I rowsort
SELECT + 90 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT col2 - - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col1 + + col1 - col0 * col1 FROM tab0 AS cor0
----
-1892
-3201
-7917

query I rowsort
SELECT - 65 + col2 AS col1 FROM tab2
----
-27
-38
-39

query I rowsort
SELECT + col1 * - tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * col2 col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT col2 * + col1 + - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT tab1.col1 * - tab1.col0 + + col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL col2 + - col1 * col1 * + col0 AS col0 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT + - col2 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * 7 FROM tab1 AS cor0
----
182
70
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT col1 * - col1 + col2 DIV + col1 col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7049
SELECT col1 * - col1 + col2 / + col1 col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * + 61 AS col2 FROM tab2 AS cor0
----
-427
-4758
-4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT - 44 + + cor0.col0 DIV col2 col1 FROM tab0 AS cor0
----
-43
-44
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7051
SELECT - 44 + + cor0.col0 / col2 col1 FROM tab0 AS cor0
----
-43
-44
-9

query I rowsort
SELECT + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT + col2 * col0 + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-7053
SELECT + col2 * col0 + col2 / + col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 49 * col1 * cor0.col0 + - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
101136
166355
396851

query I rowsort
SELECT DISTINCT 58 * col1 * - col1 FROM tab2 AS cor0
----
-16762
-201898
-55738

query I rowsort
SELECT + 99 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT ALL + - col0 DIV - col0 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + - col0 / - col0 + col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT ALL 47 DIV col1 AS col2 FROM tab2
----
0
1
2

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

query I rowsort
SELECT - 5 * - col1 + + col0 FROM tab1
----
114
133
145

query I rowsort
SELECT DISTINCT 19 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT DISTINCT col2 * col2 * + 66 FROM tab2 cor0
----
44616
48114
95304

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 + - col2 col1 FROM tab2 AS cor0
----
-83
-84
-95

query I rowsort
SELECT DISTINCT + - col2 + + col2 * col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col0 * ( + col2 ) * + col1 + + col1 + ( - col0 ) FROM tab1
----
36426
4235
99773

query I rowsort
SELECT - col2 * 54 + + col1 FROM tab1
----
-2890
-3068
-5171

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) * + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT - col0 * - col1 + tab2.col2 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col1 + - 66 FROM tab0
----
20
25
31

query I rowsort
SELECT col1 * 79 AS col2 FROM tab1
----
1027
2054
790

query I rowsort
SELECT col2 + 80 * + col1 + + col1 AS col1 FROM tab2
----
1415
2538
4805

query I rowsort
SELECT ALL col0 * col2 * col2 + + tab0.col2 AS col0 FROM tab0
----
26169
36
598518

query I rowsort
SELECT + col1 * + 7 AS col1 FROM tab1
----
182
70
91

query I rowsort
SELECT DISTINCT col2 + + 47 FROM tab1
----
101
104
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT + col2 + col2 DIV - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7075
SELECT + col2 + col2 / - col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL - col0 * - 73 - col0 FROM tab1 AS cor0
----
216
4608
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab0, tab2 AS cor0
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7079
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col1 + 90 * + 5 AS col0 FROM tab1 cor0
----
-40510
-82750
216

query I rowsort
SELECT DISTINCT + + col1 * 36 AS col1 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT ALL - - 29 + col1 + col0 FROM tab2 AS cor0
----
125
166
67

query I rowsort
SELECT DISTINCT - col1 - - 97 * col0 * - cor0.col2 FROM tab0 AS cor0
----
-3492
-707997
-76910

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT DISTINCT - - 39 DIV col1 + col2 AS col2 FROM tab1 cor0
----
55
60
99

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - - 39 / col1 + col2 AS col2 FROM tab1 cor0
----
55
60
99

query I rowsort
SELECT ALL - 8 * + col2 - + col2 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT - ( 80 ) + col1 * cor0.col0 FROM tab0 cor0
----
1984
3315
8019

query I rowsort
SELECT col2 + 70 AS col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT ALL - col0 * 14 + cor0.col2 FROM tab2 AS cor0
----
-1066
-1068
-71

query I rowsort
SELECT col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col1 * 15 + col0 * + 70 * 43 + - col2 AS col2 FROM tab1 AS cor0
----
192733
240899
9366

query I rowsort
SELECT ALL - + col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - - ( col1 ) * col0 - + 67 AS col2 FROM tab0 AS cor0
----
1997
3328
8032

query I rowsort
SELECT ALL - col0 * ( col1 ) + - ( ( + col0 ) ) FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7095
SELECT - CAST( col2 AS SIGNED ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT DISTINCT col2 + col1 DIV 18 FROM tab1
----
55
57
96

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT col2 + col1 / 18 FROM tab1
----
55
57
96

query I rowsort
SELECT - col1 - + ( ( col0 ) ) * col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL col1 * 21 * 2 + col0 FROM tab1
----
1095
484
626

query I rowsort
SELECT col2 + + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - 30 * col2 FROM tab2 AS cor0
----
-1140
-780
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT DISTINCT - col1 DIV col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - col1 / col2 AS col1 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7104
SELECT - CAST( NULL AS SIGNED ) + 56 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + ( cor0.col0 ) + cor0.col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 83 ) + + col1 col1 FROM tab2 AS cor0
----
-24
-52
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT + 7 DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7108
SELECT + 7 / + col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 + - tab0.col1 * + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL 35 FROM tab0
----
35
35
35

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

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7113
SELECT + - col2 DIV - 67 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT + - col2 / - 67 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT cor0.col1