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 DISTINCT - 16 * - col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - - 28 * col2 + + col1 FROM tab1 AS cor0
----
1538
1606
2701
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + tab1.col0 + col2 col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL + col1 + - 63 FROM tab1 AS cor0
----
-37
-50
-53
query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL + cor0.col0 + - col0 * - 25 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT tab1.col2 * col2 * + 77 + col0 FROM tab1
----
224535
250237
709712
query I rowsort
SELECT DISTINCT + ( + 47 ) FROM tab1, tab0 AS cor0
----
47
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL 95 * col0 * col1 FROM tab1
----
60800
7410
98800
query I rowsort
SELECT + 53 AS col0 FROM tab0
----
53
53
53
query I rowsort
SELECT ALL ( - col2 ) * - tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-10
-13
-26
query I rowsort
SELECT + 30 * + col2 * + col2 FROM tab1 cor0
----
276480
87480
97470
query I rowsort
SELECT DISTINCT - ( - 12 ) * - cor0.col2 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT ALL + + ( - col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - col1 + - 2 + - col1 FROM tab0 AS cor0
----
-174
-184
-196
query I rowsort
SELECT ( col1 ) * col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) * col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 22 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT ALL + - cor1.col2 DIV 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3c67480122c507e50facac7cf0275b29
skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + - cor1.col2 / 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3c67480122c507e50facac7cf0275b29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + + col0 * + ( + col2 * - col2 ) col1 FROM tab0 AS cor0
----
-23298
-590974
62
query I rowsort
SELECT 7 + col1 AS col2 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT ALL + - 34 AS col1 FROM tab0 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + + col0 + cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL + 53 * col1 AS col0 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT ALL + ( + col1 ) * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 39 + col2 FROM tab2 cor0
----
65
66
77
query I rowsort
SELECT 32 + col2 AS col1 FROM tab2 AS cor0
----
58
59
70
query I rowsort
SELECT ALL + - col1 * col1 + 20 FROM tab0 AS cor0
----
-7376
-8261
-9389
onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT + col1 * - col0 DIV ( col0 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-32
SELECT + col1 * - col0 / ( col0 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - ( col0 ) + + 31 FROM tab0 AS cor0
----
120
55
66
query I rowsort
SELECT cor0.col0 * + col2 + 36 FROM tab2 AS cor0
----
2064
225
3038
query I rowsort
SELECT DISTINCT col0 * 70 FROM tab0
----
1680
2450
6230
query I rowsort
SELECT + col0 * - ( col2 ) * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - col0 + + 95 * 48 AS col0 FROM tab1 AS cor0
----
4480
4496
4557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-38
SELECT + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-38
SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * ( + 34 * col2 ) - 23 AS col2 FROM tab2 AS cor0
----
-23007
-24809
-49119
query I rowsort
SELECT - - col0 + col1 * ( col0 * cor0.col2 ) FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT 98 + - col1 * col0 FROM tab1
----
-542
-942
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-42
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-43
SELECT - + col0 * CAST( cor0.col0 AS SIGNED ) * - col0 - - CAST( + col0 AS SIGNED ) * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-12312
106533
42840
skipif mysql # not compatible
query I rowsort label-43
SELECT - + col0 * CAST ( cor0.col0 AS INTEGER ) * - col0 - - CAST ( + col0 AS INTEGER ) * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-12312
106533
42840
query I rowsort
SELECT + - 51 * - cor0.col1 + col0 FROM tab2 AS cor0
----
1588
3087
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-45
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( + 42 ) + col2 AS col0 FROM tab2 AS cor0
----
68
69
80
query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT col2 + col2 + col0 AS col1 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL + col1 + 21 AS col0 FROM tab2
----
38
52
80
query I rowsort
SELECT DISTINCT col1 + + ( 94 ) FROM tab0
----
180
185
191
query I rowsort
SELECT - col1 * - col0 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col1 * + 15 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT col2 - col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + 37 * col0 AS col1 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT DISTINCT - 35 + + col1 AS col0 FROM tab1 AS cor0
----
-22
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col1 col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - cor0.col0 - col0 * - col1 AS col0 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + + col2 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + 14 + 99 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-61
SELECT - CAST( NULL AS SIGNED ) + col2 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-61
SELECT - CAST ( NULL AS INTEGER ) + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 + + 13 * col2 AS col2 FROM tab1 AS cor0
----
1152
648
684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT ALL CAST( NULL AS SIGNED ) * + 0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-63
SELECT ALL CAST ( NULL AS INTEGER ) * + 0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + col1 + + col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT cor0.col1 DIV col0 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-957
skipif mysql # not compatible
query I rowsort label-66
SELECT cor0.col1 / col0 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT + cor0.col2 DIV cor0.col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-67
SELECT + cor0.col2 / cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0, tab2 AS cor0
----
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-69
SELECT DISTINCT 40 - + tab1.col0 DIV + 37 FROM tab1, tab0, tab0 AS cor0
----
38
39
40
skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT 40 - + tab1.col0 / + 37 FROM tab1, tab0, tab0 AS cor0
----
38
39
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-70
SELECT ALL - ( - col2 ) DIV 52 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - ( - col2 ) / 52 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col2 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 + 86 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT DISTINCT - col2 + + 38 FROM tab2 AS cor0
----
0
11
12
query I rowsort
SELECT DISTINCT + col0 + + 13 FROM tab1 AS cor0
----
16
77
93
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79
query I rowsort
SELECT ( - col1 ) * - col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT 2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT + - 77 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT DISTINCT - + col2 * col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT - col0 DIV col0 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-81
SELECT - col0 / col0 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-82
SELECT DISTINCT - - col1 * + CAST( + ( + col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - - col1 * + CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col2 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT DISTINCT col2 DIV - col1 + col0 * col0 AS col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT col2 / - col1 + col0 * col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col2 - + 88 * + col0 * tab2.col1 FROM tab2
----
-118146
-19069
-404950
query I rowsort
SELECT DISTINCT - 85 FROM tab0, tab0 AS cor0
----
-85
query I rowsort
SELECT - col1 - - ( - 13 ) FROM tab1
----
-23
-26
-39
query I rowsort
SELECT DISTINCT + 13 * cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1157
312
455
query I rowsort
SELECT DISTINCT col0 * tab1.col0 * col0 AS col1 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + - col2 * - ( 98 ) AS col1 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL + - col2 + 40 FROM tab0 AS cor0
----
-42
39
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-92
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT 40 * col2 FROM tab1
----
2160
2280
3840
onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT ( 26 ) DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-94
SELECT ( 26 ) / + col2 AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 30 col1 FROM tab2 AS cor0
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab1
----
36
36
36
query I rowsort
SELECT DISTINCT 5 FROM tab2, tab2 cor0
----
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT 10 DIV - col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-98
SELECT 10 / - col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + 95 - col0 * - col0 * - col2 FROM tab0
----
-1130
-18913
-649427
query I rowsort
SELECT + + 13 + col2 FROM tab1 cor0
----
109
67
70
query I rowsort
SELECT DISTINCT 99 * - col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - 85 + col1 FROM tab1 cor0
----
-59
-72
-75
query I rowsort
SELECT - 84 * col2 AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col2 FROM tab1 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ALL + cor0.col0 + - col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - 33 * - 5 + - col1 * ( col1 + col0 ) AS col2 FROM tab1 AS cor0
----
-1044
-575
-589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + + cor0.col1 col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-109
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-109
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + - col2 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + + col1 * + 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-112
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + ( col1 + - ( col0 ) * col2 ) FROM tab0
----
-682
-7118
97
query I rowsort
SELECT col0 + tab1.col2 * col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col0 * 33 + ( col2 + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
156
2233
2816
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( 57 ) FROM tab2 AS cor0
----
-1482
-1539
-2166
onlyif mysql # use DIV operator for integer division
query I rowsort label-117
SELECT DISTINCT + col2 + - col1 + 48 DIV + col1 AS col0 FROM tab2 AS cor0
----
-3
-33
23
skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + col2 + - col1 + 48 / + col1 AS col0 FROM tab2 AS cor0
----
-3
-33
23
query I rowsort
SELECT ALL + cor0.col0 + + col0 * 54 AS col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT - - col0 + ( col1 + col1 * col1 ) FROM tab2 AS cor0
----
3618
385
999
query I rowsort
SELECT DISTINCT - col0 + 2 FROM tab1 AS cor0
----
-1
-62
-78
query I rowsort
SELECT ALL cor0.col1 + col2 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT ALL col1 + CAST( 4 AS SIGNED ) AS col2 FROM tab2 cor0
----
21
35
63
skipif mysql # not compatible
query I rowsort label-122
SELECT ALL col1 + CAST ( 4 AS INTEGER ) AS col2 FROM tab2 cor0
----
21
35
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT DISTINCT cor0.col1 * + ( + col0 ) DIV + col0 + - col0 * - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT cor0.col1 * + ( + col0 ) / + col0 + - col0 * - col1 / col1 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL 19 - col1 AS col1 FROM tab2
----
-12
-40
2
query I rowsort
SELECT + + col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT + 66 * - col2 * col0 AS col2 FROM tab0
----
-2310
-481668
-52272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + tab2.col1 col2 FROM tab2
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-130
SELECT - col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-130
SELECT - col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-131
SELECT cor0.col1 + CAST( col0 AS SIGNED ) * + col2 * 69 AS col1 FROM tab2 AS cor0
----
13072
139991
207155
skipif mysql # not compatible
query I rowsort label-131
SELECT cor0.col1 + CAST ( col0 AS INTEGER ) * + col2 * 69 AS col1 FROM tab2 AS cor0
----
13072
139991
207155
query I rowsort
SELECT - - col2 + 62 FROM tab0 cor0
----
144
63
95
query I rowsort
SELECT col1 + 27 AS col1 FROM tab1
----
37
40
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + 76 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT col1 + + col2 * cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT + cor0.col0 * ( col2 * cor0.col0 ) + cor0.col0 FROM tab2 AS cor0
----
1330
158262
237237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-138
SELECT CAST( col0 AS SIGNED ) * + col2 * - 30 FROM tab2 AS cor0
----
-5670
-60840
-90060
skipif mysql # not compatible
query I rowsort label-138
SELECT CAST ( col0 AS INTEGER ) * + col2 * - 30 FROM tab2 AS cor0
----
-5670
-60840
-90060
query I rowsort
SELECT + 53 + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to ef82db2c81c448b21df3a112732bca60
query I rowsort
SELECT DISTINCT col0 * - 75 FROM tab0
----
-1800
-2625
-6675
query I rowsort
SELECT + - 44 + + 15 FROM tab2 AS cor0
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 - + 88 col2 FROM tab0 AS cor0
----
-124
-124
-124
query I rowsort
SELECT + ( - cor0.col0 ) * cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( + cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL + 50 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT DISTINCT + + 69 + - col1 * - col2 AS col1 FROM tab1 cor0
----
1317
1473
639
query I rowsort
SELECT DISTINCT col2 + + col0 * 96 AS col1 FROM tab0 AS cor0
----
2337
3361
8626
query I rowsort
SELECT ALL - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT - - col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-149
SELECT - - col1 / col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * - CAST ( + 27 AS REAL ) FROM tab2 cor0
----
189
2106
2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT col1 * CAST( col0 AS SIGNED ) DIV + col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-151
SELECT col1 * CAST ( col0 AS INTEGER ) / + col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL ( + tab0.col1 ) + - 90 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 321a1f45ce37b8acaeadf98f4964f318
onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT + col1 DIV + 60 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-153
SELECT + col1 / + 60 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-154
SELECT + + col0 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-154
SELECT + + col0 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - col1 + - ( + cor0.col1 ) FROM tab1 AS cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
24
35
89
query I rowsort
SELECT + col1 + + 52 * col2 FROM tab1 AS cor0
----
2834
2974
5005
query I rowsort
SELECT DISTINCT 69 + 10 + + col2 AS col1 FROM tab2
----
105
106
117
query I rowsort
SELECT 21 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-3
-68
query I rowsort
SELECT - tab1.col2 - + col0 * + col0 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT 40 + - col0 FROM tab2
----
-38
-39
33
query I rowsort
SELECT DISTINCT - col1 * col1 * 91 FROM tab2
----
-26299
-316771
-87451
onlyif mysql # use DIV operator for integer division
query I rowsort label-165
SELECT DISTINCT - + 24 DIV - col2 AS col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - + 24 / - col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT + col0 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 2 * col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - - cor0.col1 * - col0 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - 84 AS col2 FROM tab2 cor0
----
-84
-84
-84
query I rowsort
SELECT - - 84 + - col0 FROM tab0 AS cor0
----
-5
49
60
query I rowsort
SELECT DISTINCT + 19 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-16
-7279
-773
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT - + 86 DIV - 66 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-172
SELECT - + 86 / - 66 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 9 * col0 FROM tab0 cor0
----
216
315
801
query I rowsort
SELECT + col2 * ( - 5 ) FROM tab0
----
-165
-410
-5
query I rowsort
SELECT ALL 23 * 33 + - col0 FROM tab1 AS cor0
----
679
695
756
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
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT + tab1.col1 * CAST( - col1 AS SIGNED ) * col1 FROM tab1
----
-1000
-17576
-2197
skipif mysql # not compatible
query I rowsort label-177
SELECT + tab1.col1 * CAST ( - col1 AS INTEGER ) * col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT + ( 53 ) AS col2 FROM tab2 AS cor0
----
53
query I rowsort
SELECT - + 55 + + col1 * + col1 FROM tab2 cor0
----
234
3426
906
query I rowsort
SELECT ALL - col0 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - col2 + ( + col1 ) * - col1 * + col0 FROM tab0
----
-177537
-329316
-737091
query I rowsort
SELECT - 72 * 90 FROM tab1, tab0 AS cor0
----
9 values hashing to d9e1376c8505c7726db829cb8034aad8
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT + col0 DIV ( + col0 + + col1 * - col1 ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-184
SELECT + col0 / ( + col0 + + col1 * - col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col2 * col1 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL - col2 * - 38 + col2 FROM tab0 AS cor0
----
1287
3198
39
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) * col2 - col0 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * col0 - - 48 FROM tab2 AS cor0
----
286
8160
9291
query I rowsort
SELECT ALL - col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT ( ( col1 ) ) + - 73 AS col1 FROM tab0 AS cor0
----
13
18
24
query I rowsort
SELECT DISTINCT - 3 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL 79 + + col0 DIV + col0 + col2 * 82 FROM tab2
----
2212
2294
3196
skipif mysql # not compatible
query I rowsort label-192
SELECT ALL 79 + + col0 / + col0 + col2 * 82 FROM tab2
----
2212
2294
3196
query I rowsort
SELECT ALL - 46 + cor0.col2 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-143
-2884
-7508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-194
SELECT ALL ( + col1 ) + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-194
SELECT ALL ( + col1 ) + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-195
SELECT DISTINCT - 47 * + col0 * + CAST( col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-2276
-285922
-293289
skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - 47 * + col0 * + CAST ( col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-2276
-285922
-293289
query I rowsort
SELECT DISTINCT 26 + + col2 FROM tab0 AS cor0
----
108
27
59
query I rowsort
SELECT DISTINCT col2 * cor0.col1 * ( + 10 ) + col1 FROM tab0 cor0
----
1067
28466
74711
query I rowsort
SELECT ALL - col0 * + ( + col1 ) + col0 AS col2 FROM tab2
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT ALL + CAST( 11 AS SIGNED ) + col2 * - col0 * col1 FROM tab2
----
-119641
-51023
-5848
skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + CAST ( 11 AS INTEGER ) + col2 * - col0 * col1 FROM tab2
----
-119641
-51023
-5848
query I rowsort
SELECT ALL - - cor0.col0 + ( cor0.col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col2 + - 58 FROM tab2 AS cor0
----
-20
-31
-32
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col2 + + CAST ( 30 + col1 AS REAL ) * col1 FROM tab1 AS cor0
----
1402
343
463
query I rowsort
SELECT DISTINCT - 76 FROM tab2, tab0, tab2 AS cor0
----
-76
query I rowsort
SELECT ALL col1 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - cor0.col0 + + 19 * col0 FROM tab2 AS cor0
----
126
1404
1422
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT - - col0 + + cor0.col1 DIV - col0 AS col1 FROM tab2 cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - - col0 + + cor0.col1 / - col0 AS col1 FROM tab2 cor0
----
3
78
79
query I rowsort
SELECT ALL col1 * + ( + 74 * col2 ) AS col2 FROM tab2 AS cor0
----
113516
47804
61938
query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) + col2 * ( - cor0.col1 ) FROM tab2 cor0
----
-1553
-708
-813
query I rowsort
SELECT ( tab0.col0 * 98 ) FROM tab0
----
2352
3430
8722
query I rowsort
SELECT tab2.col0 * 97 FROM tab2, tab2 cor0
----
9 values hashing to 680888a24a416fac4670ec8fb277d7c9
query I rowsort
SELECT col1 - + ( col2 ) AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 + ( 65 ) AS col1 FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT - + col2 * 29 + - col0 * col0 - + col0 AS col1 FROM tab1 AS cor0
----
-1578
-5813
-9264
query I rowsort
SELECT col1 * + col2 + + 68 FROM tab1 AS cor0
----
1316
1472
638
query I rowsort
SELECT DISTINCT col1 - 45 AS col1 FROM tab2
----
-14
-28
14
skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( col1 AS REAL ) + - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + col2 * cor0.col0 - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL 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 + tab0.col0 * col0 col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - ( tab0.col2 ) * - ( - col0 * col0 ) AS col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT - 86 * + col0 * ( - 73 ) + col2 + ( - ( col1 ) ) * - 16 AS col2 FROM tab1 AS cor0
----
19304
402009
502544
query I rowsort
SELECT ALL + + 3 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT - 53 * col0 AS col2 FROM tab1 cor0
----
-159
-3392
-4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT DISTINCT 26 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT 26 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * col1 * - col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL col2 * + col2 * 81 AS col0 FROM tab0 AS cor0
----
544644
81
88209
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT - col2 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - col2 / + cor0.col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - + col1 + - 60 + col1 FROM tab0 AS cor0
----
-60
-60
-60
query I rowsort
SELECT ALL cor0.col0 * 45 * - 86 AS col1 FROM tab1 AS cor0
----
-11610
-247680
-309600
query I rowsort
SELECT ALL + col1 + - col1 * - col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col1 + - ( col0 ) + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-97
682
7118
query I rowsort
SELECT DISTINCT - cor0.col1 + ( col2 * - col1 ) AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + - col2 + ( - col0 ) * col0 + - 92 AS col0 FROM tab1 AS cor0
----
-155
-4245
-6588
query I rowsort
SELECT + cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col0 FROM tab1, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT cor0.col2 + 41 FROM tab1 cor0
----
137
95
98
query I rowsort
SELECT + col1 + + ( - col2 ) * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-673
-7125
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - 3 + col1 AS col2 FROM tab1 AS cor0
----
10
23
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT + + 53 DIV + col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-240
SELECT + + 53 / + col1 col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT DISTINCT + 4 DIV + col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + 4 / + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col0 * - 17 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT - + col1 + + 11 AS col2 FROM tab0 AS cor0
----
-75
-80
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL - col1 * - 50 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT ALL + ( + ( - col1 ) ) + col1 * ( - col0 ) FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL ( + col1 ) - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-248
SELECT ALL CAST( - ( cor0.col0 ) AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-248
SELECT ALL CAST ( - ( cor0.col0 ) AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT DISTINCT col1 DIV cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT col1 / cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL + + col2 + col1 DIV + col0 col0 FROM tab1 AS cor0
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + + col2 + col1 / + col0 col0 FROM tab1 AS cor0
----
57
62
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT ALL + col2 DIV col2 + + 36 AS col0 FROM tab0 AS cor0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + col2 / col2 + + 36 AS col0 FROM tab0 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT + col0 - cor0.col0 DIV - col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-253
SELECT + col0 - cor0.col0 / - col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * + col0 + - col1 * - cor0.col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT ALL tab0.col2 * 10 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
243 values hashing to e9c1f4dd499d9d0af56c9b1543b1b17c
query I rowsort
SELECT 21 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT ALL - col2 + + col1 - col0 * 79 FROM tab0
----
-1843
-2669
-7022
query I rowsort
SELECT 9 + - col0 AS col0 FROM tab2
----
-69
-70
2
query I rowsort
SELECT DISTINCT 24 - - col1 AS col1 FROM tab1
----
34
37
50
query I rowsort
SELECT - col1 + + col1 * + col1 + + col2 * 78 FROM tab2
----
3036
3236
5450
query I rowsort
SELECT ALL + tab1.col2 + col2 + + 15 FROM tab1
----
123
129
207
query I rowsort
SELECT + cor0.col0 * col1 - + col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - 24 * + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT - + ( cor1.col2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT 40 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
400
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT + ( col2 ) DIV + col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-267
SELECT + ( col2 ) / + col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ( + 28 ) FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col1 FROM tab2
----
-54
-54
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-270
SELECT + CAST( NULL AS SIGNED ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-270
SELECT + CAST ( NULL AS INTEGER ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 71 AS REAL ) col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 cor2
----
81 values hashing to ac364708ef97c5cf80f126fc088b952e
query I rowsort
SELECT DISTINCT col2 * + 99 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
18711
200772
297198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + 84 * 17 - - cor0.col1 FROM tab1 AS cor0
----
-1402
-1415
-1418
query I rowsort
SELECT ALL - 90 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-630
-7020
-7110
query I rowsort
SELECT ALL col0 * col1 - + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + col1 + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - cor0.col1 * ( - col0 ) + col1 + - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-279
SELECT + + col1 + - CAST( 25 AS SIGNED ) * cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-1194
-152041
-156008
skipif mysql # not compatible
query I rowsort label-279
SELECT + + col1 + - CAST ( 25 AS INTEGER ) * cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-1194
-152041
-156008
query I rowsort
SELECT ALL + - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 + - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col1 * + ( 75 ) * - cor0.col1 + 82 AS col1 FROM tab1 cor0
----
12757
50782
7582
query I rowsort
SELECT + col1 * 28 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT col0 + 19 AS col1 FROM tab1 AS cor0
----
22
83
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT + col2 DIV 31 + - 8 AS col1 FROM tab0
----
-6
-7
-8
skipif mysql # not compatible
query I rowsort label-285
SELECT + col2 / 31 + - 8 AS col1 FROM tab0
----
-6
-7
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT col2 DIV - ( - tab0.col1 + + col2 ) FROM tab0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-286
SELECT col2 / - ( - tab0.col1 + + col2 ) FROM tab0
----
0
0
9
query I rowsort
SELECT ALL + col1 * - tab1.col2 * + col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - col1 * + cor0.col2 * - col1 - col0 * - col0 FROM tab1 AS cor0
----
22624
36513
9796
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-289
SELECT col1 * + col1 + + CAST( + 4 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
293
3485
965
skipif mysql # not compatible
query I rowsort label-289
SELECT col1 * + col1 + + CAST ( + 4 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
293
3485
965
query I rowsort
SELECT ALL 41 * - col2 AS col1 FROM tab0 cor0
----
-1353
-3362
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT DISTINCT 60 * col0 DIV - col2 FROM tab1
----
-3
-50
-67
skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT 60 * col0 / - col2 FROM tab1
----
-3
-50
-67
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-293
SELECT - + ( - col2 ) + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-293
SELECT - + ( - col2 ) + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 43 * col2 FROM tab1 AS cor0
----
-156864
-330240
-6966
query I rowsort
SELECT - 4 + + col2 FROM tab0 cor0
----
-3
29
78
query I rowsort
SELECT ALL tab0.col2 - col1 * - col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - col2 * + col2 - 43 * col0 AS col2 FROM tab0
----
-10551
-1506
-2121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
62
query I rowsort
SELECT + cor0.col2 * cor0.col0 + 65 FROM tab2 AS cor0
----
2093
254
3067
query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab2 AS cor0
----
41
query I rowsort
SELECT ALL 76 * 71 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b2e0b2f78375ee14445d5064da5246c
query I rowsort
SELECT + tab2.col0 * col0 - + col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT + - 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT col2 * col0 DIV col1 col0 FROM tab2
----
176
34
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-304
SELECT col2 * col0 / col1 col0 FROM tab2
----
176
34
6
query I rowsort
SELECT ALL cor0.col2 + + 40 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7c0ee6e4ead56b0a5e24d0e10d5e8432
query I rowsort
SELECT DISTINCT - col1 + col1 + 92 AS col1 FROM tab2 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT - + cor0.col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-307
SELECT - + cor0.col0 / col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT DISTINCT - + col2 DIV 55 col0 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - + col2 / 55 col0 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT - col2 DIV 59 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-309
SELECT - col2 / 59 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-310
SELECT - - col1 + ( col2 ) DIV - col0 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-310
SELECT - - col1 + ( col2 ) / - col0 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT col1 + - 42 AS col1 FROM tab1 AS cor0
----
-16
-29
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT DISTINCT col2 - + col1 DIV 75 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT col2 - + col1 / 75 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT DISTINCT + + col1 + - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + + col1 + - cor0.col0 / - col0 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT col2 + + 29 FROM tab0 AS cor0
----
111
30
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + 77 col1 FROM tab2 AS cor0
----
2105
266
3079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + ( col1 * + col0 ) + ( - col1 * col1 ) col0 FROM tab0
----
-5308
-5979
-93
query I rowsort
SELECT col1 * col0 * + col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - col1 * 85 * 0 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col2 * + ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT cor0.col2 - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + + col2 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + cor0.col1 * + 42 + + col2 AS col0 FROM tab2 AS cor0
----
-1275
-2452
-676
query I rowsort
SELECT ALL - cor0.col1 * col1 * col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - col2 * + cor0.col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + col0 * 49 FROM tab2 AS cor0
----
343
3822
3871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 * + col2 + - col2 * - col2 ) col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 * col2 col2 FROM tab2 AS cor0
----
-260
-270
-380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * col2 col0 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT - ( ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 + - 40 * + col1 AS col0 FROM tab1 AS cor0
----
-1094
-457
-616
query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2
query I rowsort
SELECT ALL + ( col2 ) + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 * 98 col0 FROM tab1 AS cor0
----
5488
5488
5488
query I rowsort
SELECT ALL + - col0 + + cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col2 * + 88 col0 FROM tab2 AS cor0
----
2347
2407
3361
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 92 * cor0.col1 + - 13 FROM tab1 cor0
----
-1209
-2405
-933
query I rowsort
SELECT col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT + - 79 * col2 DIV - 2 FROM tab0 AS cor0
----
1303
3239
39
skipif mysql # not compatible
query I rowsort label-340
SELECT + - 79 * col2 / - 2 FROM tab0 AS cor0
----
1303
3239
39
query I rowsort
SELECT ALL col0 + col1 * col2 + - 91 AS col2 FROM tab1 cor0
----
1237
1316
543
query I rowsort
SELECT ALL - - 68 AS col1 FROM tab1 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT DISTINCT 31 * - col0 DIV + col0 FROM tab2
----
-31
skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT 31 * - col0 / + col0 FROM tab2
----
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT cor0.col1 DIV + 69 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT cor0.col1 / + 69 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
0
query I rowsort
SELECT + ( - col0 ) * col2 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + + 57 * - 68 + col0 FROM tab0 AS cor0
----
-3787
-3841
-3852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-347
SELECT + - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-347
SELECT + - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 23 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL + 39 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT - col0 + - ( tab1.col0 + + 25 ) * + tab1.col1 AS col0 FROM tab1
----
-1445
-731
-954
query I rowsort
SELECT ALL col1 + - 87 FROM tab1
----
-61
-74
-77
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL + 81 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 * - col1 * col0 + + ( + ( + col0 ) ) * + col1 FROM tab1 AS cor0
----
-156
-40320
-82160
query I rowsort
SELECT ALL 83 * - col2 AS col2 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT - - cor0.col0 * 80 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
2799
396
831
query I rowsort
SELECT + 28 * + col0 FROM tab2
----
196
2184
2212
query I rowsort
SELECT ALL - 6 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 6894fc1c86475b799229116dcc3a6cf8
onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT ALL + cor0.col2 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + cor0.col2 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - - col1 + 16 FROM tab1 cor0
----
26
29
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-362
SELECT col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-362
SELECT col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col1 - col2 * - cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT cor0.col2 * + 18 FROM tab0, tab1 AS cor0
----
9 values hashing to 0bf093f7c10a9fd1ff625c454db58fe1
query I rowsort
SELECT DISTINCT col0 * 16 FROM tab0 cor0
----
1424
384
560
query I rowsort
SELECT ALL - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT ALL col0 DIV 54 + - col1 + - col2 FROM tab1 cor0
----
-108
-66
-80
skipif mysql # not compatible
query I rowsort label-367
SELECT ALL col0 / 54 + - col1 + - col2 FROM tab1 cor0
----
-108
-66
-80
query I rowsort
SELECT ALL col2 + + col0 * 63 AS col2 FROM tab0 AS cor0
----
1545
2206
5689
query I rowsort
SELECT DISTINCT + - col2 - 42 FROM tab0 AS cor0
----
-124
-43
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col2 FROM tab0, tab2 cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT + + col2 * col2 + - 86 AS col1 FROM tab0 AS cor0
----
-85
1003
6638
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT col2 * col0 * - cor0.col0 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1190
-19008
-649521
skipif mysql # not compatible
query I rowsort label-372
SELECT col2 * col0 * - cor0.col0 + col0 / col2 AS col0 FROM tab0 AS cor0
----
-1190
-19008
-649521
query I rowsort
SELECT DISTINCT - ( - 59 ) FROM tab0, tab0 cor0
----
59
query I rowsort
SELECT + - col2 * 33 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT 79 AS col0 FROM tab2 cor0
----
79
79
79
query I rowsort
SELECT - - col2 * cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - + 19 * + col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT ALL col0 * + 92 AS col0 FROM tab1
----
276
5888
7360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + - 44 * cor0.col2 + + ( col0 + - col2 ) * - 71 AS col1 FROM tab1 AS cor0
----
-3005
-3088
1245
query I rowsort
SELECT ALL + cor0.col2 * col2 * + 66 FROM tab1 AS cor0
----
192456
214434
608256
query I rowsort
SELECT DISTINCT + 23 + + cor0.col1 * + 47 FROM tab1 AS cor0
----
1245
493
634
query I rowsort
SELECT ALL - col1 * + col1 + - col1 FROM tab1 cor0
----
-110
-182
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT ALL col2 * col0 + - col2 + + col1 * + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1949
-203377
-29629
query I rowsort
SELECT ALL + 26 + col1 FROM tab0 cor0
----
112
117
123
query I rowsort
SELECT col1 * cor0.col0 - - 84 FROM tab1 AS cor0
----
1124
162
724
onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT ALL + col0 + + col1 DIV col0 col1 FROM tab1
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + col0 + + col1 / col0 col1 FROM tab1
----
11
64
80
query I rowsort
SELECT + col2 * col1 + 18 * col2 FROM tab0 AS cor0
----
115
3432
8938
query I rowsort
SELECT DISTINCT 87 * col1 AS col0 FROM tab1
----
1131
2262
870
query I rowsort
SELECT - - col2 * - col0 - + col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 + col0 ) >= ( NULL ) OR col0 * col2 IN ( - col1 * col2 )
----
query I rowsort
SELECT col1 * col1 + col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT col0 - - col2 * + col2 * col2 FROM tab2
----
17654
19690
54951
query I rowsort
SELECT DISTINCT - col2 + col2 + + col1 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-396
SELECT DISTINCT - cor0.col2 DIV + col0 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - cor0.col2 / + col0 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2065
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT DISTINCT - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - col2 - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT ALL + col0 + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + col0 + col0 / col1 AS col0 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT DISTINCT - - col1 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col2 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT col2 * col2 - + cor0.col1 FROM tab0 cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT col2 FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( + col2 ) AND ( + col1 * col2 + + col1 )
----
54
57
96
query I rowsort
SELECT ALL - col1 * - col0 * col2 + col0 FROM tab1 cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT cor0.col2 + col0 + col0 FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT ALL col0 * - col1 - col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + col2 - + col1 * + col1 AS col2 FROM tab2
----
-251
-3455
-934
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 WHERE NOT col1 / col1 + col2 <= - tab2.col0 + + col1 * - col0 AND + col0 IN ( col0 * - col2 * - col1 )
----
query I rowsort
SELECT col0 + col1 + - col2 FROM tab0
----
131
77
98
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - tab0.col2 - col0 * - col2 )
----
query I rowsort
SELECT col1 + - col2 * col0 * - col2 - + col0 AS col0 FROM tab2 WHERE col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col2 + - col1 * - col2 * - 91 FROM tab0 AS cor0
----
-258291
-679124
-8828
query I rowsort
SELECT DISTINCT - 89 * col1 AS col0 FROM tab2 AS cor0
----
-1513
-2759
-5251
query I rowsort
SELECT DISTINCT cor2.col2 FROM tab0, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
26
27
38
query I rowsort
SELECT col1 + tab0.col2 + + tab0.col1 FROM tab0
----
195
205
264
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( + col2 ) IN ( + col1 )
----
17
31
59
query III rowsort
SELECT * FROM tab0 WHERE col0 * col0 IN ( + col1 * - col2 + - col0 * col1 + - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ALL + col2 + col0 DIV - col1 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + col2 + col0 / - col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT - col1 * + col1 NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
query I rowsort
SELECT ALL - ( tab0.col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + 85 * col2 AS col1 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT DISTINCT + - 14 - - col1 AS col2 FROM tab2 AS cor0
----
17
3
45
query I rowsort
SELECT DISTINCT + 3 * col1 + col1 AS col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT - col0 * col2 + - col1 AS col2 FROM tab1 WHERE NOT ( NULL ) <= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * - col0 * col2 AS col2 FROM tab0
----
-1225
-19008
-649522
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( + col0 )
----
query I rowsort
SELECT ALL - tab1.col1 * - tab1.col0 * - col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-431
SELECT + col0 DIV + tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-431
SELECT + col0 / + tab2.col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col0 + - col1 + col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT ALL col0 + - col1 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1163
514
7919
query I rowsort
SELECT col1 * + col1 + - col2 + + col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT col0 * - col2 + col0 DIV col1 AS col1 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-436
SELECT col0 * - col2 + col0 / col1 AS col1 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = - col1
----
query I rowsort
SELECT ALL tab0.col0 * - col1 + - tab0.col2 * + col1 AS col2 FROM tab0
----
-15561
-3492
-4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + col0 * col0 col1 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-440
SELECT - col0 + + col1 + col2 DIV - col0 col1 FROM tab0
----
2
61
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-440
SELECT - col0 + + col1 + col2 / - col0 col1 FROM tab0
----
2
61
62
query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 IN ( tab2.col1 * + col1 + - col2 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 >= NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( - col0 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-445
SELECT ALL - col1 * - cor0.col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - col1 * - cor0.col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT - cor0.col2 * col0 DIV - 26 col1 FROM tab1 AS cor0
----
140
295
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - cor0.col2 * col0 / - 26 col1 FROM tab1 AS cor0
----
140
295
6
query I rowsort
SELECT DISTINCT col2 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - 22 * - cor0.col0 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT DISTINCT - + ( - col0 ) * + ( - col0 ) + col1 - + col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - ( + tab0.col2 ) * - ( + ( col0 ) ) FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT col2 + + col1 * col2 DIV - tab0.col0 AS col2 FROM tab0
----
-1
-1
-85
skipif mysql # not compatible
query I rowsort label-451
SELECT col2 + + col1 * col2 / - tab0.col0 AS col2 FROM tab0
----
-1
-1
-85
query I rowsort
SELECT - - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + 39 AS col1 FROM tab0, tab2, tab1 AS cor0
----
39
query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-456
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-457
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + col0 ) + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + ( cor0.col2 ) + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-460
SELECT + tab1.col1 / + ( 61 * tab1.col2 ) + CAST( NULL AS SIGNED ) * - ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-460
SELECT + tab1.col1 / + ( 61 * tab1.col2 ) + CAST ( NULL AS INTEGER ) * - ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 * - col1 + col0 * - col2 + - col1 * 31 AS col0 FROM tab1
----
-1046
-4598
-9123
query I rowsort
SELECT ALL - col2 * - col2 + 43 FROM tab2
----
1487
719
772
query I rowsort
SELECT ALL col2 * col0 + tab2.col0 AS col1 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT col2 DIV + col0 + + 2 FROM tab1
----
2
20
3
skipif mysql # not compatible
query I rowsort label-464
SELECT col2 / + col0 + + 2 FROM tab1
----
2
20
3
query I rowsort
SELECT ALL - 84 FROM tab2, tab1 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT ALL col0 * + 9 * - col0 AS col0 FROM tab1
----
-36864
-57600
-81
query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col0 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL + - ( - 31 ) - - cor0.col2 AS col0 FROM tab0 AS cor0
----
113
32
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-471
SELECT ALL - CAST( NULL AS SIGNED ) + - cor0.col1 - + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - CAST ( NULL AS INTEGER ) + - cor0.col1 - + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 14 * - 89 + col0 * + 21 FROM tab0 AS cor0
----
1750
1981
3115
query I rowsort
SELECT ALL + - ( + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + col0 * col2 + - col0 AS col2 FROM tab2 cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-475
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 12 AS col1 FROM tab0 AS cor0
----
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - col1 + col0 col2 FROM tab2 AS cor0
----
-1140
-2105
-550
query I rowsort
SELECT DISTINCT - + 68 + - col2 AS col0 FROM tab0 AS cor0
----
-101
-150
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-479
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 + - cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 + - cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col1 ) * + cor0.col2 - + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - ( - col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 38 * - tab0.col0 AS col2 FROM tab0
----
1330
3382
912
query I rowsort
SELECT - ( + 18 ) * col0 FROM tab0
----
-1602
-432
-630
query I rowsort
SELECT DISTINCT + col1 * - 87 FROM tab0
----
-7482
-7917
-8439
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT DISTINCT + tab2.col2 DIV - tab2.col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + tab2.col2 / - tab2.col1 FROM tab2
----
-2
0
query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0, tab0 cor0
----
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-487
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 41 ) * - col0 col1 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT 17 * tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cf2c17a44041120e507fcd265ec5deea
query I rowsort
SELECT col2 * tab2.col1 * + col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + - 14 + - col2 + - col1 AS col1 FROM tab2 cor0
----
-69
-72
-99
query I rowsort
SELECT + col1 * - col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + - col2 + - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + 8 - col2 FROM tab2
----
-18
-19
-30
query I rowsort
SELECT - + col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-496
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT - col2 DIV + 51 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-497
SELECT - col2 / + 51 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 * - cor0.col1 + col1 AS col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col0 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT cor0.col0 * + col1 - col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT 1 + - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT + - cor0.col2 + ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col1 + + 56 * col2 FROM tab2
----
1397
1481
2111
query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-61
query I rowsort
SELECT - 1 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT tab0.col2 DIV ( - 4 ) + - col1 * ( - col1 + col1 ) AS col2 FROM tab0
----
-20
-8
0
skipif mysql # not compatible
query I rowsort label-507
SELECT tab0.col2 / ( - 4 ) + - col1 * ( - col1 + col1 ) AS col2 FROM tab0
----
-20
-8
0
query I rowsort
SELECT ALL col2 * 0 * + col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + tab2.col2 * - col1 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col0 * + tab1.col0 - - tab1.col0 * col0 FROM tab1
----
12800
18
8192
query I rowsort
SELECT col2 + + 24 AS col2 FROM tab2
----
50
51
62
query I rowsort
SELECT + 88 - col0 AS col0 FROM tab0 AS cor0
----
-1
53
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + col0 col0 FROM tab0 cor0
----
101
112
166
query I rowsort
SELECT col1 * ( - col1 ) + 81 - col0 AS col0 FROM tab2 AS cor0
----
-287
-3478
-887
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-515
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 52 * col1 + col2 FROM tab0 AS cor0
----
4505
4814
5045
query I rowsort
SELECT 29 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT 65 * + col2 AS col2 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT ALL - 10 * 58 * - col2 FROM tab2 AS cor0
----
15080
15660
22040
query I rowsort
SELECT DISTINCT + col1 + + 97 * - col2 AS col0 FROM tab1 AS cor0
----
-5212
-5519
-9299
query I rowsort
SELECT ALL + 4 + 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT ALL + - 2 * ( - col0 ) - 84 * col2 DIV col2 col2 FROM tab1 AS cor0
----
-78
44
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + - 2 * ( - col0 ) - 84 * col2 / col2 col2 FROM tab1 AS cor0
----
-78
44
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT ALL - col0 * + col2 + + col1 * ( col0 ) FROM tab0 cor0
----
1272
3360
801
query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 AS cor0
----
89
query I rowsort
SELECT cor0.col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 * col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
13507
2002
6390
query I rowsort
SELECT 87 * - col1 + ( - col1 ) FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT DISTINCT ( col1 ) + col0 * col2 * + col2 + ( + col0 ) FROM tab0
----
167
26246
598616
onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT - col0 + col2 DIV col0 FROM tab1 AS cor0
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-531
SELECT - col0 + col2 / col0 FROM tab1 AS cor0
----
-64
-79
15
query I rowsort
SELECT 51 + col2 AS col1 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT + col0 + col1 + 78 FROM tab2 AS cor0
----
116
174
215
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + - 75 FROM tab1 AS cor0
----
2841
3174
9141
query I rowsort
SELECT ALL + col0 * col1 + 92 + - 33 FROM tab0 AS cor0
----
2123
3454
8158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-536
SELECT - col1 * - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-536
SELECT - col1 * - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * + 43 FROM tab1 AS cor0
----
129
2752
3440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-538
SELECT - + col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-538
SELECT - + col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * + 16 AS col1 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT - col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-541
SELECT ALL - col2 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - col2 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-542
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + col0 * 94 FROM tab1 AS cor0
----
285
6080
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT + col0 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-544
SELECT + col0 / - cor0.col1 AS col0 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT cor0.col1 * 34 + 83 FROM tab1 AS cor0
----
423
525
967
query I rowsort
SELECT ALL col1 * 95 * + col0 AS col0 FROM tab0 AS cor0
----
196080
322525
769405
query I rowsort
SELECT DISTINCT + col0 * ( col0 * - col2 + col0 ) AS col1 FROM tab2 AS cor0
----
-1274
-152100
-230917
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 + CAST ( col2 AS REAL ) FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col0 * 54 FROM tab1 AS cor0
----
-162
-3456
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + tab0.col2 col2 FROM tab0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) * + col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - col2 * 85 FROM tab1 cor0
----
-4590
-4845
-8160
query I rowsort
SELECT ALL - + col0 * 30 * + col0 FROM tab2 AS cor0
----
-1470
-182520
-187230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor3.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab1 AS cor3
----
54
57
96
query I rowsort
SELECT col1 + + 86 AS col2 FROM tab2
----
103
117
145
query I rowsort
SELECT ALL - col2 * - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + - cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL 63 + - col0 - - col0 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT - 39 + + col2 FROM tab1 AS cor0
----
15
18
57
query I rowsort
SELECT DISTINCT + 50 * - col1 + + 83 FROM tab1 AS cor0
----
-1217
-417
-567
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - tab2.col0 - tab2.col2 * - CAST ( col0 * col2 AS REAL ) col0 FROM tab2
----
112733
48126
4886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT DISTINCT + col2 + + col2 * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + col2 + + col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL cor0.col1 * - col1 + - 0 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - col2 * col2 + col1 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - 75 + cor0.col1 * + col0 * 64 AS col0 FROM tab0 cor0
----
132021
217205
518261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) - - 7 col0 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT + - 27 + + col1 AS col0 FROM tab0 AS cor0
----
59
64
70
query I rowsort
SELECT ALL - + 36 + - col0 AS col2 FROM tab1 AS cor0
----
-100
-116
-39
query I rowsort
SELECT ALL - cor0.col1 + + col0 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab1 AS cor0
----
69
query I rowsort
SELECT DISTINCT ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 88 * 72 AS col2 FROM tab2 AS cor0
----
6336
6336
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT 65 DIV col1 + col0 col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-576
SELECT 65 / col1 + col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col2 * + 36 AS col2 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT ALL col2 + 41 * + col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT ALL + col2 * col2 * - cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + ( col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 87 * cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 23a009775cc8bbb769ec91d35f36dc9e
query I rowsort
SELECT - cor0.col2 * + col2 * - 3 FROM tab0 AS cor0
----
20172
3
3267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( col0 ) * col2 * col0 col0 FROM tab2 cor0
----
-1292
-158125
-237141
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT DISTINCT + col0 DIV + 88 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + col0 / + 88 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT DISTINCT tab1.col0 DIV 2 AS col2 FROM tab1
----
1
32
40
skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT tab1.col0 / 2 AS col2 FROM tab1
----
1
32
40
query I rowsort
SELECT col1 + ( - 5 ) AS col1 FROM tab1 AS cor0
----
21
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT ALL - col0 DIV 78 FROM tab2 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - col0 / 78 FROM tab2 cor0
----
-1
-1
0
query I rowsort
SELECT ALL + col1 + + ( + col1 ) * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + col0 + - 66 * - col0 + - col0 * - ( col0 ) FROM tab2 cor0
----
11310
11534
518
query I rowsort
SELECT - col0 - 61 FROM tab1 AS cor0
----
-125
-141
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 4 col0 FROM tab2
----
30
31
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 86 + - col2 col2 FROM tab2 AS cor0
----
1
28
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-596
SELECT + CAST( col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-596
SELECT + CAST ( col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT DISTINCT + col1 + col2 DIV col0 + - col2 FROM tab0
----
54
9
96
skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + col1 + col2 / col0 + - col2 FROM tab0
----
54
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-598
SELECT - tab1.col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-598
SELECT - tab1.col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * ( - 45 ) * col1 AS col0 FROM tab0
----
-332820
-372645
-423405
query I rowsort
SELECT - col1 * col1 - + cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT col1 * + col0 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT cor0.col0 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 52 + col2 * col2 FROM tab2 AS cor0
----
1496
728
781
query I rowsort
SELECT col0 - + cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * col0 AS col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + 32 + col2 * - 80 AS col1 FROM tab2 AS cor0
----
-2048
-2128
-3008
query I rowsort
SELECT ALL - - col0 + + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT + col0 * 42 AS col1 FROM tab1
----
126
2688
3360
query I rowsort
SELECT DISTINCT col1 * - col2 - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL col0 * + ( col1 ) FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-611
SELECT CAST( + 32 AS SIGNED ) * - col0 AS col2 FROM tab2
----
-224
-2496
-2528
skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( + 32 AS INTEGER ) * - col0 AS col2 FROM tab2
----
-224
-2496
-2528
query I rowsort
SELECT - ( col2 * col1 ) FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT DISTINCT 48 + col1 DIV + col0 - + col1 AS col2 FROM tab0
----
-35
-42
-47
skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT 48 + col1 / + col0 - + col1 AS col2 FROM tab0
----
-35
-42
-47
query I rowsort
SELECT + col1 * - col0 + + col1 * ( col0 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 19 * - col0 FROM tab2
----
-133
-1482
-1501
query I rowsort
SELECT - + col1 + - 95 AS col1 FROM tab1 AS cor0
----
-105
-108
-121
query I rowsort
SELECT - col2 * + col1 * ( - ( - col2 ) ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT 12 * + col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT - 86 + - col2 * - 95 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-103541
-181
-638866
query I rowsort
SELECT ALL - 50 * + col0 - col1 FROM tab2 AS cor0
----
-381
-3959
-3967
query I rowsort
SELECT DISTINCT 42 * - col2 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 23 col2 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL 73 * + col0 FROM tab0 AS cor0
----
1752
2555
6497
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-627
SELECT + CAST( NULL AS SIGNED ) + ( + col1 ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-627
SELECT + CAST ( NULL AS INTEGER ) + ( + col1 ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 20 * col1 + col1 + tab1.col1 AS col1 FROM tab1
----
220
286
572
query I rowsort
SELECT DISTINCT col2 * col2 + col1 * col0 AS col0 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT DISTINCT - 70 + - col1 AS col0 FROM tab2 AS cor0
----
-101
-129
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - col1 col2 FROM tab0 AS cor0
----
-76
-81
-87
query I rowsort
SELECT ALL 42 + col1 FROM tab0 cor0
----
128
133
139
skipif mysql # not compatible
query I rowsort
SELECT ALL 82 + col0 * + CAST ( - col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1143
-494
-7839
query I rowsort
SELECT ALL ( + cor0.col1 ) * - 0 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col1 * col1 * cor0.col1 FROM tab2 cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - col0 * 36 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 + col0 col2 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT + col2 * + 24 AS col1 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT ALL - ( 89 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT - col0 * + 55 + 76 FROM tab2
----
-309
-4214
-4269
query I rowsort
SELECT col2 + ( 93 ) * cor0.col1 + + 10 * + 59 AS col1 FROM tab1 AS cor0
----
1577
1895
3062
query I rowsort
SELECT - 71 + col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-9
2743
7302
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * 27 + col0 + + 64 col2 FROM tab2 AS cor0
----
-118
-46
-47
query I rowsort
SELECT + ( - cor0.col2 ) * + col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT col0 * - ( - col1 * - 45 ) FROM tab2
----
-207090
-60435
-9765
query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0, tab1 cor0
----
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-647
SELECT + - col0 + 86 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-647
SELECT + - col0 + 86 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 92 + ( - col1 ) AS col1 FROM tab2 cor0
----
-109
-123
-151
query I rowsort
SELECT ALL - 42 * col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT - 77 * ( + col0 ) + + col2 FROM tab0 AS cor0
----
-1815
-2694
-6771
query I rowsort
SELECT ALL - - col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 85 ) + + col1 + - col2 col0 FROM tab0 AS cor0
----
138
181
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL col1 * ( + col1 ) AS col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col2 + - 0 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT ALL - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * - 2 + col2 AS col1 FROM tab1
----
162
171
288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT - + CAST( NULL AS SIGNED ) * - cor0.col0 + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-658
SELECT - + CAST ( NULL AS INTEGER ) * - cor0.col0 + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 16 + + 31 AS col2 FROM tab1 AS cor0
----
15
15
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-660
SELECT CAST( + col2 AS SIGNED ) * col1 + - 17 * col1 AS col0 FROM tab1 AS cor0
----
1027
400
962
skipif mysql # not compatible
query I rowsort label-660
SELECT CAST ( + col2 AS INTEGER ) * col1 + - 17 * col1 AS col0 FROM tab1 AS cor0
----
1027
400
962
query I rowsort
SELECT ALL - col1 * + 58 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT ALL ( cor0.col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 - + col0 * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT DISTINCT + 57 * col2 AS col2 FROM tab2 AS cor0
----
1482
1539
2166
query I rowsort
SELECT - col0 * + cor0.col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT cor0.col1 * + col0 + 85 FROM tab2 AS cor0
----
1428
302
4687
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-667
SELECT ALL - col0 * cor0.col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - col0 * cor0.col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + col1 + col1 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT + - col2 + ( + col0 ) AS col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-670
SELECT cor0.col0 DIV - 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-670
SELECT cor0.col0 / - 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + - 18 col0 FROM tab2 AS cor0
----
1426
658
711
query I rowsort
SELECT DISTINCT - - col0 + + 2 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT ALL + - col1 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-674
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 2 + 81 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT + col1 + + 50 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT tab0.col0 + col2 * col0 * - col2 + + col0 FROM tab0
----
-26088
-598258
35
query I rowsort
SELECT ALL + - 69 + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
-31
27
68
query I rowsort
SELECT ALL - - ( + ( col1 ) ) * - col2 + + 40 * col2 AS col2 FROM tab1 AS cor0
----
1710
2592
756
query I rowsort
SELECT + col2 * ( 18 ) + + col0 * + col1 FROM tab0
----
2658
3413
9575
query I rowsort
SELECT ( tab2.col2 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL col1 + ( ( + col0 ) * 56 ) FROM tab2
----
423
4427
4441
query I rowsort
SELECT ALL col1 * 53 + - col0 - col0 FROM tab0
----
4510
4645
5071
onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT col0 DIV col0 + + col1 * tab1.col2 col1 FROM tab1
----
1249
1405
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-684
SELECT col0 / col0 + + col1 * tab1.col2 col1 FROM tab1
----
1249
1405
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT - col0 DIV 72 + col1 FROM tab2 cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-685
SELECT - col0 / 72 + col1 FROM tab2 cor0
----
16
31
58
query I rowsort
SELECT + - 92 * col0 - - col2 FROM tab2 AS cor0
----
-617
-7150
-7230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT col1 * - CAST( 72 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
skipif mysql # not compatible
query I rowsort label-687
SELECT col1 * - CAST ( 72 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ALL - col1 + 39 AS col0 FROM tab0 cor0
----
-47
-52
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( cor0.col1 ) + + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab2, tab1 AS cor0
----
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-691
SELECT DISTINCT CAST( col0 * - tab2.col2 + 65 AS SIGNED ) AS col2 FROM tab2
----
-124
-1963
-2937
skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT CAST ( col0 * - tab2.col2 + 65 AS INTEGER ) AS col2 FROM tab2
----
-124
-1963
-2937
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0
----
59
query I rowsort
SELECT ALL 73 AS col0 FROM tab0 cor0
----
73
73
73
query I rowsort
SELECT ALL - - col2 * + 39 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT ALL col2 * 12 * + col0 FROM tab1 AS cor0
----
1944
43776
92160
query I rowsort
SELECT ALL - ( 50 ) + - col1 AS col1 FROM tab2 AS cor0
----
-109
-67
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-697
SELECT 15 + + cor0.col2 - - col1 DIV col1 FROM tab1 cor0
----
112
70
73
skipif mysql # not compatible
query I rowsort label-697
SELECT 15 + + cor0.col2 - - col1 / col1 FROM tab1 cor0
----
112
70
73
query I rowsort
SELECT DISTINCT col1 * - col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT 3 - col1 AS col2 FROM tab0 AS cor0
----
-83
-88
-94
query I rowsort
SELECT ALL + - 89 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT DISTINCT + tab2.col0 * 84 FROM tab2
----
588
6552
6636
query I rowsort
SELECT col2 + - col2 * + col2 * - col2 FROM tab1 AS cor0
----
157518
185250
884832
onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT + 10 DIV col0 + - col2 FROM tab2 AS cor0
----
-26
-26
-38
skipif mysql # not compatible
query I rowsort label-703
SELECT + 10 / col0 + - col2 FROM tab2 AS cor0
----
-26
-26
-38
query I rowsort
SELECT - 12 - - col2 FROM tab1
----
42
45
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT ALL - col2 + - col2 DIV + ( - col0 ) col0 FROM tab1 AS cor0
----
-36
-57
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - col2 + - col2 / + ( - col0 ) col0 FROM tab1 AS cor0
----
-36
-57
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-706
SELECT ALL cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-706
SELECT ALL cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 * 66 AS col1 FROM tab2 AS cor0
----
1657
1751
2491
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-708
SELECT col2 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-708
SELECT col2 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 8 col1 FROM tab2 cor0
----
-70
-71
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col0 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col1 - 10 AS col0 FROM tab0 AS cor0
----
76
81
87
query I rowsort
SELECT DISTINCT 22 * col1 AS col0 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT + ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 8 * - cor0.col0 + + col0 * + col2 FROM tab0 AS cor0
----
-245
600
6586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-715
SELECT + CAST( - 21 AS SIGNED ) FROM tab0 AS cor0
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort label-715
SELECT + CAST ( - 21 AS INTEGER ) FROM tab0 AS cor0
----
-21
-21
-21
query I rowsort
SELECT 12 * col2 AS col0 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT ALL 5 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 1 col1 FROM tab0
----
85
90
96
query I rowsort
SELECT tab0.col0 + + ( tab0.col1 * + col0 + col1 ) FROM tab0
----
2174
3527
8279
query I rowsort
SELECT ALL + 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT ( col2 + col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col1 + - 69 FROM tab0 AS cor0
----
17
22
28
query I rowsort
SELECT - - col2 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT DISTINCT col1 * col1 DIV - col1 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT col1 * col1 / - col1 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL 13 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + 24 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 * col2 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
119559
32326
75137
query I rowsort
SELECT - col1 + - col1 * col1 FROM tab2
----
-306
-3540
-992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * + tab0.col2 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + col2 + col1 * cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT cor0.col0 * col1 * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT + cor0.col0 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT - col1 DIV cor0.col1 + + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-3
-63
-63
skipif mysql # not compatible
query I rowsort label-734
SELECT - col1 / cor0.col1 + + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-3
-63
-63
query I rowsort
SELECT - col2 + cor0.col0 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
169
2080
3043
query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
22592
24469
39806
query I rowsort
SELECT + - cor0.col0 + - col1 + - col1 FROM tab1 AS cor0
----
-106
-55
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT + - cor0.col1 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-738
SELECT + - cor0.col1 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + col1 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - col0 + col0 * + col1 FROM tab2 cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT DISTINCT - col2 DIV - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - col2 / - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT DISTINCT + col1 + + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + col1 + + col1 / + col1 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + - col0 + col0 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1405
-193
-4621
query I rowsort
SELECT ALL + col2 + col0 + col1 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - col1 * - col1 * col1 + col1 * col1 + + col1 AS col1 FROM tab2
----
208919
30783
5219
query I rowsort
SELECT col0 * + col2 + - tab2.col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT ALL + tab0.col1 * col2 + col0 * + col2 + tab0.col1 AS col2 FROM tab0
----
14851
229
3716
query I rowsort
SELECT DISTINCT - 35 * col1 * + col0 FROM tab1 AS cor0
----
-22400
-2730
-36400
query I rowsort
SELECT ALL - + col0 + + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
1
7291
801
query I rowsort
SELECT + col0 * + col1 - cor0.col0 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - + 87 + col1 FROM tab2 AS cor0
----
-28
-56
-70
query I rowsort
SELECT + col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + 11 - + col2 FROM tab1 AS cor0
----
-107
-65
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + col1 * - col0 - col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL col0 * col0 + + col1 * col1 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT col2 * - col1 * + col2 - + tab0.col0 AS col0 FROM tab0
----
-132
-611973
-93678
query I rowsort
SELECT ALL - 82 - tab1.col1 * col2 FROM tab1
----
-1330
-1486
-652
onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT col0 - col2 DIV col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-759
SELECT col0 - col2 / col1 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT - 39 + - col2 FROM tab1 cor0
----
-135
-93
-96
query I rowsort
SELECT col0 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + ( tab0.col0 ) * col2 * col1 + col2 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT + col0 + cor0.col1 + col0 * + col1 FROM tab1 cor0
----
107
1133
714
query I rowsort
SELECT col0 * - col0 * + col1 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL col0 + + col1 + - tab0.col2 FROM tab0
----
131
77
98
query I rowsort
SELECT col0 * + tab2.col1 + tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL col2 + - col1 - + tab1.col2 * - tab1.col1 FROM tab1
----
1331
1432
617
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT - tab1.col0 * col0 DIV col2 FROM tab1
----
-66
-71
0
skipif mysql # not compatible
query I rowsort label-768
SELECT - tab1.col0 * col0 / col2 FROM tab1
----
-66
-71
0
query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 + col0 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE - col0 - col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + col2 * col0 * - col2 col2 FROM tab1
----
-207869
-737171
-8668
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT DISTINCT + tab1.col2 DIV - col1 + col2 AS col0 FROM tab1
----
52
89
skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + tab1.col2 / - col1 + col2 AS col0 FROM tab1
----
52
89
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col1 NOT BETWEEN col1 / col2 AND - col1 * col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col0 col2 FROM tab2
----
56
6162
6320
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT col1 DIV + col2 FROM tab1 WHERE NOT col1 = ( col0 )
----
0
0
0
skipif mysql # not compatible
query I rowsort label-778
SELECT col1 / + col2 FROM tab1 WHERE NOT col1 = ( col0 )
----
0
0
0
query I rowsort
SELECT col1 + col2 * col2 AS col1 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT ALL col1 * + col1 + - col0 * col2 DIV + col2 col0 FROM tab0
----
7372
8192
9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-780
SELECT ALL col1 * + col1 + - col0 * col2 / + col2 col0 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL <> - col1
----
query I rowsort
SELECT - col0 * col2 * - col2 - col2 * col1 AS col0 FROM tab2
----
113430
4266
51194
onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT ALL col1 + - col2 DIV col2 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-783
SELECT ALL col1 + - col2 / col2 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT col2 * + col2 - - col2 * col2 FROM tab1
----
18432
5832
6498
query I rowsort
SELECT ALL col2 * - col1 * col0 AS col2 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * - col0 col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col0 + + col1 * col2 AS col1 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT ALL + col2 DIV col2 + + col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + col2 / col2 + + col2 FROM tab1
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT ALL - col2 DIV + tab1.col0 AS col2 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - col2 / + tab1.col0 AS col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 + 69 FROM tab2 AS cor0
----
107
95
96
query I rowsort
SELECT - + ( + 10 ) AS col1 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT + 9 + - 54 AS col1 FROM tab1 AS cor0
----
-45
-45
-45
query I rowsort
SELECT col1 * - col2 + col0 * + tab2.col2 AS col0 FROM tab2
----
-648
2356
494
query I rowsort
SELECT ( - col1 ) - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-796
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 12 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 12 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT DISTINCT - - 22 DIV + col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - - 22 / + col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 78 AS col2 FROM tab0 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col1 * - 44 AS col0 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT ALL cor0.col0 - - col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - col0 * 50 + - cor0.col1 * + col0 AS col1 FROM tab1 cor0
----
-228
-3840
-5040
query I rowsort
SELECT ALL + col1 + cor0.col0 * - col2 * col0 FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT ALL + col2 * col2 + col2 * - col2 + + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT + col0 - + 49 * + col2 * col1 AS col0 FROM tab0
----
-139038
-365549
-4718
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + - col2 + + col2 * cor0.col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT col1 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - - col0 * - col1 * - col1 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT cor0.col0 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT + col1 DIV cor0.col0 + 23 FROM tab0 cor0
----
24
25
26
skipif mysql # not compatible
query I rowsort label-813
SELECT + col1 / cor0.col0 + 23 FROM tab0 cor0
----
24
25
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col2 * col0 col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + - col2 + col1 + - col2 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT + col0 + + 37 + - col1 FROM tab0 cor0
----
-25
-25
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT + - col1 * - cor0.col1 + + col2 + - cor0.col0 * col0 DIV + col0 FROM tab2 AS cor0
----
248
3429
981
skipif mysql # not compatible
query I rowsort label-817
SELECT + - col1 * - cor0.col1 + + col2 + - cor0.col0 * col0 / + col0 FROM tab2 AS cor0
----
248
3429
981
query I rowsort
SELECT + - col1 + 58 FROM tab0 AS cor0
----
-28
-33
-39
query I rowsort
SELECT - 22 * + tab0.col1 FROM tab0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT + col0 + - col2 + col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT ALL - 0 + - col0 DIV - col2 - + col1 AS col1 FROM tab1
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - 0 + - col0 / - col2 - + col1 AS col1 FROM tab1
----
-13
-26
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT 91 * col0 DIV - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
-2
-56
-67
skipif mysql # not compatible
query I rowsort label-822
SELECT 91 * col0 / - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
-2
-56
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-823
SELECT DISTINCT + cor0.col0 DIV col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT + cor0.col0 / col1 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT col2 * ( + col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
2704
4446
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT DISTINCT col0 DIV 70 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT col0 / 70 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + col2 * col1 + col1 + + col2 AS col2 FROM tab0 AS cor0
----
195
2957
7635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 * + col1 col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT DISTINCT col0 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col1 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - + col1 + + 18 * + 10 FROM tab1 AS cor0
----
154
167
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT ALL - col0 DIV + col2 AS col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - col0 / + col2 AS col2 FROM tab0 cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT + col1 DIV - col0 + + 62 * + col2 + - col0 col2 FROM tab0 AS cor0
----
2019
25
4994
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-832
SELECT + col1 / - col0 + + 62 * + col2 + - col0 col2 FROM tab0 AS cor0
----
2019
25
4994
onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT + col1 * + col0 + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-833
SELECT + col1 * + col0 + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT ALL col0 - + 50 * col0 AS col2 FROM tab0 cor0
----
-1176
-1715
-4361
query I rowsort
SELECT ALL cor0.col1 * col1 + 89 AS col1 FROM tab0 AS cor0
----
7485
8370
9498
query I rowsort
SELECT ALL col2 * - col2 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1286
-520
-715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-837
SELECT ALL + - CAST( + 96 AS SIGNED ) + + col0 * - CAST( NULL AS SIGNED ) - 37 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + - CAST ( + 96 AS INTEGER ) + + col0 * - CAST ( NULL AS INTEGER ) - 37 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2 AS cor0
----
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-839
SELECT DISTINCT - CAST( - 11 AS SIGNED ) * + col2 * - 78 AS col2 FROM tab2 AS cor0
----
-22308
-23166
-32604
skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - CAST ( - 11 AS INTEGER ) * + col2 * - 78 AS col2 FROM tab2 AS cor0
----
-22308
-23166
-32604
query I rowsort
SELECT - col1 + 90 * col0 FROM tab2 AS cor0
----
599
6961
7093
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 66 AS REAL ) AS col2 FROM tab1 cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-842
SELECT ALL + ( - col0 ) * + col2 + - CAST( NULL AS SIGNED ) 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-842
SELECT ALL + ( - col0 ) * + col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + col1 * - 32 * col0 + cor0.col1 FROM tab2 AS cor0
----
-147205
-42959
-6913
query I rowsort
SELECT col0 * + 39 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT 49 * + col0 FROM tab1 cor0
----
147
3136
3920
query I rowsort
SELECT ALL - 53 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT + + col1 + - col0 * cor0.col0 - col0 FROM tab1 AS cor0
----
-4150
-6467
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-849
SELECT DISTINCT - ( col1 ) + - CAST( col1 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-144
-72
-89
skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - ( col1 ) + - CAST ( col1 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-144
-72
-89
query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab2 cor0
----
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT ALL - 57 + col0 * col0 * col0 FROM tab2 cor0
----
286
474495
492982
query I rowsort
SELECT ALL + + cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-854
SELECT - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-854
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 34 * + col1 + col0 FROM tab0
----
2948
3183
3333
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2, tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + ( col0 ) + - ( col2 ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - 76 + - col0 FROM tab0 AS cor0
----
-100
-111
-165
query I rowsort
SELECT ALL col2 * + cor0.col0 + 28 * - col2 FROM tab1 AS cor0
----
-1350
2052
4992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * cor0.col0 col2 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT ALL + 79 + col2 AS col2 FROM tab1 AS cor0
----
133
136
175
query I rowsort
SELECT DISTINCT + + col2 * - col2 * + 18 AS col2 FROM tab1 AS cor0
----
-165888
-52488
-58482
query I rowsort
SELECT + - col2 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT tab0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-864
SELECT tab0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
query I rowsort
SELECT col2 * col0 * - col0 + tab0.col0 FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT - col0 * - 89 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL + + 43 - col1 AS col2 FROM tab0 cor0
----
-43
-48
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-869
SELECT 76 + ( + col0 ) * - 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-869
SELECT 76 + ( + col0 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + 93 FROM tab2 AS cor0
----
34
62
76
query I rowsort
SELECT + 85 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to bf0af9907f19b103b046b732c6e03755
onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT DISTINCT - col2 + ( col0 ) DIV col1 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - col2 + ( col0 ) / col1 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + 98 * col2 - col2 * ( 59 * + col2 + - col0 ) FROM tab1 AS cor0
----
-166590
-182457
-526656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 * + col0 + + col0 col2 FROM tab2 AS cor0
----
-1302
-237
-4550
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ALL col2 DIV - 84 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-875
SELECT ALL col2 / - 84 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 32 col1 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT ALL - col1 * - 45 + 50 FROM tab0 AS cor0
----
3920
4145
4415
query I rowsort
SELECT + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 23 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT - col1 * col1 * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT + + col1 + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col1 + - col0 * - col1 * 79 FROM tab2 AS cor0
----
106114
17174
363617
query I rowsort
SELECT + ( - col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col2 * 96 FROM tab0 cor0
----
-3168
-7872
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-885
SELECT DISTINCT col2 DIV tab1.col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT col2 / tab1.col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT + col1 * - 44 FROM tab0
----
-3784
-4004
-4268
query I rowsort
SELECT - 2 * col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - col0 + col1 * ( 50 ) FROM tab2 AS cor0
----
1543
2872
771
query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ALL - + 5 + + col1 DIV col1 FROM tab1 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - + 5 + + col1 / col1 FROM tab1 AS cor0
----
-4
-4
-4
query I rowsort
SELECT col1 * + col1 + col1 + - col2 AS col1 FROM tab1
----
53
648
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL + tab0.col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 * col1 + - col2 AS col2 FROM tab2
----
1508
608
810
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col2 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col1 + col0 + col2 * - col1 FROM tab2
----
-1397
-550
-799
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab0 WHERE ( col2 + col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 * col0 * + col1 AS col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT + col0 DIV ( - 89 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-899
SELECT + col0 / ( - 89 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 72 * + col0 + - ( col0 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
2686
315
3588
query I rowsort
SELECT col0 + + col2 * 55 * cor0.col0 FROM tab1 AS cor0
----
200704
422480
8913
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT - col0 * col0 + col1 DIV - col0 FROM tab2 AS cor0
----
-53
-6084
-6241
skipif mysql # not compatible
query I rowsort label-902
SELECT - col0 * col0 + col1 / - col0 FROM tab2 AS cor0
----
-53
-6084
-6241
query I rowsort
SELECT DISTINCT - 79 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
-44
713
7219
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col1 AS col2 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT col2 * col1 + ( col2 ) FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - 57 col1 FROM tab0 AS cor0
----
-22
7241
735
query I rowsort
SELECT - - 90 + - cor0.col0 * - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 530e58e27c99d687d6556b994f8afce3
query I rowsort
SELECT DISTINCT col2 + + 70 * col0 * col1 AS col2 FROM tab2
----
15217
322166
94048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col0 * col0 col0 FROM tab1
----
-17
4086
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-910
SELECT + col1 + CAST( col2 + + cor0.col0 AS SIGNED ) FROM tab1 cor0
----
131
189
83
skipif mysql # not compatible
query I rowsort label-910
SELECT + col1 + CAST ( col2 + + cor0.col0 AS INTEGER ) FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT - col0 + 46 AS col2 FROM tab0 AS cor0
----
-43
11
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 62 col1 FROM tab2 AS cor0
----
100
88
89
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT 11 * col1 DIV col2 col2 FROM tab1
----
1
1
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-914
SELECT 11 * col1 / col2 col2 FROM tab1
----
1
1
5
query I rowsort
SELECT ALL - ( + col1 ) * col2 + - 34 AS col2 FROM tab0
----
-131
-2872
-7496
onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT ALL 70 + 88 DIV col0 FROM tab0
----
70
72
73
skipif mysql # not compatible
query I rowsort label-916
SELECT ALL 70 + 88 / col0 FROM tab0
----
70
72
73
query I rowsort
SELECT - ( - 47 ) + + col0 AS col0 FROM tab1 AS cor0
----
111
127
50
query I rowsort
SELECT DISTINCT ( col2 * col1 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + + ( + 62 ) FROM tab1 cor0
----
62
62
62
query I rowsort
SELECT ( col1 ) * ( 4 ) + col1 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT + col1 * col1 * 29 FROM tab0 AS cor0
----
214484
240149
272861
query I rowsort
SELECT DISTINCT 70 + col0 AS col1 FROM tab0
----
105
159
94
query I rowsort
SELECT col0 + + col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + - 12 * - col0 * 20 FROM tab1 cor0
----
15360
19200
720
query I rowsort
SELECT ALL + cor0.col0 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL + col0 + 89 FROM tab2
----
167
168
96
query I rowsort
SELECT - - 20 * col1 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT - 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT ALL - col1 * + 24 * - col0 + cor0.col2 * 46 AS col2 FROM tab1 AS cor0
----
17982
29376
4356
query I rowsort
SELECT DISTINCT - + ( col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - ( 85 ) * - col1 * - col1 + + col1 FROM tab0 AS cor0
----
628746
703976
799862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-932
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - CAST ( NULL AS REAL ) + + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT + 76 DIV - col2 AS col0 FROM tab0
----
-2
-76
0
skipif mysql # not compatible
query I rowsort label-933
SELECT + 76 / - col2 AS col0 FROM tab0
----
-2
-76
0
query I rowsort
SELECT DISTINCT - col2 + tab0.col0 * + col1 AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + 94 FROM tab2 cor0
----
94
query I rowsort
SELECT DISTINCT 84 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT DISTINCT - 39 * 46 AS col0 FROM tab2 cor0
----
-1794
query I rowsort
SELECT ALL - ( + 52 ) FROM tab2 AS cor0
----
-52
-52
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT - CAST( - 77 AS SIGNED ) * col0 FROM tab1 AS cor0
----
231
4928
6160
skipif mysql # not compatible
query I rowsort label-939
SELECT - CAST ( - 77 AS INTEGER ) * col0 FROM tab1 AS cor0
----
231
4928
6160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * + col1 col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col1 + 32 + - col1 FROM tab2 AS cor0
----
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - tab0.col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * tab1.col0 + 65 FROM tab1
----
227
3713
7745
onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT ALL + + 64 DIV + col2 col1 FROM tab1 cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + + 64 / + col2 col1 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT ALL + - col2 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-946
SELECT ALL - - col0 + + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - - col0 + + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col0 + + 18 * - 75 AS col1 FROM tab1 AS cor0
----
-1270
-1286
-1347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-948
SELECT - - col1 + + CAST( - col2 AS SIGNED ) * cor0.col0 AS col1 FROM tab0 cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-948
SELECT - - col1 + + CAST ( - col2 AS INTEGER ) * cor0.col0 AS col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL col1 - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - - col2 * - col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-952
SELECT DISTINCT - + col2 + CAST( + 55 AS SIGNED ) * + col0 AS col0 FROM tab1 cor0
----
111
3463
4304
skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - + col2 + CAST ( + 55 AS INTEGER ) * + col0 AS col0 FROM tab1 cor0
----
111
3463
4304
query I rowsort
SELECT col1 * 60 AS col0 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT - + col0 * + 14 + col1 + col1 FROM tab1 AS cor0
----
-1094
-876
10
query I rowsort
SELECT + col1 * - 42 + - col0 AS col0 FROM tab0 cor0
----
-3636
-3911
-4109
onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT cor0.col1 * - 79 + - 97 * col1 DIV + 96 FROM tab1 cor0
----
-1040
-2080
-800
skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT cor0.col1 * - 79 + - 97 * col1 / + 96 FROM tab1 cor0
----
-1040
-2080
-800
query I rowsort
SELECT DISTINCT - col2 * 85 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT ALL tab0.col0 * - 52 AS col2 FROM tab0
----
-1248
-1820
-4628
query I rowsort
SELECT + - col0 * 44 + + col2 * col2 FROM tab2 AS cor0
----
-2032
-2756
421
query I rowsort
SELECT col1 + 94 + col1 FROM tab1 AS cor0
----
114
120
146
query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
260
40970
83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT ALL + cor0.col2 * 31 * - col2 + + col2 DIV 84 FROM tab2 AS cor0
----
-20956
-22599
-44764
skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + cor0.col2 * 31 * - col2 + + col2 / 84 FROM tab2 AS cor0
----
-20956
-22599
-44764
query I rowsort
SELECT DISTINCT + col0 * - ( - 76 ) AS col2 FROM tab1 AS cor0
----
228
4864
6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-964
SELECT DISTINCT - cor0.col2 DIV + cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - cor0.col2 / + cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + 87 + col0 AS col2 FROM tab1 AS cor0
----
151
167
90
query I rowsort
SELECT col1 * - 82 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT col0 + 44 * col2 FROM tab2 AS cor0
----
1195
1222
1751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * - col1 * + col1 col0 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT col1 + + ( col2 ) * + col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col1 * - 98 * col0 + - col1 * 81 AS col0 FROM tab0
----
-209238
-340567
-801073
query I rowsort
SELECT DISTINCT tab1.col0 * - 47 FROM tab1
----
-141
-3008
-3760
onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT + col1 DIV - 33 + 98 * col1 * 10 FROM tab0
----
84278
89178
95058
skipif mysql # not compatible
query I rowsort label-972
SELECT + col1 / - 33 + 98 * col1 * 10 FROM tab0
----
84278
89178
95058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * cor0.col2 + - cor0.col2 col0 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT + + col0 - - col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 + - 94 FROM tab0 AS cor0
----
16
38
86
query I rowsort
SELECT + 74 + col0 AS col0 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT + col2 * col0 + + 85 + col1 FROM tab0 AS cor0
----
217
7474
963
query I rowsort
SELECT ALL - - 87 * - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT ALL 53 + + col1 + ( col2 ) FROM tab2 cor0
----
108
111
138
query I rowsort
SELECT DISTINCT - ( - col0 ) * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + ( + col0 ) - + col2 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 - - col1 * - col2 col0 FROM tab1
----
-1175
-1331
-497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col2 col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col1 - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT DISTINCT - ( + col0 ) DIV col1 + 72 AS col1 FROM tab2 AS cor0
----
68
71
72
skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT - ( + col0 ) / col1 + 72 AS col1 FROM tab2 AS cor0
----
68
71
72
query I rowsort
SELECT + + 33 AS col1 FROM tab2 cor0
----
33
33
33
query I rowsort
SELECT + col1 + - col0 * ( col0 ) * - col1 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT - 22 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT DISTINCT 7 * - col2 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT ALL - 33 * col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-262
-2624
-2633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * - col1 col1 FROM tab1
----
-1794
-690
-897
query I rowsort
SELECT DISTINCT + - col0 + col1 * 60 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
1902
7182
9546
query I rowsort
SELECT 68 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1108
146
708
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-996
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-996
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col0 + + col2 * cor0.col0 * + 15 AS col0 FROM tab0 AS cor0
----
109559
11904
560
query I rowsort
SELECT + col0 * col1 * ( col1 ) - - col1 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT 91 + - col1 * - col2 FROM tab0 AS cor0
----
188
2929
7553
query I rowsort
SELECT + col2 + + cor0.col0 * 60 + 5 * col1 AS col1 FROM tab0 AS cor0
----
1903
2586
5877
query I rowsort
SELECT ALL + + cor0.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 - - col2 * col0 * + col2 col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT col0 * - col1 - - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT - col1 * + ( + ( col0 ) ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT DISTINCT - col2 DIV + ( 26 ) FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - col2 / + ( 26 ) FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT + col2 + col2 - - ( + col1 * + 48 ) FROM tab1 AS cor0
----
1356
594
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT + col1 * 18 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-156
-2
-2
skipif mysql # not compatible
query I rowsort label-1007
SELECT + col1 * 18 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-156
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT + col2 DIV - 54 - + 43 FROM tab1 AS cor0
----
-44
-44
-44
skipif mysql # not compatible
query I rowsort label-1008
SELECT + col2 / - 54 - + 43 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT - + col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + - col2 * - col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT DISTINCT tab2.col1 * col0 + + 43 FROM tab2
----
1386
260
4645
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT + - CAST( + col2 AS SIGNED ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
skipif mysql # not compatible
query I rowsort label-1012
SELECT + - CAST ( + col2 AS INTEGER ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT 45 * cor0.col1 + + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
1846
550
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT col0 DIV col1 + + col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort label-1014
SELECT col0 / col1 + + col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1015
SELECT - 21 * col0 + - col0 + CAST( NULL AS DECIMAL ) * - ( + col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1015
SELECT - 21 * col0 + - col0 + CAST ( NULL AS REAL ) * - ( + col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 * 23 + + col1 AS col1 FROM tab1 AS cor0
----
-1462
-1827
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT + col2 DIV 16 + cor0.col0 FROM tab0 AS cor0
----
26
35
94
skipif mysql # not compatible
query I rowsort label-1017
SELECT + col2 / 16 + cor0.col0 FROM tab0 AS cor0
----
26
35
94
query I rowsort
SELECT + + 42 * ( col2 ) AS col0 FROM tab0 cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT DISTINCT - + 34 + col2 DIV col1 FROM tab0 AS cor0
----
-34
skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - + 34 + col2 / col1 FROM tab0 AS cor0
----
-34
query I rowsort
SELECT - + col0 + + col2 + + col2 AS col1 FROM tab0 cor0
----
-33
42
75
query I rowsort
SELECT ALL 87 * + col2 AS col2 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT + + col0 * 41 + - col1 AS col1 FROM tab2 AS cor0
----
256
3139
3222
query I rowsort
SELECT DISTINCT - 67 * 7 AS col1 FROM tab0 AS cor0
----
-469
query I rowsort
SELECT DISTINCT + col2 + 11 * - col2 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT ALL col0 + - 95 + col2 DIV + 65 FROM tab0 AS cor0
----
-5
-60
-71
skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL col0 + - 95 + col2 / + 65 FROM tab0 AS cor0
----
-5
-60
-71
query I rowsort
SELECT ALL col0 + - col1 * col0 * col1 AS col0 FROM tab1 cor0
----
-13440
-2025
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 + 68 col1 FROM tab1 AS cor0
----
115
151
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT + + col2 * - col2 DIV col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-1029
SELECT + + col2 * - col2 / col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + 47 * + col0 - + col2 * col0 AS col2 FROM tab1
----
-21
-3920
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT DISTINCT + + col0 * col2 + + 20 DIV col2 AS col0 FROM tab0 AS cor0
----
55
7298
792
skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + + col0 * col2 + + 20 / col2 AS col0 FROM tab0 AS cor0
----
55
7298
792
query I rowsort
SELECT 15 + - cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 270e8b1596a1c77138cc7f8982755e97
query I rowsort
SELECT DISTINCT + 81 + col2 AS col0 FROM tab2 AS cor0
----
107
108
119
query I rowsort
SELECT cor0.col0 * - ( cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457
query I rowsort
SELECT DISTINCT + 84 * col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT DISTINCT + - 55 + col0 AS col0 FROM tab2 cor0
----
-48
23
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT - col0 DIV - col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-1037
SELECT - col0 / - col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT DISTINCT - ( - col0 ) * col0 * 18 + - col0 DIV col0 FROM tab0 AS cor0
----
10367
142577
22049
skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - ( - col0 ) * col0 * 18 + - col0 / col0 FROM tab0 AS cor0
----
10367
142577
22049
query I rowsort
SELECT ALL - ( - col0 ) + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + 13 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT - 23 * col2 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT 49 + tab2.col1 FROM tab2
----
108
66
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - tab2.col1 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 14 * - col0 FROM tab2
----
-1092
-1106
-98
query I rowsort
SELECT col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 89 + col1 + col2 AS col2 FROM tab1 AS cor0
----
156
169
198
query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab0 AS cor0
----
25
query I rowsort
SELECT + + 55 * - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ec1556e43e6aa368731ac4f30738a75a
query I rowsort
SELECT - ( col1 * col2 ) AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + col0 DIV + col2 + col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-1050
SELECT + col0 / + col2 + col0 FROM tab0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT + col1 - - col2 DIV ( + col0 ) FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-1051
SELECT + col1 - - col2 / ( + col0 ) FROM tab1
----
10
14
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1052
SELECT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1052
SELECT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1053
SELECT + - CAST( + col0 AS SIGNED ) + - col0 * 5 FROM tab0 AS cor0
----
-144
-210
-534
skipif mysql # not compatible
query I rowsort label-1053
SELECT + - CAST ( + col0 AS INTEGER ) + - col0 * 5 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT cor0.col1 * 53 + cor0.col2 FROM tab2 AS cor0
----
1670
3153
939
query I rowsort
SELECT DISTINCT - + col2 - - col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col1 + + 22 * - cor0.col1 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT ALL + cor0.col0 DIV 98 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + cor0.col0 / 98 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT DISTINCT - col1 + col1 - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 32 * - 60 AS col0 FROM tab0 AS cor0
----
-1920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 91 - - col2 * col1 col1 FROM tab1 AS cor0
----
1157
1313
479
query I rowsort
SELECT DISTINCT - 9 * col0 * + col0 FROM tab0 AS cor0
----
-11025
-5184
-71289
query I rowsort
SELECT col1 * - col2 * - col2 + 21 FROM tab0 cor0
----
118
611905
93675
query I rowsort
SELECT - ( 68 ) AS col1 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT 33 + 48 * - col1 * 74 FROM tab2 cor0
----
-110079
-209535
-60351
query I rowsort
SELECT DISTINCT - + 77 AS col1 FROM tab0 AS cor0
----
-77
query I rowsort
SELECT - + ( ( cor0.col1 ) ) + 85 AS col0 FROM tab2 cor0
----
26
54
68
query I rowsort
SELECT ALL - col1 + col1 * + col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL 64 * + col1 + + col1 * - ( 85 ) FROM tab2 AS cor0
----
-1239
-357
-651
query I rowsort
SELECT ALL col1 * + col0 + + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + ( + 21 ) + col2 * - 21 + col1 AS col0 FROM tab1
----
-1087
-1166
-1982
query I rowsort
SELECT tab2.col1 + 46 + col0 AS col0 FROM tab2
----
142
183
84
query I rowsort
SELECT ALL col2 + + 23 * col0 * col0 + + 42 FROM tab1
----
147338
303
94307
query I rowsort
SELECT ALL ( 75 ) + tab0.col2 AS col0 FROM tab0
----
108
157
76
query I rowsort
SELECT ALL + col0 + + col0 * col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - ( - 18 ) * - col1 + 61 AS col0 FROM tab0 AS cor0
----
-1487
-1577
-1685
query I rowsort
SELECT ALL - + col1 * - 37 AS col0 FROM tab2 AS cor0
----
1147
2183
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT - col2 DIV + 62 + - col0 FROM tab0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-1079
SELECT - col2 / + 62 + - col0 FROM tab0
----
-24
-35
-90
query I rowsort
SELECT - col2 + ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT DISTINCT 44 * col0 DIV col1 AS col2 FROM tab0 AS cor0
----
12
15
43
skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT 44 * col0 / col1 AS col2 FROM tab0 AS cor0
----
12
15
43
query I rowsort
SELECT + 59 * col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT 77 * col0 AS col1 FROM tab0 cor0
----
1848
2695
6853
query I rowsort
SELECT DISTINCT - - 77 * col2 - col0 AS col1 FROM tab0 cor0
----
2517
42
6225
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT - - 93 + + col2 DIV cor0.col0 FROM tab1 cor0
----
111
93
94
skipif mysql # not compatible
query I rowsort label-1085
SELECT - - 93 + + col2 / cor0.col0 FROM tab1 cor0
----
111
93
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - - cor0.col2 + cor0.col2 * ( col2 + col0 ) AS col1 FROM tab0 AS cor0
----
14104
1914
37
query I rowsort
SELECT ALL - col0 * - ( - col0 ) + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col0 * + col1 + - 49 AS col1 FROM tab1 AS cor0
----
29
591
991
query I rowsort
SELECT - 24 AS col2 FROM tab1 cor0
----
-24
-24
-24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1092
SELECT + col0 + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1092
SELECT + col0 + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 + + col1 * ( - cor0.col1 ) FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL col1 + 86 * 13 + col0 * - col2 FROM tab0 AS cor0
----
-6089
1180
412
query I rowsort
SELECT col0 + ( 83 ) AS col2 FROM tab0
----
107
118
172
query I rowsort
SELECT ALL + col0 + 70 AS col2 FROM tab1 AS cor0
----
134
150
73
query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT col0 DIV CAST( - 74 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1098
SELECT col0 / CAST ( - 74 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - col0 + + 0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1100
SELECT DISTINCT + cor0.col0 * + ( col2 ) + - cor0.col2 * CAST( - col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
1057
3621
3665
skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + cor0.col0 * + ( col2 ) + - cor0.col2 * CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
1057
3621
3665
query I rowsort
SELECT DISTINCT - col1 + col1 * 83 FROM tab2 AS cor0
----
1394
2542
4838
onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT - - 52 DIV + col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1102
SELECT - - 52 / + col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT col1 DIV ( - col0 ) + 82 * 36 FROM tab1 AS cor0
----
2944
2952
2952
skipif mysql # not compatible
query I rowsort label-1103
SELECT col1 / ( - col0 ) + 82 * 36 FROM tab1 AS cor0
----
2944
2952
2952
query I rowsort
SELECT ALL - + col1 * 49 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT DISTINCT - col2 * 14 AS col2 FROM tab1 AS cor0
----
-1344
-756
-798
query I rowsort
SELECT DISTINCT 90 + 99 AS col0 FROM tab0, tab2 AS cor0
----
189
query I rowsort
SELECT DISTINCT col2 * 42 + tab2.col1 * - col1 FROM tab2
----
-2389
1307
173
query I rowsort
SELECT - cor1.col0 + cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 64de71f07a6ba954417f781fbdd78d39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT - col0 + col0 + - col2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1109
SELECT - col0 + col0 + - col2 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + + col1 * + 60 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1099
1867
3618
query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1
----
-43
query I rowsort
SELECT ALL 32 + - tab2.col0 * col0 AS col0 FROM tab2
----
-17
-6052
-6209
query I rowsort
SELECT + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - - col0 * - col0 + + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1189
-519
-7750
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 64 ) col1 FROM tab2 AS cor0
----
142
143
71
query I rowsort
SELECT cor0.col0 + + ( 33 ) FROM tab0 AS cor0
----
122
57
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 + cor0.col2 col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT ( - 96 ) * + col1 AS col0 FROM tab2
----
-1632
-2976
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 78 col1 FROM tab2
----
546
6084
6162
query I rowsort
SELECT ALL - - col0 + - ( col0 ) + col1 * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - - 29 * cor0.col2 - col2 AS col1 FROM tab1 AS cor0
----
1512
1596
2688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col0 col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL col1 * - col2 - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + 24 AS col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT col2 + - 10 AS col2 FROM tab1 AS cor0
----
44
47
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT DISTINCT - col0 DIV col2 - - col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - col0 / col2 - - col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT - ( col1 ) * + cor0.col2 * - col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - - 32 + col1 * col0 FROM tab2 AS cor0
----
1375
249
4634
query I rowsort
SELECT col0 * + col1 * - ( + col2 ) AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col2 * - col1 + - col1 * col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT 81 * + col1 AS col0 FROM tab1 cor0
----
1053
2106
810
query I rowsort
SELECT + col2 * col0 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + col1 * col1 * 79 FROM tab0
----
584284
654199
743311
query I rowsort
SELECT - - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT + + 96 + + col2 DIV 15 AS col1 FROM tab1 AS cor0
----
102
99
99
skipif mysql # not compatible
query I rowsort label-1135
SELECT + + 96 + + col2 / 15 AS col1 FROM tab1 AS cor0
----
102
99
99
query I rowsort
SELECT cor0.col2 + 64 AS col2 FROM tab1 AS cor0
----
118
121
160
query I rowsort
SELECT ALL + - col0 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col1 * 54 + ( col0 ) - - ( cor0.col0 * + cor0.col1 ) FROM tab2 cor0
----
1898
2340
7866
query I rowsort
SELECT - 40 FROM tab0, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT + col0 * col1 + ( col1 * - ( col1 ) ) FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab1, tab1 AS cor0
----
91
query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT CAST( - tab0.col2 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif mysql # not compatible
query I rowsort label-1143
SELECT CAST ( - tab0.col2 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - col2 + ( cor0.col1 ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col2 + col2 * + col1 AS col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT 94 * - col1 + - col2 FROM tab0
----
-8117
-8636
-9119
query I rowsort
SELECT DISTINCT + 61 * + ( - col2 ) * 86 FROM tab2 AS cor0
----
-136396
-141642
-199348
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor1.col2 ) col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + ( 36 ) FROM tab0 cor0
----
36
36
36
query I rowsort
SELECT + + ( + ( + col2 ) ) + ( + col1 ) * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + - col1 + col2 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
207926
737267
8722
query I rowsort
SELECT ALL + ( + col1 ) * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 * + col1 - - col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL + col1 * ( + col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT 18 * - ( - col0 ) + - cor0.col1 * 88 + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-2072
3920
7976
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL 11 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ALL + col0 + - col0 * col2 DIV - 13 FROM tab2
----
21
234
309
skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + col0 + - col0 * col2 / - 13 FROM tab2
----
21
234
309
query I rowsort
SELECT ALL col1 - 59 FROM tab1 AS cor0
----
-33
-46
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT ALL + + CAST( 7 AS SIGNED ) AS col0 FROM tab1 cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + + CAST ( 7 AS INTEGER ) AS col0 FROM tab1 cor0
----
7
7
7
query I rowsort
SELECT DISTINCT - - cor0.col1 + cor0.col1 * col0 AS col2 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT + 58 * + col2 FROM tab2 cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT - 6 * - 65 FROM tab1 AS cor0
----
390
query I rowsort
SELECT DISTINCT 3 + - 2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1 cor0
----
-35
query I rowsort
SELECT + 48 AS col1 FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT ALL 78 * - col1 + + col0 - 80 AS col2 FROM tab1 AS cor0
----
-1014
-2105
-796
query I rowsort
SELECT DISTINCT + col0 - + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 46 * cor0.col2 + + col1 FROM tab0 AS cor0
----
-1432
-3681
51
query I rowsort
SELECT col2 + - col2 * + col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + 73 * + 1 FROM tab0, tab1 cor0
----
73
query I rowsort
SELECT - - col0 * 39 + col1 * cor0.col1 FROM tab0 AS cor0
----
10774
11752
8332
query I rowsort
SELECT ALL + col2 * + 2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + cor0.col1 * + 3 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL + col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) * - col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + - col0 + - ( - col2 ) FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT ALL + col1 * col1 DIV 62 FROM tab1 cor0
----
1
10
2
skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + col1 * col1 / 62 FROM tab1 cor0
----
1
10
2
query I rowsort
SELECT DISTINCT - col1 + 14 AS col2 FROM tab2 AS cor0
----
-17
-3
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 29 * col0 col1 FROM tab1 AS cor0
----
141
1913
2416
query I rowsort
SELECT + col2 + 70 - col1 FROM tab1
----
117
153
98
query I rowsort
SELECT - 45 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-42
19
35
query I rowsort
SELECT + col1 - + 42 AS col0 FROM tab2 cor0
----
-11
-25
17
query I rowsort
SELECT - col1 * col0 + + 41 FROM tab1
----
-37
-599
-999
query I rowsort
SELECT ALL col1 + 34 * - col0 FROM tab0
----
-1093
-2935
-730
query I rowsort
SELECT - col1 + 70 * col0 FROM tab0 AS cor0
----
1594
2353
6139
query I rowsort
SELECT - - ( 71 ) - col0 FROM tab0 AS cor0
----
-18
36
47
query I rowsort
SELECT - + ( - col2 ) * + col2 + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-95
1036
6715
query I rowsort
SELECT - tab2.col0 * - col0 AS col2 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1191
SELECT ALL CAST( NULL AS SIGNED ) * col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - 33 * col0 + col2 + col2 * + 38 FROM tab1 AS cor0
----
1104
111
2007
query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1, tab2 AS cor0
----
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1195
SELECT DISTINCT ( col0 ) + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT ( col0 ) + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col0 * + col0 + col0 * col1 * cor0.col0 + cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
120147
52950
736194
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT 93 DIV 41 FROM tab2
----
2
2
2
skipif mysql # not compatible
query I rowsort label-1197
SELECT 93 / 41 FROM tab2
----
2
2
2
query I rowsort
SELECT + col0 * tab2.col1 + col2 * col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT ALL - 98 - + col1 FROM tab1 AS cor0
----
-108
-111
-124
query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + 79 FROM tab0, tab1, tab0 cor0
----
79
query I rowsort
SELECT - + col2 * ( - col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT ALL - col1 DIV + col0 + + 59 FROM tab0 cor0
----
56
57
58
skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - col1 / + col0 + + 59 FROM tab0 cor0
----
56
57
58
query I rowsort
SELECT DISTINCT - col0 * 70 + + col1 AS col1 FROM tab2 AS cor0
----
-459
-5401
-5513
query I rowsort
SELECT DISTINCT - - col0 - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col0 * - 94 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT ALL + - col0 * - ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - + col0 * cor0.col0 + ( - col2 ) - + col0 AS col0 FROM tab0 cor0
----
-1261
-633
-8092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1209
SELECT - + col0 * CAST( + 36 * + col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-147456
-230400
-324
skipif mysql # not compatible
query I rowsort label-1209
SELECT - + col0 * CAST ( + 36 * + col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-147456
-230400
-324
query I rowsort
SELECT ALL - + col2 * ( cor0.col2 * - col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - col2 * 6 FROM tab1 cor0
----
-324
-342
-576
query I rowsort
SELECT ALL + + col2 * - 59 - 72 AS col0 FROM tab0 cor0
----
-131
-2019
-4910
onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT col0 DIV + col2 + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1214
SELECT col0 / + col2 + col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL - + cor0.col0 * + ( 19 ) AS col1 FROM tab2 AS cor0
----
-133
-1482
-1501
query I rowsort
SELECT ALL cor0.col2 + col0 * 77 * - col0 AS col0 FROM tab0 cor0
----
-44319
-609835
-94324
query I rowsort
SELECT + col2 - col0 * col0 * col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 36 * - col2 col0 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT + col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col0 + col2 * - col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL + col2 + - col2 * - col0 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col1 + col0 * - col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL col1 * + col0 + + col2 * col2 * - col1 AS col2 FROM tab2
----
-22382
-23205
-35282
query I rowsort
SELECT DISTINCT - tab0.col0 + - col0 AS col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL col2 / col0 - + col2 * - col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN col2 * col2 * + col2 + - col0 AND NULL
----
query I rowsort
SELECT DISTINCT col0 + tab2.col0 * + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT - col2 + col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN - col1 AND - col1
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + tab1.col0 col1 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( col0 )
----
query I rowsort
SELECT ALL - col1 + + col1 * col2 + + col2 / + col1 FROM tab1 WHERE ( NULL ) <= NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT DISTINCT cor0.col1 + + col1 * - CAST( col0 * + col0 AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-118727
-49417
-720638
skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT cor0.col1 + + col1 * - CAST ( col0 * + col0 AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-118727
-49417
-720638
query I rowsort
SELECT - ( - ( - col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + + 82 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab0, tab1 AS cor0
----
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1237
SELECT DISTINCT cor0.col0 * col0 + - CAST( + col1 AS SIGNED ) * cor0.col0 + 84 AS col2 FROM tab1 AS cor0
----
15
3540
5444
skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT cor0.col0 * col0 + - CAST ( + col1 AS INTEGER ) * cor0.col0 + 84 AS col2 FROM tab1 AS cor0
----
15
3540
5444
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 + - 28 FROM tab0 AS cor0
----
-2092
-3423
-8127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 * - col0 col0 FROM tab2 cor0
----
602
6708
6794
query I rowsort
SELECT DISTINCT + + col2 + - col0 * col0 AS col1 FROM tab1 cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1241
SELECT ALL - CAST( col1 AS SIGNED ) + + col2 FROM tab1
----
28
47
83
skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - CAST ( col1 AS INTEGER ) + + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL + 42 + + 7 AS col2 FROM tab0
----
49
49
49
query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + cor0.col0 - + col1 * 31 FROM tab2 AS cor0
----
-1751
-448
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1245
SELECT ALL - col0 + col0 * CAST( ( + col1 ) + col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
269888
4695
714160
skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - col0 + col0 * CAST ( ( + col1 ) + col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
269888
4695
714160
query I rowsort
SELECT - 63 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT ALL tab2.col0 - tab2.col0 * - col2 * col2 AS col0 FROM tab2
----
114155
5110
52806
query I rowsort
SELECT + cor0.col2 * col1 + - col0 AS col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT col0 * 59 - - col1 FROM tab2 AS cor0
----
444
4661
4678
query I rowsort
SELECT - col2 * 26 + col0 * col0 AS col2 FROM tab0 AS cor0
----
-282
1199
5789
query I rowsort
SELECT - col2 + 1 * col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + 40 + ( - cor0.col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-149
-1988
-2962
query I rowsort
SELECT 50 + + col0 FROM tab0 AS cor0
----
139
74
85
query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f7d7f8e55c3be4391aa225222961d676
query I rowsort
SELECT ALL - col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - 41 FROM tab0, tab1 AS cor0
----
-41
query I rowsort
SELECT + + col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL tab0.col1 * col0 - 8 * 84 AS col2 FROM tab0
----
1392
2723
7427
query I rowsort
SELECT + col1 * - col1 - - 82 FROM tab1 AS cor0
----
-18
-594
-87
query I rowsort
SELECT ALL - + col2 * col0 + ( col2 ) FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - 52 + + col0 AS col0 FROM tab1 AS cor0
----
-49
12
28
query I rowsort
SELECT 38 * cor0.col1 AS col0 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT + + col0 * - col0 - ( + 35 * cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-294
-8814
-9006
query I rowsort
SELECT ALL + col1 + col2 * 37 FROM tab2 AS cor0
----
1021
1030
1423
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL col2 - - 61 FROM tab0 cor0
----
143
62
94
query I rowsort
SELECT ALL + - col0 * - col0 - - 73 * col1 FROM tab2 AS cor0
----
10391
2312
7482
query I rowsort
SELECT ALL cor0.col0 * col0 + + 73 FROM tab2 AS cor0
----
122
6157
6314
query I rowsort
SELECT - col0 * 41 AS col0 FROM tab1
----
-123
-2624
-3280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( cor0.col0 ) * col0 + - col2 col2 FROM tab0 AS cor0
----
1224
18975
649440
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT - col1 DIV + col0 - - col2 * + col0 FROM tab2 AS cor0
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-1276
SELECT - col1 / + col0 - - col2 * + col0 FROM tab2 AS cor0
----
185
2028
3002
query I rowsort
SELECT col2 * + col1 + ( col0 * cor0.col0 + - col0 ) FROM tab0 AS cor0
----
1287
15294
3390
query I rowsort
SELECT + col0 * cor0.col2 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT - col2 + 39 AS col2 FROM tab0 AS cor0
----
-43
38
6
query I rowsort
SELECT DISTINCT tab0.col2 * - 45 AS col0 FROM tab0
----
-1485
-3690
-45
query I rowsort
SELECT - 85 + 68 * + col0 FROM tab2 AS cor0
----
391
5219
5287
query I rowsort
SELECT DISTINCT col2 + - 32 AS col2 FROM tab0 AS cor0
----
-31
1
50
query I rowsort
SELECT - 34 + col1 AS col2 FROM tab1
----
-21
-24
-8
query I rowsort
SELECT + ( 7 ) FROM tab2
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL - - ( 91 ) DIV cor0.col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - - ( 91 ) / cor0.col1 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT ALL - ( 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 57 col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT ALL + - cor0.col2 * - col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + 16 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1536
864
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT DISTINCT col1 DIV 36 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT col1 / 36 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 2 * + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - 3 + - col1 FROM tab1 AS cor0
----
-13
-16
-29
query I rowsort
SELECT + 37 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT ALL + + 52 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT ALL - ( tab1.col0 * col2 + + 73 ) FROM tab1
----
-235
-3721
-7753
query I rowsort
SELECT DISTINCT 42 * col0 FROM tab2
----
294
3276
3318
onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT ALL - col2 * col0 DIV col0 + - 51 FROM tab1 AS cor0
----
-105
-108
-147
skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - col2 * col0 / col0 + - 51 FROM tab1 AS cor0
----
-105
-108
-147
query I rowsort
SELECT - 75 * col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
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-1301
SELECT DISTINCT - 46 * col2 DIV + tab0.col2 FROM tab0
----
-46
skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - 46 * col2 / + tab0.col2 FROM tab0
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1302
SELECT + + col2 - + CAST( ( col2 ) AS SIGNED ) * cor0.col1 AS col1 FROM tab0 cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-1302
SELECT + + col2 - + CAST ( ( col2 ) AS INTEGER ) * cor0.col1 AS col1 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col0 * + col1 * ( tab2.col0 ) AS col2 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + 69 col2 FROM tab0
----
104
7367
861
query I rowsort
SELECT ALL col0 * ( + ( + col2 ) * ( - 38 ) ) + - tab2.col2 AS col1 FROM tab2
----
-114114
-7209
-77090
query I rowsort
SELECT DISTINCT - 43 + 13 * col1 * - 79 AS col2 FROM tab0 AS cor0
----
-88365
-93500
-99662
onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT DISTINCT + cor0.col0 DIV ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + cor0.col0 / ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + col2 + - col2 * col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT col0 * col2 + - 28 FROM tab1
----
134
3620
7652
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 * col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + col2 + 58 FROM tab2
----
84
85
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1312
SELECT ALL - col1 + col1 DIV + col0 FROM tab2
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - col1 + col1 / + col0 FROM tab2
----
-17
-27
-59
query I rowsort
SELECT ALL 67 + - 83 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col2 + 31 FROM tab0 AS cor0
----
113
32
64
query I rowsort
SELECT DISTINCT - - col2 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL - 93 + col0 * col0 AS col0 FROM tab1 cor0
----
-84
4003
6307
query I rowsort
SELECT + + 92 + + ( - cor0.col2 * - col1 ) FROM tab1 AS cor0
----
1340
1496
662
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1319
SELECT ALL + ( col0 ) + col2 + CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1146
37
6895
skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + ( col0 ) + col2 + CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT col0 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - col1 + col0 * col1 * 43 AS col0 FROM tab2 AS cor0
----
197827
57732
9300
query I rowsort
SELECT DISTINCT - - ( - col2 ) - - col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + ( - col2 ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( cor0.col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col1 + + 45 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
-30361
-32774
-64963
query I rowsort
SELECT ALL + col2 * 98 AS col2 FROM tab0
----
3234
8036
98
query I rowsort
SELECT DISTINCT + 10 FROM tab2, tab0, tab0 AS cor0, tab2 AS cor1
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1330
SELECT col2 * CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-1330
SELECT col2 * CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + col1 * col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - 28 AS col0 FROM tab0 cor0
----
-28
-28
-28
query I rowsort
SELECT col2 * - 84 FROM tab2 cor0
----
-2184
-2268
-3192
query I rowsort
SELECT ALL + - 26 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - 55 * - col0 + col0 + + 86 FROM tab1 AS cor0
----
254
3670
4566
query I rowsort
SELECT + col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + - 38 * - col0 FROM tab1 AS cor0
----
114
2432
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT col0 DIV col1 + + col0 + + col1 FROM tab1 cor0
----
29
80
99
skipif mysql # not compatible
query I rowsort label-1339
SELECT col0 / col1 + + col0 + + col1 FROM tab1 cor0
----
29
80
99
query I rowsort
SELECT DISTINCT ( col1 + col2 ) * col1 AS col2 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT ALL 58 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT - col0 DIV col2 + 11 * col1 + col1 col2 FROM tab0 AS cor0
----
1032
1091
1129
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1342
SELECT - col0 / col2 + 11 * col1 + col1 col2 FROM tab0 AS cor0
----
1032
1091
1129
query I rowsort
SELECT - col0 * + col2 + cor0.col0 + + col1 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT ( col0 ) * - col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 + col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - 56 + - cor0.col1 AS col1 FROM tab0 cor0
----
-142
-147
-153
query I rowsort
SELECT - - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT - cor0.col2 * col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1348
SELECT - cor0.col2 * col0 / - col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * + 0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col0 + col0 * 43 AS col1 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT ALL + ( + col2 ) * - 37 FROM tab1
----
-1998
-2109
-3552
query I rowsort
SELECT DISTINCT - col2 * 33 FROM tab1 AS cor0
----
-1782
-1881
-3168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * 6 col1 FROM tab0 AS cor0
----
-457
-492
-547
query I rowsort
SELECT + col0 + - col2 * 98 AS col2 FROM tab2 AS cor0
----
-2470
-2639
-3645
query I rowsort
SELECT ALL - + col2 + col0 * col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - col0 + 77 AS col2 FROM tab0 AS cor0
----
-12
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT DISTINCT col0 + - col1 DIV col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT col0 + - col1 / col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 + - 28 FROM tab1 AS cor0
----
-38
-41
-54
query I rowsort
SELECT ALL cor0.col0 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col0 + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - col0 + - ( - col1 ) * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0, tab2, tab2 cor0
----
15
query I rowsort
SELECT + 87 AS col0 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query I rowsort
SELECT DISTINCT col1 + - ( col0 ) + col0 * col0 AS col0 FROM tab1
----
32
4042
6333
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT - - col1 * - CAST( 21 * + col1 AS SIGNED ) + - col2 FROM tab0 cor0
----
-155349
-173983
-197590
skipif mysql # not compatible
query I rowsort label-1366
SELECT - - col1 * - CAST ( 21 * + col1 AS INTEGER ) + - col2 FROM tab0 cor0
----
-155349
-173983
-197590
onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT + 94 DIV - col0 col0 FROM tab2
----
-1
-1
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1367
SELECT + 94 / - col0 col0 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT DISTINCT - col1 * 11 AS col2 FROM tab1
----
-110
-143
-286
query I rowsort
SELECT - ( - col2 ) * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col1 + tab2.col1 * - col2 AS col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - - 39 * - col0 - ( + 72 * col1 ) FROM tab1 AS cor0
----
-1989
-3216
-4056
query I rowsort
SELECT - 69 * col0 + 47 AS col0 FROM tab1 AS cor0
----
-160
-4369
-5473
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT 9 * col2 DIV col2 + + col1 FROM tab0 AS cor0
----
100
106
95
skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT 9 * col2 / col2 + + col1 FROM tab0 AS cor0
----
100
106
95
query I rowsort
SELECT + 73 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
137
153
76
query I rowsort
SELECT ALL 78 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT + 3 * col1 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT - + col2 * 2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - 44 + col0 AS col0 FROM tab2 AS cor0
----
-37
34
35
query I rowsort
SELECT + 23 * + col2 AS col1 FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT DISTINCT 8 * col0 AS col0 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT DISTINCT - - 0 + - ( col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * - col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + col0 + col1 * - 93 FROM tab1
----
-1129
-2415
-866
query I rowsort
SELECT ALL col0 * col0 + + tab0.col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL + 76 + col2 AS col2 FROM tab1 AS cor0
----
130
133
172
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - 81 + - 52 + col1 FROM tab1 AS cor0
----
-107
-120
-123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0 / cor0.col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0 / cor0.col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( 27 ) AS col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT ( - tab1.col2 ) * 91 + + 35 AS col2 FROM tab1
----
-4879
-5152
-8701
query I rowsort
SELECT DISTINCT col1 * + col1 * - ( - col0 * col0 ) + + col1 FROM tab1
----
1081613
409610
6110
onlyif mysql # use DIV operator for integer division
query I rowsort label-1393
SELECT ALL + 88 + + col1 DIV 17 col0 FROM tab1 AS cor0
----
88
88
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + 88 + + col1 / 17 col0 FROM tab1 AS cor0
----
88
88
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT DISTINCT col2 / col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT col2 / col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT tab0.col0 * cor0.col2 * + 28 FROM tab0, tab0 AS cor0
----
9 values hashing to 948c221b4567859de4563d5ca557a910
query I rowsort
SELECT 73 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL - col0 * - ( - 85 ) + col2 AS col2 FROM tab1 AS cor0
----
-201
-5383
-6704
query I rowsort
SELECT ALL - col0 * 98 + col2 + - col1 AS col0 FROM tab2 cor0
----
-690
-7677
-7721
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1399
SELECT CAST( NULL AS SIGNED ) + 0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1399
SELECT CAST ( NULL AS INTEGER ) + 0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - 99 FROM tab2, tab1, tab1 cor0, tab0
----
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT DISTINCT + col1 DIV + 74 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + col1 / + 74 FROM tab2
----
0
query I rowsort
SELECT ALL - - col2 + col0 * 78 AS col0 FROM tab1 AS cor0
----
288
5049
6336
query I rowsort
SELECT DISTINCT - - col1 * + 74 AS col2 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT DISTINCT + col0 * 97 - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
129
2560
80
query I rowsort
SELECT - + cor0.col2 * 17 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561
onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT DISTINCT col1 DIV 46 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT col1 / 46 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 45 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT cor0.col0 * - 38 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-10680
-1365
-1704
query I rowsort
SELECT ALL col0 * - 18 FROM tab2 cor0
----
-126
-1404
-1422
query I rowsort
SELECT col0 * - col1 + 72 + - col1 AS col0 FROM tab2 AS cor0
----
-1288
-176
-4589
query I rowsort
SELECT ALL - col0 * ( + 64 + - col0 ) AS col1 FROM tab0 AS cor0
----
-1015
-960
2225
onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT DISTINCT + col1 DIV ( + cor0.col0 + + col0 ) AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + col1 / ( + cor0.col0 + + col0 ) AS col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + cor0.col2 + + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to b2174eaf3756478def762f6e243f6669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT + - CAST( + 10 AS SIGNED ) + col1 FROM tab2 AS cor0
----
21
49
7
skipif mysql # not compatible
query I rowsort label-1414
SELECT + - CAST ( + 10 AS INTEGER ) + col1 FROM tab2 AS cor0
----
21
49
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + col1 col0 FROM tab2 AS cor0
----
-26
-40
2
query I rowsort
SELECT DISTINCT 42 + col1 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT - - col0 * col2 + col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT + col2 + col2 + - col0 FROM tab2 cor0
----
-26
-3
47
query I rowsort
SELECT 26 * - tab1.col1 FROM tab1
----
-260
-338
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - cor0.col0 * - col0 col2 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + + cor0.col0 * + col2 - col0 * col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 98 col2 FROM tab1
----
101
162
178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab2 AS cor0
----
-31
-31
-31
query I rowsort
SELECT ALL - 40 * col1 + + ( col0 ) FROM tab1
----
-1037
-336
-440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1425
SELECT DISTINCT col2 + - col2 + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT col2 + - col2 + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT col0 + + col1 * - 8 AS col0 FROM tab0
----
-639
-664
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT ALL - tab2.col2 * - col0 + + col1 DIV tab2.col1 AS col0 FROM tab2
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - tab2.col2 * - col0 + + col1 / tab2.col1 AS col0 FROM tab2
----
190
2029
3003
query I rowsort
SELECT + + col1 * - col0 + 0 * col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT col2 * ( + cor0.col2 ) DIV col1 + - 19 AS col0 FROM tab1 AS cor0
----
305
689
93
skipif mysql # not compatible
query I rowsort label-1429
SELECT col2 * ( + cor0.col2 ) / col1 + - 19 AS col0 FROM tab1 AS cor0
----
305
689
93
query I rowsort
SELECT DISTINCT - col1 * col0 * col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col1 + tab0.col1 + 14 AS col1 FROM tab0
----
186
196
208
query I rowsort
SELECT + + cor0.col1 + - col2 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - + cor0.col1 + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - col1 + col1 * - 87 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT ALL + - col0 * + cor0.col1 * ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-180
-40903
-83104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1436
SELECT CAST( NULL AS SIGNED ) - - ( - col0 * 95 ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1436
SELECT CAST ( NULL AS INTEGER ) - - ( - col0 * 95 ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - col1 * col0 FROM tab1
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + tab2.col1 col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col1 + 76 AS col2 FROM tab1 AS cor0
----
102
86
89
query I rowsort
SELECT + col1 * + ( cor0.col1 ) + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 91 col0 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT + col1 + + col2 - col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - + 91 * - cor0.col1 + col2 FROM tab2 AS cor0
----
1585
2848
5395
query I rowsort
SELECT - ( 29 ) AS col1 FROM tab1 cor0
----
-29
-29
-29
query I rowsort
SELECT - - 73 + + cor0.col0 FROM tab0 AS cor0
----
108
162
97
query I rowsort
SELECT - col0 * 80 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1953
-2801
-7202
query I rowsort
SELECT DISTINCT - ( col0 ) + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 54 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1302
-1458
-624
query I rowsort
SELECT 52 - col0 FROM tab2 cor0
----
-26
-27
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1450
SELECT - - CAST( ( col1 ) AS SIGNED ) + 52 AS col1 FROM tab0 AS cor0
----
138
143
149
skipif mysql # not compatible
query I rowsort label-1450
SELECT - - CAST ( ( col1 ) AS INTEGER ) + 52 AS col1 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT - ( + 94 ) FROM tab1 AS cor0
----
-94
-94
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT ALL col1 DIV - tab2.col1 + col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL col1 / - tab2.col1 + col2 FROM tab2
----
25
26
37
query I rowsort
SELECT ALL - 23 * - 10 + - col2 * - col0 + + ( - col1 ) * + 5 AS col2 FROM tab0
----
-220
592
7073
query I rowsort
SELECT - ( + col2 ) * col1 + col2 + - col0 AS col2 FROM tab0
----
-131
-2829
-7469
query I rowsort
SELECT - - 80 * col0 * - col0 + + ( - cor0.col0 * - cor0.col1 ) FROM tab1 AS cor0
----
-327040
-510960
-642
query I rowsort
SELECT DISTINCT ( + 61 ) AS col0 FROM tab0 AS cor0
----
61
query I rowsort
SELECT ALL + ( col1 ) * col1 + 60 FROM tab0 cor0
----
7456
8341
9469
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT - + CAST( NULL AS SIGNED ) * - 74 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1458
SELECT - + CAST ( NULL AS INTEGER ) * - 74 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT + 3 + + col1 DIV - col1 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + 3 + + col1 / - col1 FROM tab0 AS cor0
----
2
query I rowsort
SELECT + 90 * + col0 AS col2 FROM tab2 cor0
----
630
7020
7110
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1463
SELECT ALL + col0 / - col0 + CAST( NULL AS SIGNED ) / 6 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + col0 / - col0 + CAST ( NULL AS INTEGER ) / 6 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 82 * col2 * col0 AS col0 FROM tab0 AS cor0
----
-2870
-598436
-64944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 + col2 * cor0.col1 * - col2 AS col0 FROM tab1 cor0
----
-119712
-32433
-75762
query I rowsort
SELECT + col2 + col1 * + cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT 60 * col0 + + col0 DIV + ( - col2 ) AS col2 FROM tab1
----
180
3839
4800
skipif mysql # not compatible
query I rowsort label-1468
SELECT 60 * col0 + + col0 / + ( - col2 ) AS col2 FROM tab1
----
180
3839
4800
query I rowsort
SELECT DISTINCT - col0 - + 88 * col2 AS col2 FROM tab1
----
-4755
-5080
-8528
query I rowsort
SELECT DISTINCT + col0 - 86 * col2 FROM tab1
----
-4641
-4838
-8176
query I rowsort
SELECT - 21 * + col0 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - col0 col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( col1 * col0 ) col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 + col2 * cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-22572
-24510
-39858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1475
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) * ( - cor0.col0 * + cor0.col1 ) + 42 * - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) * ( - cor0.col0 * + cor0.col1 ) + 42 * - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col0 + ( 50 ) FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT ALL + cor0.col0 + - col2 * + 18 FROM tab0 AS cor0
----
-1387
-570
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1478
SELECT DISTINCT - + col2 + - CAST( - col0 AS SIGNED ) * col1 + 23 AS col0 FROM tab1 AS cor0
----
47
606
967
skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - + col2 + - CAST ( - col0 AS INTEGER ) * col1 + 23 AS col0 FROM tab1 AS cor0
----
47
606
967
onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT DISTINCT + col0 DIV col0 col1 FROM tab2 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT + col0 / col0 col1 FROM tab2 cor0
----
1
query I rowsort
SELECT DISTINCT + col2 * 17 + cor0.col1 FROM tab2 AS cor0
----
490
501
663
query I rowsort
SELECT ALL + cor0.col2 * 12 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT col1 * - 58 + + col0 * 26 AS col1 FROM tab1 AS cor0
----
-1430
1084
1326
query I rowsort
SELECT DISTINCT - col0 * - 45 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT + 27 + + col1 FROM tab2 cor0
----
44
58
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT - col0 - - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-1485
SELECT - col0 - - col0 / col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT + col0 * - 86 AS col0 FROM tab2 AS cor0
----
-602
-6708
-6794
onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT ALL + - 93 DIV + 93 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL + - 93 / + 93 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL - col2 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - col2 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT ALL - - 82 + - col2 * - col0 FROM tab0 AS cor0
----
117
7380
874
query I rowsort
SELECT - col2 * col2 * + cor0.col1 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT - col1 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - col1 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT DISTINCT + - col1 DIV - cor0.col0 FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + - col1 / - cor0.col0 FROM tab1 cor0
----
0
8
query I rowsort
SELECT + col2 * col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - - 92 * col2 AS col0 FROM tab2 AS cor0
----
2392
2484
3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT + col0 + col0 DIV - col1 FROM tab1 cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-1496
SELECT + col0 + col0 / - col1 FROM tab1 cor0
----
3
58
74
query I rowsort
SELECT DISTINCT + + 31 + - col2 AS col1 FROM tab2 AS cor0
----
-7
4
5
query I rowsort
SELECT ALL - ( col0 ) * + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
-3548
-7511
514
onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL + col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + col2 / + col0 col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT + + 64 DIV + col2 + + col2 FROM tab1 cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-1501
SELECT + + 64 / + col2 + + col2 FROM tab1 cor0
----
55
58
96
query I rowsort
SELECT col2 * cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - - col2 * - cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col0 + col2 * + col1 AS col0 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT 92 * - cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4965
-5180
-8752
query I rowsort
SELECT - + ( cor0.col0 ) * - col0 - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - 39 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-246
-3016
-3043
query I rowsort
SELECT ALL col2 - + 24 AS col0 FROM tab1
----
30
33
72
query I rowsort
SELECT ALL - col2 + - ( - col0 * + col2 + - col0 ) AS col0 FROM tab1 AS cor0
----
111
3655
7664
query I rowsort
SELECT + 22 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2086
3417
8121
query I rowsort
SELECT DISTINCT + - col0 * 67 FROM tab1 AS cor0
----
-201
-4288
-5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT ALL col0 DIV cor0.col1 + col0 + col1 * - col1 FROM tab1 AS cor0
----
-30
-673
-83
skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL col0 / cor0.col1 + col0 + col1 * - col1 FROM tab1 AS cor0
----
-30
-673
-83
query I rowsort
SELECT ALL - col1 - - 18 * + col0 * - col0 AS col0 FROM tab2
----
-109571
-112355
-913
query I rowsort
SELECT DISTINCT 54 + col0 AS col0 FROM tab1
----
118
134
57
query I rowsort
SELECT 64 + - 97 AS col1 FROM tab0
----
-33
-33
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 14 col0 FROM tab1
----
110
68
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT ALL 79 DIV + col0 + - col2 FROM tab1
----
-28
-56
-96
skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 79 / + col0 + - col2 FROM tab1
----
-28
-56
-96
query I rowsort
SELECT ALL + ( tab0.col0 ) + - col0 + - col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col0 * + col0 col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT col1 * + 28 + + col2 AS col1 FROM tab2 AS cor0
----
1678
514
895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1521
SELECT + CAST( + col1 AS SIGNED ) + col2 * col1 * - col2 + - col1 * col1 FROM tab1 AS cor0
----
-119964
-32580
-76466
skipif mysql # not compatible
query I rowsort label-1521
SELECT + CAST ( + col1 AS INTEGER ) + col2 * col1 * - col2 + - col1 * col1 FROM tab1 AS cor0
----
-119964
-32580
-76466
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1523
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 31 + + 77 * col1 AS col1 FROM tab0 AS cor0
----
6653
7038
7500
query I rowsort
SELECT tab2.col2 * - col1 + + col2 AS col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - col2 * + col0 + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - - col0 * - col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) < - col0 + + col2
----
3
26
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + - tab0.col1 * col1 col0 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0 WHERE NOT col0 NOT BETWEEN ( col1 + col2 ) AND NULL
----
query I rowsort
SELECT - col2 + col2 * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + col2 * col2 + col0 * - col1 FROM tab2 AS cor0
----
-3926
101
512
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + col1 * col0 + col2 * + col0 + - col1
----
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * - tab2.col2 * - col0 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + col2 * cor0.col0 * + col1 + col2 * cor0.col0 FROM tab1 AS cor0
----
107520
40128
4374
onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - col0 DIV - col1 - cor0.col0 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-1539
SELECT - col0 / - col1 - cor0.col0 FROM tab2 AS cor0
----
-7
-75
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT - col2 + cor0.col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1540
SELECT - col2 + cor0.col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - col1 + col2 * col2 * + cor0.col1 FROM tab2 AS cor0
----
22568
24531
39825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1543
SELECT DISTINCT col2 * - col2 + + col2 DIV + col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT col2 * - col2 + + col2 / + col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209
query I rowsort
SELECT ALL + col0 * col0 - col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT DISTINCT col2 DIV cor0.col2 + - cor0.col1 * col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT col2 / cor0.col2 + - cor0.col1 * col1 / + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT ALL - col1 * - col1 + cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - col1 * - col1 + cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
query I rowsort
SELECT DISTINCT col2 - tab2.col0 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col2 + col2 + + col1 * col0 * + col2 FROM tab0
----
3397
664282
68178
query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT + + col0 * cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT - col2 DIV + col2 + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1551
SELECT - col2 / + col2 + col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT - col1 * col1 - col1 AS col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT - col2 + + col2 + + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + col2 * 93 - + col0 * col2 AS col2 FROM tab0 AS cor0
----
-128
-14924
-3861
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT - cor0.col0 + + col2 * - col0 * col1 FROM tab2 cor0
----
-119730
-51113
-5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT + ( col1 ) DIV 53 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1557
SELECT + ( col1 ) / 53 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 + + 36 FROM tab0 AS cor0
----
125
60
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT ALL + col0 + + 36 DIV + cor0.col0 FROM tab2 cor0
----
12
78
79
skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + col0 + + 36 / + cor0.col0 FROM tab2 cor0
----
12
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * + 75 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d3c37d9bea3d7cc635929b3854990329
query I rowsort
SELECT tab1.col2 * col0 * + 77 FROM tab1
----
12474
280896
591360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1562
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1563
SELECT col2 * CAST( 16 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-122880
-2592
-58368
skipif mysql # not compatible
query I rowsort label-1563
SELECT col2 * CAST ( 16 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-122880
-2592
-58368
query I rowsort
SELECT ALL + col0 * col2 + 98 * + tab2.col0 AS col1 FROM tab2
----
10744
875
9672
query I rowsort
SELECT + col1 * 31 * 87 FROM tab1
----
26970
35061
70122
query I rowsort
SELECT - 93 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT ALL col2 * col2 DIV - col1 FROM tab1
----
-112
-324
-708
skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL col2 * col2 / - col1 FROM tab1
----
-112
-324
-708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 29 * + col1 col0 FROM tab1
----
280
364
728
query I rowsort
SELECT - + col2 * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 56 * - col2 FROM tab0
----
-1848
-4592
-56
query I rowsort
SELECT + 88 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 94da3a66e1ae99e21bf45b5e82ec6036
query I rowsort
SELECT ALL col2 * 60 FROM tab0
----
1980
4920
60
query I rowsort
SELECT ALL + 63 * + tab1.col0 - ( + col2 ) AS col1 FROM tab1
----
135
3975
4944
query I rowsort
SELECT + col2 * + col0 * ( col0 ) - cor0.col1 FROM tab1 cor0
----
233462
460
614387
query I rowsort
SELECT + 22 - col0 AS col2 FROM tab2
----
-56
-57
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT - tab2.col2 * CAST( - 48 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 9bbcc704360598cfe8b56b1ec06be8fa
skipif mysql # not compatible
query I rowsort label-1576
SELECT - tab2.col2 * CAST ( - 48 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 9bbcc704360598cfe8b56b1ec06be8fa
query I rowsort
SELECT - col2 * + col2 + 59 * - col1 FROM tab0
----
-12093
-5724
-6163
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT + 20 - + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-7278
-772
skipif mysql # not compatible
query I rowsort label-1579
SELECT + 20 - + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-7278
-772
query I rowsort
SELECT + 37 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT DISTINCT - col0 * col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT - col1 * 99 - 82 AS col1 FROM tab1 AS cor0
----
-1072
-1369
-2656
query I rowsort
SELECT ALL + col2 + + 59 + 2 AS col0 FROM tab0 AS cor0
----
143
62
94
query I rowsort
SELECT DISTINCT + col0 - + ( 17 ) AS col1 FROM tab0 AS cor0
----
18
7
72
query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) + col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + cor0.col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * ( + 97 ) + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT ALL col2 * - col1 - col1 * col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT col2 - + col0 * 71 AS col0 FROM tab0 AS cor0
----
-1671
-2484
-6237
onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT DISTINCT - col2 DIV col1 + col2 FROM tab1 AS cor0
----
52
89
skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - col2 / col1 + col2 FROM tab1 AS cor0
----
52
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT - col2 + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1593
SELECT - col2 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - 75 FROM tab0 AS cor0
----
11
16
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT DISTINCT - - col1 + - ( col2 ) DIV col0 + - col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
5
6
skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - - col1 + - ( col2 ) / col0 + - col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
5
6
query I rowsort
SELECT ALL + col0 - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT + cor0.col2 + - col2 DIV col1 col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1597
SELECT + cor0.col2 + - col2 / col1 col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab0.col0 col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col0 * + cor0.col2 + - col0 * - 47 AS col2 FROM tab2 AS cor0
----
518
5694
6715
query I rowsort
SELECT + 8 + - col1 FROM tab1 AS cor0
----
-18
-2
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT DISTINCT - CAST( ( - col0 ) AS SIGNED ) * + 38 + - col0 AS col2 FROM tab1
----
111
2368
2960
skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - CAST ( ( - col0 ) AS INTEGER ) * + 38 + - col0 AS col2 FROM tab1
----
111
2368
2960
query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab2 AS cor0
----
47
query I rowsort
SELECT DISTINCT - col1 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + col1 * 22 + cor0.col0 FROM tab0 AS cor0
----
1916
2091
2169
onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT ALL - + 85 * col1 DIV col1 + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11
skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - + 85 * col1 / col1 + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11
query I rowsort
SELECT col0 + 73 * col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT DISTINCT - ( 51 ) + cor0.col0 * - 64 AS col0 FROM tab1 AS cor0
----
-243
-4147
-5171
query I rowsort
SELECT cor0.col2 * 80 FROM tab2 AS cor0
----
2080
2160
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1609
SELECT + + CAST( NULL AS SIGNED ) * - cor0.col0 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-1609
SELECT + + CAST ( NULL AS INTEGER ) * - cor0.col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 89 + 7 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT + col1 + col2 * - 45 FROM tab2 cor0
----
-1111
-1184
-1693
query I rowsort
SELECT ALL col2 * 40 + col2 AS col2 FROM tab1
----
2214
2337
3936
query I rowsort
SELECT - 94 FROM tab2, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT + 83 * 74 + col2 FROM tab0 cor0
----
6143
6175
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col1 * - col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL cor0.col2 + - col0 + 57 FROM tab1 AS cor0
----
108
50
73
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 + 53 AS col2 FROM tab2 cor0
----
157
170
87
query I rowsort
SELECT ALL 27 + - col1 AS col2 FROM tab0 AS cor0
----
-59
-64
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1621
SELECT - 76 * - col2 + CAST( - col1 + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4132
4379
7379
skipif mysql # not compatible
query I rowsort label-1621
SELECT - 76 * - col2 + CAST ( - col1 + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4132
4379
7379
query I rowsort
SELECT - 15 * - col0 * col2 FROM tab1 cor0
----
115200
2430
54720
query I rowsort
SELECT + 39 * - col0 + - 44 FROM tab2 AS cor0
----
-3086
-3125
-317
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col2 col0 FROM tab1 AS cor0
----
0
3
42
query I rowsort
SELECT DISTINCT + - cor0.col1 * 33 AS col2 FROM tab1 AS cor0
----
-330
-429
-858
query I rowsort
SELECT + col0 + 0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + ( - 25 ) FROM tab2 AS cor0
----
-8
34
6
query I rowsort
SELECT + col2 * - col2 * 81 FROM tab1 AS cor0
----
-236196
-263169
-746496
query I rowsort
SELECT DISTINCT + col1 * 61 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT ALL + + col2 + cor0.col1 * 39 FROM tab1 AS cor0
----
1068
447
603
query I rowsort
SELECT col0 + - ( + 58 ) * + cor0.col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT ALL - + col0 DIV - col1 AS col0 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - + col0 / - col1 AS col0 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT + - col1 * + 32 FROM tab1 AS cor0
----
-320
-416
-832
query I rowsort
SELECT ALL - + col2 * 86 AS col1 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT - 97 * cor0.col0 + - 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 84b4f0bd32d556a125f7cea9dac3aa80
query I rowsort
SELECT ( + ( - col2 ) ) + 3 * - col0 AS col0 FROM tab0 AS cor0
----
-105
-106
-349
onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT - - ( 90 ) + col1 DIV col2 FROM tab0 AS cor0
----
187
91
92
skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - - ( 90 ) + col1 / col2 FROM tab0 AS cor0
----
187
91
92
query I rowsort
SELECT DISTINCT - + 65 + - col1 * - col0 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-118793
-49515
-720785
query I rowsort
SELECT 19 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-1206
-1507
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT DISTINCT + ( col2 ) * - col1 + cor0.col2 DIV col2 col0 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + ( col2 ) * - col1 + cor0.col2 / col2 col0 FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT - col2 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - 1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT cor0.col0 * + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to f7a7d834ef74d0b2fff83e6a8f658dd5
query I rowsort
SELECT + col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - ( + col1 + - col1 ) FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT - 4 * col1 DIV - 62 - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1531
-645
-835
skipif mysql # not compatible
query I rowsort label-1646
SELECT - 4 * col1 / - 62 - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1531
-645
-835
query I rowsort
SELECT - col2 * - col2 + + col1 * - 23 FROM tab0 AS cor0
----
-2230
-889
4631
query I rowsort
SELECT ALL cor0.col2 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd
query I rowsort
SELECT ALL - col0 * + col0 * col1 AS col0 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT + - cor0.col2 DIV 80 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1650
SELECT + - cor0.col2 / 80 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 26 + 24 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1653
SELECT ALL - col2 * CAST( - col2 AS SIGNED ) + cor0.col0 + 70 AS col1 FROM tab2 AS cor0
----
1593
806
824
skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - col2 * CAST ( - col2 AS INTEGER ) + cor0.col0 + 70 AS col1 FROM tab2 AS cor0
----
1593
806
824
query I rowsort
SELECT + 73 * + col2 FROM tab2 AS cor0
----
1898
1971
2774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 * col1 + + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT DISTINCT + col1 + 96 - cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
182
187
193
skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + col1 + 96 - cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT + col2 - - 9 * cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
5817
756
9456
query I rowsort
SELECT cor0.col2 + 65 * col2 AS col2 FROM tab1 cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) + - col2 * - 4 * col1 - + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1540
3783
4862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT col2 * col0 + + col0 * col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1661
SELECT col2 * col0 + + col0 * col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - col0 - 93 FROM tab0 AS cor0
----
-1318
-669
-8014
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + col0 - ( cor0.col2 + col0 ) * 67 AS col1 FROM tab0 AS cor0
----
-11368
-2377
-3795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1665
SELECT + + col1 * + CAST( NULL AS SIGNED ) * + col2 + col2 * + 11 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1665
SELECT + + col1 * + CAST ( NULL AS INTEGER ) * + col2 + col2 * + 11 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) col1 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT + ( 20 ) DIV - col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1668
SELECT + ( 20 ) / - col1 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT DISTINCT - ( col1 + - col0 * + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT - ( col1 + - col0 * + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + ( + col2 ) * 54 + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL + - col1 * col0 * col2 - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT DISTINCT + 56 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 56 / col2 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL + + cor0.col1 * + col2 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 60 - col1 FROM tab0 AS cor0
----
-146
-151
-157
query I rowsort
SELECT ALL col2 + col1 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col0 * col2 col1 FROM tab2
----
2835
30420
45030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * col0 + ( - col2 ) FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT ALL + 24 * col1 AS col2 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT DISTINCT + - 64 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
14
576
976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL tab0.col0 * col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL 22 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL - + col2 * col2 + 60 * + col2 FROM tab2 AS cor0
----
836
884
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT + col1 DIV - ( - 95 ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1685
SELECT + col1 / - ( - 95 ) AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 * - 19 FROM tab1
----
-190
-247
-494
query I rowsort
SELECT DISTINCT - tab2.col2 * + tab2.col0 - + ( - tab2.col2 ) AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT + - 46 + + cor0.col0 FROM tab2 AS cor0
----
-39
32
33
query I rowsort
SELECT ALL + 38 * 44 + + cor0.col2 FROM tab1 AS cor0
----
1726
1729
1768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col0 FROM tab1 AS cor0
----
-47
query I rowsort
SELECT ALL + col0 * col1 * - col2 + 85 AS col1 FROM tab1 AS cor0
----
-36395
-4127
-99755
query I rowsort
SELECT ALL + cor0.col1 + + cor1.col2 * - 41 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to acb418c2f38bdcbfa42bbd948dee2a4d
query I rowsort
SELECT ALL - tab0.col2 * 20 FROM tab0, tab1 cor0
----
9 values hashing to 9820f6bb4aa10c3399f9d4e1673d08df
query I rowsort
SELECT ALL + col2 + - ( - 96 ) AS col1 FROM tab2
----
122
123
134
query I rowsort
SELECT - col0 + col0 + col0 * col0 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT ALL col1 * + col2 DIV - col2 + col1 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL col1 * + col2 / - col2 + col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - + 75 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1459
571
762
query I rowsort
SELECT ALL - - col1 * cor0.col1 - - col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL col1 * - 45 AS col2 FROM tab2 cor0
----
-1395
-2655
-765
query I rowsort
SELECT DISTINCT - + col0 * + 21 FROM tab1 cor0
----
-1344
-1680
-63
query I rowsort
SELECT - col0 + - 34 FROM tab2 AS cor0
----
-112
-113
-41
query I rowsort
SELECT DISTINCT col2 * col2 * col1 + col2 FROM tab2 AS cor0
----
22626
24586
39910
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT - 54 DIV 49 + col1 col1 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - 54 / 49 + col1 col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL + - 74 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-48
-61
-64
query I rowsort
SELECT DISTINCT 91 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT DISTINCT - 25 - + col2 AS col2 FROM tab2
----
-51
-52
-63
query I rowsort
SELECT - 45 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
query I rowsort
SELECT col1 + col2 + + 54 FROM tab1
----
121
134
163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT col0 + - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1709
SELECT col0 + - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT col2 + CAST( ( col0 ) AS SIGNED ) * col0 FROM tab1 AS cor0
----
4153
63
6496
skipif mysql # not compatible
query I rowsort label-1710
SELECT col2 + CAST ( ( col0 ) AS INTEGER ) * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col0 * cor0.col2 + + col1 * - col0 + 58 AS col1 FROM tab2 AS cor0
----
-2516
1717
30
query I rowsort
SELECT ALL 26 * + col2 * - 82 AS col0 FROM tab2
----
-55432
-57564
-81016
query I rowsort
SELECT ALL + + col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + + col1 col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT ALL + tab0.col1 DIV col2 + col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + tab0.col1 / col2 + col2 FROM tab0
----
35
83
98
query I rowsort
SELECT ALL - 14 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL col2 + + cor0.col0 * col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
242
3715
7789
onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT DISTINCT + col1 DIV - col1 + - col0 * - col2 + col1 * - 32 AS col0 FROM tab0 AS cor0
----
-1961
-3070
4385
skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + col1 / - col1 + - col0 * - col2 + col1 * - 32 AS col0 FROM tab0 AS cor0
----
-1961
-3070
4385
query I rowsort
SELECT col2 + - col1 * + col0 AS col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col2 * + 58 FROM tab2 cor0
----
-1508
-1566
-2204
query I rowsort
SELECT ALL + + cor0.col2 + 20 FROM tab1 AS cor0
----
116
74
77
query I rowsort
SELECT col0 * - 69 + - col1 FROM tab0 AS cor0
----
-1742
-2512
-6232
query I rowsort
SELECT - cor0.col1 + + 12 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9762fc431e52b80067c12a4f55e73f35
query I rowsort
SELECT - col2 * ( col0 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + - 40 * col1 col1 FROM tab1 AS cor0
----
-322
-442
-962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT DISTINCT - - col1 * ( col1 * + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - - col1 * ( col1 * + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( - 70 ) AS col0 FROM tab2 cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT 84 * 99 AS col1 FROM tab2
----
8316
query I rowsort
SELECT ALL col1 + 78 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1027
2054
790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10
query I rowsort
SELECT ALL - 5 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-4
28
77
query I rowsort
SELECT ALL 94 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT + ( + col1 ) + ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col1 * - 13 AS col1 FROM tab2
----
-221
-403
-767
query I rowsort
SELECT - 51 * col2 * + 29 FROM tab0 AS cor0
----
-121278
-1479
-48807
query I rowsort
SELECT ALL - 76 + - col1 AS col0 FROM tab2 AS cor0
----
-107
-135
-93
query I rowsort
SELECT DISTINCT + 79 * + tab1.col1 FROM tab1
----
1027
2054
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT - - col0 * col0 DIV - 69 AS col0 FROM tab0 AS cor0
----
-114
-17
-8
skipif mysql # not compatible
query I rowsort label-1739
SELECT - - col0 * col0 / - 69 AS col0 FROM tab0 AS cor0
----
-114
-17
-8
query I rowsort
SELECT - + 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT - col0 + + ( col0 * col1 ) + col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT - + 98 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-14
skipif mysql # not compatible
query I rowsort label-1742
SELECT - + 98 / + col0 FROM tab2 AS cor0
----
-1
-1
-14
query I rowsort
SELECT col1 * col1 + - col0 * col0 + col1 AS col1 FROM tab0 AS cor0
----
451
6906
8281
query I rowsort
SELECT col2 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 18 AS REAL ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col1 FROM tab0
----
37
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0
----
-71
query I rowsort
SELECT DISTINCT + col1 * - 4 FROM tab0
----
-344
-364
-388
query I rowsort
SELECT ALL - 8 * 15 + + col2 FROM tab2 AS cor0
----
-82
-93
-94
query I rowsort
SELECT 83 + col0 FROM tab2 AS cor0
----
161
162
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1752
SELECT CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1752
SELECT CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col1 * 23 * + col0 FROM tab1
----
-14720
-1794
-23920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1754
SELECT - CAST( NULL AS SIGNED ) + + 9 FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1754
SELECT - CAST ( NULL AS INTEGER ) + + 9 FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - col0 + - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col0 + ( + 63 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
120
234
99
query I rowsort
SELECT col2 - + col2 * col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col0 * col1 + - col1 AS col0 FROM tab1
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1759
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT col2 - col2 * col1 AS col1 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT col2 - + 28 DIV - col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-1762
SELECT col2 - + 28 / - col0 FROM tab0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT ALL - - CAST( NULL AS SIGNED ) * 62 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - - CAST ( NULL AS INTEGER ) * 62 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 50 + col1 FROM tab0 AS cor0
----
136
141
147
query I rowsort
SELECT ALL + ( + 28 ) FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL ( - col1 ) + col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT DISTINCT - - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1768
SELECT - col2 * cor0.col2 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1768
SELECT - col2 * cor0.col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT col0 * cor0.col1 + - col0 DIV 11 AS col2 FROM tab2 AS cor0
----
1336
217
4595
skipif mysql # not compatible
query I rowsort label-1769
SELECT col0 * cor0.col1 + - col0 / 11 AS col2 FROM tab2 AS cor0
----
1336
217
4595
query I rowsort
SELECT + col1 * col1 - col0 AS col2 FROM tab1 AS cor0
----
36
673
89
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - col2 * col1 DIV + ( - col1 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1772
SELECT - col2 * col1 / + ( - col1 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT col0 + col0 * + 57 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT + cor0.col1 * - 36 + col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL - + col1 + + col2 - + cor0.col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT col2 * 46 FROM tab2 cor0
----
1196
1242
1748
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683
query I rowsort
SELECT ALL - col1 * - 34 FROM tab0 AS cor0
----
2924
3094
3298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 24 + 84 col1 FROM tab2 AS cor0
----
-1788
-1812
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT ALL - + col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - + col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT + col0 DIV - CAST( 41 AS SIGNED ) + - col2 + + col0 FROM tab0 cor0
----
-9
34
5
skipif mysql # not compatible
query I rowsort label-1781
SELECT + col0 / - CAST ( 41 AS INTEGER ) + - col2 + + col0 FROM tab0 cor0
----
-9
34
5
query I rowsort
SELECT DISTINCT col2 * - col1 * - tab0.col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT - + col2 * - col0 + col1 FROM tab2 cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT - col2 * - CAST( - col0 AS SIGNED ) + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747
skipif mysql # not compatible
query I rowsort label-1784
SELECT - col2 * - CAST ( - col0 AS INTEGER ) + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT DISTINCT + col1 + - 98 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1495
565
770
query I rowsort
SELECT ( 32 ) AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT ALL col2 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL col2 / ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col2 * 54 FROM tab2 AS cor0
----
1404
1458
2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 14 - - col0 * ( 62 ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 14 - - col0 * ( 62 ) AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL 23 + col0 * col0 FROM tab0 AS cor0
----
1248
599
7944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1793
SELECT CAST( NULL AS SIGNED ) * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1793
SELECT CAST ( NULL AS INTEGER ) * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + ( col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT ALL 42 + col2 * col1 * + 88 AS col2 FROM tab2 AS cor0
----
135034
56890
73698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT ALL + + CAST( ( col0 ) AS SIGNED ) + + 9 FROM tab0 AS cor0
----
33
44
98
skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + + CAST ( ( col0 ) AS INTEGER ) + + 9 FROM tab0 AS cor0
----
33
44
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - col0 col2 FROM tab2 cor0
----
-175
-1950
-1975
onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT DISTINCT - col1 DIV + 98 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - col1 / + 98 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT 13 - - col1 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT DISTINCT - cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - cor0.col0 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - + cor0.col1 * - col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + 38 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT ALL col2 * - 87 + - col1 + - col0 FROM tab2
----
-2387
-2399
-3402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT CAST( - cor0.col2 + + cor0.col1 AS SIGNED ) * + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to 94ee84d77700a45f1fbc103ef3ab39b1
skipif mysql # not compatible
query I rowsort label-1805
SELECT CAST ( - cor0.col2 + + cor0.col1 AS INTEGER ) * + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to 94ee84d77700a45f1fbc103ef3ab39b1
query I rowsort
SELECT ALL col0 * 33 + - tab0.col0 AS col1 FROM tab0
----
1120
2848
768
query I rowsort
SELECT DISTINCT 85 * 22 AS col1 FROM tab0, tab1 AS cor0
----
1870
query I rowsort
SELECT ALL col0 + - 80 AS col2 FROM tab2
----
-1
-2
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT ALL col0 + 4 + + col0 DIV + col2 AS col2 FROM tab0
----
28
74
94
skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL col0 + 4 + + col0 / + col2 AS col2 FROM tab0
----
28
74
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT + 84 - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1811
SELECT + 84 - + col0 * - 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 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 54 - - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-135
-1974
-2948
query I rowsort
SELECT - col2 - + cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT ALL col0 DIV col0 col0 FROM tab2 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL col0 / col0 col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + 99 FROM tab2 AS cor0
----
-99
query I rowsort
SELECT - col1 * - col0 - col1 AS col2 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT + col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + col2 * cor0.col2 + col0 + - ( - col2 + col0 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1716
-3302
876
query I rowsort
SELECT DISTINCT - col0 * col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - 70 + col0 AS col2 FROM tab2 cor0
----
-63
8
9
query I rowsort
SELECT ALL - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col2 * + 43 + col2 * - col1 * - col0 + - tab0.col0 FROM tab0
----
3403
667555
69507
query I rowsort
SELECT + tab1.col1 * col1 + - col1 FROM tab1
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + col0 * + cor0.col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT + - col1 * 66 + - col1 * - col1 * col1 FROM tab0 AS cor0
----
630380
747565
906271
onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT col1 DIV - 99 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1830
SELECT col1 / - 99 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT ALL col2 + - col2 * ( tab2.col0 ) DIV + tab2.col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL col2 + - col2 * ( tab2.col0 ) / + tab2.col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col1 + + col1 * + cor0.col2 * col0 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT DISTINCT - col1 * - col2 + + 12 AS col1 FROM tab2 AS cor0
----
1546
658
849
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT ALL - tab2.col2 DIV + col1 + tab2.col2 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - tab2.col2 / + col1 + tab2.col2 FROM tab2
----
26
27
36
query I rowsort
SELECT ALL + col0 + - col0 * - col2 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - col0 + - col2 / col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + + col2 col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ALL col0 + 62 FROM tab1 cor0
----
126
142
65
query I rowsort
SELECT ALL col2 + + 52 FROM tab0 AS cor0
----
134
53
85
query I rowsort
SELECT ALL + col1 * 64 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT ALL - col2 + col1 * + col2 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + col2 + - cor0.col0 * col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT - col0 * + col0 + - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT - col1 - + col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - ( + col2 ) * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT + col1 - - col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1847
SELECT + col1 - - col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT DISTINCT 26 DIV - col0 - col0 * + col0 FROM tab0 AS cor0
----
-1225
-577
-7921
skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT 26 / - col0 - col0 * + col0 FROM tab0 AS cor0
----
-1225
-577
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT col1 DIV + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-1849
SELECT col1 / + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT - + col0 * + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col0 * col2 * + col1 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-1296
-33231
-90624
onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT 69 * tab1.col2 DIV col0 FROM tab1
----
1242
61
82
skipif mysql # not compatible
query I rowsort label-1852
SELECT 69 * tab1.col2 / col0 FROM tab1
----
1242
61
82
query I rowsort
SELECT - + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - 24 * cor0.col1 AS col1 FROM tab1 cor0
----
-240
-312
-624
query I rowsort
SELECT - cor0.col0 * col2 + - cor0.col1 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
-35
1960
73
query I rowsort
SELECT - col2 * ( col0 ) * + col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT 50 * - tab2.col0 + col0 FROM tab2
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT - + 53 FROM tab2 cor0
----
-53
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + + cor0.col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL ( col2 ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 90 * tab0.col2 * col2 AS col0 FROM tab0
----
605160
90
98010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - col0 * - col0 col1 FROM tab2
----
116
6151
6308
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT col2 + cor0.col1 DIV - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1864
SELECT col2 + cor0.col1 / - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT - col1 + + col1 + 50 DIV - 30 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1865
SELECT - col1 + + col1 + 50 / - 30 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT + col1 DIV 30 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1866
SELECT + col1 / 30 FROM tab2
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT 93 - - col1 FROM tab0 cor0
----
179
184
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( - col0 ) ) - + col1 * - col1 * + col0 col2 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT cor0.col1 - - col0 * cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT + col1 + - col0 * - col0 + 81 AS col1 FROM tab1
----
116
4187
6494
query I rowsort
SELECT tab0.col2 * tab0.col0 + col1 * + 77 AS col0 FROM tab0
----
14305
7414
7504
query I rowsort
SELECT col0 * + tab1.col0 + col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT + 22 DIV col1 + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-1877
SELECT + 22 / col1 + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col0 + + tab1.col0 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT ALL tab2.col2 DIV + col1 + tab2.col1 + + 34 FROM tab2
----
53
65
93
skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL tab2.col2 / + col1 + tab2.col1 + + 34 FROM tab2
----
53
65
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1881
SELECT + CAST( NULL AS SIGNED ) * col1 - col1 * col0 * ( - col0 + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1881
SELECT + CAST ( NULL AS INTEGER ) * col1 - col1 * col0 * ( - col0 + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT - - 82 * col1 + - cor0.col1 * col2 + + 23 DIV col0 AS col0 FROM tab2 AS cor0
----
1708
3304
748
skipif mysql # not compatible
query I rowsort label-1882
SELECT - - 82 * col1 + - cor0.col1 * col2 + + 23 / col0 AS col0 FROM tab2 AS cor0
----
1708
3304
748
query I rowsort
SELECT ALL 47 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT col0 * 36 + + col0 AS col0 FROM tab2
----
259
2886
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + col2 col2 FROM tab1 AS cor0
----
101
104
143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 + col0 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 + col0 col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * cor0.col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL col0 DIV - col1 + + col1 + 30 FROM tab1 AS cor0
----
34
37
56
skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL col0 / - col1 + + col1 + 30 FROM tab1 AS cor0
----
34
37
56
query I rowsort
SELECT - ( + 48 ) * cor0.col2 FROM tab2 cor0
----
-1248
-1296
-1824
query I rowsort
SELECT DISTINCT + + ( + 12 ) AS col0 FROM tab2 AS cor0
----
12
query I rowsort
SELECT col2 * col0 - - col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL 40 + - 37 AS col1 FROM tab2 AS cor0
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1893
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col2 FROM tab0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT 98 + - 23 FROM tab1
----
75
75
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT 79 * col2 + - col1 DIV + ( col1 ) FROM tab1
----
4265
4502
7583
skipif mysql # not compatible
query I rowsort label-1896
SELECT 79 * col2 + - col1 / + ( col1 ) FROM tab1
----
4265
4502
7583
query I rowsort
SELECT ALL + 93 + + col2 FROM tab2 AS cor0
----
119
120
131
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + col0 + + ( cor0.col1 + col0 ) col2 FROM tab2 AS cor0
----
225
265
95
query I rowsort
SELECT ALL - 96 * - col2 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + 49 + + col2 + + col0 FROM tab1 AS cor0
----
106
170
225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab1
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT ALL col1 * - col0 - + cor0.col0 DIV col1 FROM tab2 AS cor0
----
-1347
-217
-4603
skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL col1 * - col0 - + cor0.col0 / col1 FROM tab2 AS cor0
----
-1347
-217
-4603
query I rowsort
SELECT DISTINCT col2 * col2 + + cor0.col0 * + 42 FROM tab1 cor0
----
12576
3042
5937
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1904
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT + col2 + + col2 * ( - col2 * col0 ) FROM tab0 AS cor0
----
-26103
-34
-598354
query I rowsort
SELECT DISTINCT cor0.col0 + col2 + col2 AS col0 FROM tab2 AS cor0
----
130
155
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1907
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 42 AS col0 FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 42 AS col0 FROM tab2, tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab0.col1 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 + + 97 AS col0 FROM tab1
----
100
161
177
query I rowsort
SELECT + - col2 * + 84 AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT - col0 DIV ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1911
SELECT - col0 / ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 99 col0 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT ALL + - col2 * col1 + - col2 * + col2 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
207356
7318
736019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 62 * + col0 col0 FROM tab0 AS cor0
----
127968
210490
502138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1915
SELECT ALL - + ( - col2 ) * + cor0.col1 + CAST( NULL AS SIGNED ) * - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - + ( - col2 ) * + cor0.col1 + CAST ( NULL AS INTEGER ) * - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 13 ) * + cor0.col1 + col1 AS col2 FROM tab1 cor0
----
140
182
364
query I rowsort
SELECT DISTINCT + col0 * 79 FROM tab1 cor0
----
237
5056
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 70 + col1 FROM tab2 AS cor0
----
-11
-39
-53
query I rowsort
SELECT ALL 56 + + 70 FROM tab2 cor0
----
126
126
126
query I rowsort
SELECT ALL + ( + col2 ) * col2 + + 97 FROM tab2 AS cor0
----
1541
773
826
query I rowsort
SELECT + tab1.col0 * 45 * - 3 - col1 FROM tab1
----
-10813
-431
-8650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT DISTINCT - col1 DIV col1 - col1 col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - col1 / col1 - col1 col1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT col2 * 3 * - col1 FROM tab0 cor0
----
-22386
-291
-8514
query I rowsort
SELECT + 29 * 98 + col0 FROM tab2 AS cor0
----
2849
2920
2921
query I rowsort
SELECT + ( 57 ) + + col0 FROM tab1 AS cor0
----
121
137
60
query I rowsort
SELECT DISTINCT col2 * + ( + col1 ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 + + tab0.col0 * + col2 AS col0 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT tab0.col0 + CAST( col2 AS SIGNED ) * tab0.col2 FROM tab0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-1930
SELECT tab0.col0 + CAST ( col2 AS INTEGER ) * tab0.col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - ( col0 ) - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - ( - col0 ) + cor0.col1 + 12 AS col1 FROM tab2 AS cor0
----
108
149
50
query I rowsort
SELECT ALL + cor0.col2 * - col0 + - ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT cor0.col1 + cor0.col0 * + col1 + col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1574
2267
269
query I rowsort
SELECT ALL - col0 * col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + 46 + cor0.col0 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2 cor0
----
84
query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * col1 AS col2 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT + - 75 + - cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-75
-75
-75
query I rowsort
SELECT 32 * + col0 FROM tab2
----
224
2496
2528
query I rowsort
SELECT col2 - - col0 * + 33 FROM tab2
----
258
2600
2645
query I rowsort
SELECT - 88 * col0 * 2 FROM tab0
----
-15664
-4224
-6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT DISTINCT + 73 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
0
skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + 73 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
0
query I rowsort
SELECT + col0 + + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - + col0 * 61 * col1 AS col1 FROM tab2 AS cor0
----
-13237
-280722
-81923
query I rowsort
SELECT DISTINCT cor0.col0 - - 71 FROM tab2, tab0 AS cor0
----
106
160
95
query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL cor1.col1 + + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 45123676d9d30ad294b9a8d42384b2df
query I rowsort
SELECT ALL - col2 * ( ( col2 ) ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - 37 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT - col1 + - 34 * col2 AS col2 FROM tab1 AS cor0
----
-1862
-1948
-3277
query I rowsort
SELECT - - col1 + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + - cor0.col1 + - col0 + col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + ( - col2 ) - + col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT 79 * col1 AS col1 FROM tab0 AS cor0
----
6794
7189
7663
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 13 + cor0.col2 FROM tab1 AS cor0
----
41
44
83
query I rowsort
SELECT DISTINCT col1 * + col0 * col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - 59 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509
query I rowsort
SELECT 66 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT - 7 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
-14448
-23765
-56693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab0
----
86
91
97
query I rowsort
SELECT - col0 * col1 * col0 AS col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT + ( col2 ) + ( + 85 * - col0 ) AS col0 FROM tab2 AS cor0
----
-568
-6604
-6677
query I rowsort
SELECT - col2 - - col2 * 39 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT + tab2.col2 + + tab2.col2 * - col1 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL col0 + col2 * col0 AS col2 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * - col1 col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + col0 * col1 + - col0 * - col0 FROM tab2
----
10686
266
7584
query I rowsort
SELECT ALL col0 + + col2 + - col0 * col0 FROM tab2
----
-15
-5980
-6124
query I rowsort
SELECT DISTINCT - tab1.col1 * + tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 - col1 )
----
query I rowsort
SELECT DISTINCT col0 + col0 + - col0 * - col1 * col1 AS col2 FROM tab0
----
177552
329385
737187
query I rowsort
SELECT + tab1.col0 * tab1.col0 + col0 AS col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT - tab0.col1 FROM tab0 WHERE NOT col1 + col0 * col2 + col0 NOT BETWEEN + col0 + col0 AND NULL
----
query I rowsort
SELECT ALL + tab1.col0 * - col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT ALL + col1 - cor0.col1 * col1 DIV col2 FROM tab1 AS cor0
----
12
14
9
skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + col1 - cor0.col1 * col1 / col2 FROM tab1 AS cor0
----
12
14
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT ALL col0 * col2 DIV + col0 FROM tab2 WHERE col2 * col0 = col0 * col2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL col0 * col2 / + col0 FROM tab2 WHERE col2 * col0 = col0 * col2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT ALL col1 * - col1 + col0 DIV col2 AS col0 FROM tab1
----
-169
-676
-99
skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL col1 * - col1 + col0 / col2 AS col0 FROM tab1
----
-169
-676
-99
query I rowsort
SELECT - col0 + col0 + + cor0.col2 * - 22 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 AS cor0
----
2
query I rowsort
SELECT + col0 * cor0.col1 + 13 FROM tab0 AS cor0
----
2077
3408
8112
query I rowsort
SELECT ALL + + 55 AS col0 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT col1 + col0 - - col0 FROM tab0
----
134
167
269
query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 * col1 + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 + col2 FROM tab2
----
-193
-2061
-2981
query I rowsort
SELECT col2 + - col1 * col2 + - tab1.col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT + col0 * col2 + + col0 DIV - col0 FROM tab2
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-1990
SELECT + col0 * col2 + + col0 / - col0 FROM tab2
----
188
2027
3001
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + cor0.col1 + + col0 * col0 + + col2 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - tab0.col1 DIV tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-1993
SELECT - tab0.col1 / tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1 WHERE NOT ( + col0 + col1 ) > NULL
----
query I rowsort
SELECT ALL - tab0.col0 * col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL col0 + col1 * tab2.col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT col0 DIV - col1 + + col2 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1997
SELECT col0 / - col1 + + col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + col1 * tab2.col0 * + col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT col2 * - tab1.col0 * col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( col2 - - col1 ) NOT BETWEEN - col2 / tab1.col2 + col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT DISTINCT col1 + col0 DIV - col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT col1 + col0 / - col1 FROM tab1
----
26
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 - - tab0.col0 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - col0 + col1 * - col0 AS col2 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col0 * - 14 AS col2 FROM tab2
----
-1092
-1106
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 + col1 col2 FROM tab1 AS cor0
----
-73
-86
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col2 col0 FROM tab1 cor0
----
1536
864
912
query I rowsort
SELECT ALL 36 AS col1 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab2 cor0
----
30
query I rowsort
SELECT - 57 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - col1 + + 5 * 4 AS col2 FROM tab2
----
-11
-39
3
query I rowsort
SELECT + + 27 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ALL ( col1 ) + - col0 DIV tab2.col1 + col1 * col2 * tab2.col1 FROM tab2
----
10995
25978
90564
skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL ( col1 ) + - col0 / tab2.col1 + col1 * col2 * tab2.col1 FROM tab2
----
10995
25978
90564
query I rowsort
SELECT - col0 * 21 AS col1 FROM tab2
----
-147
-1638
-1659
query I rowsort
SELECT ( - col2 ) * + col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 83 + + 11 * col2 AS col2 FROM tab1
----
511
544
973
query I rowsort
SELECT ALL - + 72 * + cor0.col0 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT ALL col0 * - col0 * cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT DISTINCT col0 DIV 92 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT col0 / 92 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + ( - col2 ) + col1 + col1 FROM tab1 cor0
----
-2
-37
-70
query I rowsort
SELECT DISTINCT + 29 * 86 AS col0 FROM tab2 cor0
----
2494
query I rowsort
SELECT DISTINCT 41 + 3 AS col2 FROM tab0 AS cor0
----
44
query I rowsort
SELECT DISTINCT - + col0 * 20 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + - 66 * col0 + col2 FROM tab1 AS cor0
----
-144
-4167
-5184
query I rowsort
SELECT 72 * + col2 + + 27 FROM tab0
----
2403
5931
99
query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT DISTINCT - + col1 * col1 + col2 DIV - col1 FROM tab2 AS cor0
----
-291
-3481
-961
skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - + col1 * col1 + col2 / - col1 FROM tab2 AS cor0
----
-291
-3481
-961
query I rowsort
SELECT ALL + col2 * - 68 + col2 * col0 + col0 FROM tab2 cor0
----
-1640
338
497
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL - col2 * + ( + col2 ) AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 + - 12 * 16 FROM tab1 AS cor0
----
-112
-128
-189
query I rowsort
SELECT - + col1 * + ( - col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col1 - - 10 * 57 AS col2 FROM tab2 AS cor0
----
511
539
553
query I rowsort
SELECT ALL col0 + ( 17 ) FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT DISTINCT + col2 + + 2 * col2 - col1 AS col1 FROM tab1 cor0
----
136
161
275
query I rowsort
SELECT ALL + - col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT cor0.col2 - tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b032c2cb3f3f9c03ae8f2399010fea78
query I rowsort
SELECT + 95 + + 25 * tab2.col2 FROM tab2
----
1045
745
770
query I rowsort
SELECT - + 16 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 81 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d978491f1f731dfbcdb7a39b597dea4a
query I rowsort
SELECT DISTINCT tab2.col1 * + col2 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT - ( col1 ) + ( + ( + col1 ) ) DIV - 66 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2042
SELECT - ( col1 ) + ( + ( + col1 ) ) / - 66 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + col0 + col2 col0 FROM tab0 AS cor0
----
-2007
-3359
-7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT + - col0 * col1 DIV 31 + + cor0.col0 FROM tab1 AS cor0
----
1
44
47
skipif mysql # not compatible
query I rowsort label-2044
SELECT + - col0 * col1 / 31 + + cor0.col0 FROM tab1 AS cor0
----
1
44
47
query I rowsort
SELECT DISTINCT + tab0.col0 + - tab0.col2 AS col1 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 73 + - ( + col2 ) * tab1.col2 col2 FROM tab1
----
-2208
1026
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT + 99 DIV + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
skipif mysql # not compatible
query I rowsort label-2047
SELECT + 99 / + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2048
SELECT + - col2 * CAST( + 38 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-1033
-1066
-1523
skipif mysql # not compatible
query I rowsort label-2048
SELECT + - col2 * CAST ( + 38 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-1033
-1066
-1523
query I rowsort
SELECT DISTINCT cor0.col0 * - 2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + + col0 * col2 * + 56 FROM tab0 AS cor0
----
1960
408688
44352
query I rowsort
SELECT DISTINCT - 43 * 5 FROM tab1, tab2 AS cor0
----
-215
query I rowsort
SELECT ALL + col0 * + 62 AS col0 FROM tab1 AS cor0
----
186
3968
4960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT ALL col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col1 + - 83 AS col0 FROM tab0 cor0
----
14
3
8
query I rowsort
SELECT - - 23 - cor0.col0 * col2 FROM tab2 AS cor0
----
-166
-2005
-2979
query I rowsort
SELECT 24 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1338
-329
-737
query I rowsort
SELECT - 57 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-2085
-246
-3059
query I rowsort
SELECT DISTINCT col0 + cor0.col2 - col0 * - 59 * cor0.col1 FROM tab0 AS cor0
----
121833
200341
478012
query I rowsort
SELECT ALL + + col0 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - - 76 * - col2 AS col0 FROM tab2 AS cor0
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT col0 + - 1 * - col0 * col2 + + col1 DIV - col1 AS col2 FROM tab0
----
69
7386
815
skipif mysql # not compatible
query I rowsort label-2062
SELECT col0 + - 1 * - col0 * col2 + + col1 / - col1 AS col2 FROM tab0
----
69
7386
815
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT col1 + col1 DIV tab1.col0 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-2063
SELECT col1 + col1 / tab1.col0 FROM tab1
----
10
13
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT DISTINCT + col2 DIV + 82 + - 93 AS col0 FROM tab2
----
-93
skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + col2 / + 82 + - 93 AS col0 FROM tab2
----
-93
query I rowsort
SELECT + 85 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT col0 + - 42 * + col0 AS col1 FROM tab2 AS cor0
----
-287
-3198
-3239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT - CAST( col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-2067
SELECT - CAST ( col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT 76 - - col1 FROM tab0
----
162
167
173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 * col2 col2 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + 50 * - col0 * + ( 62 ) + + cor0.col0 * - 37 + 28 FROM tab2 AS cor0
----
-21931
-244658
-247795
query I rowsort
SELECT + col0 * - col1 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT DISTINCT - 45 + - col2 * CAST( + col0 AS SIGNED ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-39
319
545
skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - 45 + - col2 * CAST ( + col0 AS INTEGER ) / - col1 AS col2 FROM tab1 AS cor0
----
-39
319
545
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + ( col0 ) col1 FROM tab2 AS cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col0 + + 73 col1 FROM tab0 AS cor0
----
-719
-7225
38
query I rowsort
SELECT + col0 * + cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT - col1 + + CAST( NULL AS SIGNED ) * - ( + cor0.col2 * 9 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2080
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - ( + cor0.col2 * 9 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + 65 * + cor0.col1 FROM tab0 cor0
----
5590
5915
6305
query I rowsort
SELECT ALL + col1 * + col0 * - 60 FROM tab1
----
-38400
-4680
-62400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT + col2 DIV - 58 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2084
SELECT + col2 / - 58 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 + - 36 AS col2 FROM tab1 AS cor0
----
-100
-116
-39
query I rowsort
SELECT ALL - cor0.col2 * 81 FROM tab0 AS cor0
----
-2673
-6642
-81
query I rowsort
SELECT DISTINCT - cor0.col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( col2 AS REAL ) + col0 + + CAST ( cor0.col1 AS REAL ) / col1 AS col0 FROM tab0 AS cor0
----
-7208
-767
1
query I rowsort
SELECT col2 * - cor0.col2 - col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 * + 62 * + col0 + - 68 col2 FROM tab1 AS cor0
----
10030
226165
476188
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1, tab2 AS cor0
----
87
query I rowsort
SELECT DISTINCT - col0 + - ( + 82 * col1 ) FROM tab1
----
-1146
-2135
-884
query I rowsort
SELECT col2 * + 28 + 60 AS col0 FROM tab2
----
1124
788
816
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col2 + + 49 AS col1 FROM tab0 AS cor0
----
-7249
-743
14
query I rowsort
SELECT ALL - - col2 + - ( + col0 ) * - cor0.col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
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 DISTINCT - - cor0.col1 * 98 + col2 col0 FROM tab0 cor0
----
8461
9000
9507
query I rowsort
SELECT DISTINCT - - cor0.col0 + 66 * 81 AS col0 FROM tab2 AS cor0
----
5353
5424
5425
query I rowsort
SELECT ALL - col2 + col2 * - 7 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + + col1 + + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + col0 + col1 * - 22 FROM tab1 cor0
----
-156
-206
-569
query I rowsort
SELECT - + col0 + + col1 + + col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT ALL + + col0 * 92 + col0 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT DISTINCT col2 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - col1 * col0 - col2 * col0 FROM tab2
----
-406
-4345
-6630
query I rowsort
SELECT ALL + 20 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT - tab0.col1 * 98 * col1 AS col1 FROM tab0
----
-724808
-811538
-922082
query I rowsort
SELECT DISTINCT + tab1.col2 * 38 AS col0 FROM tab1
----
2052
2166
3648
query I rowsort
SELECT ALL + ( - ( col1 ) ) * col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ( 81 ) DIV - col0 + col1 col0 FROM tab2 AS cor0
----
16
20
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2113
SELECT ( 81 ) / - col0 + col1 col0 FROM tab2 AS cor0
----
16
20
58
query I rowsort
SELECT ALL - 46 * - ( + col1 ) + + col2 FROM tab0 AS cor0
----
3989
4268
4463
query I rowsort
SELECT DISTINCT - + 22 * - 34 FROM tab1 AS cor0
----
748
query I rowsort
SELECT + - col1 + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 66 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2118
SELECT + CAST( + ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2118
SELECT + CAST ( + ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( - cor0.col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT ALL 27 DIV + col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 27 / + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - + 20 + - col1 * + 91 FROM tab1 AS cor0
----
-1203
-2386
-930
query I rowsort
SELECT ALL + col1 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT ALL + 99 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
1
3
99
skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 99 / cor0.col2 AS col0 FROM tab0 AS cor0
----
1
3
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT DISTINCT + - col1 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + - col1 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2125
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2125
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - + col1 * col1 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT ALL col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL - - 64 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - - 64 / col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col2 * 38 col0 FROM tab2 AS cor0
----
-1427
-929
-995
onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT ALL + col2 + + col1 DIV col0 AS col2 FROM tab1 cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + col2 + + col1 / col0 AS col2 FROM tab1 cor0
----
57
62
96
query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab1 AS cor0
----
54
query I rowsort
SELECT + + 86 * col2 AS col2 FROM tab1 AS cor0
----
4644
4902
8256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT - ( + col0 ) * col0 + - col2 + + col0 FROM tab0 AS cor0
----
-1191
-585
-7914
query I rowsort
SELECT - col1 * + 25 - col0 AS col2 FROM tab1 AS cor0
----
-314
-405
-653
query I rowsort
SELECT ALL + 0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + - 27 + + col1 * cor0.col1 + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
7336
8172
9381
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - cor0.col1 + + 18 AS col1 FROM tab1 AS cor0
----
-8
5
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT - CAST( NULL AS DECIMAL ) / + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2141
SELECT - CAST ( NULL AS REAL ) / + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( cor0.col1 AS REAL ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 92 + - 95 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL - col0 + col1 + col1 * + 71 FROM tab1
----
1869
656
856
query I rowsort
SELECT ALL - tab2.col0 + - col2 * col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL + col1 * - col1 * - col2 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + + col1 * col2 + 29 col1 FROM tab1 AS cor0
----
1361
1517
683
onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT + col1 * - cor0.col2 + col0 DIV - cor0.col0 + + col2 DIV col0 FROM tab1 AS cor0
----
-1248
-1387
-571
skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + col1 * - cor0.col2 + col0 / - cor0.col0 + + col2 / col0 FROM tab1 AS cor0
----
-1248
-1387
-571
query I rowsort
SELECT ALL ( - 39 ) AS col0 FROM tab1
----
-39
-39
-39
query I rowsort
SELECT + 45 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ALL - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 + 48 FROM tab0 AS cor0
----
137
72
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT - + cor0.col0 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2154
SELECT - + cor0.col0 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 57 FROM tab2, tab0 cor0, tab1 AS cor1
----
57
query I rowsort
SELECT ALL col0 * 53 FROM tab0
----
1272
1855
4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT ALL + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + + col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT - + col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-2159
SELECT - + col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 85 * col1 col2 FROM tab2
----
130390
54910
71145
query I rowsort
SELECT ALL + tab0.col2 - 16 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to da2a14ae6acb0a623af93c9a1ce782ee
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col0 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT - ( col1 ) + + col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2163
SELECT - ( col1 ) + + col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( 24 ) + + cor0.col2 * + col2 - - col1 AS col1 FROM tab0 cor0
----
1199
122
6839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 48 * + col1 + 79 ) col2 FROM tab2
----
1567
2911
895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 46 + col2 ) col2 FROM tab0
----
128
47
79
query I rowsort
SELECT ALL + 94 * + col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT - ( - col0 ) * 83 FROM tab0 cor0
----
1992
2905
7387
onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT ALL + 98 DIV cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + 98 / cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT ALL col1 DIV col1 + col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL col1 / col1 + col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT - 65 * + col1 * col0 FROM tab0 AS cor0
----
-134160
-220675
-526435
query I rowsort
SELECT DISTINCT + 1 + col2 * + col2 FROM tab2 AS cor0
----
1445
677
730
query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1 cor0
----
44
query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col1 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT ALL + 14 * - col1 AS col0 FROM tab1
----
-140
-182
-364
query I rowsort
SELECT col1 + + 86 * + cor0.col1 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL cor0.col2 * - 47 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT ALL + + col0 * + col1 + col0 AS col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ( + 34 ) + col0 * - 89 FROM tab1 AS cor0
----
-233
-5662
-7086
query I rowsort
SELECT + ( + ( - col2 ) ) * col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - ( + col2 ) * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + ( - ( + col1 ) ) * col1 + + 82 * col1 AS col2 FROM tab1 AS cor0
----
1235
2808
920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( + col2 ) ) + + 60 * - 84 col2 FROM tab2 AS cor0
----
-5002
-5013
-5014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col2 col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL - tab0.col1 * - col0 + - col1 * tab0.col2 AS col0 FROM tab0
----
-774
3298
637
query I rowsort
SELECT - col2 + - 92 + col1 AS col2 FROM tab2 cor0
----
-113
-59
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT ALL col1 + tab1.col2 + - col1 DIV tab1.col1 FROM tab1
----
108
66
79
skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL col1 + tab1.col2 + - col1 / tab1.col1 FROM tab1
----
108
66
79
query I rowsort
SELECT + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - + cor0.col2 * - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + ( - col0 + - col0 * 67 ) AS col1 FROM tab1
----
-204
-4352
-5440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT - 88 + col0 * - col2 FROM tab0 AS cor0
----
-123
-7386
-880
query I rowsort
SELECT ALL - col1 + col0 * col2 FROM tab2 cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT DISTINCT - col1 DIV + ( - col0 ) AS col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - col1 / + ( - col0 ) AS col0 FROM tab2
----
0
4
query I rowsort
SELECT ALL - col2 + + 28 + col2 * + col1 * - col0 FROM tab0 cor0
----
-3368
-664172
-68117
query I rowsort
SELECT DISTINCT + - 78 + + ( - col2 ) * cor0.col1 FROM tab0 AS cor0
----
-175
-2916
-7540
query I rowsort
SELECT DISTINCT - - col1 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + 75 * col2 AS col1 FROM tab1 AS cor0
----
4050
4275
7200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT DISTINCT + CAST( 63 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63
skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CAST ( 63 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col1 + tab2.col1 * + 51 * col2 FROM tab2
----
32963
42718
78293
query I rowsort
SELECT ALL col1 + ( - tab0.col0 ) + - col0 FROM tab0
----
-87
27
38
query I rowsort
SELECT DISTINCT 91 * ( + col2 ) FROM tab2
----
2366
2457
3458
query I rowsort
SELECT col0 * 46 - - tab1.col1 AS col1 FROM tab1
----
164
2954
3693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT DISTINCT + + 73 * - col2 + + col2 + - col0 DIV + col2 AS col1 FROM tab0 cor0
----
-107
-2376
-5905
skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + 73 * - col2 + + col2 + - col0 / + col2 AS col1 FROM tab0 cor0
----
-107
-2376
-5905
onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT DISTINCT + - col1 DIV 48 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + - col1 / 48 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - 32 * - col2 AS col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT ALL 47 * + cor0.col1 + - col2 FROM tab0 cor0
----
4009
4195
4558
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 + 91 AS col2 FROM tab0 AS cor0
----
177
182
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2214
SELECT cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL - 3 + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9af5bf694317f77e09b629bc8e60b619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + + 42 * col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT - + col2 * col0 + 10 AS col1 FROM tab1 AS cor0
----
-152
-3638
-7670
onlyif mysql # use DIV operator for integer division
query I rowsort label-2219
SELECT + 67 DIV + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6
skipif mysql # not compatible
query I rowsort label-2219
SELECT + 67 / + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT DISTINCT - col2 DIV cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - col2 / cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT col0 * - 51 FROM tab1 cor0
----
-153
-3264
-4080
query I rowsort
SELECT - col0 + ( - col2 ) * col0 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
0
26112
598347
query I rowsort
SELECT + + col2 * col0 + - col2 * + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col0 + - 82 AS col1 FROM tab2 AS cor0
----
1261
135
4520
query I rowsort
SELECT ALL - + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + - tab1.col1 * ( - col2 + - tab1.col1 ) col0 FROM tab1
----
1321
2026
613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + ( col1 ) * 19 col0 FROM tab1
----
1170
290
416
query I rowsort
SELECT col0 * - 37 + + col1 AS col1 FROM tab2 AS cor0
----
-228
-2827
-2906
query I rowsort
SELECT ALL cor0.col2 + - cor0.col1 * col2 FROM tab1 cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT - col1 DIV + ( col0 ) + col0 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-2230
SELECT - col1 / + ( col0 ) + col0 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT + - col2 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT ALL + col2 * + col0 * - col0 + col1 DIV - ( 55 ) FROM tab2 AS cor0
----
-1323
-158185
-237158
skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + col2 * + col0 * - col0 + col1 / - ( 55 ) FROM tab2 AS cor0
----
-1323
-158185
-237158
query I rowsort
SELECT ALL - col0 - 45 FROM tab0 AS cor0
----
-134
-69
-80
query I rowsort
SELECT - col1 * + 8 + col2 * cor0.col2 FROM tab2 cor0
----
1308
204
481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 - col0 col2 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - - 4 + + ( col2 ) * - col1 - + col0 AS col1 FROM tab2 AS cor0
----
-1608
-721
-840
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2240
SELECT CAST( 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
73
73
73
skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT col1 * - 93 * tab2.col2 + + col0 FROM tab2
----
-142584
-59999
-77834
query I rowsort
SELECT + 8 + col0 * 59 FROM tab1 AS cor0
----
185
3784
4728
onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT 68 + cor0.col2 DIV 28 FROM tab0 cor0
----
68
69
70
skipif mysql # not compatible
query I rowsort label-2243
SELECT 68 + cor0.col2 / 28 FROM tab0 cor0
----
68
69
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 * cor0.col0 col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT - col0 * col1 + - 95 AS col2 FROM tab1 AS cor0
----
-1135
-173
-735
query I rowsort
SELECT ALL + col0 * - col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - 48 + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2790
49
7414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 + col1 col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 * + col1 + - 4 * col2 AS col0 FROM tab0
----
1932
3391
7771
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + + col2 * - CAST ( col2 AS REAL ) FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT + col0 + - col2 * + tab1.col2 + col2 * tab1.col2 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 + col0 + - ( tab1.col1 ) * + col0 FROM tab1
----
-21
-519
-864
query I rowsort
SELECT - col1 + cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 + - 65 AS col1 FROM tab2
----
-16
6019
6176
onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT ALL - col2 + + col1 DIV col0 AS col2 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - col2 + + col1 / col0 AS col2 FROM tab0
----
-30
-81
1
query I rowsort
SELECT DISTINCT col2 + col1 + - 11 AS col1 FROM tab2
----
44
47
74
query I rowsort
SELECT ALL ( col2 ) * col0 * col0 + + col0 FROM tab0
----
1260
19032
649611
query I rowsort
SELECT DISTINCT - 65 FROM tab0 cor0
----
-65
query I rowsort
SELECT ALL col0 + + col1 * ( 17 ) AS col1 FROM tab0 AS cor0
----
1486
1636
1684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + - 88 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT - 70 AS col1 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT col1 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col2 * + 72 + - col0 AS col2 FROM tab0 cor0
----
-107
-2400
-5993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 42 * col1 col2 FROM tab2 cor0
----
1302
2478
714
query I rowsort
SELECT + col2 + col1 * - col2 + - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 45 * 69 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ea8df6b16bd5886380336ff2d0a44c64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2269
SELECT DISTINCT - + cor0.col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - + cor0.col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 * + 13 AS col0 FROM tab0
----
-1066
-13
-429
query I rowsort
SELECT ALL + 63 AS col1 FROM tab0
----
63
63
63
query I rowsort
SELECT + 35 * col1 * + col0 + + ( 63 ) AS col1 FROM tab1
----
22463
2793
36463
query I rowsort
SELECT DISTINCT + 7 * + 42 FROM tab1
----
294
query I rowsort
SELECT DISTINCT - ( 82 ) * col1 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT - + ( col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT 78 + - col1 FROM tab0 AS cor0
----
-13
-19
-8
query I rowsort
SELECT - ( - tab1.col0 * col0 ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 75 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-110
-7373
-867
onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT + 35 + col1 DIV CAST( - cor0.col0 AS SIGNED ) + + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
32
36
36
skipif mysql # not compatible
query I rowsort label-2279
SELECT + 35 + col1 / CAST ( - cor0.col0 AS INTEGER ) + + col0 / + col0 AS col2 FROM tab2 AS cor0
----
32
36
36
query I rowsort
SELECT DISTINCT - 30 + col1 FROM tab1 AS cor0
----
-17
-20
-4
query I rowsort
SELECT DISTINCT + + col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL col2 * col2 + 91 FROM tab2 AS cor0
----
1535
767
820
query I rowsort
SELECT ALL + tab1.col0 * tab1.col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 67 + + col2 * 75 FROM tab2
----
2017
2092
2917
onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT + col0 + col1 DIV + col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2285
SELECT + col0 + col1 / + col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 + + col0 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - 6 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT col2 DIV + 69 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2289
SELECT col2 / + 69 FROM tab0
----
0
0
1
query I rowsort
SELECT - col1 + col0 + col1 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 * 16 * - col0 - col0 * - col0 AS col0 FROM tab1
----
129280
2601
62464
query I rowsort
SELECT + col1 + + 90 + + col1 FROM tab1 cor0
----
110
116
142
query I rowsort
SELECT ALL - + 31 + - col2 FROM tab0 AS cor0
----
-113
-32
-64
query I rowsort
SELECT - + 95 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-5156
-5425
-9133
query I rowsort
SELECT + 0 * - ( col1 ) + col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + + 27 * col0 + - col1 FROM tab1 AS cor0
----
1718
2147
55
query I rowsort
SELECT DISTINCT + - 41 * - 11 AS col0 FROM tab2 AS cor0
----
451
query I rowsort
SELECT - + col1 * col0 + - col0 * 82 FROM tab0 AS cor0
----
-15397
-4032
-6265
query I rowsort
SELECT - 43 * 67 + col0 + 34 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2980
-4993
-5521
query I rowsort
SELECT 92 * 49 FROM tab0 AS cor0
----
4508
4508
4508
query I rowsort
SELECT col0 * + col0 + - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT DISTINCT - col1 + col1 + col0 * col0 DIV + cor0.col1 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - col1 + col1 + col0 * col0 / + cor0.col1 FROM tab0 AS cor0
----
12
6
87
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 FROM tab1 AS cor0 WHERE + col2 < NULL
----
query I rowsort
SELECT - col2 / col0 + tab2.col2 FROM tab2 WHERE NOT NULL > col2
----
query I rowsort
SELECT - tab1.col0 + col0 + - col2 * + col2 AS col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 col0 FROM tab0
----
1225
19008
649522
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( + col1 )
----
query I rowsort
SELECT col2 * cor0.col1 + cor0.col1 * col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL + col1 * col2 - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL col1 - col0 * + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT col2 + col1 + + col0 * + col0 FROM tab1
----
4163
6509
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * col2 + - col1 col2 FROM tab2
----
114059
5072
52669
onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ALL + col0 DIV + col2 + - col0 AS col0 FROM tab0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + col0 / + col2 + - col0 AS col0 FROM tab0
----
-24
-88
0
query I rowsort
SELECT DISTINCT col1 * - col0 + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT ALL + tab1.col0 DIV col0 + - col2 AS col0 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + tab1.col0 / col0 + - col2 AS col0 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT DISTINCT col0 * col1 * col2 + + col1 AS col0 FROM tab1 WHERE - col1 * - col2 * col0 <> col1
----
36490
4238
99853
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( + col1 * col0 ) AND col0 + - col2 * tab0.col1
----
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT ALL + col0 DIV + col1 - col2 * col1 AS col1 FROM tab1
----
-1242
-1404
-564
skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + col0 / + col1 - col2 * col1 AS col1 FROM tab1
----
-1242
-1404
-564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + col1 * + col1 - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT + col0 + col1 DIV col1 FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2324
SELECT + col0 + col1 / col1 FROM tab2 cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT + - col2 DIV - col1 col0 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + - col2 / - col1 col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col0 * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + col1 * + cor0.col2 col1 FROM tab1 AS cor0
----
-1512
-2679
-7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col2 + - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT - + cor0.col2 * - col2 + - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2865
3256
9200
query I rowsort
SELECT ALL col2 + + col1 - col2 * col1 AS col2 FROM tab1
----
-1139
-1324
-503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 * - tab2.col1 + - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + col2 * + cor0.col2 - + col0 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT + col2 DIV col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-2335
SELECT + col2 / col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL col2 DIV col0 + + col0 AS col2 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL col2 / col0 + + col0 AS col2 FROM tab2
----
10
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2337
SELECT DISTINCT + 64 + tab0.col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + 64 + tab0.col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL col2 + col0 * ( col1 ) AS col1 FROM tab1
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * cor0.col1 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 245588c0f06bec9ab1fff652cc3a8899
query I rowsort
SELECT DISTINCT + col2 * - col2 + 44 FROM tab2
----
-1400
-632
-685
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
query I rowsort
SELECT + cor0.col2 + col2 * 77 FROM tab1 cor0
----
4212
4446
7488
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2343
SELECT - col1 * 94 + col0 * + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2343
SELECT - col1 * 94 + col0 * + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2344
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - 95 + + col0 FROM tab1 cor0
----
-111
-146
-88
query I rowsort
SELECT + cor0.col1 * col2 - ( + col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + col1 + ( + col1 ) AS col0 FROM tab1 cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col1 ) - + col2 * + 96 col0 FROM tab2 AS cor0
----
-2809
-4991
-7098
query I rowsort
SELECT ALL + col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * tab2.col1 * - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + tab1.col2 col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL col1 * + col0 * col0 AS col1 FROM tab0 WHERE NULL NOT IN ( - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT - col2 + - col1 DIV + col0 AS col1 FROM tab0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-2353
SELECT - col2 + - col1 / + col0 AS col1 FROM tab0
----
-3
-36
-83
query I rowsort
SELECT - col1 + col2 / col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----
query I rowsort
SELECT ALL col2 * + col1 + col2 * - col1 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) > - col1
----
query I rowsort
SELECT - col2 - - tab2.col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT DISTINCT tab0.col2 + - col0 DIV + tab0.col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT tab0.col2 + - col0 / + tab0.col0 FROM tab0
----
0
32
81
query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT - col1 + - col0 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2360
SELECT - col1 + - col0 / + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 5 * col2 FROM tab0 AS cor0
----
-165
-410
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT DISTINCT 61 * col2 DIV ( 27 * + col2 ) FROM tab1 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 61 * col2 / ( 27 * + col2 ) FROM tab1 AS cor0
----
2
query I rowsort
SELECT ALL - 1 * - col0 FROM tab0 AS cor0
----
24
35
89
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - tab2.col1
----
query I rowsort
SELECT - col2 + col2 + + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + - col2 + - 31 * 23 FROM tab2 AS cor0
----
-739
-740
-751
query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL cor0.col0 + - ( col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + ( + col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-2371
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - col0 + 84 * cor0.col2 FROM tab0 AS cor0
----
2748
49
6799
query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + 88 AS col0 FROM tab2 cor0
----
88
88
88
query I rowsort
SELECT DISTINCT - - ( - col2 ) * 23 + - col0 AS col0 FROM tab2 AS cor0
----
-628
-676
-953
query I rowsort
SELECT ALL + col1 * - col1 + 77 FROM tab0 AS cor0
----
-7319
-8204
-9332
query I rowsort
SELECT col2 - col0 * 8 FROM tab0 AS cor0
----
-159
-279
-630
query I rowsort
SELECT - 75 * col1 + - col1 * 11 FROM tab2 cor0
----
-1462
-2666
-5074
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT col1 / col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2379
SELECT col1 / col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT col1 DIV - col0 + + 96 AS col0 FROM tab2 cor0
----
92
96
96
skipif mysql # not compatible
query I rowsort label-2380
SELECT col1 / - col0 + + 96 AS col0 FROM tab2 cor0
----
92
96
96
query I rowsort
SELECT + cor0.col0 + + ( + col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT col0 * ( + 89 ) + cor0.col2 FROM tab2 AS cor0
----
650
6968
7069
query I rowsort
SELECT DISTINCT ( - tab1.col2 ) + + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col1 * + 34 AS col2 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT + col0 * 14 AS col0 FROM tab0 AS cor0
----
1246
336
490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2386
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 79 * + col0 FROM tab0 AS cor0
----
-163056
-268205
-639821
query I rowsort
SELECT + col1 + ( + 58 ) * + col2 + col0 FROM tab1 AS cor0
----
3161
3380
5661
query I rowsort
SELECT DISTINCT - col1 * 74 AS col0 FROM tab2 AS cor0
----
-1258
-2294
-4366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2390
SELECT - - col0 + + CAST( - col0 AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-2390
SELECT - - col0 + + CAST ( - col0 AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + tab1.col2 * tab2.col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed
query I rowsort
SELECT DISTINCT + col2 * ( col2 + - tab2.col2 ) AS col2 FROM tab2
----
0
query I rowsort
SELECT - ( cor0.col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT + col1 * - CAST( NULL AS SIGNED ) - col2 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2394
SELECT + col1 * - CAST ( NULL AS INTEGER ) - col2 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - 36 FROM tab2
----
1116
2124
612
query I rowsort
SELECT + col1 * - col0 - + col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT ( col2 * tab2.col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 43 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT + col0 * + col2 + + col2 DIV + ( col1 * col1 ) FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2399
SELECT + col0 * + col2 + + col2 / + ( col1 * col1 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + - col1 * col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT ( - col1 ) * tab2.col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab2, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL + ( tab1.col2 ) DIV col1 AS col0 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + ( tab1.col2 ) / col1 AS col0 FROM tab1
----
2
5
7
query I rowsort
SELECT 82 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT + + ( + 17 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT col1 * col1 * col1 AS col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT - + 18 AS col0 FROM tab1 cor0
----
-18
-18
-18
query I rowsort
SELECT + cor0.col0 + - col1 * - col0 * 14 AS col2 FROM tab2 AS cor0
----
18881
3045
64506
query I rowsort
SELECT - col2 + col1 * 45 AS col1 FROM tab0 AS cor0
----
3837
4013
4364
query I rowsort
SELECT - 34 * col1 - + cor0.col1 * + col0 FROM tab0 AS cor0
----
-11193
-4988
-6693
query I rowsort
SELECT DISTINCT ( tab1.col0 ) * col1 * + col2 + - tab1.col0 AS col1 FROM tab1
----
36416
4209
99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT + col0 + + col2 DIV + col0 + tab0.col2 FROM tab0
----
171
36
58
skipif mysql # not compatible
query I rowsort label-2413
SELECT + col0 + + col2 / + col0 + tab0.col2 FROM tab0
----
171
36
58
query I rowsort
SELECT DISTINCT 16 + col0 * col1 FROM tab1
----
1056
656
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - col2 * - col0 col0 FROM tab2
----
142
1981
2955
query I rowsort
SELECT DISTINCT cor0.col1 * - tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 5e05f50cc51e966d7e055a113d30a5e0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT + col1 DIV - 95 + + col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8
skipif mysql # not compatible
query I rowsort label-2417
SELECT + col1 / - 95 + + col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT DISTINCT + ( - col1 ) DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + ( - col1 ) / + col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 76 AS col2 FROM tab2 AS cor0
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 98 * + col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
122208
137538
55803
onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT col2 + - col2 DIV cor0.col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-2421
SELECT col2 + - col2 / cor0.col0 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT ALL - col2 * col2 + - ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT DISTINCT + 67 + - col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
134
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT + ( col2 ) + + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2424
SELECT + ( col2 ) + + col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 * col1 + 5 FROM tab1 AS cor0
----
1253
1409
575
query I rowsort
SELECT ALL 53 + - col1 AS col2 FROM tab0 AS cor0
----
-33
-38
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT DISTINCT cor0.col2 DIV - col1 - + 81 FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT cor0.col2 / - col1 - + 81 FROM tab0 AS cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND tab0.col0
----
query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 * col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT ALL - col0 * col1 - col0 * 7 AS col0 FROM tab1
----
-1088
-1600
-99
query I rowsort
SELECT col1 * + 86 AS col1 FROM tab2 AS cor0
----
1462
2666
5074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - - col1 + 0 + 35 AS col2 FROM tab1 AS cor0
----
45
48
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2435
SELECT cor0.col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 * 80 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT DISTINCT + - col1 * - 40 AS col2 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT DISTINCT + 76 * - tab0.col1 FROM tab0
----
-6536
-6916
-7372
query I rowsort
SELECT ALL col2 * - 59 + col2 + col2 AS col2 FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT DISTINCT + - col1 - ( ( col1 ) ) FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT - - col1 * - CAST( - col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
skipif mysql # not compatible
query I rowsort label-2442
SELECT - - col1 * - CAST ( - col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT - col1 * + col2 + col0 * col2 - col0 * + col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT - 64 + 56 DIV - col2 FROM tab0 AS cor0
----
-120
-64
-65
skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 64 + 56 / - col2 FROM tab0 AS cor0
----
-120
-64
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 13 col0 FROM tab2 AS cor0
----
-13
-14
-25
query I rowsort
SELECT 12 * + 38 FROM tab0, tab2 AS cor0
----
9 values hashing to cf4dccd74afeb1a295d889ddbf6f21bf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT CAST( - 50 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1550
2950
850
skipif mysql # not compatible
query I rowsort label-2448
SELECT CAST ( - 50 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1550
2950
850
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT + cor0.col0 DIV + ( col0 * ( - 96 ) ) AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2449
SELECT + cor0.col0 / + ( col0 * ( - 96 ) ) AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - 86 ) FROM tab1 AS cor0
----
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT + 22 DIV + 4 FROM tab1 cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-2451
SELECT + 22 / + 4 FROM tab1 cor0
----
5
5
5
query I rowsort
SELECT ALL 39 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ALL + col0 DIV + col0 + col2 * + 13 AS col1 FROM tab2
----
339
352
495
skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + col0 / + col0 + col2 * + 13 AS col1 FROM tab2
----
339
352
495
query I rowsort
SELECT ALL ( + col0 ) + + col2 * + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - 30 FROM tab0, tab1 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT DISTINCT - col1 + + 41 FROM tab1 AS cor0
----
15
28
31
query I rowsort
SELECT ALL + + 79 * + 46 AS col2 FROM tab1 AS cor0
----
3634
3634
3634
query I rowsort
SELECT ALL cor0.col0 * - col2 * + cor0.col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 91 * - 95 FROM tab1 cor0
----
8645
8645
8645
query I rowsort
SELECT DISTINCT - - col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT ALL - col1 DIV 50 + + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - col1 / 50 + + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + 31 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL + + col0 * col1 - - col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + 99 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL - col2 + + ( - col2 ) FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + col0 + col0 * 94 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT ALL + col2 * col1 + - 67 AS col2 FROM tab0 cor0
----
2771
30
7395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( 43 + - cor0.col1 ) col1 FROM tab1 AS cor0
----
110
20
97
query I rowsort
SELECT - + ( cor0.col2 ) * col1 * - col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - 93 * - col0 AS col1 FROM tab2 AS cor0
----
651
7254
7347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) - 11 col0 FROM tab2 AS cor0
----
15
16
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT col0 * + col2 + col0 DIV col0 + - tab2.col0 FROM tab2
----
183
1951
2924
skipif mysql # not compatible
query I rowsort label-2472
SELECT col0 * + col2 + col0 / col0 + - tab2.col0 FROM tab2
----
183
1951
2924
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT - - cor0.col0 * col0 + 35 DIV col2 + cor0.col0 DIV + 93 AS col2 FROM tab0 AS cor0
----
1260
577
7921
skipif mysql # not compatible
query I rowsort label-2473
SELECT - - cor0.col0 * col0 + 35 / col2 + cor0.col0 / + 93 AS col2 FROM tab0 AS cor0
----
1260
577
7921
query I rowsort
SELECT + - 18 + + col1 + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1493
-647
-824
query I rowsort
SELECT ALL 62 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a
query I rowsort
SELECT 34 * col0 FROM tab2
----
238
2652
2686
query I rowsort
SELECT + ( col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT col0 + col1 + - CAST( 8 AS SIGNED ) FROM tab0 AS cor0
----
102
124
172
skipif mysql # not compatible
query I rowsort label-2478
SELECT col0 + col1 + - CAST ( 8 AS INTEGER ) FROM tab0 AS cor0
----
102
124
172
query I rowsort
SELECT ( 44 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 + - cor0.col0 col1 FROM tab2 cor0
----
-1422
-224
-4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2481
SELECT DISTINCT + - col0 + CAST( 20 AS SIGNED ) FROM tab1 AS cor0
----
-44
-60
17
skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + - col0 + CAST ( 20 AS INTEGER ) FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT DISTINCT 61 + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
143
62
94
query I rowsort
SELECT + + 60 + - col1 AS col1 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT + col1 + 59 * col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
6021
661
9263
query I rowsort
SELECT - tab2.col1 * col2 * col1 AS col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT + 77 FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT + ( - col1 ) * + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - tab1.col1 * 97 FROM tab1
----
-1261
-2522
-970
query I rowsort
SELECT + ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - - col0 - - col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + + cor0.col0 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + - ( - 50 ) + + col2 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT + ( + col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col2 + col2 * - 92 * - col1 FROM tab1 cor0
----
114912
129222
52497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col1 + col0 * 90 AS col2 FROM tab0 AS cor0
----
2074
3053
7919
query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-193
-2061
-2981
onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT + tab0.col1 DIV - ( col0 + ( col1 ) ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2498
SELECT + tab0.col1 / - ( col0 + ( col1 ) ) AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT 37 DIV + 32 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2499
SELECT 37 / + 32 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 91 + + col0 FROM tab2 cor0
----
169
170
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT + col2 * + col0 + - CAST( col0 AS SIGNED ) + col1 col1 FROM tab1 cor0
----
185
3594
7613
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2501
SELECT + col2 * + col0 + - CAST ( col0 AS INTEGER ) + col1 col1 FROM tab1 cor0
----
185
3594
7613
query I rowsort
SELECT ALL - 56 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-120
-136
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT - cor0.col0 * col1 + CAST( + col0 AS SIGNED ) + col1 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-638096
-761581
-916033
skipif mysql # not compatible
query I rowsort label-2503
SELECT - cor0.col0 * col1 + CAST ( + col0 AS INTEGER ) + col1 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-638096
-761581
-916033
query I rowsort
SELECT DISTINCT 37 FROM tab0, tab0 AS cor0, tab2 cor1
----
37
query I rowsort
SELECT + col2 + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT - col2 DIV 43 AS col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2506
SELECT - col2 / 43 AS col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT + 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT ALL col1 + 90 * col0 FROM tab2 cor0
----
661
7079
7127
onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT ALL cor0.col1 DIV col0 - cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-4096
-6400
skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL cor0.col1 / col0 - cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-4096
-6400
query I rowsort
SELECT ALL + - ( + 45 ) FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT + 57 * 41 AS col2 FROM tab0 cor0
----
2337
2337
2337
query I rowsort
SELECT ALL + col0 * ( col1 ) + col1 + cor0.col0 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT DISTINCT + - 68 + col2 FROM tab1 AS cor0
----
-11
-14
28
query I rowsort
SELECT ALL ( + 86 ) + + col2 * col1 AS col1 FROM tab0 AS cor0
----
183
2924
7548
query I rowsort
SELECT DISTINCT - + col1 + 72 AS col2 FROM tab0 AS cor0
----
-14
-19
-25
query I rowsort
SELECT tab1.col1 * col0 * - col0 - col1 FROM tab1
----
-260
-40970
-83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT + col1 DIV col0 + + col2 AS col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-2517
SELECT + col1 / col0 + + col2 AS col2 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT + col0 + 79 * 28 AS col2 FROM tab1 AS cor0
----
2215
2276
2292
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT ALL tab2.col0 * CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL tab2.col0 * CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col0 + + 63 * + 35 * + col0 AS col2 FROM tab1
----
141184
176480
6618
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col1 * + 43 - + col1 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2524
SELECT ALL CAST( col2 AS SIGNED ) col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL CAST ( col2 AS INTEGER ) col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col0 FROM tab1
----
55
55
55
query I rowsort
SELECT 0 + + 26 * + col1 AS col1 FROM tab2
----
1534
442
806
query I rowsort
SELECT + 66 * col1 + col1 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT ALL + 55 + cor0.col2 AS col1 FROM tab1 cor0
----
109
112
151
query I rowsort
SELECT DISTINCT - ( col1 ) + 28 FROM tab1 cor0
----
15
18
2
query I rowsort
SELECT ALL cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col0 col1 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT - + 2 AS col0 FROM tab1 AS cor0
----
-2
query I rowsort
SELECT ALL + - ( col2 ) + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 + col2 + - col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - 19 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
270
3462
942
query I rowsort
SELECT DISTINCT + - 85 + + col0 FROM tab1 AS cor0
----
-21
-5
-82
query I rowsort
SELECT col0 * + tab1.col2 - - col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 55 * col0 FROM tab2 AS cor0
----
-385
-4290
-4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT + col2 + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2541
SELECT + col2 + col0 / col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT col1 * col1 * - col2 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + col1 + - col2 * ( - col2 * col0 ) + col2 * + 7 AS col2 FROM tab2 cor0
----
114359
52969
5323
query I rowsort
SELECT + 23 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT col2 + + cor0.col1 * - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-244035
-678960
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT ALL - - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL - - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - col1 + + 9 AS col0 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT - 31 + + 59 * - col0 AS col1 FROM tab1 AS cor0
----
-208
-3807
-4751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + 28 * col1 col2 FROM tab2 AS cor0
----
1730
555
875
query I rowsort
SELECT + ( 19 ) * cor0.col0 + - cor0.col1 FROM tab1 cor0
----
1206
1507
31
query I rowsort
SELECT - ( + 58 ) * col2 AS col0 FROM tab0 AS cor0
----
-1914
-4756
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 13 ) col2 FROM tab2 cor0
----
-13
query I rowsort
SELECT - + 78 * 65 * - col2 + col0 * - 86 + col2 FROM tab0 cor0
----
165279
2061
408168
query I rowsort
SELECT DISTINCT ( + 85 ) * - col0 FROM tab2 AS cor0
----
-595
-6630
-6715
query I rowsort
SELECT col2 * + 62 AS col0 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ALL - - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT - col0 DIV - tab1.col2 + ( - col0 ) + col0 * col2 * + col0 FROM tab1
----
233409
483
614320
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - col0 / - tab1.col2 + ( - col0 ) + col0 * col2 * + col0 FROM tab1
----
233409
483
614320
query I rowsort
SELECT DISTINCT col1 * ( col0 * col2 ) + - 31 AS col2 FROM tab0
----
3364
664087
68081
query I rowsort
SELECT + col1 - + 69 FROM tab0 cor0
----
17
22
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT DISTINCT - 67 DIV col0 + col0 FROM tab2
----
-2
78
79
skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 67 / col0 + col0 FROM tab2
----
-2
78
79
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
13122 values hashing to 4dc070caf1aa06a1f3bd0afe28eb4987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT CAST( - 29 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67
skipif mysql # not compatible
query I rowsort label-2563
SELECT CAST ( - 29 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT - cor0.col1 + - tab1.col1 * + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6512c9574a0564be223fd0668611f43d
query I rowsort
SELECT + 53 * + col1 AS col2 FROM tab1
----
1378
530
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT + - col0 DIV 17 - - 31 FROM tab2 AS cor0
----
27
27
31
skipif mysql # not compatible
query I rowsort label-2566
SELECT + - col0 / 17 - - 31 FROM tab2 AS cor0
----
27
27
31
query I rowsort
SELECT + col1 * 73 FROM tab0 AS cor0
----
6278
6643
7081
onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT - - col1 DIV + 32 + - 28 - - col0 AS col2 FROM tab0 AS cor0
----
-2
10
63
skipif mysql # not compatible
query I rowsort label-2568
SELECT - - col1 / + 32 + - 28 - - col0 AS col2 FROM tab0 AS cor0
----
-2
10
63
query I rowsort
SELECT + col1 - ( + ( col1 ) ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - 67 - - col1 FROM tab2 AS cor0
----
1801
1840
2563
onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT + col2 DIV - 19 - + col1 AS col2 FROM tab1 cor0
----
-13
-18
-28
skipif mysql # not compatible
query I rowsort label-2571
SELECT + col2 / - 19 - + col1 AS col2 FROM tab1 cor0
----
-13
-18
-28
query I rowsort
SELECT ALL 62 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ( 13 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1014
1027
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT ( col0 ) * col1 + + 59 DIV - col1 AS col0 FROM tab2
----
1340
216
4601
skipif mysql # not compatible
query I rowsort label-2574
SELECT ( col0 ) * col1 + + 59 / - col1 AS col0 FROM tab2
----
1340
216
4601
query I rowsort
SELECT DISTINCT - col2 * 88 FROM tab1
----
-4752
-5016
-8448
query I rowsort
SELECT + col2 + - col2 * - col2 * col1 AS col0 FROM tab1 cor0
----
119904
32547
75870
query I rowsort
SELECT ALL - - 99 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL + 30 * col0 FROM tab1
----
1920
2400
90
query I rowsort
SELECT ALL - tab1.col2 * + col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 92 * - col1 * ( - col1 ) AS col1 FROM tab1 cor0
----
15548
62192
9200
query I rowsort
SELECT DISTINCT 95 + col2 * 29 FROM tab2 cor0
----
1197
849
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT ALL col1 * col1 DIV col1 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL col1 * col1 / col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col1 * col2 + + col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT col1 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT - ( col0 ) * col2 DIV col0 + col0 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-2585
SELECT - ( col0 ) * col2 / col0 + col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT col0 * col1 - + col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + col1 * col2 + + col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - col0 * cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * col1 * col0 FROM tab1 AS cor0
----
-260
-40970
-83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT + 52 * - col2 - - col0 DIV col2 FROM tab0
----
-17
-1716
-4263
skipif mysql # not compatible
query I rowsort label-2590
SELECT + 52 * - col2 - - col0 / col2 FROM tab0
----
-17
-1716
-4263
query I rowsort
SELECT DISTINCT 91 + + col0 AS col2 FROM tab2
----
169
170
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT DISTINCT - col0 * col0 * + col1 + col0 DIV + col1 FROM tab0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT - col0 * col0 * + col1 + col0 / + col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - 99 * - col0 FROM tab0
----
2376
3465
8811
query I rowsort
SELECT ( col2 * col1 ) - tab1.col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT 91 + col0 * col2 AS col2 FROM tab0 AS cor0
----
126
7389
883
onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT + - ( - 84 ) + - col1 DIV - col0 FROM tab1 AS cor0
----
84
84
92
skipif mysql # not compatible
query I rowsort label-2596
SELECT + - ( - 84 ) + - col1 / - col0 FROM tab1 AS cor0
----
84
84
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT - CAST( NULL AS SIGNED ) + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2597
SELECT - CAST ( NULL AS INTEGER ) + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 99 * cor0.col2 FROM tab0 AS cor0
----
-3267
-8118
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT + - cor0.col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2599
SELECT + - cor0.col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 98 + + col1 AS col0 FROM tab2 AS cor0
----
-39
-67
-81
query I rowsort
SELECT - + 16 AS col0 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT - 91 * - col1 AS col0 FROM tab2
----
1547
2821
5369
query I rowsort
SELECT - 50 * - col1 AS col0 FROM tab0
----
4300
4550
4850
query I rowsort
SELECT ALL - 91 * + cor0.col1 FROM tab1 cor0
----
-1183
-2366
-910
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 74 AS col0 FROM tab0 cor0
----
74
74
74
query I rowsort
SELECT - ( + col0 ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - - cor0.col2 * + 83 AS col0 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT ALL - - 72 * - 47 * col0 AS col0 FROM tab2 AS cor0
----
-23688
-263952
-267336
onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT ALL col2 * - col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL col2 * - col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa
onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL col0 + col2 DIV + col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL col0 + col2 / + col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0, tab2 AS cor0
----
-71
query I rowsort
SELECT ALL + 57 * + col2 FROM tab2
----
1482
1539
2166
query I rowsort
SELECT ALL col1 * 50 AS col2 FROM tab0
----
4300
4550
4850
query I rowsort
SELECT DISTINCT - 49 * col0 AS col0 FROM tab2
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT col0 * - 35 FROM tab2 cor0
----
-245
-2730
-2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT 4 + - 65 DIV - tab0.col0 FROM tab0
----
4
5
6
skipif mysql # not compatible
query I rowsort label-2618
SELECT 4 + - 65 / - tab0.col0 FROM tab0
----
4
5
6
query I rowsort
SELECT col1 * - 18 + + tab0.col0 * - 19 FROM tab0
----
-2004
-2411
-3329
query I rowsort
SELECT DISTINCT col1 * + 60 + col1 + - col1 FROM tab1 AS cor0
----
1560
600
780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT ALL col1 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL col1 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT - col1 * 95 * + ( col1 ) + - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2622
SELECT - col1 * 95 * + ( col1 ) + - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT + + col2 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT col0 + + col0 + - 78 AS col0 FROM tab2
----
-64
78
80
query I rowsort
SELECT DISTINCT col1 + - col0 + col2 * - col1 * + col2 AS col0 FROM tab2
----
-22575
-24610
-39903
query I rowsort
SELECT + 93 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT col0 + + col2 DIV - ( col1 ) FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-2628
SELECT col0 + + col2 / - ( col1 ) FROM tab1
----
1
59
73
query I rowsort
SELECT ALL + + col0 * - col2 * + 71 FROM tab2 cor0
----
-13419
-143988
-213142
query I rowsort
SELECT DISTINCT + col1 * + 17 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT - + col0 + + 28 * - cor0.col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1518
-1724
-2848
query I rowsort
SELECT ALL col1 * + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + 66 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT DISTINCT col0 DIV 35 + col2 FROM tab0
----
2
33
84
skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT col0 / 35 + col2 FROM tab0
----
2
33
84
query I rowsort
SELECT ALL + col1 + 97 FROM tab1
----
107
110
123
query I rowsort
SELECT + col2 * tab1.col1 + col1 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col0 * - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + + col0 + 28 * - ( col0 ) FROM tab2 cor0
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT + col2 DIV 77 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2640
SELECT + col2 / 77 FROM tab0
----
0
0
1
query I rowsort
SELECT col0 * 33 FROM tab1
----
2112
2640
99
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - ( col0 ) * + col2 + ( + col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-133
-3574
-7587
onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT DISTINCT 61 DIV - 53 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT 61 / - 53 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ( - 12 ) + col1 FROM tab1 cor0
----
-2
1
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 47 AS col0 FROM tab1 AS cor0
----
141
3008
3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * cor0.col0 col0 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT DISTINCT - - col1 + + 10 FROM tab2 AS cor0
----
27
41
69
query I rowsort
SELECT ALL - + col1 * - 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT ALL col2 * col2 DIV + col1 FROM tab1 AS cor0
----
112
324
708
skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL col2 * col2 / + col1 FROM tab1 AS cor0
----
112
324
708
query I rowsort
SELECT DISTINCT - 6 * + 48 FROM tab1 AS cor0
----
-288
query I rowsort
SELECT + 6 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT col1 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + + col1 col2 FROM tab1 AS cor0
----
100
113
97
query I rowsort
SELECT DISTINCT 66 * col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
12474
133848
198132
query I rowsort
SELECT DISTINCT + + 19 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1267
1423
589
query I rowsort
SELECT - ( - col2 ) + 93 AS col0 FROM tab0 AS cor0
----
126
175
94
query I rowsort
SELECT - col0 * col1 + + ( col0 ) - + col2 * col1 AS col2 FROM tab0 cor0
----
-15472
-3457
-4878
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 + cor0.col0 FROM tab0 cor0
----
260
71
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT ALL col2 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL col2 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * - 34 AS col2 FROM tab0 AS cor0
----
-1208
-131
-2879
query I rowsort
SELECT ALL + col2 - col0 * + col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 * ( + 91 ) * col1 FROM tab2 AS cor0
----
26337
316797
87478
query I rowsort
SELECT ALL - - col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + - ( col2 ) * col2 * + col1 + + col0 * col2 FROM tab2 AS cor0
----
-22990
-23139
-38532
query I rowsort
SELECT + col2 + + 26 FROM tab0 AS cor0
----
108
27
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT cor0.col0 DIV 64 - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2670
SELECT cor0.col0 / 64 - col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col2 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + col0 + + col0 * 64 AS col0 FROM tab2 AS cor0
----
455
5070
5135
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 / 98 + - col2 * col0 - + CAST ( + cor0.col1 AS REAL ) / col1 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681
query I rowsort
SELECT - col0 * + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2675
SELECT DISTINCT + ( col2 * CAST( - 25 AS SIGNED ) ) + col2 AS col2 FROM tab1
----
-1296
-1368
-2304
skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + ( col2 * CAST ( - 25 AS INTEGER ) ) + col2 AS col2 FROM tab1
----
-1296
-1368
-2304
query I rowsort
SELECT ALL col2 + col2 * - ( tab0.col2 ) FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
35
query I rowsort
SELECT - col0 * col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT + + col1 + - col2 + 96 AS col1 FROM tab2 AS cor0
----
100
129
75
query I rowsort
SELECT + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + tab1.col0 + + cor0.col1 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c6b1439814b70218813e08f2a8d7a041
query I rowsort
SELECT DISTINCT - col1 * ( + col2 ) * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + - col1 + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2684
SELECT + cor0.col0 * CAST( col0 * + cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-2684
SELECT + cor0.col0 * CAST ( col0 * + cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT + col0 DIV + ( ( col0 ) ) FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2685
SELECT + col0 / + ( ( col0 ) ) FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - - ( - col2 ) + - cor0.col0 * col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT ( + 85 ) * col1 + col2 AS col2 FROM tab1 cor0
----
1201
2264
907
query I rowsort
SELECT tab0.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 72 * - col0 + + col2 FROM tab0 AS cor0
----
1761
2521
6490
onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT col2 DIV col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-2690
SELECT col2 / col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT - + 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT + - 56 + col1 AS col2 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT + + 3 + - col2 FROM tab2 AS cor0
----
-23
-24
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 25 + col2 AS col1 FROM tab2 cor0
----
51
52
63
query I rowsort
SELECT cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 65 ) * col0 col0 FROM tab0
----
1560
2275
5785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab2
----
25
query I rowsort
SELECT - 71 + + col1 FROM tab2 AS cor0
----
-12
-40
-54
query I rowsort
SELECT ALL - + col0 + col0 * + ( - col2 * + cor0.col2 ) - + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-211648
-745040
-8913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT DISTINCT - cor0.col1 * CAST( ( + col1 ) * + col0 AS SIGNED ) + + cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
-180342
-329412
-744471
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - cor0.col1 * CAST ( ( + col1 ) * + col0 AS INTEGER ) + + cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
-180342
-329412
-744471
query I rowsort
SELECT tab2.col1 + 48 FROM tab2, tab1 AS cor0
----
9 values hashing to baa3880a16e4ff665796379a71bd1bd1
query I rowsort
SELECT ALL 77 + + col1 AS col1 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT ALL + 94 + + 53 AS col2 FROM tab0 cor0
----
147
147
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT + - 8 DIV 64 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2706
SELECT + - 8 / 64 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT DISTINCT + col1 DIV col1 - 55 FROM tab0
----
-54
skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + col1 / col1 - 55 FROM tab0
----
-54
query I rowsort
SELECT + col1 * + col2 - + col2 AS col0 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT col0 + - ( tab1.col0 ) * col1 + col0 * - col0 FROM tab1
----
-4672
-7360
-84
query I rowsort
SELECT + ( - col2 * col1 ) + ( col0 ) FROM tab0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2711
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT DISTINCT + col1 + + col2 DIV tab1.col0 AS col2 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + col1 + + col2 / tab1.col0 AS col2 FROM tab1
----
10
14
44
query I rowsort
SELECT ALL 53 * col1 + - col2 * col0 FROM tab2
----
-2101
1099
1454
query I rowsort
SELECT col1 * + 51 - + col2 FROM tab0 AS cor0
----
4353
4559
4946
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT + col0 + + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-2715
SELECT + col0 + + col2 / + col0 AS col1 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT - 92 + col0 AS col2 FROM tab2 AS cor0
----
-13
-14
-85
query I rowsort
SELECT + col2 * + ( col1 ) + 39 * 24 FROM tab0 AS cor0
----
1033
3774
8398
onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT ALL - cor0.col0 DIV cor0.col2 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - cor0.col0 / cor0.col2 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2719
SELECT DISTINCT col2 * CAST( + col0 AS SIGNED ) - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT col2 * CAST ( + col0 AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + col2 * 48 AS col0 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT + col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT DISTINCT + + cor0.col1 + CAST( + col0 AS SIGNED ) * + cor0.col0 + col0 FROM tab2 AS cor0
----
6221
6337
87
skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + + cor0.col1 + CAST ( + col0 AS INTEGER ) * + cor0.col0 + col0 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT 60 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT ALL - 49 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2725
SELECT + + col0 + + CAST( NULL AS SIGNED ) * + ( - col2 * - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2725
SELECT + + col0 + + CAST ( NULL AS INTEGER ) * + ( - col2 * - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + ( - 49 ) AS col1 FROM tab1 AS cor0
----
-103
-106
-145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 46 + - col0 col0 FROM tab2 AS cor0
----
1419
2636
703
query I rowsort
SELECT ALL + cor0.col0 + col0 + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT + + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT + - col0 + col2 DIV col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-2730
SELECT + - col0 + col2 / col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 + 10 FROM tab1 AS cor0
----
-10
-16
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT ALL col2 DIV + col2 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL col2 / + col2 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - + 13 + cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
-6097
-62
-6254
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + 41 col1 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL + 82 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795
query I rowsort
SELECT ALL - 72 FROM tab2, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT ALL col2 * - col1 + 66 + ( cor0.col0 ) * + 17 AS col0 FROM tab1 AS cor0
----
-1287
178
584
query I rowsort
SELECT ALL - 20 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2818
7442
77
query I rowsort
SELECT ALL col1 * cor0.col2 + 51 AS col2 FROM tab1 AS cor0
----
1299
1455
621
query I rowsort
SELECT DISTINCT - 24 * col1 + col1 + - col1 FROM tab2 AS cor0
----
-1416
-408
-744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + col2 * + col0 * + col1 col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT DISTINCT 18 + col0 * cor0.col0 FROM tab2 cor0
----
6102
6259
67
query I rowsort
SELECT DISTINCT + + col0 - col1 * + 11 AS col1 FROM tab2 AS cor0
----
-108
-334
-571
onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT + col1 DIV + col1 + - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
-6
17
52
skipif mysql # not compatible
query I rowsort label-2745
SELECT + col1 / + col1 + - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
-6
17
52
query I rowsort
SELECT - + col0 * + col2 - + cor0.col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col2 + col2 * col2 + 40 AS col2 FROM tab1
----
3010
3346
9352
query I rowsort
SELECT DISTINCT - 1 + - col0 * + 8 * + 80 AS col2 FROM tab1
----
-1921
-40961
-51201
query I rowsort
SELECT DISTINCT 59 + + col0 FROM tab0
----
148
83
94
query I rowsort
SELECT - tab0.col1 * - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT + 60 * col0 DIV col1 FROM tab1
----
369
384
6
skipif mysql # not compatible
query I rowsort label-2752
SELECT + 60 * col0 / col1 FROM tab1
----
369
384
6
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT + tab2.col0 + + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + cor0.col2 * col0 - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col0 + ( col2 ) * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col2 - ( + 60 ) FROM tab0 AS cor0
----
-27
-59
22
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT - 63 * cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5fe55fbf550243cc78cad91efb6adb29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL col1 * - col2 DIV + col2 + ( tab0.col0 ) * col1 FROM tab0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL col1 * - col2 / + col2 + ( tab0.col0 ) * col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + cor0.col0 * + 50 AS col1 FROM tab1, tab1 cor0
----
150
3200
4000
query I rowsort
SELECT - col1 * - 70 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
query I rowsort
SELECT ALL - cor0.col1 + - ( - 7 * col0 ) AS col0 FROM tab0 AS cor0
----
148
532
82
query I rowsort
SELECT - + cor0.col1 + ( - col2 ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + + cor0.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT + col2 DIV + 67 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2767
SELECT + col2 / + 67 AS col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + - 49 col2 FROM tab0 AS cor0
----
-14
7249
743
query I rowsort
SELECT + 9 + + col2 AS col1 FROM tab1
----
105
63
66
query I rowsort
SELECT ALL - tab1.col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT col0 * tab1.col2 * - col2 + col1 DIV col2 AS col1 FROM tab1
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-2771
SELECT col0 * tab1.col2 * - col2 + col1 / col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL col1 DIV - col1 + + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL col1 / - col1 + + col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + 4 * 32 + + col2 + col2 * + ( + col1 * 0 ) AS col0 FROM tab2 AS cor0
----
154
155
166
query I rowsort
SELECT DISTINCT - 92 * - tab0.col2 * col0 FROM tab0
----
3220
671416
72864
query I rowsort
SELECT DISTINCT + 77 * col2 FROM tab1
----
4158
4389
7392
query I rowsort
SELECT ALL - 1 AS col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 + col2 * + 70 AS col2 FROM tab2 AS cor0
----
1897
1898
2739
query I rowsort
SELECT 5 * + col0 AS col1 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT ALL + ( - col2 ) * 15 AS col2 FROM tab0 cor0
----
-1230
-15
-495
query I rowsort
SELECT ALL - col0 * + col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - col2 * col1 * + col0 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT tab0.col0 - - 73 FROM tab0, tab1 AS cor0
----
9 values hashing to 0d335dceb56be9a3434bcc659b11313c
query I rowsort
SELECT + tab1.col0 - 93 * - col2 AS col0 FROM tab1
----
5025
5365
9008
query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab0 AS cor0, tab0 cor1
----
13
query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - 7 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT ( - col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT + + col1 + col0 DIV - col1 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-2791
SELECT + + col1 + col0 / - col1 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 86 * + 28 FROM tab1 AS cor0
----
2408
query I rowsort
SELECT ( - 55 ) * col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT + - 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT + + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
37
query I rowsort
SELECT - ( - col0 ) + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - cor0.col2 ) + - col2 * cor0.col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-1782
-820
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT col2 * col2 DIV + col1 + 13 * - cor0.col1 * 16 - - col2 AS col1 FROM tab2 AS cor0
----
-12235
-3414
-6398
skipif mysql # not compatible
query I rowsort label-2799
SELECT col2 * col2 / + col1 + 13 * - cor0.col1 * 16 - - col2 AS col1 FROM tab2 AS cor0
----
-12235
-3414
-6398
query I rowsort
SELECT DISTINCT col1 * col2 + col1 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-14976
-35100
-5130
query I rowsort
SELECT ( col1 ) - 8 FROM tab2 AS cor0
----
23
51
9
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( - 87 AS REAL ) AS col1 FROM tab2 cor0
----
-165
-166
-94
query I rowsort
SELECT + cor0.col0 + - col2 + 66 FROM tab2 AS cor0
----
107
118
46
query I rowsort
SELECT - col0 * + 75 + - col1 FROM tab0 AS cor0
----
-1886
-2722
-6766
query I rowsort
SELECT + col1 - cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 + + ( - cor0.col2 ) * col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT - + col0 * cor0.col1 * 17 + - col1 * ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-11520
-1404
-18720
query I rowsort
SELECT col2 * col1 + 7 * cor0.col2 FROM tab0 AS cor0
----
104
3069
8036
query I rowsort
SELECT DISTINCT + - col0 + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col0 + + col0 * 34 FROM tab1 AS cor0
----
105
2240
2800
onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + - cor0.col1 DIV - col2 + - 75 FROM tab0 cor0
----
-73
-74
22
skipif mysql # not compatible
query I rowsort label-2811
SELECT + - cor0.col1 / - col2 + - 75 FROM tab0 cor0
----
-73
-74
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT ALL - col0 * 16 - - 25 DIV col2 AS col1 FROM tab0 AS cor0
----
-1424
-384
-535
skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - col0 * 16 - - 25 / col2 AS col1 FROM tab0 AS cor0
----
-1424
-384
-535
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 12 + - 83 col2 FROM tab1 AS cor0
----
-1235
-731
-767
query I rowsort
SELECT DISTINCT - col2 * col2 + - 10 FROM tab0 AS cor0
----
-1099
-11
-6734
query I rowsort
SELECT DISTINCT col1 * + 2 + col0 AS col0 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT + + col2 + ( + ( + col1 ) ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + col0 + + 20 AS col1 FROM tab0 cor0
----
-15
-4
-69
query I rowsort
SELECT ALL + cor0.col1 * - ( - ( col0 ) ) * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT col0 * col1 - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - col0 - + ( + 78 ) AS col2 FROM tab1 AS cor0
----
-142
-158
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT - + col2 + 9 DIV 46 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - + col2 + 9 / 46 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - cor0.col1 * 37 + + 6 * + col0 * + 35 - col2 FROM tab0 AS cor0
----
15241
1825
3760
query I rowsort
SELECT - + col2 * - col2 + cor0.col0 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT + 62 * col1 AS col2 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT ALL + col2 + + 27 FROM tab1 cor0
----
123
81
84
query I rowsort
SELECT DISTINCT - col1 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT + - 21 * - col0 AS col1 FROM tab2 AS cor0
----
147
1638
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 27 + - 57 col2 FROM tab0
----
-2379
-2514
-2676
query I rowsort
SELECT + + 24 * - 4 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT + 25 * + col0 FROM tab2 cor0
----
175
1950
1975
query I rowsort
SELECT DISTINCT col0 * col2 * + cor0.col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL col1 * col2 * col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col2 * - 71 FROM tab2
----
-1846
-1917
-2698
onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT - col1 DIV + tab0.col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2835
SELECT - col1 / + tab0.col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL - 83 - - tab1.col0 FROM tab1
----
-19
-3
-80
query I rowsort
SELECT DISTINCT 13 * - col0 AS col0 FROM tab2 AS cor0
----
-1014
-1027
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT ALL col2 DIV - cor0.col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL col2 / - cor0.col1 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT + - ( - col2 ) - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - col1 ) + + cor0.col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + 56 * + col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT + col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ) * CAST( 86 AS SIGNED ) FROM tab1 cor0
----
-4644
-4902
-8256
skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ) * CAST ( 86 AS INTEGER ) FROM tab1 cor0
----
-4644
-4902
-8256
query I rowsort
SELECT + col1 * col0 + + col1 + col0 FROM tab1 AS cor0
----
107
1133
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col2 + 39 col1 FROM tab2 AS cor0
----
-16
-19
-46
query I rowsort
SELECT ALL + 18 + col1 * + 72 FROM tab2 AS cor0
----
1242
2250
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT cor0.col0 + col1 DIV + CAST( - 66 AS SIGNED ) col0 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2847
SELECT cor0.col0 + col1 / + CAST ( - 66 AS INTEGER ) col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT - col2 * - col2 * + ( + 18 ) FROM tab2
----
12168
13122
25992
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT + 18 * + col0 + 25 DIV + 91 + col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-22
-603
728
skipif mysql # not compatible
query I rowsort label-2851
SELECT + 18 * + col0 + 25 / + 91 + col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-22
-603
728
query I rowsort
SELECT 60 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
query I rowsort
SELECT DISTINCT + 56 * + col1 FROM tab2 AS cor0
----
1736
3304
952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + - col1 + col2 col1 FROM tab2 AS cor0
----
-24
30
5
query I rowsort
SELECT ALL - 61 + - col0 AS col0 FROM tab2 AS cor0
----
-139
-140
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT tab2.col2 * 14 DIV - col1 + col2 DIV - col1 FROM tab2
----
-12
-33
-6
skipif mysql # not compatible
query I rowsort label-2856
SELECT tab2.col2 * 14 / - col1 + col2 / - col1 FROM tab2
----
-12
-33
-6
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 - + CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - col0 * + 27 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT - col2 * - 14 FROM tab2 AS cor0
----
364
378
532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col0 FROM tab0
----
27
38
92
query I rowsort
SELECT col1 + col2 * 28 FROM tab2
----
1081
787
787
query I rowsort
SELECT - col0 + - ( col2 ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - - col2 * - col0 + 46 AS col0 FROM tab1 cor0
----
-116
-3602
-7634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2864
SELECT ALL col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT DISTINCT col1 DIV + CAST( + col0 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT col1 / + CAST ( + col0 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2867
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 37 * col2 + + col2 * col2 FROM tab2 AS cor0
----
1638
1728
2850
query I rowsort
SELECT - ( 14 ) + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1054
-654
-92
query I rowsort
SELECT DISTINCT - - 2 * - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - ( col2 ) - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL 29 * 12 + col0 FROM tab1 AS cor0
----
351
412
428
query I rowsort
SELECT DISTINCT + + col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - ( ( col2 ) ) + ( 27 ) FROM tab1 AS cor0
----
-27
-30
-69
query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT ALL + col0 * - col0 DIV col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + col0 * - col0 / col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL 7 AS col0 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * col0 + 56 FROM tab0 AS cor0
----
-3339
-664062
-68056
query I rowsort
SELECT DISTINCT col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - col2 + - col1 * + 23 * + col0 AS col1 FROM tab0
----
-186359
-47505
-78086
query I rowsort
SELECT ALL 32 + + 70 FROM tab0, tab0 cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343
query I rowsort
SELECT - 77 * - col1 AS col0 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT - 12 * col2 * col1 FROM tab1 AS cor0
----
-14976
-16848
-6840
query I rowsort
SELECT + + ( + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 3 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT ALL + - CAST( 52 AS SIGNED ) + - col1 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-246
-2976
-7605
skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + - CAST ( 52 AS INTEGER ) + - col1 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-246
-2976
-7605
query I rowsort
SELECT ALL + + 21 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT ALL - 72 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2892
SELECT + CAST( NULL AS SIGNED ) + 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2892
SELECT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT DISTINCT tab2.col2 + 42 DIV tab2.col0 AS col1 FROM tab2
----
26
33
38
skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT tab2.col2 + 42 / tab2.col0 AS col1 FROM tab2
----
26
33
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 70 * col1 AS col1 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col0 FROM tab0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT - tab0.col2 DIV 79 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2897
SELECT - tab0.col2 / 79 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab0
----
49
query I rowsort
SELECT col0 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col2 * col2 * + col2 FROM tab0 cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT ALL + 6 DIV + col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + 6 / + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col0 + - tab2.col1 AS col0 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 33 * + cor0.col1 col0 FROM tab1 AS cor0
----
273
333
804
query I rowsort
SELECT DISTINCT col2 * - 59 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT - - col2 * col2 + 88 FROM tab1 AS cor0
----
3004
3337
9304
query I rowsort
SELECT + - col1 + 36 * + col0 * + col1 FROM tab0 AS cor0
----
122123
291473
74218
query I rowsort
SELECT DISTINCT + ( + 70 ) AS col2 FROM tab2, tab2 AS cor0
----
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL col1 * + CAST( col2 AS SIGNED ) - - col2 DIV ( + col2 ) FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL col1 * + CAST ( col2 AS INTEGER ) - - col2 / ( + col2 ) FROM tab0 AS cor0
----
2839
7463
98
query I rowsort
SELECT DISTINCT - - col1 * 92 AS col0 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT - col2 * + col2 - col0 * - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-107541
-2248
-359632
query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab0 cor0
----
-48
query I rowsort
SELECT - 10 * + col0 + col0 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT ALL - cor0.col1 * ( + 43 ) FROM tab0, tab0 AS cor0
----
9 values hashing to d63b9f5efe4a56f768f4f3965e711c5f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - + cor0.col2 DIV col0 + - col0 FROM tab2 cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-2914
SELECT - + cor0.col2 / col0 + - col0 FROM tab2 cor0
----
-10
-78
-79
query I rowsort
SELECT DISTINCT - 77 * + col2 - - col0 FROM tab1 AS cor0
----
-4155
-4325
-7312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) + + 9 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) + + 9 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * 0 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col2 + - 16 FROM tab2 AS cor0
----
-42
-43
-54
query I rowsort
SELECT ALL col1 + - 35 FROM tab1 AS cor0
----
-22
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT ALL col1 * col1 + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL col1 * col1 + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 * - col1 + - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 90 * col0 AS col0 FROM tab0
----
2160
3150
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col2 - col1 col1 FROM tab1
----
-1165
-1376
-523
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT col1 - + col1 DIV + tab0.col0 AS col1 FROM tab0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2924
SELECT col1 - + col1 / + tab0.col0 AS col1 FROM tab0
----
83
90
95
query I rowsort
SELECT 76 * col2 FROM tab2
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT DISTINCT col1 DIV col0 + - col2 AS col1 FROM tab2
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT col1 / col0 + - col2 AS col1 FROM tab2
----
-23
-26
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT DISTINCT + - ( col0 ) DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + - ( col0 ) / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT ALL + CAST( col1 AS SIGNED ) * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( col1 AS INTEGER ) * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT ALL + CAST( 73 AS SIGNED ) * col0 * col0 FROM tab0 cor0
----
42048
578233
89425
skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + CAST ( 73 AS INTEGER ) * col0 * col0 FROM tab0 cor0
----
42048
578233
89425
query I rowsort
SELECT DISTINCT + col0 * + ( ( col1 ) * + 50 ) FROM tab2
----
10850
230100
67150
onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT DISTINCT tab0.col0 * 29 DIV 87 FROM tab0
----
11
29
8
skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT tab0.col0 * 29 / 87 FROM tab0
----
11
29
8
query I rowsort
SELECT - 65 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT ( + 79 ) * cor0.col2 * 88 FROM tab1 AS cor0
----
375408
396264
667392
query I rowsort
SELECT 1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL + col1 * + tab2.col0 * 1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + ( tab1.col0 ) AS col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - 85 * ( - col1 ) AS col1 FROM tab1
----
1105
2210
850
query I rowsort
SELECT - 37 + 60 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-38797
-50257
-92077
query I rowsort
SELECT + col0 - col1 * - cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + col2 col1 FROM tab0
----
125
44
76
query I rowsort
SELECT ALL 83 FROM tab2, tab0 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT ( + 93 ) * + col2 + - tab0.col0 FROM tab0
----
3045
58
7537
query I rowsort
SELECT DISTINCT + ( + 86 ) FROM tab1
----
86
query I rowsort
SELECT DISTINCT - - 38 * cor0.col0 FROM tab0 cor0
----
1330
3382
912
query I rowsort
SELECT ALL - - 89 AS col0 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT 43 + col1 * - col0 FROM tab1 cor0
----
-35
-597
-997
query I rowsort
SELECT DISTINCT - + 48 + col1 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT ALL - 94 + - col2 FROM tab0 AS cor0
----
-127
-176
-95
query I rowsort
SELECT ALL - ( col0 ) * - tab0.col2 * col1 + + col1 AS col1 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT - ( tab2.col2 ) * - col0 + + col2 * - tab2.col0 AS col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT col0 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + col1 * col0 - - col2 * - col1 FROM tab2 cor0
----
-620
3068
697
query I rowsort
SELECT + + 12 - + cor0.col2 FROM tab0 AS cor0
----
-21
-70
11
query I rowsort
SELECT - col1 * - cor0.col2 + - col0 * - col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT + col1 + - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + - col2 * col0 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - + cor0.col2 * + col0 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + + ( + col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 - col0 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT - 80 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT - + col1 * - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-2963
SELECT - + col1 * - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - tab1.col0 * col0 + col2 * - col1 AS col0 FROM tab1
----
-1413
-4666
-7648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 60 col1 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT - cor0.col1 + + 52 FROM tab2 AS cor0
----
-7
21
35
query I rowsort
SELECT + + col1 + + 52 AS col2 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT DISTINCT - - ( + 1 ) + col1 * col0 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT ALL - 66 + - ( col1 ) * cor0.col0 FROM tab2 cor0
----
-1409
-283
-4668
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) * col0 col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 56 + - 70 AS col1 FROM tab2 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT - 67 + + cor0.col1 AS col1 FROM tab0 cor0
----
19
24
30
query I rowsort
SELECT - + col1 * ( - ( cor0.col2 ) + col0 ) * 77 FROM tab1 AS cor0
----
-5390
102102
16016
query I rowsort
SELECT + col0 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT ALL col0 * - 24 + 57 DIV col1 AS col0 FROM tab1 AS cor0
----
-1531
-1916
-70
skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL col0 * - 24 + 57 / col1 AS col0 FROM tab1 AS cor0
----
-1531
-1916
-70
query I rowsort
SELECT DISTINCT + + col2 - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) - col2 FROM tab0 cor0
----
-133
-143
-262
query I rowsort
SELECT ALL + col1 + - 6 FROM tab1 AS cor0
----
20
4
7
query I rowsort
SELECT - + 41 + tab1.col2 * 65 + + 88 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 6d216601c2cf6c383d7170de6dd964fb
query I rowsort
SELECT ALL col1 + 16 * + col1 AS col1 FROM tab2
----
1003
289
527
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + 67 + - 65 AS col0 FROM tab2 AS cor0
----
-1204
-2142
-4018
query I rowsort
SELECT - col0 * cor0.col0 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT ALL + - col2 * 7 + col0 DIV col1 + - col0 FROM tab1 AS cor0
----
-381
-457
-746
skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + - col2 * 7 + col0 / col1 + - col0 FROM tab1 AS cor0
----
-381
-457
-746
query I rowsort
SELECT ALL cor0.col2 - + 17 AS col1 FROM tab0 AS cor0
----
-16
16
65
query I rowsort
SELECT ALL cor0.col2 * + 5 + col1 * + col2 FROM tab2 AS cor0
----
1664
836
972
query I rowsort
SELECT 83 * 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 8d9ac05d2f24b0b6d77148f6e99586eb
query I rowsort
SELECT ALL + 28 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT - 13 + ( - col2 ) AS col1 FROM tab1
----
-109
-67
-70
query I rowsort
SELECT 82 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL + 47 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT + 96 * + col0 * tab2.col1 FROM tab2
----
128928
20832
441792
query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 80 col1 FROM tab2
----
2080
2160
3040
query I rowsort
SELECT - - col1 * + col0 * + 94 AS col1 FROM tab1 AS cor0
----
60160
7332
97760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT DISTINCT - col0 DIV col1 col1 FROM tab1 AS cor0
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - col0 / col1 col1 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT col1 * - cor0.col0 * + 98 AS col1 FROM tab1 cor0
----
-101920
-62720
-7644
query I rowsort
SELECT 82 * - col0 AS col0 FROM tab0 AS cor0
----
-1968
-2870
-7298
onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT - col2 + col0 DIV 48 AS col0 FROM tab2 cor0
----
-25
-27
-37
skipif mysql # not compatible
query I rowsort label-3002
SELECT - col2 + col0 / 48 AS col0 FROM tab2 cor0
----
-25
-27
-37
query I rowsort
SELECT DISTINCT + ( 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
57
query I rowsort
SELECT + cor0.col2 * + 15 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT ALL - 72 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f
query I rowsort
SELECT - col2 + 5 FROM tab2 cor0
----
-21
-22
-33
query I rowsort
SELECT DISTINCT - 34 + ( + cor0.col0 ) * + 10 FROM tab2 AS cor0
----
36
746
756
query I rowsort
SELECT + - 85 + - col1 FROM tab1 cor0
----
-111
-95
-98
query I rowsort
SELECT DISTINCT + 29 * + col1 + + col2 FROM tab2 AS cor0
----
1737
531
926
query I rowsort
SELECT ALL - 37 - 29 FROM tab0 AS cor0
----
-66
-66
-66
query I rowsort
SELECT col2 + - 45 AS col1 FROM tab1 cor0
----
12
51
9
query I rowsort
SELECT + 5 + 32 * - cor0.col1 FROM tab0 AS cor0
----
-2747
-2907
-3099
query I rowsort
SELECT cor0.col1 + + ( + col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT cor0.col1 * col0 + - col0 * - col1 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT col2 * col1 + 12 AS col1 FROM tab1 AS cor0
----
1260
1416
582
query I rowsort
SELECT col1 * col0 * + col2 + + 11 + - 48 FROM tab2
----
119615
50997
5822
query I rowsort
SELECT + cor0.col2 + - col2 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL 53 * - 38 - col0 * col2 DIV + col0 FROM tab0
----
-2015
-2047
-2096
skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL 53 * - 38 - col0 * col2 / + col0 FROM tab0
----
-2015
-2047
-2096
query I rowsort
SELECT + col2 + col2 + + col0 FROM tab0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 - - col2 col0 FROM tab1
----
28
31
70
query I rowsort
SELECT ALL - col2 - - ( tab1.col1 ) * - col2 AS col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + 41 * tab2.col2 - + tab2.col2 AS col2 FROM tab2
----
1040
1080
1520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL - col2 + + cor0.col1 + - col2 * + 58 AS col0 FROM tab1 AS cor0
----
-3160
-3353
-5651
query I rowsort
SELECT DISTINCT + - col0 + + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + + 2 + col2 AS col1 FROM tab0 AS cor0
----
3
35
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT ALL + + col0 DIV col1 + + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + + col0 / col1 + + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - 57 * col1 FROM tab2 AS cor0
----
-1767
-3363
-969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 19 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-1026
-1728
-972
query I rowsort
SELECT DISTINCT + col1 + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT + 89 - + col2 AS col1 FROM tab2 AS cor0
----
51
62
63
query I rowsort
SELECT DISTINCT + col0 * col1 + ( + 50 ) FROM tab2 AS cor0
----
1393
267
4652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + ( + 49 ) * - col1 col0 FROM tab2 AS cor0
----
-1302
1711
510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3035
SELECT - col0 + - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3035
SELECT - col0 + - col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab2.col0 ) col2 FROM tab2
----
7
78
79
query I rowsort
SELECT 29 * - col1 AS col1 FROM tab1
----
-290
-377
-754
query I rowsort
SELECT ALL - tab2.col0 * + col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - ( - tab1.col1 ) * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - tab1.col2 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4
query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * + ( - 2 ) AS col0 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT + - col0 + + col0 * col2 DIV col1 FROM tab1 AS cor0
----
3
300
510
skipif mysql # not compatible
query I rowsort label-3044
SELECT + - col0 + + col0 * col2 / col1 FROM tab1 AS cor0
----
3
300
510
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + + col2 col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT col1 + 4 FROM tab1
----
14
17
30
query I rowsort
SELECT ( 96 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3048
SELECT - CAST( NULL AS SIGNED ) / ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3048
SELECT - CAST ( NULL AS INTEGER ) / ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - col2 * + 40 AS col0 FROM tab2
----
25840
33480
61360
query I rowsort
SELECT + + 51 * col2 AS col0 FROM tab2 cor0
----
1326
1377
1938
query I rowsort
SELECT ALL - + 48 AS col1 FROM tab1 cor0
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab1 AS cor0
----
20
query I rowsort
SELECT - - 92 FROM tab0 cor0
----
92
92
92
query I rowsort
SELECT + + col1 * + col2 * + col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - ( - 6 ) AS col2 FROM tab0 AS cor0
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 58 * tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to f9a1466854b0b966750ff846208ff7cd
query I rowsort
SELECT DISTINCT ( + 18 + col1 ) AS col0 FROM tab2
----
35
49
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3062
SELECT CAST( NULL AS SIGNED ) + col1 / - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3062
SELECT CAST ( NULL AS INTEGER ) + col1 / - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 12 AS col0 FROM tab2 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 63 col1 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT ALL - + cor0.col2 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col1 FROM tab0 AS cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT DISTINCT 60 DIV 53 - col2 * ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT 60 / 53 - col2 * ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728
query I rowsort
SELECT DISTINCT + col2 * + col0 + - cor0.col2 * - col2 + col2 * + col1 AS col2 FROM tab1 cor0
----
18144
4482
7467
query I rowsort
SELECT ALL col0 * - col1 + ( col2 ) AS col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + + cor0.col0 * 86 FROM tab0 cor0
----
2064
3010
7654
query I rowsort
SELECT ALL col2 * - ( col1 ) FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT + - col1 + ( + col2 * + col2 ) FROM tab0 AS cor0
----
-96
1003
6633
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT DISTINCT - col0 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - col0 / ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - col2 + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT col2 * 1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL - + col2 DIV + 46 + + col0 * col1 FROM tab1 AS cor0
----
1038
639
77
skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - + col2 / + 46 + + col0 * col1 FROM tab1 AS cor0
----
1038
639
77
query I rowsort
SELECT ALL + - col2 + - col2 - - col1 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT ALL - col1 * col2 * col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - col2 * col0 - + cor0.col2 * - col1 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT + col2 DIV col0 + - col1 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-3084
SELECT + col2 / col0 + - col1 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT ALL tab0.col2 + - tab0.col0 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT - col1 * cor0.col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2 + - col1 )
----
query I rowsort
SELECT DISTINCT col0 + + col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 + + col1 * col0 )
----
query I rowsort
SELECT + + cor0.col0 * - col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col1 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col2 * - cor0.col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL col0 + - tab2.col2 DIV col1 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL col0 + - tab2.col2 / col1 FROM tab2
----
7
77
78
query I rowsort
SELECT tab0.col1 * + col2 + + col0 * col0 AS col1 FROM tab0
----
1322
15383
3414
onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT DISTINCT col0 DIV col2 + col1 AS col1 FROM tab0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT col0 / col2 + col1 AS col1 FROM tab0
----
132
86
92
query I rowsort
SELECT + col0 * col1 + + col2 * - col0 AS col0 FROM tab1
----
-3008
-6640
-84
query I rowsort
SELECT + col0 + col0 * col2 * col1 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + + col2 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + + col2 * + col1 + - col0 * col0 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT col0 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT DISTINCT col0 - col0 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT col0 - col0 / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col2 * + col2 + col1 * col2 FROM tab0 AS cor0
----
14186
3927
98
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 - col2 * col2 )
----
query I rowsort
SELECT DISTINCT + col2 * - col1 * col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 * - col0 FROM tab0
----
-118922
-49622
-720902
query I rowsort
SELECT col1 + - col0 * - col1 FROM tab1
----
104
1053
650
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + col0
----
query I rowsort
SELECT + 42 * col0 AS col1 FROM tab0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT ALL 57 DIV col0 AS col1 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 57 / col0 AS col1 FROM tab2
----
0
0
8
query I rowsort
SELECT DISTINCT - tab2.col0 - + col2 AS col1 FROM tab2
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + col0 col1 FROM tab1
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT col1 DIV + col1 - col2 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-3113
SELECT col1 / + col1 - col2 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 + - tab1.col2 AS col0 FROM tab1
----
-233529
-540
-614496
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND + col0 + col1 * col0
----
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2 WHERE ( + col2 + + col2 ) NOT BETWEEN ( + col1 * col2 ) AND ( + tab2.col2 * col0 )
----
17
31
59
query I rowsort
SELECT col0 * + col0 * + tab2.col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > col0
----
query I rowsort
SELECT col2 - - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT + tab1.col1 DIV col0 + + col0 * col2 + col1 col2 FROM tab1
----
196
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + tab1.col1 / col0 + + col0 * col2 + col1 col2 FROM tab1
----
196
3658
7693
query I rowsort
SELECT tab2.col0 * - col1 * col2 AS col0 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT DISTINCT + tab1.col1 DIV tab1.col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + tab1.col1 / tab1.col2 AS col2 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT DISTINCT - tab0.col2 DIV tab0.col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - tab0.col2 / tab0.col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT ALL + col0 * col0 + col1 * tab1.col2 + + tab1.col2 AS col1 FROM tab1
----
1467
4723
7744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col0 * - col2 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * - col0 + + col0 AS col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT + col1 + col0 + col1 AS col1 FROM tab0
----
196
229
271
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - col1 = ( tab1.col0 + - col1 )
----
query I rowsort
SELECT ALL col2 + col2 + + col1 * col1 AS col0 FROM tab2
----
1015
3533
365
onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT - col2 DIV + col1 + + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3131
SELECT - col2 / + col1 + + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + col1 * col0 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT col0 + col1 * col2 + + col1 AS col0 FROM tab2
----
1671
742
875
query I rowsort
SELECT col0 + tab0.col1 - - col0 FROM tab0
----
134
167
269
query I rowsort
SELECT - col1 * + col0 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - col0 col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT ALL col0 * + col2 + col1 + + col1 FROM tab2
----
2146
251
3036
query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 IN ( - col0 )
----
query I rowsort
SELECT col0 * col2 + col1 * col2 FROM tab1
----
1566
4218
8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT ALL - col1 DIV tab0.col2 AS col0 FROM tab0 WHERE NOT ( - col0 + + col1 + + col0 ) NOT IN ( col2 * col1 )
----
-97
skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - col1 / tab0.col2 AS col0 FROM tab0 WHERE NOT ( - col0 + + col1 + + col0 ) NOT IN ( col2 * col1 )
----
-97
query I rowsort
SELECT DISTINCT 53 * - col1 AS col1 FROM tab1
----
-1378
-530
-689
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT col2 * + 61 + 29 AS col2 FROM tab1 AS cor0
----
3323
3506
5885
query I rowsort
SELECT ALL - 24 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to f54f9f80142dee595bb0207d1431a5f6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * - 55 * col2 col2 FROM tab0 AS cor0
----
-1960
-401479
-43584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT ALL col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( - col2 AS REAL ) FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT + col2 * CAST( 9 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
297
738
9
skipif mysql # not compatible
query I rowsort label-3148
SELECT + col2 * CAST ( 9 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT DISTINCT + - col1 * + 21 FROM tab1 AS cor0
----
-210
-273
-546
query I rowsort
SELECT DISTINCT - ( tab2.col0 ) * - col2 * col2 + - col2 * - col2 AS col2 FROM tab2
----
115520
53404
5832
query I rowsort
SELECT DISTINCT col2 + - ( col2 * + col2 + + col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT 90 * - col0 + + col0 * - col1 FROM tab1 AS cor0
----
-348
-6400
-8240
query I rowsort
SELECT DISTINCT 35 FROM tab1, tab2 cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 81 ) * col1 col1 FROM tab0
----
6966
7371
7857
query I rowsort
SELECT DISTINCT - ( + col2 ) * - 94 FROM tab2 cor0
----
2444
2538
3572
onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT ALL - col0 * - col0 + + 61 DIV + col1 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - col0 * - col0 + + 61 / + col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - + 94 * + col2 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT DISTINCT + + col0 * col1 + + 47 * col0 FROM tab1 AS cor0
----
219
3648
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT DISTINCT - cor0.col1 DIV col1 + - 35 * + col0 FROM tab0 AS cor0
----
-1226
-3116
-841
skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - cor0.col1 / col1 + - 35 * + col0 FROM tab0 AS cor0
----
-1226
-3116
-841
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 - ( - 17 ) * + col0 FROM tab2 AS cor0
----
308
3354
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT DISTINCT + - col2 + - col0 DIV col1 col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT + - col2 + - col0 / col1 col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT 34 + col1 AS col1 FROM tab0 cor0
----
120
125
131
query I rowsort
SELECT ALL - - 61 AS col0 FROM tab2 AS cor0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col0 * cor0.col2 - + 68 FROM tab1 AS cor0
----
3580
7612
94
query I rowsort
SELECT ALL - col2 + - col2 * 38 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT ALL col1 * col0 - + 61 FROM tab2 AS cor0
----
1282
156
4541
query I rowsort
SELECT col2 * ( 45 ) AS col1 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT ALL + col2 * col0 + + col2 * - col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1040
-1485
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 94 * col2 col1 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT ALL cor0.col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 * - col1 * col1 - 33 AS col0 FROM tab2 AS cor0
----
22798
271485
6694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT - cor0.col1 DIV col0 - col2 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-3176
SELECT - cor0.col1 / col0 - col2 FROM tab2 AS cor0
----
-26
-31
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT DISTINCT + + CAST( col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + 54 * col0 + col1 AS col0 FROM tab2 AS cor0
----
409
4271
4283
onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT ALL - - col1 DIV 53 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - - col1 / 53 FROM tab2 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - 84 * + 84 FROM tab2 AS cor0
----
-7056
query I rowsort
SELECT - + 33 * cor0.col0 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT ALL col1 - + 26 AS col2 FROM tab2 AS cor0
----
-9
33
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT ALL - - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - - 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-3185
SELECT DISTINCT - col0 + 34 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - col0 + 34 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col2 - + tab1.col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT 14 + + tab0.col1 AS col1 FROM tab0
----
100
105
111
query I rowsort
SELECT DISTINCT - ( - ( tab2.col0 ) ) * + 26 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
182
2028
2054
query I rowsort
SELECT ALL - 86 * col2 * - col1 + + col0 * + tab0.col1 FROM tab0
----
11737
246132
649831
query I rowsort
SELECT - 34 * 4 + col1 FROM tab0
----
-39
-45
-50
query I rowsort
SELECT + 75 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
16
44
58
query I rowsort
SELECT - + ( col1 ) + cor0.col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL - ( ( col2 ) ) * + col2 - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT col1 * col2 + + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT + col1 + - 51 FROM tab1
----
-25
-38
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT - tab1.col2 DIV + 90 + - tab1.col2 * col1 FROM tab1
----
-1249
-1404
-570
skipif mysql # not compatible
query I rowsort label-3199
SELECT - tab1.col2 / + 90 + - tab1.col2 * col1 FROM tab1
----
-1249
-1404
-570
query I rowsort
SELECT - ( 0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT + + col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-3201
SELECT + + col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 * - col2 col0 FROM tab1 AS cor0
----
-1728
-1824
-3072
query I rowsort
SELECT ALL col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3205
SELECT col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT col0 * 43 AS col2 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT ALL + col0 * - col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT + - ( 96 ) AS col0 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - + cor0.col2 * 53 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT + - 72 FROM tab2 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT col0 + 95 * - 27 AS col1 FROM tab2
----
-2486
-2487
-2558
query I rowsort
SELECT + - ( + col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT + col0 + ( col1 ) DIV col1 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-3213
SELECT + col0 + ( col1 ) / col1 AS col1 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT col2 + 87 DIV col2 + + col2 FROM tab1 AS cor0
----
109
115
192
skipif mysql # not compatible
query I rowsort label-3214
SELECT col2 + 87 / col2 + + col2 FROM tab1 AS cor0
----
109
115
192
query I rowsort
SELECT ALL - col2 + - col1 * - col1 * 86 FROM tab1 AS cor0
----
14438
58082
8543
query I rowsort
SELECT + - col0 * col1 + 96 AS col0 FROM tab0 cor0
----
-1968
-3299
-8003
query I rowsort
SELECT + cor0.col1 + + col0 * + ( 32 ) AS col1 FROM tab1 AS cor0
----
122
2058
2573
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT ALL + col2 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + col2 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 * + col1 + 38 + - 58 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1543
1218
395
query I rowsort
SELECT + 61 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
139
140
68
query I rowsort
SELECT - 1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 31 - + col0 FROM tab0 AS cor0
----
-4
-58
7
query I rowsort
SELECT DISTINCT + - 47 FROM tab2 cor0
----
-47
query I rowsort
SELECT 22 - cor0.col1 FROM tab0 AS cor0
----
-64
-69
-75
query I rowsort
SELECT DISTINCT 32 + cor0.col0 * - 86 FROM tab1 AS cor0
----
-226
-5472
-6848
query I rowsort
SELECT + col1 * col1 + col0 * + col2 + 59 * col0 AS col2 FROM tab2 AS cor0
----
10111
1563
7952
query I rowsort
SELECT + col0 * - 85 + + 70 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-1113
3816
4013
query I rowsort
SELECT + cor0.col0 + - 52 + cor0.col2 FROM tab2 cor0
----
-18
52
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT + col1 / - CAST( NULL AS DECIMAL ) + + 49 * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3229
SELECT + col1 / - CAST ( NULL AS REAL ) + + 49 * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * col1 + + col2 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT + col0 + col0 DIV 54 AS col1 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-3231
SELECT + col0 + col0 / 54 AS col1 FROM tab0 AS cor0
----
24
35
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3232
SELECT + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3232
SELECT + col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 90 + - col1 * - 85 AS col0 FROM tab1
----
1195
2300
940
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT DISTINCT 70 DIV - col2 + col2 * col0 DIV - tab0.col1 FROM tab0
----
-11
-70
-80
skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 70 / - col2 + col2 * col0 / - tab0.col1 FROM tab0
----
-11
-70
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT - col1 + CAST( - 14 AS SIGNED ) AS col1 FROM tab0 cor0
----
-100
-105
-111
skipif mysql # not compatible
query I rowsort label-3235
SELECT - col1 + CAST ( - 14 AS INTEGER ) AS col1 FROM tab0 cor0
----
-100
-105
-111
query I rowsort
SELECT - cor0.col2 + 71 * col1 AS col0 FROM tab0 AS cor0
----
6073
6379
6886
onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT DISTINCT + 14 DIV - 6 AS col0 FROM tab1 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + 14 / - 6 AS col0 FROM tab1 AS cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - tab2.col0 * - col0 + 79 ) col1 FROM tab2
----
160238
240160
3456
query I rowsort
SELECT + - 60 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT 82 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + 94 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ( + col2 + 72 ) FROM tab2
----
110
98
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT ALL CAST( col0 AS SIGNED ) * col2 * + CAST( cor0.col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
35721
4112784
9012004
skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL CAST ( col0 AS INTEGER ) * col2 * + CAST ( cor0.col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
35721
4112784
9012004
query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ( + col2 + tab2.col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT ( + 18 ) FROM tab2
----
18
18
18
query I rowsort
SELECT ALL + col1 * 36 AS col0 FROM tab2
----
1116
2124
612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT - CAST( 94 AS SIGNED ) FROM tab0 AS cor0
----
-94
-94
-94
skipif mysql # not compatible
query I rowsort label-3249
SELECT - CAST ( 94 AS INTEGER ) FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT + 93 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT - 36 * - col1 AS col0 FROM tab0
----
3096
3276
3492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * - 28 + cor0.col1 col0 FROM tab2 AS cor0
----
-172
-2203
-2274
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 71 col2 FROM tab1 cor0
----
213
4544
5680
query I rowsort
SELECT - + col1 + + cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + - col0 * - 49 + - 21 AS col0 FROM tab0 AS cor0
----
1155
1694
4340
query I rowsort
SELECT col2 + - ( - 12 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
702
741
query I rowsort
SELECT - - cor0.col2 - - col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 * 18 * + col1 col2 FROM tab1 AS cor0
----
10324
22544
25275
query I rowsort
SELECT + cor0.col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col0 * + col2 + 30 + col0 AS col2 FROM tab1
----
-129
-3554
-7570
query I rowsort
SELECT DISTINCT tab1.col2 + - 73 AS col0 FROM tab1
----
-16
-19
23
query I rowsort
SELECT + col2 + tab1.col0 + col2 FROM tab1
----
111
178
272
query I rowsort
SELECT ( 91 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT col1 + ( 44 ) + tab0.col2 AS col0 FROM tab0
----
142
163
217
query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col0 + - 91 FROM tab2
----
-12
-13
-84
query I rowsort
SELECT - col0 + + 54 FROM tab0
----
-35
19
30
query I rowsort
SELECT col1 + ( 43 ) + + col1 FROM tab2
----
105
161
77
query I rowsort
SELECT ALL - col0 * - 64 FROM tab2 AS cor0
----
448
4992
5056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * + 43 + col1 col0 FROM tab2 AS cor0
----
-27761
-35960
-65903
query I rowsort
SELECT ALL + col2 + + ( + col0 * + col0 ) AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT col1 * - col2 + 51 + col2 AS col2 FROM tab0 AS cor0
----
-2754
-45
-7329
query I rowsort
SELECT ALL - col0 + + ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT ( + col0 ) DIV cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-3275
SELECT ( + col0 ) / cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT - ( col0 ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 66 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT + col2 + col2 * col1 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL + + ( - col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - ( - 28 ) AS col1 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT + col2 + cor0.col0 + + col1 FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
133
7471
911
query I rowsort
SELECT - - col1 + + 15 AS col0 FROM tab2 cor0
----
32
46
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3284
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT + col2 + + 4 FROM tab2
----
30
31
42
query I rowsort
SELECT DISTINCT - 70 + cor0.col2 FROM tab0 AS cor0
----
-37
-69
12
query I rowsort
SELECT DISTINCT + + col0 * + col1 + + col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT ALL - - CAST( NULL AS SIGNED ) + - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 6 * + col2 + - col0 + col2 FROM tab2 AS cor0
----
104
182
187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT ALL col2 * col1 * + CAST( col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
22572
24510
39858
skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL col2 * col1 * + CAST ( col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT DISTINCT - ( col0 + - tab1.col2 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - 26 * - col2 AS col2 FROM tab2 AS cor0
----
676
702
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT ALL - col2 * + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - col2 * + col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * 45 AS col2 FROM tab1 AS cor0
----
-2823
-3504
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + tab1.col2 col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col1 - - 96 AS col0 FROM tab2 AS cor0
----
113
127
155
query I rowsort
SELECT DISTINCT + - col0 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col2 * ( - col2 ) * col2 + ( + 94 ) FROM tab0 AS cor0
----
-35843
-551274
93
query I rowsort
SELECT ALL + + 57 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL + 90 * - col1 * - col2 + ( 57 ) * - col0 FROM tab2
----
133614
53637
74931
query I rowsort
SELECT col0 + col1 + - col0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + ( col0 ) + tab2.col1 * + col1 + 49 AS col1 FROM tab2
----
1017
3608
417
query I rowsort
SELECT DISTINCT + col2 + 9 * col1 FROM tab2
----
191
306
557
query I rowsort
SELECT col2 + + col0 * col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col0 * 93 + + tab0.col1 AS col0 FROM tab0
----
2318
3352
8368
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + 13 * - col2 AS col1 FROM tab1
----
-1248
-702
-741
query I rowsort
SELECT DISTINCT col1 + tab2.col1 * + col1 + - col1 FROM tab2
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3309
SELECT DISTINCT - ( + ( col2 ) ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - ( + ( col2 ) ) + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 9 * col2 + + col0 FROM tab1 AS cor0
----
-449
-483
-784
query I rowsort
SELECT 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-3313
SELECT - col1 + + col2 * CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3313
SELECT - col1 + + col2 * CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL col1 + col0 + 53 FROM tab0 AS cor0
----
163
185
233
query I rowsort
SELECT + ( + col0 ) * 56 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT ALL 51 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT DISTINCT tab2.col1 DIV 71 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT tab2.col1 / 71 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT ( - 85 ) AS col1 FROM tab0, tab0 AS cor0
----
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT col1 * ( + col0 ) DIV col1 + col0 col1 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3320
SELECT col1 * ( + col0 ) / col1 + col0 col1 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT - + cor0.col1 * + 91 AS col1 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + + col1 + 43 FROM tab0 AS cor0
----
129
134
140
onlyif mysql # use DIV operator for integer division
query I rowsort label-3325
SELECT ALL + - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + - col0 / + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3326
SELECT - cor0.col2 * col1 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3326
SELECT - cor0.col2 * col1 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * 50 FROM tab0 AS cor0
----
-4300
-4550
-4850
query I rowsort
SELECT - cor0.col2 + 18 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4aeacdeb01551577e26c6af293dc3e9f
query I rowsort
SELECT + - col2 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT col2 * - ( col2 + col2 ) AS col0 FROM tab0
----
-13448
-2
-2178
query I rowsort
SELECT DISTINCT - 70 + col0 * col1 FROM tab2 AS cor0
----
1273
147
4532
query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col2 FROM tab2, tab0 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT - + CAST( + 61 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61
skipif mysql # not compatible
query I rowsort label-3334
SELECT - + CAST ( + 61 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT - 86 DIV 41 FROM tab2 cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-3335
SELECT - 86 / 41 FROM tab2 cor0
----
-2
-2
-2
query I rowsort
SELECT cor0.col1 * col2 + - 21 * - col1 AS col0 FROM tab0 AS cor0
----
2134
4644
9373
query I rowsort
SELECT + + 89 + col1 * col2 FROM tab0 AS cor0
----
186
2927
7551
query I rowsort
SELECT col2 * + col2 + col1 + col2 FROM tab2 AS cor0
----
1499
761
787
query I rowsort
SELECT 43 + + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e040dd19ef805c1a6d94fad959b43bc3
query I rowsort
SELECT ALL 37 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT col0 * - 50 + col0 FROM tab2 AS cor0
----
-343
-3822
-3871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT col2 + - CAST( col2 * col1 AS SIGNED ) AS col1 FROM tab2
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-3342
SELECT col2 + - CAST ( col2 * col1 AS INTEGER ) AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL 63 + + tab0.col2 * + tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b8da84902d4b585a8a6deaa0b1212f6a
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT cor0.col0 - col0 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT col0 * + 82 * col0 FROM tab0
----
100450
47232
649522
query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - + col2 + + col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - col2 * + ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT cor0.col1 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - col0 + + 15 DIV - 47 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3351
SELECT - col0 + + 15 / - 47 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - 32 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-32
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2, tab1 AS cor3
----
13122 values hashing to cf87b6baf14afdbc5402c0f315a4be41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT DISTINCT + + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL - + col0 + - 77 FROM tab1 AS cor0
----
-141
-157
-80
query I rowsort
SELECT - + col2 * + ( - col0 ) + - col2 * col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + 66 AS col2 FROM tab0 AS cor0
----
101
155
90
query I rowsort
SELECT ALL - col0 + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + col2 * col2 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
1749
738
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 + - 97 FROM tab1 AS cor0
----
-107
-110
-123
onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT ALL + + col0 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + + col0 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col0 * + col1 + 43 AS col1 FROM tab1 AS cor0
----
1083
121
683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - col1 col0 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL col1 + + col1 * + ( col2 + - col2 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 - ( col0 * col1 + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-2183
-3493
-8272
query I rowsort
SELECT + 15 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + cor0.col2 ) ) * - 4 + + cor0.col2 * - cor0.col0 col0 FROM tab1 AS cor0
----
-3420
-7296
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 - 0 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 * col2 col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + 33 * + col1 + 89 AS col2 FROM tab0 AS cor0
----
2927
3092
3290
query I rowsort
SELECT DISTINCT + 55 + col0 + 76 FROM tab2 AS cor0
----
138
209
210
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + + 96 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7680
8087
815
query I rowsort
SELECT + col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT - tab2.col0 + - tab2.col1 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col2 FROM tab1 WHERE + col0 >= NULL
----
query I rowsort
SELECT - + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT ALL + 81 * col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 81 * col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 39 * + tab0.col1 - - col2 FROM tab0
----
-3321
-3467
-3782
query I rowsort
SELECT DISTINCT + ( + 89 ) AS col2 FROM tab2, tab2 AS cor0
----
89
query I rowsort
SELECT + - col1 * + col1 + ( - cor0.col2 ) FROM tab2 cor0
----
-327
-3507
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT ALL col0 DIV 97 + 1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL col0 / 97 + 1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col0 * - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT col2 + 32 * + col0 FROM tab2
----
251
2522
2566
query I rowsort
SELECT col0 * - 42 AS col1 FROM tab1
----
-126
-2688
-3360
query I rowsort
SELECT - col2 * col0 * tab0.col2 + col1 AS col0 FROM tab0
----
-26050
-598345
62
query I rowsort
SELECT + col0 + - col2 * tab2.col1 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT col2 * + col0 + 22 FROM tab0
----
57
7320
814
query I rowsort
SELECT ALL - ( - 74 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT - + col2 * - 43 + - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1418
3525
42
skipif mysql # not compatible
query I rowsort label-3390
SELECT - + col2 * - 43 + - col0 / col0 AS col2 FROM tab0 AS cor0
----
1418
3525
42
query I rowsort
SELECT DISTINCT col0 * + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT col0 * + 59 + col1 AS col2 FROM tab0 AS cor0
----
1502
2162
5342
query I rowsort
SELECT DISTINCT - col2 * - 46 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT cor0.col1 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + 43 AS col1 FROM tab1
----
107
123
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3398
SELECT + CAST( NULL AS DECIMAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3398
SELECT + CAST ( NULL AS REAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) + + col0 * 90 col0 FROM tab1 AS cor0
----
296
5770
7213
query I rowsort
SELECT + 45 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT ALL - - 35 * col2 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT DISTINCT 20 * + col1 AS col0 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2 AS cor0
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - 2 * + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col1 * + col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT DISTINCT - 20 * cor0.col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT - 62 * - col1 FROM tab0 AS cor0
----
5332
5642
6014
query I rowsort
SELECT + ( 73 ) - col1 FROM tab1
----
47
60
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT ALL - ( col2 ) * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - ( col2 ) * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + ( + col0 ) * 52 AS col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - 67 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-10
-13
29
query I rowsort
SELECT DISTINCT - col1 * + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL - - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 * col2 * - col0 + - tab1.col0 AS col2 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT col2 * tab1.col2 + + col0 + + col1 FROM tab1
----
2945
3323
9309
query I rowsort
SELECT col2 * - col0 * col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col0 * col2 + - tab2.col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 AS col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + col0 * + col0 - cor0.col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - + col2 * col1 + - col1 + - col2 FROM tab2 AS cor0
----
-1619
-701
-895
query I rowsort
SELECT col2 + col1 + + col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT tab0.col0 * col0 * col2 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT + 7 + - col0 FROM tab0 AS cor0
----
-17
-28
-82
query I rowsort
SELECT + ( - col0 ) * - tab0.col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT tab1.col0 + 53 * + col0 AS col0 FROM tab1
----
162
3456
4320
query I rowsort
SELECT ALL + col2 * - col1 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT tab2.col1 * + 28 AS col2 FROM tab2
----
1652
476
868
query I rowsort
SELECT col2 * - 89 FROM tab0
----
-2937
-7298
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL 63 + + col1 DIV cor0.col1 col1 FROM tab0 AS cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL 63 + + col1 / cor0.col1 col1 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col2 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT ALL + 55 + - col0 AS col2 FROM tab2 cor0
----
-23
-24
48
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT - - 5 + + col0 AS col2 FROM tab0 AS cor0
----
29
40
94
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col1 + col1 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 * col2 + + col2 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT - col2 FROM tab0 WHERE ( col2 * - col1 ) IN ( - tab0.col2 * - col1 / col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - col1 + - col2 * tab2.col1 * - col1 FROM tab2
----
10965
25916
90447
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT DISTINCT - col0 DIV + col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-10
-4097
-6401
skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - col0 / + col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-10
-4097
-6401
query III rowsort
SELECT * FROM tab0 WHERE col0 * tab0.col0 >= + col0 + - col1 / col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * col2 col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL tab1.col0 + - tab1.col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col1 + - col0 + - col2 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT tab0.col1 * - tab0.col2 - col2 AS col1 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT + col2 + + col2 * tab1.col2 FROM tab1
----
2970
3306
9312
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) BETWEEN NULL AND - col0 * col0 * col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col2 + col0 * tab1.col2 + col1 FROM tab1
----
242
3715
7789
query I rowsort
SELECT DISTINCT tab0.col0 + - col2 * tab0.col2 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT * FROM tab1 WHERE col2 <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL - col2 DIV col0 + col2 DIV col1 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - col2 / col0 + col2 / col1 AS col1 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL + col2 DIV col1 + + col0 AS col2 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + col2 / col1 + + col0 AS col2 FROM tab1
----
5
69
87
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL < col1 * col0
----
query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 AS col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT col0 * - tab1.col2 * col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT - col0 DIV col1 - col0 FROM tab1 AS cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-3460
SELECT - col0 / col1 - col0 FROM tab1 AS cor0
----
-3
-70
-86
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( col0 * col2 * + col2 + col0 + + col0 * - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col2 * + col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
119593
51017
5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + col0 col1 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT col1 + + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL = NULL
----
query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN - col1 + col2 + col1 AND ( col1 * col2 )
----
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 AS cor0 WHERE + cor0.col0 NOT IN ( + col2 + col1 )
----
1225
576
7921
query I rowsort
SELECT col2 + col1 + col2 * - col2 FROM tab2 cor0
----
-1389
-591
-671
query I rowsort
SELECT cor0.col0 + col2 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2859
-3128
-9040
query I rowsort
SELECT - 9 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049
query I rowsort
SELECT DISTINCT col0 * col1 - col0 * col0 FROM tab0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * col1 * col0 col0 FROM tab1 AS cor0
----
-32000
-3900
-52000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 79 * + col1 col2 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT cor0.col1 * + 21 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT - col1 * - 43 + - col0 AS col0 FROM tab1 AS cor0
----
1115
366
479
query I rowsort
SELECT DISTINCT 13 * col2 + + ( - 19 * col1 ) AS col2 FROM tab0 AS cor0
----
-1205
-1830
-663
onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT 57 + + col1 DIV + 21 AS col2 FROM tab1 cor0
----
57
57
58
skipif mysql # not compatible
query I rowsort label-3477
SELECT 57 + + col1 / + 21 AS col2 FROM tab1 cor0
----
57
57
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT + CAST( + 32 AS SIGNED ) DIV tab1.col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3478
SELECT + CAST ( + 32 AS INTEGER ) / tab1.col1 FROM tab1
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT + 11 DIV col1 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3479
SELECT + 11 / col1 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * + cor0.col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT col2 + col2 * - 19 * + col2 FROM tab0 AS cor0
----
-127674
-18
-20658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - cor0.col0 + 65 col1 FROM tab1 AS cor0
----
-13
-575
-975
query I rowsort
SELECT DISTINCT 70 * cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
1190
2170
4130
query I rowsort
SELECT ALL + - ( - cor0.col0 ) * - col0 + + 97 AS col1 FROM tab1 AS cor0
----
-3999
-6303
88
query I rowsort
SELECT DISTINCT - - 87 + - col1 + - col0 FROM tab1 cor0
----
-6
13
58
query I rowsort
SELECT ALL + col0 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - cor0.col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + col0 * + col0 + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + ( + 75 ) FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT ALL - col0 + - col2 * col2 AS col2 FROM tab0 cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT 36 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
3204
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT ALL - tab2.col0 * col0 DIV col0 AS col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - tab2.col0 * col0 / col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT tab0.col0 - - col2 FROM tab0
----
171
36
57
query I rowsort
SELECT col0 + + 44 AS col0 FROM tab0
----
133
68
79
query I rowsort
SELECT + 92 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 FROM tab1, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT DISTINCT - - CAST( 70 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
108
96
97
skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - - CAST ( 70 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
108
96
97
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ( col0 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - + ( + col1 ) * + col1 - + 0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + ( - 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT ALL - 87 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - 87 / col1 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + 29 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + - col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col1 * col2 + col1 * col1 AS col1 FROM tab0
----
10234
15743
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT DISTINCT + col0 + ( ( col0 ) ) - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + col0 + ( ( col0 ) ) - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL col1 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - cor0.col0 + - 81 + col1 AS col2 FROM tab2 AS cor0
----
-100
-143
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT - col2 DIV col2 + + col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3509
SELECT - col2 / col2 + + col1 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
97
query I rowsort
SELECT col2 + - ( col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT col0 * - 31 + + col1 * col0 + col2 * - 39 FROM tab2 AS cor0
----
-1053
-2588
1170
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT - col2 * - 4 + - col2 FROM tab1
----
162
171
288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT - tab1.col0 * CAST( 23 AS SIGNED ) * - col2 + + col1 FROM tab1
----
176653
3752
83914
skipif mysql # not compatible
query I rowsort label-3515
SELECT - tab1.col0 * CAST ( 23 AS INTEGER ) * - col2 + + col1 FROM tab1
----
176653
3752
83914
query I rowsort
SELECT DISTINCT + col0 + 94 AS col0 FROM tab2 AS cor0
----
101
172
173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT col2 * + CAST( ( col1 ) AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
skipif mysql # not compatible
query I rowsort label-3517
SELECT col2 * + CAST ( ( col1 ) AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL col0 * - col2 * - col1 + col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT DISTINCT cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col0 * 45 + 60 AS col1 FROM tab0 AS cor0
----
1140
1635
4065
query I rowsort
SELECT ALL col0 + + 97 FROM tab2 AS cor0
----
104
175
176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3522
SELECT - col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3522
SELECT - col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 69 + + col0 + col1 * - col0 FROM tab2 AS cor0
----
-2730
1358
1653
query I rowsort
SELECT col2 * + col0 * 28 FROM tab0 AS cor0
----
204344
22176
980
query I rowsort
SELECT ALL + + col2 * + 30 FROM tab2 cor0
----
1140
780
810
query I rowsort
SELECT + col2 + + col2 + col0 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT DISTINCT + - col2 + col1 + + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 87 * col0 FROM tab1 cor0
----
261
5568
6960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT DISTINCT - 91 * tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT - 91 * tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT + CAST( NULL AS SIGNED ) * cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3530
SELECT + CAST ( NULL AS INTEGER ) * cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT - col1 DIV 90 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3531
SELECT - col1 / 90 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col1 * - 37 AS col0 FROM tab1 AS cor0
----
-360
-468
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT + col0 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3533
SELECT + col0 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - col1 + 35 * col1 AS col2 FROM tab0 AS cor0
----
2924
3094
3298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3535
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 - col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 + + col0 * cor0.col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col1 * + 20 + - col0 AS col1 FROM tab2 cor0
----
-1258
-419
-627
query I rowsort
SELECT - + ( col0 ) * - col1 + 52 * 81 FROM tab1 AS cor0
----
4290
4852
5252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT ALL + + CAST( NULL AS SIGNED ) + 76 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + + CAST ( NULL AS INTEGER ) + 76 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 91 + 94 AS col0 FROM tab1 AS cor0
----
185
185
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3541
SELECT - CAST( NULL AS SIGNED ) * - 73 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3541
SELECT - CAST ( NULL AS INTEGER ) * - 73 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 AS col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT col1 + col2 * - 87 AS col0 FROM tab2
----
-2203
-2318
-3289
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 18 + - col1 col0 FROM tab2 AS cor0
----
409
455
667
query I rowsort
SELECT col1 + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + 58 + - col1 AS col0 FROM tab2 AS cor0
----
-1
27
41
query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1, tab2 AS cor0
----
93
query I rowsort
SELECT tab2.col1 * 59 FROM tab2
----
1003
1829
3481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col1 ) + col2 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col1 * - 93 + col0 FROM tab2 AS cor0
----
1660
2890
5565
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + col0 + - col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col2 + col0 col2 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT - col0 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + 12 AS col2 FROM tab0
----
12
12
12
query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT - + col0 + col2 * + cor0.col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + 5 + - col0 FROM tab2 AS cor0
----
-2
-73
-74
query I rowsort
SELECT + col2 * - col2 + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-1410
-558
-667
query I rowsort
SELECT DISTINCT 48 * cor0.col1 FROM tab1, tab2 AS cor0
----
1488
2832
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT ALL col1 + + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL col1 + + col0 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - col0 + - col1 * 30 AS col0 FROM tab2 AS cor0
----
-1848
-589
-937
query I rowsort
SELECT + 27 * - 55 AS col1 FROM tab1
----
-1485
-1485
-1485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * + col0 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 - + col0 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT + - 56 * - col1 - col1 * 71 FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT + cor0.col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT + col0 * - 0 - col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3570
SELECT + col0 * - 0 - col0 / + col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + + 26 + - col1 FROM tab2 AS cor0
----
-33
-5
9
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 - 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 73b5ec93e84970482cb06b9f4c24a382
query I rowsort
SELECT + - 50 * 71 + col0 FROM tab1 AS cor0
----
-3470
-3486
-3547
query I rowsort
SELECT ALL - + col1 + + 37 FROM tab2 cor0
----
-22
20
6
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - - col0 - ( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col0 * - col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col1 * cor0.col0 * col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL cor0.col0 * col0 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1152
15842
2450
query I rowsort
SELECT 23 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT col2 * - col0 + - 80 AS col0 FROM tab0
----
-115
-7378
-872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT - tab0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3583
SELECT - tab0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + ( - col1 ) col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT col0 + + 16 * + 80 FROM tab1 AS cor0
----
1283
1344
1360
query I rowsort
SELECT DISTINCT col0 * - col1 - 57 AS col0 FROM tab1 cor0
----
-1097
-135
-697
query I rowsort
SELECT ALL cor0.col1 * 3 + col2 FROM tab1 AS cor0
----
132
135
87
query I rowsort
SELECT DISTINCT - 60 + 65 AS col0 FROM tab1
----
5
query I rowsort
SELECT - 23 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 194f51725d4f889b8ca8d0ed6ee43504
query I rowsort
SELECT + ( - col1 ) * cor0.col0 + 27 FROM tab0 AS cor0
----
-2037
-3368
-8072
query I rowsort
SELECT - 13 + + 77 + + col0 AS col0 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT col2 + + col0 + col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT + + col0 * col0 + - col1 + col0 * - col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3594
SELECT 97 * - col0 * - CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
397312
620800
873
skipif mysql # not compatible
query I rowsort label-3594
SELECT 97 * - col0 * - CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
397312
620800
873
query I rowsort
SELECT DISTINCT - + 49 * + col1 FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT ALL 62 * - col1 FROM tab2 AS cor0
----
-1054
-1922
-3658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * col2 col1 FROM tab2
----
520
540
760
query I rowsort
SELECT 97 * - col0 AS col1 FROM tab0
----
-2328
-3395
-8633
query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT - 35 * cor0.col1 + + ( + col2 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-350
-454
-892
skipif mysql # not compatible
query I rowsort label-3600
SELECT - 35 * cor0.col1 + + ( + col2 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
-350
-454
-892
query I rowsort
SELECT ALL 59 + - col0 FROM tab2 AS cor0
----
-19
-20
52
query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab2 AS cor0
----
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + col0 col2 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT col1 + ( 88 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3609
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT + col2 + - 8 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3611
SELECT + col2 + - 8 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab2, tab1 AS cor0
----
35
query I rowsort
SELECT ALL - ( col0 ) * col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + + 62 * + 56 FROM tab2 AS cor0
----
3472
3472
3472
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * - col1 + - cor0.col2 * 43 * - col0 FROM tab1 cor0
----
11178
193344
430080
query I rowsort
SELECT - 10 + 13 FROM tab0 cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 * - col0 - col0 col0 FROM tab1 AS cor0
----
-1200
-45
-960
query I rowsort
SELECT col1 + + col2 + col0 AS col2 FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3619
SELECT - 61 * ( col0 ) + col0 DIV 92 FROM tab0 AS cor0
----
-1464
-2135
-5429
skipif mysql # not compatible
query I rowsort label-3619
SELECT - 61 * ( col0 ) + col0 / 92 FROM tab0 AS cor0
----
-1464
-2135
-5429
query I rowsort
SELECT DISTINCT + 91 + col0 * col1 * - cor0.col1 FROM tab1 cor0
----
-13429
-1937
-6309
query I rowsort
SELECT ALL + col0 * - 67 + + cor0.col0 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT ALL - 20 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT 99 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ( tab1.col1 * col2 ) + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + col0 + + col1 + col1 AS col0 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT + col0 * - col0 + - col2 * ( + col0 ) AS col0 FROM tab0
----
-1260
-1368
-15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT - ( cor0.col2 ) * col0 + - 71 DIV col1 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( cor0.col2 ) * col0 + - 71 / col1 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col0 * + col2 + + col0 + + col2 AS col2 FROM tab2 cor0
----
-155
-1924
-2885
query I rowsort
SELECT 87 * 80 FROM tab2
----
6960
6960
6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 96 ) * col2 col0 FROM tab1
----
-5184
-5472
-9216
query I rowsort
SELECT DISTINCT - col2 + tab2.col2 * col2 * + ( 73 ) AS col0 FROM tab2
----
105374
49322
53190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 95 * col0 col1 FROM tab2
----
692
7436
7543
query I rowsort
SELECT DISTINCT ( + tab0.col0 ) FROM tab0, tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 90 + - tab2.col0 AS col0 FROM tab2
----
11
12
83
query I rowsort
SELECT ALL - 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL col1 * 12 * + col1 FROM tab2
----
11532
3468
41772
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT DISTINCT - CAST( 4 AS SIGNED ) FROM tab2
----
-4
skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - CAST ( 4 AS INTEGER ) FROM tab2
----
-4
query I rowsort
SELECT ( + col1 ) * col0 * col0 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - + 86 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT - - col2 + 19 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7448
8382
9429
query I rowsort
SELECT + col0 + - 33 FROM tab1 AS cor0
----
-30
31
47
query I rowsort
SELECT - + 17 + col0 * col2 FROM tab0 AS cor0
----
18
7281
775
query I rowsort
SELECT DISTINCT col0 * + col1 + + 19 FROM tab2
----
1362
236
4621
onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT + 77 + col1 DIV col1 + col0 FROM tab0
----
102
113
167
skipif mysql # not compatible
query I rowsort label-3644
SELECT + 77 + col1 / col1 + col0 FROM tab0
----
102
113
167
query I rowsort
SELECT ALL 52 * 91 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 80144708b855b6048e624c01ee165967
query I rowsort
SELECT - - 53 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT - + cor0.col1 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT - - cor0.col2 * + 99 + col0 DIV col1 FROM tab0 AS cor0
----
3267
8118
99
skipif mysql # not compatible
query I rowsort label-3648
SELECT - - cor0.col2 * + 99 + col0 / col1 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT DISTINCT - col0 * + col1 - + 10 FROM tab1 AS cor0
----
-1050
-650
-88
query I rowsort
SELECT - col2 * + 57 + - col0 AS col0 FROM tab0 cor0
----
-1905
-4763
-92
query I rowsort
SELECT ALL - + cor0.col2 - - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 37 * col2 + + ( + ( - col2 ) ) AS col1 FROM tab1
----
-2052
-2166
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT - col2 * - col2 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3653
SELECT - col2 * - col2 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + - cor0.col0 + 78 * col0 AS col2 FROM tab2 cor0
----
539
6006
6083
query I rowsort
SELECT - cor0.col2 + 85 FROM tab1 AS cor0
----
-11
28
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT - col0 + - 41 DIV 24 + + col1 * ( 25 ) AS col2 FROM tab2 AS cor0
----
1396
345
767
skipif mysql # not compatible
query I rowsort label-3657
SELECT - col0 + - 41 / 24 + + col1 * ( 25 ) AS col2 FROM tab2 AS cor0
----
1396
345
767
query I rowsort
SELECT - - col0 * + 89 FROM tab2 cor0
----
623
6942
7031
query I rowsort
SELECT tab2.col0 * - col1 + 3 FROM tab2
----
-1340
-214
-4599
query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 AS col2 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT - - cor0.col1 - - 95 AS col2 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT DISTINCT + - cor0.col0 + - 44 + col1 AS col1 FROM tab1 AS cor0
----
-111
-21
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col2 * - CAST ( col2 AS REAL ) col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + col0 + + 76 FROM tab2 cor0
----
154
155
83
query I rowsort
SELECT ALL 29 * col2 FROM tab2 AS cor0
----
1102
754
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT + - CAST( ( col1 ) AS SIGNED ) * 97 AS col0 FROM tab1 AS cor0
----
-1261
-2522
-970
skipif mysql # not compatible
query I rowsort label-3666
SELECT + - CAST ( ( col1 ) AS INTEGER ) * 97 AS col0 FROM tab1 AS cor0
----
-1261
-2522
-970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3667
SELECT CAST( + col1 AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( + col1 AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL + - cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + col2 * + cor0.col2 + col2 * + col2 + + 31 AS col2 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT + 53 + col0 * cor0.col0 FROM tab2 AS cor0
----
102
6137
6294
query I rowsort
SELECT + col2 * 73 * + tab2.col1 AS col0 FROM tab2
----
111982
47158
61101
query I rowsort
SELECT + - ( - cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) + ( cor0.col2 ) col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - cor0.col0 * 91 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-14688
-331911
-698784
query I rowsort
SELECT 8 + col0 * col0 FROM tab0 AS cor0
----
1233
584
7929
query I rowsort
SELECT ALL + col1 * - col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 * cor0.col1 col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL cor0.col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + col0 * 37 + + col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT DISTINCT + - 95 AS col1 FROM tab0 AS cor0
----
-95
query I rowsort
SELECT DISTINCT - cor0.col1 * 63 AS col2 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT ALL + col2 + + cor0.col2 * + cor0.col0 FROM tab2 cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT ALL + CAST( col0 AS SIGNED ) + col2 FROM tab1 cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + CAST ( col0 AS INTEGER ) + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col0 + ( - col2 ) FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + + ( - col0 ) col1 FROM tab0 AS cor0
----
-49
16
5
query I rowsort
SELECT ALL col2 * col2 + + col0 * col0 FROM tab2 cor0
----
6760
7685
778
query I rowsort
SELECT DISTINCT + col2 + - 38 + - col2 AS col2 FROM tab1 AS cor0
----
-38
query I rowsort
SELECT + - col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 94 * 94 AS col2 FROM tab0 AS cor0
----
8836
8836
8836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 75 col0 FROM tab0 cor0
----
-7
42
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT CAST( 18 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3695
SELECT CAST ( 18 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT ALL col0 * col2 - - col1 * col1 * 45 AS col1 FROM tab0 AS cor0
----
333612
379943
423440
query I rowsort
SELECT DISTINCT 12 FROM tab2, tab2 AS cor0
----
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT ALL + col2 - CAST( col1 AS SIGNED ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + col2 - CAST ( col1 AS INTEGER ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT 9 - + col2 AS col2 FROM tab1
----
-45
-48
-87
query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - 77 col0 FROM tab2
----
1457
569
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col0 + col0 col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col0 * col2 * col2 + tab1.col2 AS col2 FROM tab1
----
207993
737376
8802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3705
SELECT col0 * ( + ( - col2 ) ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3705
SELECT col0 * ( + ( - col2 ) ) + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + col0 * - 27 AS col1 FROM tab2
----
-158
-2047
-2116
query I rowsort
SELECT col0 * + 59 - - col0 AS col2 FROM tab0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) * col0 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col1 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + col0 * 62 - + col2 AS col1 FROM tab1
----
132
3911
4864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col2 + + col2 col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT col2 * - 66 + col0 * - cor0.col0 * + 55 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-232690
-366016
-4221
query I rowsort
SELECT + cor0.col1 + 33 AS col0 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT ALL - + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col0 * - col1 * - col0 AS col1 FROM tab2 cor0
----
112338
1568
365040
query I rowsort
SELECT - col2 + + 82 FROM tab2 AS cor0
----
44
55
56
query I rowsort
SELECT - - col2 + - 3 AS col2 FROM tab0 AS cor0
----
-2
30
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT ALL col2 DIV - col0 + - col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5856
skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL col2 / - col0 + - col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5856
query I rowsort
SELECT ALL col2 * - cor0.col2 * 22 FROM tab0 AS cor0
----
-147928
-22
-23958
query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT - col2 DIV col1 - col1 AS col1 FROM tab1 cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-3722
SELECT - col2 / col1 - col1 AS col1 FROM tab1 cor0
----
-15
-20
-28
query I rowsort
SELECT DISTINCT + col0 + + col0 * - 25 AS col2 FROM tab1 AS cor0
----
-1536
-1920
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 71 AS col0 FROM tab2 cor0
----
71
71
71
query I rowsort
SELECT DISTINCT - - col0 * col0 + cor0.col1 * + col1 * col0 FROM tab0 AS cor0
----
178080
330540
744930
query I rowsort
SELECT + + 54 AS col2 FROM tab0 cor0
----
54
54
54
query I rowsort
SELECT - ( col2 ) * col2 + cor0.col2 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1117
259
2831
query I rowsort
SELECT - col0 + - 3 AS col0 FROM tab2 AS cor0
----
-10
-81
-82
query I rowsort
SELECT - col0 + 13 AS col2 FROM tab0 AS cor0
----
-11
-22
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col2 * - col0 + + ( - col2 ) AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - 12 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1331
205
4590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab1 AS cor0
----
32
32
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT DISTINCT 47 DIV col1 FROM tab1 cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT 47 / col1 FROM tab1 cor0
----
1
3
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT DISTINCT + col2 * col2 DIV + 5 AS col1 FROM tab2
----
135
145
288
skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + col2 * col2 / + 5 AS col1 FROM tab2
----
135
145
288
query I rowsort
SELECT col1 + - col1 * + col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL col1 * col2 + 2 * col2 AS col0 FROM tab1 AS cor0
----
1440
1512
684
query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3740
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col0 + + 6 * 13 AS col2 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT - + col1 * - ( + col1 ) * cor0.col0 - col1 FROM tab1 AS cor0
----
13507
2002
6390
query I rowsort
SELECT + col1 * + ( - col2 * col1 ) AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - - col2 + ( - ( - col1 ) ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col2 + + 61 + - col2 FROM tab1 AS cor0
----
-131
-47
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 27 - - col0 * col1 col0 FROM tab1 cor0
----
1536
2179
3632
query I rowsort
SELECT ALL col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT - cor0.col2 DIV col1 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
644
837
skipif mysql # not compatible
query I rowsort label-3748
SELECT - cor0.col2 / col1 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
644
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT DISTINCT + col1 * + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + col1 * + col1 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 + col0 * col2 * col1 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT ALL col0 * - tab1.col0 - col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT col0 * col2 + + col2 * - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3360
-656820
-67320
query I rowsort
SELECT - col0 * - cor0.col2 * + col0 - col1 AS col2 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT - col0 * - col2 - + 14 * + ( - col2 * + col0 + - col0 ) AS col2 FROM tab2 AS cor0
----
2933
31512
46136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT ALL col0 - + col2 DIV + 94 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL col0 - + col2 / + 94 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col1 * col0 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 * 80 col2 FROM tab0 AS cor0
----
6560
6560
6560
query I rowsort
SELECT 13 - 74 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT DISTINCT - col0 DIV + 5 AS col2 FROM tab0
----
-17
-4
-7
skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - col0 / + 5 AS col2 FROM tab0
----
-17
-4
-7
query I rowsort
SELECT DISTINCT - + col1 + 93 * cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
2122
3123
8097
query I rowsort
SELECT ( col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 57 + - col2 AS col2 FROM tab0 AS cor0
----
-25
24
56
query I rowsort
SELECT DISTINCT - 61 * - 34 FROM tab2 AS cor0
----
2074
query I rowsort
SELECT ALL ( + 64 ) + + col2 FROM tab0 AS cor0
----
146
65
97
query I rowsort
SELECT DISTINCT + - ( 33 ) * - col1 AS col2 FROM tab0 cor0
----
2838
3003
3201
query I rowsort
SELECT ALL - ( + col1 ) * - col1 * ( - 93 * - col2 ) FROM tab0 AS cor0
----
22698324
63150906
875037
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT ALL - CAST( + ( col2 ) AS SIGNED ) * - col0 AS col2 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - CAST ( + ( col2 ) AS INTEGER ) * - col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0, tab2 AS cor0
----
56
query I rowsort
SELECT DISTINCT + ( - 47 ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
-47
query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 * - col0 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + 29 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + - col1 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - 23 * + col0 + col1 FROM tab1 cor0
----
-1462
-1827
-43
query I rowsort
SELECT - + cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 98 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
1930
2904
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab1
----
27
27
27
query I rowsort
SELECT 97 * - col1 * + 65 AS col0 FROM tab2 AS cor0
----
-107185
-195455
-371995
query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL - + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - + col1 / - col0 AS col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col0 * - col1 + 54 FROM tab1 AS cor0
----
-24
-586
-986
query I rowsort
SELECT col1 + + ( 67 ) AS col0 FROM tab0 AS cor0
----
153
158
164
query I rowsort
SELECT - col2 + 73 * + col1 FROM tab0 AS cor0
----
6245
6561
7080
query I rowsort
SELECT - col1 * 50 + - col1 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT + col2 DIV - 4 FROM tab1 AS cor0
----
-13
-14
-24
skipif mysql # not compatible
query I rowsort label-3785
SELECT + col2 / - 4 FROM tab1 AS cor0
----
-13
-14
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + col1 col2 FROM tab2 AS cor0
----
1121
323
589
onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT + ( - col0 ) + + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-3787
SELECT + ( - col0 ) + + col2 / - col0 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT ALL 28 + col2 FROM tab0 AS cor0
----
110
29
61
query I rowsort
SELECT ALL - + col2 * ( col2 + 93 ) FROM tab1 AS cor0
----
-18144
-7938
-8550
query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT ALL - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + - 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT DISTINCT - col0 + ( ( - col2 ) ) AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL col1 * 57 + + col2 AS col0 FROM tab0
----
4935
5269
5530
query I rowsort
SELECT col1 * + col0 * 10 AS col0 FROM tab0
----
20640
33950
80990
query I rowsort
SELECT col0 + + 81 * 89 FROM tab2
----
7216
7287
7288
query I rowsort
SELECT - col2 + + col2 + 6 * tab0.col2 AS col0 FROM tab0
----
198
492
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT - + col2 * 66 + - col0 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3798
SELECT - + col2 * 66 + - col0 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + 49 * cor0.col0 FROM tab0 AS cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT DISTINCT col0 DIV 3 AS col1 FROM tab0 AS cor0
----
11
29
8
skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT col0 / 3 AS col1 FROM tab0 AS cor0
----
11
29
8
query I rowsort
SELECT ALL + col1 * + 40 AS col1 FROM tab0 cor0
----
3440
3640
3880
query I rowsort
SELECT + - col0 + 61 * - col2 * - col0 + - col0 * + col1 * - col0 FROM tab2 AS cor0
----
13041
289140
482586
query I rowsort
SELECT col2 * - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT ALL + col1 + col2 DIV + cor0.col2 FROM tab0 cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + col1 + col2 / + cor0.col2 FROM tab0 cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + + 4 * ( - col2 ) + - cor0.col0 FROM tab1 AS cor0
----
-219
-292
-464
query I rowsort
SELECT ALL + - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 7 - col2 * col1 FROM tab0 AS cor0
----
-2831
-7455
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 32 * col0 + col2 * col0 - cor0.col0 col1 FROM tab2 AS cor0
----
-145314
-40053
-6762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT CAST( + col1 AS SIGNED ) + col1 * - 78 * - col2 FROM tab0 AS cor0
----
221450
582127
7663
skipif mysql # not compatible
query I rowsort label-3810
SELECT CAST ( + col1 AS INTEGER ) + col1 * - 78 * - col2 FROM tab0 AS cor0
----
221450
582127
7663
query I rowsort
SELECT DISTINCT - col0 + 7 FROM tab1 AS cor0
----
-57
-73
4
query I rowsort
SELECT - ( cor0.col0 ) * col2 + 80 FROM tab1 AS cor0
----
-3568
-7600
-82
query I rowsort
SELECT + col0 + - 63 * - col1 FROM tab2
----
1150
1960
3795
query I rowsort
SELECT ALL col1 * 84 + col1 AS col2 FROM tab0
----
7310
7735
8245
query I rowsort
SELECT - col1 + + 46 - col1 AS col1 FROM tab2
----
-16
-72
12
query I rowsort
SELECT col0 + - col2 + - col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + ( 72 ) * - col1 FROM tab0 cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ( + col2 ) + - col1 + + col0 FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT - 42 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-3820
SELECT - 42 / col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
query I rowsort
SELECT DISTINCT 74 * - col2 * col2 FROM tab1 cor0
----
-215784
-240426
-681984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT DISTINCT - 28 + cor0.col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2092
-3423
-8127
skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - 28 + cor0.col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2092
-3423
-8127
onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ( col0 ) DIV + 56 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3823
SELECT ( col0 ) / + 56 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + 89 * col2 AS col1 FROM tab2 cor0
----
2314
2403
3382
query I rowsort
SELECT 60 * col0 AS col1 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT - 99 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1700
-3100
-5900
query I rowsort
SELECT DISTINCT - 85 + col2 FROM tab1 AS cor0
----
-28
-31
11
query I rowsort
SELECT - 5 AS col1 FROM tab2 cor0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT 49 DIV - col1 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-34
-35
skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT 49 / - col1 + - 33 AS col1 FROM tab2 AS cor0
----
-33
-34
-35
query I rowsort
SELECT col2 * ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - - col2 + 9 AS col1 FROM tab2 AS cor0
----
35
36
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT col2 + - col1 DIV - ( col0 * col1 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3832
SELECT col2 + - col1 / - ( col0 * col1 ) FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - 44 - col1 AS col2 FROM tab2
----
-103
-61
-75
query I rowsort
SELECT - - cor0.col1 - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT DISTINCT + + col1 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + + col1 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col1 + ( col0 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + - col0 + ( - 32 ) - col1 FROM tab2 AS cor0
----
-128
-169
-70
query I rowsort
SELECT DISTINCT + + col1 * col2 + 96 FROM tab2 AS cor0
----
1630
742
933
query I rowsort
SELECT ALL - 77 * tab0.col0 FROM tab0
----
-1848
-2695
-6853
query I rowsort
SELECT + col1 + ( - 97 ) AS col2 FROM tab1 AS cor0
----
-71
-84
-87
query I rowsort
SELECT + + 51 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - cor0.col0 * + col1 - + 73 AS col2 FROM tab0 AS cor0
----
-2137
-3468
-8172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 - col0 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - - cor0.col1 * 72 FROM tab0 cor0
----
6192
6552
6984
query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 + + col1 FROM tab2 cor0
----
1281
241
4583
query I rowsort
SELECT DISTINCT + col1 * + 87 + 69 AS col0 FROM tab1 AS cor0
----
1200
2331
939
query I rowsort
SELECT ALL - 93 * col1 AS col2 FROM tab1
----
-1209
-2418
-930
query I rowsort
SELECT 52 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT + ( tab0.col1 * col2 ) + - tab0.col0 * - col0 FROM tab0
----
1322
15383
3414
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3852
SELECT DISTINCT + + ( 99 ) * - cor0.col0 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + + ( 99 ) * - cor0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * col1 - + col0 * col1 FROM tab1 AS cor0
----
-540
-871
598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 - cor0.col1 col2 FROM tab2 AS cor0
----
-43
-57
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT - 24 * - cor0.col1 * - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
177504
198744
225816
skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - 24 * - cor0.col1 * - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
177504
198744
225816
query I rowsort
SELECT ALL - 35 + col2 * - cor0.col1 * 84 AS col0 FROM tab1 AS cor0
----
-104867
-117971
-47915
onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT ALL col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * - ( col1 ) FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - cor1.col0 * 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 55d8d4ead1372530cbe552dd38eee75d
query I rowsort
SELECT + + col2 * - 27 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT + 74 * col2 AS col0 FROM tab2 cor0
----
1924
1998
2812
query I rowsort
SELECT 90 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - + 62 FROM tab1 cor0
----
-62
-62
-62
query I rowsort
SELECT 82 * - 84 FROM tab0 AS cor0
----
-6888
-6888
-6888
query I rowsort
SELECT + - 42 * + col2 - + 14 AS col0 FROM tab0 AS cor0
----
-1400
-3458
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - cor0.col0 * - col1 + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-3866
SELECT - cor0.col0 * - col1 + - col1 / col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT + - ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT ALL ( col0 * - col2 ) + col1 DIV + col0 + + col1 AS col0 FROM tab0
----
-703
-7206
64
skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL ( col0 * - col2 ) + col1 / + col0 + + col1 AS col0 FROM tab0
----
-703
-7206
64
query I rowsort
SELECT col0 * 42 AS col1 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT - + col0 * ( - ( - col0 ) ) FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL - col2 DIV - 23 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - col2 / - 23 FROM tab2
----
1
1
1
query I rowsort
SELECT - ( 6 ) FROM tab1, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL col0 * + col2 * 83 FROM tab0
----
2905
605734
65736
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT + 37 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT ( + 97 ) FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT ALL - 58 * + col2 + col1 FROM tab0 AS cor0
----
-1828
-4665
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * - col1 col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + col2 + + ( - col0 ) * - 20 AS col0 FROM tab1 cor0
----
114
1337
1696
query I rowsort
SELECT DISTINCT 34 + col2 AS col1 FROM tab1 AS cor0
----
130
88
91
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
query I rowsort
SELECT ALL ( ( col0 ) * col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( tab2.col0 + + col1 ) AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ( + col2 * col2 ) AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT cor1.col0 - 79 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fc015fafce79b42c4e2667bbc7c6f6f1
query I rowsort
SELECT ALL col1 * col1 - - 44 AS col0 FROM tab0
----
7440
8325
9453
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT - col0 DIV - col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-3888
SELECT - col0 / - col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT + + col0 * - CAST( ( + col1 ) AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-3890
SELECT + + col0 * - CAST ( ( + col1 ) AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col0 + - ( 76 ) + - cor0.col0 FROM tab1 AS cor0
----
-204
-236
-82
query I rowsort
SELECT cor0.col0 * - 76 FROM tab0 AS cor0
----
-1824
-2660
-6764
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT - + col0 * - CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-3893
SELECT - + col0 * - CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - - col0 * + ( 35 ) AS col0 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT - cor0.col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3895
SELECT - cor0.col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT + col0 + - col1 DIV col1 + col1 FROM tab1 AS cor0
----
28
73
92
skipif mysql # not compatible
query I rowsort label-3896
SELECT + col0 + - col1 / col1 + col1 FROM tab1 AS cor0
----
28
73
92
query I rowsort
SELECT - + col1 * - col0 + - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
-14400
-198025
-30625
query I rowsort
SELECT ALL - ( + 46 ) + + col1 - col0 * 86 AS col2 FROM tab0
----
-2024
-2959
-7609
query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
49
query I rowsort
SELECT ALL col2 + col1 * ( + col0 ) - - cor0.col1 FROM tab1 cor0
----
1149
158
707
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT CAST( - col0 AS SIGNED ) + col1 + tab0.col2 AS col1 FROM tab0
----
63
84
95
skipif mysql # not compatible
query I rowsort label-3902
SELECT CAST ( - col0 AS INTEGER ) + col1 + tab0.col2 AS col1 FROM tab0
----
63
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - col1 * - 22 + col0 FROM tab2
----
1376
453
689
query I rowsort
SELECT + - ( - 79 ) * col1 AS col0 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 9 FROM tab0, tab2, tab0 AS cor0
----
15
26
80
query I rowsort
SELECT + 7 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL + col1 * 29 * col0 FROM tab1
----
18560
2262
30160
query I rowsort
SELECT 90 * col1 FROM tab0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT col2 - - col1 * - 10 AS col1 FROM tab0 AS cor0
----
-827
-828
-969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3911
SELECT DISTINCT 28 * + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT 28 * + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - col2 * cor0.col1 * - col2 - 63 FROM tab0 AS cor0
----
-160
-611947
-93717
query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + col1 * + col2 - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + 59 * col0 AS col2 FROM tab0 AS cor0
----
1416
2065
5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col0 * + col2 col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL 40 * col0 * col0 FROM tab0 AS cor0
----
23040
316840
49000
query I rowsort
SELECT ALL + 68 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1157
6792
69
query I rowsort
SELECT + + 0 + - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 52 * col1 AS col0 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT ALL - 55 + - col2 AS col2 FROM tab0 AS cor0
----
-137
-56
-88
query I rowsort
SELECT DISTINCT - 58 * col0 AS col1 FROM tab1 AS cor0
----
-174
-3712
-4640
query I rowsort
SELECT - - col0 * - ( - 20 ) AS col2 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ALL cor0.col1 * col2 + + col1 * + col1 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT col2 * col2 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
3349
3592
9385
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) + 9 + + col0 * + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) + 9 + + col0 * + 44 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( - col0 AS REAL ) * col2 FROM tab1 cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT + col2 DIV 5 AS col0 FROM tab2 AS cor0
----
5
5
7
skipif mysql # not compatible
query I rowsort label-3929
SELECT + col2 / 5 AS col0 FROM tab2 AS cor0
----
5
5
7
query I rowsort
SELECT ALL + col1 + - 16 * col0 FROM tab0 AS cor0
----
-1333
-298
-463
query I rowsort
SELECT - - cor0.col1 * col0 + 22 * - col1 FROM tab2 AS cor0
----
-465
3304
969
query I rowsort
SELECT DISTINCT - - col2 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT 12 + 55 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-11923
-253098
-73853
query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
69
query I rowsort
SELECT ALL col2 + 47 * + col2 * 70 AS col2 FROM tab0 AS cor0
----
108603
269862
3291
query I rowsort
SELECT ALL + col2 * col1 * 86 FROM tab2
----
131924
55556
71982
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - 59 + + 50 FROM tab0, tab0 cor0
----
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3939
SELECT DISTINCT + CAST( 46 AS SIGNED ) * col0 FROM tab2 AS cor0
----
322
3588
3634
skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + CAST ( 46 AS INTEGER ) * col0 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT ALL + col1 * - ( col0 * 32 ) FROM tab2 AS cor0
----
-147264
-42976
-6944
query I rowsort
SELECT ALL 7 + + ( col2 ) FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT DISTINCT - + 5 + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
4
48
91
query I rowsort
SELECT + col2 * - ( col1 ) * + col0 + - col2 AS col1 FROM tab0
----
-3396
-664200
-68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT DISTINCT + col0 * col0 DIV col1 FROM tab0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + col0 * col0 / col1 FROM tab0
----
12
6
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - cor0.col0 + - col0 * 5 * col0 AS col1 FROM tab1 AS cor0
----
-102
-20601
-32176
skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - cor0.col0 + - col0 * 5 * col0 AS col1 FROM tab1 AS cor0
----
-102
-20601
-32176
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 * cor0.col2 + - col1 * + col0 FROM tab0 AS cor0
----
-1061
-1466
-3491
query I rowsort
SELECT ALL - + ( - col1 ) + col0 * 30 AS col2 FROM tab2 AS cor0
----
2387
2399
241
query I rowsort
SELECT + 85 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT DISTINCT - col2 DIV 53 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - col2 / 53 AS col0 FROM tab1
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT ALL cor0.col1 * CAST( col0 * + col2 AS SIGNED ) + - 72 * - 6 FROM tab0 AS cor0
----
3827
664550
68544
skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL cor0.col1 * CAST ( col0 * + col2 AS INTEGER ) + - 72 * - 6 FROM tab0 AS cor0
----
3827
664550
68544
query I rowsort
SELECT - 9 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT col2 + - ( 17 * - tab2.col1 ) FROM tab2
----
1029
327
554
onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT - col1 + ( - tab1.col1 ) DIV + col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-3953
SELECT - col1 + ( - tab1.col1 ) / + col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT + - col0 * 46 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT ALL + + col1 - 32 AS col1 FROM tab1 AS cor0
----
-19
-22
-6
query I rowsort
SELECT ALL cor0.col2 + - cor2.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
243 values hashing to 3731d473e07d2233aa7013e38a810c4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 3 * - col1 + + tab1.col0 ) col2 FROM tab1
----
-1950
340
533
query I rowsort
SELECT + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 67 * + col0 col2 FROM tab2 AS cor0
----
3283
407628
418147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 1 ) * col0 * cor0.col2 + 90 col2 FROM tab1 AS cor0
----
-3558
-72
-7590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT CAST( ( - cor1.col2 ) AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
skipif mysql # not compatible
query I rowsort label-3961
SELECT CAST ( ( - cor1.col2 ) AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT + 27 + col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1509
729
783
query I rowsort
SELECT DISTINCT + - 41 * + col1 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT + col0 + + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL ( - col2 ) * col2 * 61 FROM tab1
----
-177876
-198189
-562176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab2 AS cor0
----
-85
query I rowsort
SELECT - + 53 + + 46 AS col2 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT 89 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1975
-3306
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col0 + col2 col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - + 50 + - col0 FROM tab0 AS cor0
----
-139
-74
-85
query I rowsort
SELECT - 74 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1269
143
4528
query I rowsort
SELECT + - col1 * col2 + col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT + - 46 * - col2 AS col2 FROM tab2 AS cor0
----
1196
1242
1748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT ALL tab0.col0 + + CAST( NULL AS DECIMAL ) / cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL tab0.col0 + + CAST ( NULL AS REAL ) / cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL ( + col2 ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + 41 + - col0 FROM tab2 AS cor0
----
-37
-38
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT DISTINCT CAST( - 30 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-30
skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT CAST ( - 30 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-30
query I rowsort
SELECT col0 * col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
3748
7849
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 + col2 * col2 col1 FROM tab2 cor0
----
1348
539
691
query I rowsort
SELECT ALL - + ( col1 ) * + col1 * - col2 + col2 * - col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 85 * col0 + - 93 AS col1 FROM tab1 AS cor0
----
162
5347
6707
query I rowsort
SELECT 97 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT DISTINCT col0 * col1 - - 2 AS col0 FROM tab2 AS cor0
----
1345
219
4604
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3984
SELECT col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + 76 AS col0 FROM tab0 AS cor0
----
2508
6232
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT DISTINCT cor0.col1 DIV - col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT cor0.col1 / - col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - - cor0.col2 + - ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - col1 * - col1 * col0 + col2 AS col2 FROM tab2 cor0
----
22869
271544
6754
query I rowsort
SELECT - tab2.col1 + + ( - 12 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8eb58004bb3bc4f7d513676961800750
query I rowsort
SELECT DISTINCT 9 FROM tab1, tab0, tab2 AS cor0
----
9
query I rowsort
SELECT - col0 * col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - 39 * + col0 + col0 * - 3 * col2 AS col0 FROM tab2
----
-12087
-840
-9126
query I rowsort
SELECT DISTINCT + col2 + + col1 - col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * col1 col2 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT + - 90 + + 63 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT - - cor0.col0 * - 68 AS col2 FROM tab1, tab0, tab2 AS cor0
----
-476
-5304
-5372
query I rowsort
SELECT DISTINCT + col0 * - 17 AS col0 FROM tab0
----
-1513
-408
-595
query I rowsort
SELECT - col1 + + col0 * col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT - 58 * col0 * cor0.col2 - 57 * col0 AS col1 FROM tab0 AS cor0
----
-4025
-428357
-47304
query I rowsort
SELECT col2 + - col2 * col2 * - ( + cor0.col1 ) - - col1 FROM tab1 AS cor0
----
119917
32557
75896
query I rowsort
SELECT + 19 * cor0.col1 + col0 FROM tab0 AS cor0
----
1658
1818
1878
query I rowsort
SELECT + + 21 + col0 FROM tab1 AS cor0
----
101
24
85
query I rowsort
SELECT ALL - - cor0.col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + col2 * - 98 AS col2 FROM tab1 cor0
----
5292
5586
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT - col2 DIV 42 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4005
SELECT - col2 / 42 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT - ( 50 ) FROM tab0 cor0
----
-50
-50
-50
query I rowsort
SELECT col2 + - ( col2 ) * - col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - col1 * - ( col2 ) * + col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - 57 * + col1 + - col0 AS col1 FROM tab2
----
-1048
-1774
-3441
query I rowsort
SELECT ALL tab2.col1 + - 59 FROM tab2
----
-28
-42
0
query I rowsort
SELECT DISTINCT col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + col2 + col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT - col0 * + col1 + col2 * col2 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT 19 + col0 * tab2.col2 FROM tab2
----
2047
208
3021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4016
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + tab1.col1 * 77 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + tab1.col1 * 77 FROM tab1
----
NULL
query I rowsort
SELECT 64 * col2 AS col2 FROM tab1
----
3456
3648
6144
query I rowsort
SELECT ALL + col2 * - 50 + col0 AS col0 FROM tab1
----
-2697
-2786
-4720
query I rowsort
SELECT - 14 * + col1 AS col1 FROM tab1
----
-140
-182
-364
query I rowsort
SELECT DISTINCT + 60 + 65 * - col1 FROM tab2
----
-1045
-1955
-3775
query I rowsort
SELECT DISTINCT 63 + ( - col0 + 85 ) AS col1 FROM tab0
----
113
124
59
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - cor0.col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + 27 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL - col0 * + col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - + col2 * cor0.col1 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL ( + col1 ) + 41 AS col2 FROM tab1 AS cor0
----
51
54
67
query I rowsort
SELECT ALL + + 3 * cor0.col2 AS col2 FROM tab0 AS cor0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 * col2 col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1290
-1446
-612
query I rowsort
SELECT DISTINCT 74 * col0 - col2 AS col1 FROM tab0 AS cor0
----
1743
2589
6504
query I rowsort
SELECT cor0.col0 * col2 + + col1 * col2 * cor0.col2 FROM tab1 cor0
----
127488
36138
75978
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT DISTINCT col1 * + col0 * - CAST( NULL AS SIGNED ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT col1 * + col0 * - CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + col1 - col0 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT DISTINCT - - 66 + - col0 AS col1 FROM tab1 AS cor0
----
-14
2
63
query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col0 * col0 AS col2 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab1, tab2, tab2 cor0
----
56
query I rowsort
SELECT ALL + 28 * cor0.col2 AS col0 FROM tab1 cor0
----
1512
1596
2688
query I rowsort
SELECT DISTINCT ( + col1 + + col0 ) AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL - + cor0.col1 DIV - 19 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - + cor0.col1 / - 19 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 39 - - col0 col1 FROM tab1 AS cor0
----
113
132
68
query I rowsort
SELECT ALL + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT col2 + cor0.col0 * col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT + + col2 * - ( - col1 ) + col1 * cor0.col1 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 49 * - 69 AS col1 FROM tab2 AS cor0
----
-3381
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * col0 col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * tab2.col0 AS col1 FROM tab2
----
-788
4550
5595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT CAST( NULL AS SIGNED ) + col0 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-4050
SELECT CAST ( NULL AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + col2 - 1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT - + 81 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT - col1 + + col2 * col2 + col0 AS col0 FROM tab0 cor0
----
-61
1027
6722
query I rowsort
SELECT - + 17 AS col0 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT + + 29 * + 64 FROM tab0, tab0 cor0
----
9 values hashing to a4e8fdd07a03a44b604f7a98eff251bc
query I rowsort
SELECT - col2 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96
query I rowsort
SELECT ALL + 22 + + col2 FROM tab0
----
104
23
55
query I rowsort
SELECT DISTINCT 12 + + col1 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
16236
36516
5712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4061
SELECT CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT ALL col0 DIV - ( - col2 * ( + cor0.col1 ) + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL col0 / - ( - col2 * ( + cor0.col1 ) + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 97 * col1 + - col1 FROM tab0 AS cor0
----
8256
8736
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + 15 * - col2 col2 FROM tab2 AS cor0
----
-412
-468
-649
query I rowsort
SELECT - col0 * + col0 + - col1 * cor0.col1 * col2 FROM tab1 cor0
----
-22624
-36513
-9796
query I rowsort
SELECT - 54 * - 88 + + cor0.col0 FROM tab1 AS cor0
----
4755
4816
4832
query I rowsort
SELECT + - col2 * cor0.col1 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1292
-1674
-3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * ( + col2 ) col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - + col2 + + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT + col2 * 60 FROM tab1
----
3240
3420
5760
query I rowsort
SELECT + col2 + - col1 * + 71 FROM tab0 cor0
----
-6073
-6379
-6886
query I rowsort
SELECT ALL - ( + col2 ) * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT CAST( NULL AS SIGNED ) * - 9 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4073
SELECT CAST ( NULL AS INTEGER ) * - 9 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - + col1 * col1 + + cor0.col1 * col2 FROM tab2 AS cor0
----
-124
-1947
357
query I rowsort
SELECT - 67 + 58 FROM tab1, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT + col2 + + cor0.col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT col2 + + 69 DIV - col0 FROM tab1
----
31
56
96
skipif mysql # not compatible
query I rowsort label-4078
SELECT col2 + + 69 / - col0 FROM tab1
----
31
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT col0 DIV 80 - 47 DIV - col0 AS col2 FROM tab2
----
0
0
6
skipif mysql # not compatible
query I rowsort label-4079
SELECT col0 / 80 - 47 / - col0 AS col2 FROM tab2
----
0
0
6
query I rowsort
SELECT ALL col1 * 53 AS col0 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT + col2 * + col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT col1 * 6 * col1 + + col1 * - col1 FROM tab1 AS cor0
----
3380
500
845
query I rowsort
SELECT + cor0.col0 * col0 + - col0 * + col2 * ( + 51 ) FROM tab0 AS cor0
----
-364277
-39816
-560
query I rowsort
SELECT ALL ( col1 ) * - cor0.col0 * ( + 10 * + col2 ) + col0 * + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-323840
-41886
-915200
query I rowsort
SELECT - + col1 * ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + ( col1 ) - - col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT + CAST( - 57 AS SIGNED ) * col2 + - col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
skipif mysql # not compatible
query I rowsort label-4087
SELECT + CAST ( - 57 AS INTEGER ) * col2 + - col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT + 72 DIV col1 - col1 FROM tab1 AS cor0
----
-24
-3
-8
skipif mysql # not compatible
query I rowsort label-4088
SELECT + 72 / col1 - col1 FROM tab1 AS cor0
----
-24
-3
-8
query I rowsort
SELECT DISTINCT - 12 - cor0.col0 FROM tab2 AS cor0
----
-19
-90
-91
query I rowsort
SELECT ALL - col2 + 12 * - col1 FROM tab1 AS cor0
----
-177
-252
-366
query I rowsort
SELECT col1 + - 1 * + col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT - - col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4092
SELECT - - col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab1 cor0
----
10
query I rowsort
SELECT ALL + 95 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - 94 * col1 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT DISTINCT + 75 * col2 AS col0 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT - ( - col0 + col0 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 + - col1 * + col0 FROM tab2 AS cor0
----
-1302
-237
-4550
query I rowsort
SELECT ALL - + cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + + col2 * col1 + col1 * + ( col1 ) FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT ALL - 19 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT DISTINCT - + 31 * - col0 + - ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-3666
-3792
168
query I rowsort
SELECT + 49 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462
query I rowsort
SELECT ALL col1 * col2 * cor0.col2 FROM tab2 cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + - col1 - + col2 col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col1 * col2 * ( col0 + col1 ) AS col0 FROM tab0 AS cor0
----
12804
1343160
312180
query I rowsort
SELECT DISTINCT 37 + + col2 * - 66 AS col1 FROM tab2 AS cor0
----
-1679
-1745
-2471
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + ( + ( + col2 ) ) * - tab0.col2 col1 FROM tab0
----
-513
1197
1224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT ALL + cor0.col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + cor0.col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - col2 * - 18 FROM tab0 AS cor0
----
1394
17
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col0 col2 FROM tab2
----
-108
-109
-37
query I rowsort
SELECT ( 91 ) FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT DISTINCT 63 DIV - col2 AS col1 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT 63 / - col2 AS col1 FROM tab1
----
-1
0
query I rowsort
SELECT ALL col1 * col1 + + col2 FROM tab1
----
157
265
730
query I rowsort
SELECT col0 * col2 + col2 * + col0 FROM tab2
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT col2 DIV col1 + - col1 * + col0 + col1 col0 FROM tab2
----
-1324
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4117
SELECT col2 / col1 + - col1 * + col0 + col1 col0 FROM tab2
----
-1324
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + col2 col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col2 + - col0 + - col2 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL col2 + + tab0.col1 + - col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 + + col1 + col1 AS col2 FROM tab2
----
-4
35
92
query I rowsort
SELECT col0 + tab2.col1 + col2 * col1 FROM tab2
----
1671
742
875
query I rowsort
SELECT col1 * + tab0.col1 * + col0 + col0 FROM tab0
----
177528
329350
737098
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL col1 + tab1.col2 AS col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * col0 col1 FROM tab0
----
13824
42875
704969
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col1 / + col0 <> - col0 * col2
----
query I rowsort
SELECT tab0.col0 * + col1 + + col2 * + tab0.col1 FROM tab0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT - tab1.col1 * tab1.col1 DIV - col0 - col2 FROM tab1
----
-56
-94
171
skipif mysql # not compatible
query I rowsort label-4129
SELECT - tab1.col1 * tab1.col1 / - col0 - col2 FROM tab1
----
-56
-94
171
query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL NOT IN ( col1 * - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ALL col2 + col2 DIV tab1.col0 AS col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL col2 + col2 / tab1.col0 AS col2 FROM tab1
----
57
72
97
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( + col1 ) AND col1
----
query I rowsort
SELECT + col2 * col2 * + col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL + col1 + col1 * col0 AS col1 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col2 * + col0 * col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - 21 + 11 FROM tab1
----
-10
-10
-10
query I rowsort
SELECT DISTINCT + ( + col2 ) * - tab2.col2 + 12 FROM tab2
----
-1432
-664
-717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col2 col1 FROM tab1
----
3726
3933
6624
query I rowsort
SELECT + col0 - col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT - col1 DIV ( col0 ) FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-4142
SELECT - col1 / ( col0 ) FROM tab2
----
-4
0
0
query I rowsort
SELECT - 62 * 88 FROM tab0
----
-5456
-5456
-5456
query I rowsort
SELECT + 13 + col1 FROM tab1
----
23
26
39
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab0
----
2
query I rowsort
SELECT + 0 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT + + col1 DIV col1 + - 70 FROM tab1 AS cor0
----
-69
skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + + col1 / col1 + - 70 FROM tab1 AS cor0
----
-69
query I rowsort
SELECT + - col2 * + col1 + ( col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL - 58 - + col2 AS col2 FROM tab0 cor0
----
-140
-59
-91
query I rowsort
SELECT DISTINCT - 24 * + col0 * + col2 + - 92 * + col2 FROM tab2 AS cor0
----
-51064
-7020
-75544
query I rowsort
SELECT DISTINCT + - 50 * + col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-4154
SELECT ALL - - col2 + - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - - col2 + - cor0.col1 / - col1 FROM tab1 AS cor0
----
55
58
97
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab2 AS cor2, tab0
----
13122 values hashing to 9c0d5525d7cccb973c10f21459c27f74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT ALL + col2 + - 53 * col1 DIV + col0 FROM tab0 AS cor0
----
-145
-156
28
skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + col2 + - 53 * col1 / + col0 FROM tab0 AS cor0
----
-145
-156
28
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col0 + col0 * 31 AS col2 FROM tab2 cor0
----
224
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-4159
SELECT - cor0.col2 DIV - ( 49 * + cor0.col0 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4159
SELECT - cor0.col2 / - ( 49 * + cor0.col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col1 * + ( col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT DISTINCT + - col2 * col0 DIV - col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + - col2 * col0 / - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - col0 + 63 FROM tab1 cor0
----
-1
-17
60
query I rowsort
SELECT ALL ( - 29 ) FROM tab1 AS cor0
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL 12 + 33 AS col1 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL 52 + - col0 FROM tab2 AS cor0
----
-26
-27
45
query I rowsort
SELECT - ( + 96 ) * col0 - - 31 * - 75 AS col1 FROM tab0 AS cor0
----
-10869
-4629
-5685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT + col0 * + col1 + - col1 + col0 FROM tab0 AS cor0
----
2002
3333
8097
query I rowsort
SELECT + - col0 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 27 * col2 + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col1 * - col2 col2 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT ALL col1 * col1 * col1 + col2 AS col0 FROM tab0
----
636089
753653
912674
query I rowsort
SELECT DISTINCT 62 + 79 FROM tab0
----
141
query I rowsort
SELECT DISTINCT - ( 6 ) * tab1.col0 + col2 FROM tab1
----
-327
-384
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 col2 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * - col0 col0 FROM tab1 cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 - col2 * cor0.col1 col1 FROM tab1 cor0
----
-1079
-470
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab0
----
42
42
42
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT DISTINCT - cor0.col1 DIV + cor0.col2 FROM tab1, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - cor0.col1 / + cor0.col2 FROM tab1, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0
----
-31
query I rowsort
SELECT col0 * - col2 - col2 AS col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 53 * 89 AS col1 FROM tab2 AS cor0
----
4717
4717
4717
query I rowsort
SELECT ALL col1 * - col0 * 88 FROM tab1
----
-56320
-6864
-91520
query I rowsort
SELECT DISTINCT + tab0.col0 * - tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT + ( - 85 ) DIV col0 FROM tab2
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-4190
SELECT + ( - 85 ) / col0 FROM tab2
----
-1
-1
-12
query I rowsort
SELECT - 66 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT - CAST( 51 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-51
-51
skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( 51 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * col1 col1 FROM tab1
----
36
673
89
query I rowsort
SELECT cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col0 + + col1 * + col2 + - tab0.col0 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col2 * col0 + col2 + col1 FROM tab1
----
242
3715
7789
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT ALL - tab0.col1 DIV - tab0.col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - tab0.col1 / - tab0.col2 FROM tab0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT DISTINCT + col2 DIV - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + col2 / - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT col2 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - col2 * - col1 * col1 FROM tab1 cor0
----
16224
36504
5700
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / - col0 + - col0 )
----
query I rowsort
SELECT - col1 * col0 - col1 AS col2 FROM tab1
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + - col2 col2 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT DISTINCT - col1 + col2 DIV + col0 + - col0 col1 FROM tab2
----
-137
-35
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - col1 + col2 / + col0 + - col0 col1 FROM tab2
----
-137
-35
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 + col2 + + col0 * col1 FROM tab0 AS cor0
----
2130
3397
8263
query I rowsort
SELECT + + col1 * col0 + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
1501
231
4758
onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT DISTINCT - + col2 DIV - col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - + col2 / - col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT col1 * + col2 + + 43 * col0 FROM tab2
----
1138
4043
4888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4210
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-4210
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT + cor0.col0 DIV col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1347
217
4603
skipif mysql # not compatible
query I rowsort label-4211
SELECT + cor0.col0 / col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1347
217
4603
query I rowsort
SELECT 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL - col1 + - col2 + col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col2 * 43 - - col0 AS col0 FROM tab1 AS cor0
----
2325
2515
4208
query I rowsort
SELECT ALL 15 * + col2 FROM tab2
----
390
405
570
query I rowsort
SELECT + 78 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
112632
52728
56862
query I rowsort
SELECT 6 + 12 FROM tab2 AS cor0
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT DISTINCT col2 DIV 53 - col2 * col1 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT col2 / 53 - col2 * col1 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL col0 * tab2.col1 DIV + CAST( 92 * col0 AS SIGNED ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL col0 * tab2.col1 / + CAST ( 92 * col0 AS INTEGER ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + ( + col2 ) * col1 * - ( col0 ) FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + 92 AS col1 FROM tab1 AS cor0
----
92
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 57 AS col2 FROM tab0 cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab2 AS cor0
----
73
query I rowsort
SELECT ALL + col1 * + col2 + - 1 AS col1 FROM tab2 AS cor0
----
1533
645
836
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT cor0.col0 * ( - ( col2 ) * - col1 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - col2 * 65 + col1 FROM tab1 AS cor0
----
-3484
-3695
-6227
onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT - col0 * col1 - + 58 * - col2 DIV col2 AS col2 FROM tab1 cor0
----
-20
-582
-982
skipif mysql # not compatible
query I rowsort label-4234
SELECT - col0 * col1 - + 58 * - col2 / col2 AS col2 FROM tab1 cor0
----
-20
-582
-982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4235
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT - + col2 DIV - 34 + + col2 AS col1 FROM tab1 AS cor0
----
55
58
98
skipif mysql # not compatible
query I rowsort label-4236
SELECT - + col2 / - 34 + + col2 AS col1 FROM tab1 AS cor0
----
55
58
98
query I rowsort
SELECT ALL col0 * col1 * 59 FROM tab2 AS cor0
----
12803
271518
79237
query I rowsort
SELECT + - col0 * + 47 - - ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1545
-3578
-5008
query I rowsort
SELECT ALL - 22 * - col2 + col1 - 73 * + col2 AS col2 FROM tab1
----
-2728
-2897
-4883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT ALL - col2 * + col0 * - CAST( + 77 AS SIGNED ) AS col0 FROM tab2
----
14553
156156
231154
skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - col2 * + col0 * - CAST ( + 77 AS INTEGER ) AS col0 FROM tab2
----
14553
156156
231154
query I rowsort
SELECT - col1 + ( cor0.col0 ) FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - 90 - col0 * - ( + col2 + tab1.col0 ) AS col2 FROM tab1
----
13990
7654
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 87 col1 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT ALL - col0 * + col0 + + 75 * col0 FROM tab1 AS cor0
----
-400
216
704
query I rowsort
SELECT - col0 * + ( 41 ) FROM tab0 cor0
----
-1435
-3649
-984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
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-4246
SELECT + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + 33 * + col2 FROM tab1
----
1808
1891
3181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * - col0 col2 FROM tab1 AS cor0
----
-267
-5696
-7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( col1 * - col1 ) col2 FROM tab1 cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * cor0.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to b336c500cf10b0a0ff50fcdda3308e9b
query I rowsort
SELECT - col0 + col2 * ( - col0 * cor0.col2 ) FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT - 91 * + col2 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT - 54 - - 21 AS col1 FROM tab2
----
-33
-33
-33
query I rowsort
SELECT col0 + - col2 * col0 AS col1 FROM tab0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT + CAST( + col0 AS SIGNED ) * + col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4256
SELECT + CAST ( + col0 AS INTEGER ) * + col0 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4258
SELECT - CAST( col1 * - col2 AS SIGNED ) + + ( col2 ) FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-4258
SELECT - CAST ( col1 * - col2 AS INTEGER ) + + ( col2 ) FROM tab1
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + - ( + col1 ) col1 FROM tab0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + - col1 col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT ALL - + col2 + col0 + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-105
-112
-50
skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - + col2 + col0 + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-105
-112
-50
query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab2 AS cor0
----
99
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT DISTINCT + col2 DIV col0 + col0 + - cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-767
0
skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + col2 / col0 + col0 + - cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-767
0
query I rowsort
SELECT 92 * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9596028634f7ef5bc08792444e59b3e7
query I rowsort
SELECT + col2 + 25 AS col1 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT col1 * tab1.col0 - + col2 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT + 36 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT - 54 * + col2 - ( - col0 + col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4269
SELECT - 54 * + col2 - ( - col0 + col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * col1 + 0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col0 - + col0 * 78 col2 FROM tab2 AS cor0
----
-497
0
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - col2 * 24 + + 29 col0 FROM tab0 cor0
----
-135763
-1627
-54619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * + col2 + + col2 col2 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT - 73 - + col2 * col0 FROM tab2 cor0
----
-2101
-262
-3075
query I rowsort
SELECT DISTINCT + 12 * + col1 FROM tab2 cor0
----
204
372
708
query I rowsort
SELECT ALL col2 + - col1 - - 86 * 51 AS col0 FROM tab0 AS cor0
----
4290
4333
4377
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + + 52 col1 FROM tab2 AS cor0
----
2080
241
3054
query I rowsort
SELECT + ( col2 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 37 + col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
-815
1507
418
query I rowsort
SELECT + - col0 * 27 AS col2 FROM tab0 cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL - col2 * - 41 FROM tab2
----
1066
1107
1558
query I rowsort
SELECT ( - 22 ) + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 48ccd6fe70833b7bd1e7ef517dea3d7c
query I rowsort
SELECT + col0 + 69 AS col2 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT - - col1 + ( - col0 ) + col1 FROM tab2 AS cor0
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT - + col1 + - cor0.col1 DIV + 85 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4285
SELECT - + col1 + - cor0.col1 / + 85 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT - col2 DIV - cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4286
SELECT - col2 / - cor0.col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - col1 + 81 FROM tab1 AS cor0
----
55
68
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT ALL - col1 DIV - 64 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - col1 / - 64 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col0 + + ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT col0 DIV ( - col2 ) col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4290
SELECT col0 / ( - col2 ) col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - - col1 * - 37 AS col1 FROM tab0 AS cor0
----
-3182
-3367
-3589
query I rowsort
SELECT - col0 + - 55 FROM tab0 cor0
----
-144
-79
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT - col2 + col0 DIV col1 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-4293
SELECT - col2 + col0 / col1 FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT DISTINCT + + col2 * col2 + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - + 17 * col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT ALL + + ( - col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 13 * 10 AS col2 FROM tab1 AS cor0
----
-130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT - CAST( NULL AS SIGNED ) * 41 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4298
SELECT - CAST ( NULL AS INTEGER ) * 41 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - 39 AS col1 FROM tab1
----
-2106
-2223
-3744
query I rowsort
SELECT + tab0.col1 FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT col2 * - 18 * col1 FROM tab1 cor0
----
-10260
-22464
-25272
query I rowsort
SELECT + - 85 * col0 AS col1 FROM tab0 AS cor0
----
-2040
-2975
-7565
query I rowsort
SELECT DISTINCT + - col0 * - col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT 29 DIV col0 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4304
SELECT 29 / col0 col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT - - 27 + col0 * col1 * + ( col1 ) FROM tab1 AS cor0
----
13547
2055
6427
query I rowsort
SELECT ALL + col2 * + col0 + - col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
14671
3606
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col2 + 97 AS col0 FROM tab0 AS cor0
----
132
7395
889
skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col2 + 97 AS col0 FROM tab0 AS cor0
----
132
7395
889
query I rowsort
SELECT ALL col2 * - col1 * col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - 81 + col1 * + col1 FROM tab1 AS cor0
----
19
595
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT DISTINCT + - CAST( + 7 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-104
-93
-98
skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + - CAST ( + 7 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-104
-93
-98
query I rowsort
SELECT DISTINCT + col0 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 * - 15 FROM tab2
----
-390
-405
-570
query I rowsort
SELECT ALL + col2 * - col2 + - col2 * tab0.col0 FROM tab0
----
-14022
-1881
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT DISTINCT - CAST( NULL AS SIGNED ) / cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * 82 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT ALL cor0.col1 * - col1 + col2 * ( - col0 * col1 ) AS col1 FROM tab1 cor0
----
-100009
-36580
-4888
onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT - + col0 + + ( col1 ) DIV col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-4319
SELECT - + col0 + + ( col1 ) / col0 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT DISTINCT - ( - col2 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + 50 + col1 AS col0 FROM tab0 AS cor0
----
136
141
147
query I rowsort
SELECT DISTINCT + 86 * + 5 * + col0 AS col2 FROM tab2
----
3010
33540
33970
query I rowsort
SELECT DISTINCT + col0 * + col1 * cor0.col2 + col1 AS col1 FROM tab1 cor0
----
36490
4238
99853
query I rowsort
SELECT - col0 + col0 * + cor0.col2 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT - - 86 * + cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a29fa5ba23748f6b5a9eb3a86ec1bc9
query I rowsort
SELECT col1 * + col2 + 96 AS col0 FROM tab1 AS cor0
----
1344
1500
666
query I rowsort
SELECT ALL - col0 - col1 * - ( col1 ) * - col2 FROM tab0 cor0
----
-244092
-679131
-9444
query I rowsort
SELECT DISTINCT - tab2.col1 - - tab2.col1 * - col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + col0 - - col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + 4 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT + - col1 - + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT col0 * + ( cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL col1 + 48 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT DISTINCT + col2 * + ( - 27 ) FROM tab2 AS cor0
----
-1026
-702
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT DISTINCT - col0 * + CAST( - 89 AS SIGNED ) + col0 col1 FROM tab0 AS cor0
----
2160
3150
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - col0 * + CAST ( - 89 AS INTEGER ) + col0 col1 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT - - 70 + col2 AS col0 FROM tab2 AS cor0
----
108
96
97
query I rowsort
SELECT ALL col0 - - 77 FROM tab0
----
101
112
166
query I rowsort
SELECT - col1 * col1 - 18 AS col2 FROM tab1 cor0
----
-118
-187
-694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4339
SELECT DISTINCT CAST( - 87 AS SIGNED ) AS col1 FROM tab1
----
-87
skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT CAST ( - 87 AS INTEGER ) AS col1 FROM tab1
----
-87
query I rowsort
SELECT - ( col0 * col2 + tab2.col2 ) AS col1 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT - col0 * col2 + - col2 AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT 68 + tab0.col2 + 24 AS col2 FROM tab0
----
125
174
93
query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 * - col1 * col2 FROM tab1 AS cor0
----
-17472
-37908
-6270
query I rowsort
SELECT DISTINCT - - 30 + col0 AS col1 FROM tab2 AS cor0
----
108
109
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT + ( + col1 ) DIV ( - cor0.col1 * col2 ) + ( - 43 ) col0 FROM tab1 AS cor0
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4345
SELECT + ( + col1 ) / ( - cor0.col1 * col2 ) + ( - 43 ) col0 FROM tab1 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL + - 11 * cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-1066
-913
-919
query I rowsort
SELECT col2 + 79 * 35 AS col2 FROM tab1
----
2819
2822
2861
query I rowsort
SELECT - col0 * tab1.col2 * col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT col2 * + ( col2 ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + col0 * 41 + col2 FROM tab1 AS cor0
----
177
2681
3376
query I rowsort
SELECT + ( ( + tab1.col2 ) ) FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + col2 * + ( + col2 ) FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - col0 * + col2 + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - - col1 + 46 * col2 FROM tab2 AS cor0
----
1255
1273
1765
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 * col1 * col0 AS col0 FROM tab0 cor0
----
-3298
-65274
-656656
query I rowsort
SELECT DISTINCT 94 + - cor0.col2 FROM tab0 AS cor0
----
12
61
93
query I rowsort
SELECT ALL col1 * + 94 - + col1 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT DISTINCT 48 * + col0 AS col1 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT - - col1 + + 10 AS col1 FROM tab0 AS cor0
----
101
107
96
query I rowsort
SELECT ALL col2 * col0 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT ALL col0 * - col1 DIV + cor0.col1 + + col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL col0 * - col1 / + cor0.col1 + + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col0 - + col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + - col0 * + col2 col2 FROM tab0 AS cor0
----
-709
-7215
48
query I rowsort
SELECT ALL col1 * - 91 * - tab1.col1 AS col0 FROM tab1
----
15379
61516
9100
query I rowsort
SELECT ALL - ( + cor1.col1 ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT - 46 * ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT - 49 + col2 * + col2 * - 15 AS col2 FROM tab0 cor0
----
-100909
-16384
-64
query I rowsort
SELECT + col2 * + cor0.col1 * col0 AS col0 FROM tab1 cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * 44 col1 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT col1 * + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT - 91 DIV - col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-4375
SELECT - 91 / - col1 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT 86 * col1 * - 50 FROM tab0 AS cor0
----
-369800
-391300
-417100
query I rowsort
SELECT - - col1 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL ( + 96 ) * tab1.col2 * - 92 AS col1 FROM tab1
----
-476928
-503424
-847872
query I rowsort
SELECT - + 50 * col0 AS col1 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT + col0 + + 10 AS col1 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT - - col1 * col1 + + cor0.col2 + + col1 FROM tab0 AS cor0
----
7515
8454
9507
query I rowsort
SELECT DISTINCT - cor0.col0 * - 92 + + col2 FROM tab2 cor0
----
671
7202
7306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT ALL - col0 * CAST( - 13 AS SIGNED ) + + col1 * - 11 AS col0 FROM tab1 AS cor0
----
-247
722
897
skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - col0 * CAST ( - 13 AS INTEGER ) + + col1 * - 11 AS col0 FROM tab1 AS cor0
----
-247
722
897
query I rowsort
SELECT col1 + + ( col2 * col0 ) FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT ALL - + col0 * col2 * + 45 AS col2 FROM tab2 AS cor0
----
-135090
-8505
-91260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 + 5 col0 FROM tab2 AS cor0
----
-284
-3476
-956
skipif mysql # not compatible
query I rowsort
SELECT + + col0 * + CAST ( col1 AS REAL ) + col0 / col0 AS col1 FROM tab1 AS cor0
----
1041
641
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT ALL - col0 DIV + CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - col0 / + CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + + col1 * + 9 * 23 AS col0 FROM tab0
----
17888
18928
20176
query I rowsort
SELECT - 84 - - col1 FROM tab0
----
13
2
7
query I rowsort
SELECT + col1 + + col0 + col0 AS col2 FROM tab2
----
175
215
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT + col0 * ( + 46 * - col2 + CAST( - col2 AS SIGNED ) * + col0 ) FROM tab0
----
-2835
-55440
-985230
skipif mysql # not compatible
query I rowsort label-4393
SELECT + col0 * ( + 46 * - col2 + CAST ( - col2 AS INTEGER ) * + col0 ) FROM tab0
----
-2835
-55440
-985230
query I rowsort
SELECT 76 + 44 FROM tab0, tab0 AS cor0
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - CAST ( col1 * col0 AS REAL ) AS col1 FROM tab2
----
-106097
-1519
-358956
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
query I rowsort
SELECT + ( - 21 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT ALL + col2 - + ( + col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab1
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT DISTINCT 82 + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 82 + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - col2 + + 10 AS col2 FROM tab1 AS cor0
----
-44
-47
-86
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL col1 * 36 * cor0.col0 FROM tab0 AS cor0
----
122220
291564
74304
query I rowsort
SELECT ALL 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT - col1 * - 6 * col0 FROM tab0
----
12384
20370
48594
query I rowsort
SELECT DISTINCT + 55 * 26 FROM tab0
----
1430
query I rowsort
SELECT col1 + col1 * cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
1149
158
707
query I rowsort
SELECT ( col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 40 * 52 + col0 AS col1 FROM tab1 AS cor0
----
2083
2144
2160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4410
SELECT + col1 * + 13 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4410
SELECT + col1 * + 13 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 88 + col0 AS col0 FROM tab2 AS cor0
----
-10
-81
-9
query I rowsort
SELECT + + 55 + - col2 * cor0.col2 * col0 FROM tab1 AS cor0
----
-207881
-737225
-8693
query I rowsort
SELECT + 95 + + cor0.col0 FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT DISTINCT + 80 + + cor0.col1 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT col1 * + cor0.col0 + ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
1024
27
647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + col2 col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT DISTINCT + + cor0.col0 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + + cor0.col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + + ( 90 ) * - col2 * - col2 FROM tab1 AS cor0
----
262518
293050
830480
query I rowsort
SELECT ALL ( col0 ) + col2 + 16 FROM tab0 AS cor0
----
187
52
73
query I rowsort
SELECT - - col2 + col0 * col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab1 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab0 AS cor0
----
-88
-88
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT DISTINCT + col0 + col1 + + CAST( + col1 + cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
148
186
58
skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + col0 + col1 + + CAST ( + col1 + cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
148
186
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - - col0 col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL - col1 + - col0 * - col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT ALL col0 * - col2 - + ( col2 ) FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - + col0 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT DISTINCT col0 * col0 DIV + col0 col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT col0 * col0 / + col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col1 * + ( + cor0.col1 ) * - col2 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT ALL - 8 * col1 * - tab0.col1 + 6 * col2 + + CAST( col0 AS SIGNED ) FROM tab0
----
59390
66829
75313
skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 8 * col1 * - tab0.col1 + 6 * col2 + + CAST ( col0 AS INTEGER ) FROM tab0
----
59390
66829
75313
query I rowsort
SELECT 43 + col0 * 39 * col0 FROM tab0
----
22507
308962
47818
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT - CAST( NULL AS DECIMAL ) / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4432
SELECT - CAST ( NULL AS REAL ) / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 27 + col0 AS col2 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT DISTINCT - + 46 * col0 AS col1 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT ( - 79 ) + + col0 FROM tab1 AS cor0
----
-15
-76
1
query I rowsort
SELECT DISTINCT 31 * - col0 AS col0 FROM tab2 AS cor0
----
-217
-2418
-2449
onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT - col1 - col1 DIV - col0 col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4437
SELECT - col1 - col1 / - col0 col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT DISTINCT + 58 * - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-37120
-4524
-60320
query I rowsort
SELECT ALL - + col0 * + ( - col0 ) * - col2 + ( col0 + + 93 ) FROM tab0 AS cor0
----
-1097
-18891
-649340
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT CAST( col1 AS SIGNED ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-4440
SELECT CAST ( col1 AS INTEGER ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT ALL col0 DIV col2 col2 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL col0 / col2 col2 FROM tab0
----
0
1
35
query I rowsort
SELECT + 29 * 74 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4739a739df32b7c22892df2a075095e8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT DISTINCT + - col0 * col0 * CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + - col0 * col0 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * - col0 + col1 AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col1 + col2 - + col0 FROM tab1
----
29
3
77
query I rowsort
SELECT - col2 + + tab0.col1 AS col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT ALL - col0 + col1 DIV + col2 AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - col0 + col1 / + col2 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 + col1 * tab0.col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col1 + + col2 + tab0.col2 AS col2 FROM tab0
----
152
255
99
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE col1 * - col0 < col0 * col1
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT ALL - col2 DIV + col0 + col2 AS col1 FROM tab0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - col2 / + col0 + col2 AS col1 FROM tab0
----
1
32
82
query I rowsort
SELECT ALL - + 86 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4a425fd1fe865edf3d551d399e553ffe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - cor0.col0 * - col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE ( col0 * + col1 * + col1 ) BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - col2 ) NOT IN ( + col0 * + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + tab2.col0 + - tab2.col0 FROM tab2
----
0
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL cor0.col2 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT col0 DIV col0 + - col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4461
SELECT col0 / col0 + - col2 AS col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT col0 * col2 - col2 * - col2 FROM tab0
----
14022
1881
36
query I rowsort
SELECT ALL + col0 * tab1.col0 + - col1 AS col2 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT col2 / col2 + col0 FROM tab0 WHERE NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT tab2.col2 + + col2 * col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT - cor0.col1 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
query I rowsort
SELECT col0 + + col0 * tab1.col1 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT + ( - 66 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT ALL + 43 - cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fcf3aa95e561045eb3bf9af4bb681a71
query I rowsort
SELECT ALL + 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-4472
SELECT CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT + 72 DIV + 92 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4473
SELECT + 72 / + 92 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 83 * + col2 + - col2 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
30
query I rowsort
SELECT + ( cor0.col0 ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 91 * tab1.col1 AS col0 FROM tab1
----
1183
2366
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT 52 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4479
SELECT 52 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ( + col2 ) * - 40 FROM tab0
----
-1320
-3280
-40
query I rowsort
SELECT ALL + 86 * + col0 FROM tab0 cor0
----
2064
3010
7654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab2 AS cor0
----
89
query I rowsort
SELECT 33 * col2 + + 80 FROM tab1 AS cor0
----
1862
1961
3248
query I rowsort
SELECT + col2 * + col1 * col1 - - cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 83 + col1 col1 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT - cor0.col0 + 16 FROM tab2 cor0
----
-62
-63
9
query I rowsort
SELECT + col2 + ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 + - col1 * + col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-80
query I rowsort
SELECT DISTINCT - 22 + col1 FROM tab1
----
-12
-9
4
query I rowsort
SELECT + col2 + + col0 * + 3 + - col1 FROM tab2
----
17
201
258
query I rowsort
SELECT - col1 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col1 * - 1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col1 * 23 + - 67 * col1 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT ALL - ( 36 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 67 * cor1.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 93deaa122e114ffa8d6beb273abef2f9
query I rowsort
SELECT - 55 + + col1 * - col2 FROM tab1 AS cor0
----
-1303
-1459
-625
query I rowsort
SELECT + col2 * + col1 + col2 + - cor0.col0 FROM tab0 AS cor0
----
2847
63
7455
query I rowsort
SELECT DISTINCT 57 * col2 + + col2 + col1 FROM tab1 AS cor0
----
3158
3316
5581
query I rowsort
SELECT ALL + + col1 * - col2 * - col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4502
SELECT DISTINCT CAST( + col1 AS SIGNED ) + + col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT 78 + + col1 FROM tab2
----
109
137
95
query I rowsort
SELECT 87 + - col0 AS col2 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT DISTINCT col0 + - 10 FROM tab2
----
-3
68
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT ALL + 48 DIV + ( + col0 ) + col2 + - col0 FROM tab2
----
-41
-52
26
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + 48 / + ( + col0 ) + col2 + - col0 FROM tab2
----
-41
-52
26
query I rowsort
SELECT DISTINCT col0 + col0 + - tab2.col1 * - col0 FROM tab2
----
1501
231
4758
query I rowsort
SELECT DISTINCT + col1 * 89 AS col2 FROM tab0 AS cor0
----
7654
8099
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT ALL - col1 + + ( + col2 ) DIV col0 FROM tab0 cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - col1 + + ( + col2 ) / col0 FROM tab0 cor0
----
-85
-91
-97
query I rowsort
SELECT col2 + + 97 FROM tab0 AS cor0
----
130
179
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL - col2 + + col0 DIV 12 FROM tab0 cor0
----
-31
-75
1
skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - col2 + + col0 / 12 FROM tab0 cor0
----
-31
-75
1
query I rowsort
SELECT DISTINCT col0 * + col1 * 73 FROM tab2 AS cor0
----
15841
335946
98039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab0, tab1, tab0 AS cor0
----
-42
query I rowsort
SELECT ALL 77 AS col0 FROM tab0
----
77
77
77
query I rowsort
SELECT - col2 + 61 FROM tab2
----
23
34
35
query I rowsort
SELECT DISTINCT + col1 - - 84 FROM tab2
----
101
115
143
query I rowsort
SELECT - cor0.col1 + + 76 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT - col1 * 58 + + col0 FROM tab1 AS cor0
----
-1505
-516
-674
query I rowsort
SELECT ALL - col2 - col0 * - tab0.col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT ALL col1 * - col1 - + col1 * + col1 * tab2.col1 AS col0 FROM tab2
----
-208860
-30752
-5202
query I rowsort
SELECT ALL col1 * + col0 * - col1 - - col2 FROM tab0
----
-177471
-329314
-736927
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - col1 + col2 + + col2 DIV + col1 AS col2 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-4522
SELECT - col1 + col2 + + col2 / + col1 AS col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT + col0 + col0 DIV col2 AS col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-4523
SELECT + col0 + col0 / col2 AS col0 FROM tab0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT ALL col2 + - col0 DIV tab0.col0 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL col2 + - col0 / tab0.col0 AS col0 FROM tab0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT col1 * col0 DIV col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4525
SELECT col1 * col0 / col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - col1 + tab2.col0 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----
query I rowsort
SELECT + col2 * + col1 + - col0 * col1 + + col1 FROM tab1 AS cor0
----
-60
1352
221
query I rowsort
SELECT ALL col0 + cor0.col1 + - col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col1 + - col1 - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT cor0.col0 * - col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col0 * col0 * + col2 + + col1 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT DISTINCT - - cor0.col2 - + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + 9 * col0 AS col1 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT ( - col2 ) + - col0 AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL + + col0 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ( + col0 ) * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT 12 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1052
652
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col0 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + col1 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1619
-701
-895
query I rowsort
SELECT + col1 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + col0 * col0 + - cor0.col1 * + col1 * - col2 FROM tab2 AS cor0
----
17223
25996
96590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + col2 col0 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + 27 * + col1 FROM tab0 cor0
----
-2322
-2457
-2619
query I rowsort
SELECT + - cor0.col1 + col2 + col2 FROM tab2 cor0
----
-7
23
59
query I rowsort
SELECT ALL - + 54 * + col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 AS col0 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT ALL col2 + + col1 * - CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL col2 + + col1 * - CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + ( + col0 ) * 91 AS col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT ALL - - 17 * + col1 AS col2 FROM tab1 cor0
----
170
221
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT + col2 DIV + col1 + + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
1
2
skipif mysql # not compatible
query I rowsort label-4558
SELECT + col2 / + col1 + + col0 / - col1 AS col1 FROM tab1 AS cor0
----
-1
1
2
query I rowsort
SELECT col0 * ( 56 ) * - col0 FROM tab2 cor0
----
-2744
-340704
-349496
query I rowsort
SELECT + col2 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col0 + ( 11 ) * - col1 FROM tab2 AS cor0
----
-266
-348
-727
query I rowsort
SELECT - - cor0.col0 * ( col2 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT + 6 + + tab1.col0 * + col1 AS col1 FROM tab1
----
1046
646
84
query I rowsort
SELECT - col2 * ( + 25 ) FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT + 74 + - 70 + col2 AS col1 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT ALL + 88 + 33 * - col0 FROM tab1 AS cor0
----
-11
-2024
-2552
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) + + col2 col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 86 * col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT ALL - 85 + - 30 FROM tab2 AS cor0
----
-115
-115
-115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT CAST( - col0 AS SIGNED ) - col0 col2 FROM tab2 cor0
----
-14
-156
-158
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4572
SELECT CAST ( - col0 AS INTEGER ) - col0 col2 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT + 55 - col2 FROM tab1 AS cor0
----
-2
-41
1
query I rowsort
SELECT - col0 * col1 - col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col0 + + col2 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT + 79 DIV - 46 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4576
SELECT + 79 / - 46 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 * 95 + - col0 * + col1 + ( + ( col0 ) ) * + col0 AS col0 FROM tab0
----
-197568
-324695
-769583
query I rowsort
SELECT 25 + + col0 * tab0.col1 FROM tab0
----
2089
3420
8124
query I rowsort
SELECT + 9 + + col0 + + col0 FROM tab0
----
187
57
79
query I rowsort
SELECT + col0 * col2 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - col1 * - 22 AS col0 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT - ( - col2 ) + col2 * + col0 * + cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
125762
57313
5935
query I rowsort
SELECT + col0 * col2 + - 17 + 32 FROM tab0 AS cor0
----
50
7313
807
query I rowsort
SELECT ALL col2 + 91 AS col2 FROM tab1
----
145
148
187
query I rowsort
SELECT - cor0.col0 * - 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 753de708ba8e1269d416f3cc04b85e0c
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL + 47 * col2 + - col1 FROM tab1 AS cor0
----
2512
2669
4499
query I rowsort
SELECT + + col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + col2 col0 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT ( - cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL col2 * 8 + - col2 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ( + 51 ) * cor0.col0 FROM tab2 AS cor0
----
357
3978
4029
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT CAST( 72 AS SIGNED ) FROM tab1 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( 72 AS INTEGER ) FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT - col1 * ( col0 ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 + 46 * - col0 FROM tab2 cor0
----
-315
-3510
-3555
query I rowsort
SELECT DISTINCT + col0 * 59 * + col2 FROM tab2 AS cor0
----
11151
119652
177118
onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT ALL + col2 DIV 50 - - col1 * + col2 DIV + ( - col2 ) AS col2 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + col2 / 50 - - col1 * + col2 / + ( - col2 ) AS col2 FROM tab1
----
-12
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT ALL col2 + - CAST( + col2 AS SIGNED ) - + col0 AS col2 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL col2 + - CAST ( + col2 AS INTEGER ) - + col0 AS col2 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT - col0 DIV 89 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4601
SELECT - col0 / 89 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT ALL + col0 + col1 DIV - col0 AS col2 FROM tab1 cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + col0 + col1 / - col0 AS col2 FROM tab1 cor0
----
-5
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4603
SELECT + + col2 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4603
SELECT + + col2 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( - col0 ) * col0 col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT - ( + 8 ) AS col0 FROM tab1 AS cor0
----
-8
query I rowsort
SELECT ALL col2 * col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ( cor0.col2 ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - 57 * - col2 + col1 * + col2 + + ( col2 + - 99 ) FROM tab2 AS cor0
----
2304
2751
2943
query I rowsort
SELECT - col2 + - 6 AS col1 FROM tab2 AS cor0
----
-32
-33
-44
query I rowsort
SELECT DISTINCT + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT - CAST( 37 AS SIGNED ) * + col2 FROM tab2 cor0
----
-1406
-962
-999
skipif mysql # not compatible
query I rowsort label-4611
SELECT - CAST ( 37 AS INTEGER ) * + col2 FROM tab2 cor0
----
-1406
-962
-999
query I rowsort
SELECT ALL + ( + 64 ) AS col0 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col0 + 82 * col1 AS col0 FROM tab2 AS cor0
----
1473
2549
4916
onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT + cor0.col1 + ( col1 ) DIV 31 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4614
SELECT + cor0.col1 + ( col1 ) / 31 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + ( - 21 ) FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT ALL - col1 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col1 * 51 FROM tab0
----
4386
4641
4947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT - - ( - col2 ) * + 74 AS col2 FROM tab1 AS cor0
----
-3996
-4218
-7104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT DISTINCT CAST( + ( col2 ) * col1 AS SIGNED ) FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT CAST ( + ( col2 ) * col1 AS INTEGER ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT cor0.col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col1 * ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT col2 - ( col0 * - cor0.col0 + col2 ) FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT + + col0 DIV - 39 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4625
SELECT + + col0 / - 39 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT - - col1 * 68 + + col2 AS col1 FROM tab0 AS cor0
----
5881
6270
6597
query I rowsort
SELECT ALL col0 - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - + col2 + 14 * - col0 FROM tab0 cor0
----
-1328
-369
-491
query I rowsort
SELECT DISTINCT col1 + - 73 * - col2 FROM tab0 AS cor0
----
170
2495
6077
onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT ALL - col0 + + 54 DIV 28 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - col0 + + 54 / 28 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT + 4 - - col2 * - ( 74 ) AS col0 FROM tab1
----
-3992
-4214
-7100
onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT col1 * col2 - 74 DIV 93 col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4632
SELECT col1 * col2 - 74 / 93 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ( - tab1.col1 ) + + col2 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT + - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL col1 + - 18 AS col1 FROM tab0 AS cor0
----
68
73
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + - 13 * col0 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - 13 * col0 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col2 + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL - col0 + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 86 col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT ALL col2 * - tab2.col2 + - col0 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL col0 * 39 + col0 AS col2 FROM tab2
----
280
3120
3160
onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT + tab0.col2 * col1 DIV + col1 + - col1 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-4645
SELECT + tab0.col2 * col1 / + col1 + - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 + col2 * + col1 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT - 14 * col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT - col1 + col1 * 78 - - col2 FROM tab0 AS cor0
----
6655
7089
7470
query I rowsort
SELECT ALL col0 * col1 + col2 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col0 + + 21 FROM tab1 AS cor0
----
101
24
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT col0 DIV - 91 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4652
SELECT col0 / - 91 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 94 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 92 col1 FROM tab1
----
4968
5244
8832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - col2 ) ) col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 75 + - col0 AS col2 FROM tab1 AS cor0
----
-139
-155
-78
query I rowsort
SELECT + + ( + col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 98 * + col0 * - col1 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-101824
-62663
-7590
query I rowsort
SELECT DISTINCT - 7 + col2 FROM tab2 AS cor0
----
19
20
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT - cor0.col1 DIV ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4660
SELECT - cor0.col1 / ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - - col0 DIV 83 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4661
SELECT - - col0 / 83 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - 61 AS col2 FROM tab2 AS cor0
----
-2
-30
-44
query I rowsort
SELECT DISTINCT ( + cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431
onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT ALL - 45 + col0 DIV 91 + col1 FROM tab0 cor0
----
41
46
52
skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - 45 + col0 / 91 + col1 FROM tab0 cor0
----
41
46
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT DISTINCT - cor0.col0 - + col0 DIV - 60 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - cor0.col0 - + col0 / - 60 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT ALL + col1 * + col1 + col1 + col2 * - col0 FROM tab1 AS cor0
----
-3538
-7498
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT DISTINCT + col1 DIV + 22 + 64 AS col1 FROM tab1 AS cor0
----
64
65
skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT + col1 / + 22 + 64 AS col1 FROM tab1 AS cor0
----
64
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4669
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 / - CAST ( - col0 AS REAL ) + cor0.col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT + + col1 * + col0 * - col0 + - col1 FROM tab1 AS cor0
----
-260
-40970
-83213
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT + col1 + CAST( col0 AS SIGNED ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
skipif mysql # not compatible
query I rowsort label-4672
SELECT + col1 + CAST ( col0 AS INTEGER ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - col0 * + 81 FROM tab0 cor0
----
-1944
-2835
-7209
query I rowsort
SELECT - + cor0.col0 * - cor0.col0 + cor0.col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT + col1 + 35 * + col1 AS col0 FROM tab0 AS cor0
----
3096
3276
3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT + col1 DIV col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-4676
SELECT + col1 / col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4677
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32
query I rowsort
SELECT + col0 + 87 FROM tab1 cor0
----
151
167
90
query I rowsort
SELECT - 13 * - col2 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1635
-3382
-7033
query I rowsort
SELECT + - ( + 8 ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT DISTINCT - ( - col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 15 col2 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT - + col1 * 66 - - col1 * 85 FROM tab0 AS cor0
----
1634
1729
1843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab0, tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT - CAST( 93 AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
skipif mysql # not compatible
query I rowsort label-4686
SELECT - CAST ( 93 AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 + - col0 col0 FROM tab1 AS cor0
----
-11
-72
-88
query I rowsort
SELECT + - cor0.col2 * col2 + 64 * col0 AS col1 FROM tab1 AS cor0
----
-2724
-4096
847
query I rowsort
SELECT + 4 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - ( 3 ) AS col0 FROM tab1
----
-3
-3
-3
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT ALL col0 * col2 * CAST( NULL AS SIGNED ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL col0 * col2 * CAST ( NULL AS INTEGER ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT col0 * + col2 + + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - col2 * - col1 + 23 * + col0 AS col0 FROM tab1
----
1473
2042
3088
query I rowsort
SELECT + 55 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT 6 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL + tab1.col2 * + col2 * 21 + + col2 * tab1.col1 AS col1 FROM tab1
----
194784
62640
68799
onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT ALL + - col1 + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - col1 + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - 6 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-41
-7304
-798
query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * col2 + + 94 FROM tab1 AS cor0
----
-207842
-737186
-8654
query I rowsort
SELECT + col2 + col1 * col2 + 34 * - col0 FROM tab0 AS cor0
----
-1092
2055
4518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 * ( + col2 ) * + tab1.col2 + + 22 * col1 AS col1 FROM tab1
----
158036
185413
885022
query I rowsort
SELECT col2 + 43 FROM tab0
----
125
44
76
query I rowsort
SELECT DISTINCT - col2 + 37 * col1 + col0 AS col0 FROM tab1
----
377
465
911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT DISTINCT + col2 * 91 * ( - col0 ) + - CAST( - 86 AS SIGNED ) * col0 + - col1 * - col2 AS col1 FROM tab2
----
-15760
-176306
-265742
skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + col2 * 91 * ( - col0 ) + - CAST ( - 86 AS INTEGER ) * col0 + - col1 * - col2 AS col1 FROM tab2
----
-15760
-176306
-265742
query I rowsort
SELECT ALL - 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT - col0 * col0 + + col2 * col2 FROM tab1 AS cor0
----
-847
2816
2907
query I rowsort
SELECT + col0 * + col2 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1322
-19094
-649613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + ( - col1 ) * col2 col1 FROM tab1 cor0
----
-1242
3078
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4714
SELECT + - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4714
SELECT + - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( - ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 10 * + col2 + + col2 * - 55 AS col1 FROM tab2 AS cor0
----
-1170
-1215
-1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 - col0 * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 - col0 * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT DISTINCT - 40 DIV 43 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - 40 / 43 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT + ( - cor0.col0 ) * col2 + CAST( - col2 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4720
SELECT + ( - cor0.col0 ) * col2 + CAST ( - col2 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL 63 * ( col2 ) FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT + - 93 * 81 AS col0 FROM tab2 cor0
----
-7533
-7533
-7533
query I rowsort
SELECT + 63 + col1 * - col0 FROM tab2 AS cor0
----
-1280
-154
-4539
query I rowsort
SELECT + 29 * - cor0.col0 * + col2 FROM tab0 AS cor0
----
-1015
-211642
-22968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col1 * cor0.col2 col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab0 AS cor0
----
-63
query I rowsort
SELECT + + col1 * + col0 * + col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - ( col0 ) + + tab1.col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col2 * - ( + col1 ) + col1 FROM tab2
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL - - col0 * + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 * col2 col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - + col2 * 18 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT ALL - - col0 * + col1 + 25 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1447
249
4705
query I rowsort
SELECT col0 * tab2.col2 + + 32 FROM tab2
----
2060
221
3034
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-312
-474493
-493022
query I rowsort
SELECT + col0 + - cor0.col2 * 13 FROM tab0 AS cor0
----
-405
-977
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT col0 + col0 DIV + ( col0 ) - - col0 * + col1 FROM tab2
----
1423
225
4681
skipif mysql # not compatible
query I rowsort label-4741
SELECT col0 + col0 / + ( col0 ) - - col0 * + col1 FROM tab2
----
1423
225
4681
query I rowsort
SELECT 75 - 63 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT + col0 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-4743
SELECT + col0 + col2 / col0 AS col1 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT ALL + col0 + - 79 AS col0 FROM tab1 AS cor0
----
-15
-76
1
query I rowsort
SELECT - - col0 * + 15 + + cor0.col2 + + cor0.col2 FROM tab1 cor0
----
1074
1392
153
query I rowsort
SELECT ALL - col1 + - col1 * 17 AS col1 FROM tab0 AS cor0
----
-1548
-1638
-1746
query I rowsort
SELECT ALL - col0 + + col0 * tab2.col1 + col1 AS col0 FROM tab2
----
1281
241
4583
query I rowsort
SELECT ALL col2 * col0 + tab0.col2 AS col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT + - col0 - col0 * - col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - 4 * - col1 FROM tab2 cor0
----
124
236
68
query I rowsort
SELECT DISTINCT - + 20 * + col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT ALL + 53 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
1093
131
693
query I rowsort
SELECT - - 4 + + cor0.col1 FROM tab0 AS cor0
----
101
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT ALL + 56 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + 56 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT - col0 - + cor0.col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT ALL - ( + col2 ) DIV + col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - ( + col2 ) / + col0 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL + - col0 * - cor0.col0 + 99 DIV col1 AS col1 FROM tab1 AS cor0
----
12
4105
6407
skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + - col0 * - cor0.col0 + 99 / col1 AS col1 FROM tab1 AS cor0
----
12
4105
6407
query I rowsort
SELECT col2 + + col0 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT + col2 DIV + col0 + col0 * + col1 * + col2 FROM tab1 cor0
----
36480
4230
99841
skipif mysql # not compatible
query I rowsort label-4759
SELECT + col2 / + col0 + col0 * + col1 * + col2 FROM tab1 cor0
----
36480
4230
99841
onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT + - cor1.col0 DIV 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + - cor1.col0 / 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2
-3
0
query I rowsort
SELECT DISTINCT - col1 * 95 * ( + cor0.col0 ) FROM tab2 AS cor0
----
-127585
-20615
-437190
query I rowsort
SELECT - 63 * - col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT DISTINCT + - col0 + col2 * + col0 + - col2 * col1 AS col0 FROM tab1 cor0
----
-1245
3014
6352
query I rowsort
SELECT ALL - cor1.col0 + + 50 * - 6 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to a3ae1547f581a546af656cae560da456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 43 * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43 * + col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab1 cor0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT + 7 + col0 * - col1 FROM tab0 AS cor0
----
-2057
-3388
-8092
query I rowsort
SELECT 25 + col2 * tab2.col2 AS col0 FROM tab2
----
1469
701
754
query I rowsort
SELECT ALL tab2.col2 * + 66 FROM tab2
----
1716
1782
2508
query I rowsort
SELECT + - 10 FROM tab2 cor0
----
-10
-10
-10
query I rowsort
SELECT + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 30 + col1 * - col1 FROM tab0 AS cor0
----
-7366
-8251
-9379
query I rowsort
SELECT - 5 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT - - 44 * col1 FROM tab0 AS cor0
----
3784
4004
4268
query I rowsort
SELECT ALL + - cor0.col1 * - col2 + col0 - - col2 * - col0 AS col0 FROM tab1 cor0
----
-3014
-6352
1245
query I rowsort
SELECT ALL col2 * - col0 * + col2 AS col1 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT - col0 DIV 47 + ( col1 ) * + col1 + - col1 FROM tab0 AS cor0
----
7310
8189
9312
skipif mysql # not compatible
query I rowsort label-4778
SELECT - col0 / 47 + ( col1 ) * + col1 + - col1 FROM tab0 AS cor0
----
7310
8189
9312
query I rowsort
SELECT col0 + col2 + 36 AS col1 FROM tab2 AS cor0
----
140
153
70
query I rowsort
SELECT - col0 + - 34 AS col2 FROM tab1 AS cor0
----
-114
-37
-98
query I rowsort
SELECT + col1 * - col2 + col0 + col2 AS col1 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT - 59 * - col2 * - col0 FROM tab2 AS cor0
----
-11151
-119652
-177118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * tab2.col1 col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 AS col1 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT - + cor0.col0 * + ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT 93 DIV + 63 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-4786
SELECT 93 / + 63 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT + col0 + ( - 48 + + col2 ) AS col1 FROM tab2
----
-14
56
69
query I rowsort
SELECT - col1 - 61 FROM tab1
----
-71
-74
-87
query I rowsort
SELECT DISTINCT - - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 3 * - col1 + 32 * col2 * col0 FROM tab1 AS cor0
----
116766
245799
5262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT ALL - col0 + - col1 + CAST( NULL AS DECIMAL ) * - col1 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - col0 + - col1 + CAST ( NULL AS REAL ) * - col1 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 * + 19 FROM tab1
----
1216
1520
57
query I rowsort
SELECT ( tab0.col1 + - col2 ) AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - ( col0 + - col0 ) AS col2 FROM tab2
----
0
query I rowsort
SELECT ( - 17 ) * - col1 FROM tab0
----
1462
1547
1649
query I rowsort
SELECT 60 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
query I rowsort
SELECT ALL 49 - col0 AS col2 FROM tab1
----
-15
-31
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT ALL + CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - - col0 * - col0 * col2 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT col1 * + col0 + 48 FROM tab0 AS cor0
----
2112
3443
8147
onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT + col0 DIV + col0 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4801
SELECT + col0 / + col0 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL - 1 + col2 AS col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL 38 - + col0 AS col1 FROM tab0 AS cor0
----
-51
14
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL - - col1 + + col1 * cor0.col0 DIV - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - - col1 + + col1 * cor0.col0 / - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 * - col1 * - col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT col0 * - col2 + - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT - 92 + col2 AS col1 FROM tab0 cor0
----
-10
-59
-91
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * col2 + + col0 * col0 FROM tab0 AS cor0
----
-513
1197
1224
onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT - col0 + col1 DIV col1 FROM tab1 cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - col0 + col1 / col1 FROM tab1 cor0
----
-2
-63
-79
query I rowsort
SELECT col2 * - col2 + - col2 * - 57 * - col0 FROM tab0
----
-1996
-422710
-46233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + col1 col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - 63 + col1 AS col1 FROM tab2
----
-32
-4
-46
query I rowsort
SELECT ALL tab2.col0 + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - col1 + tab0.col0 + - 78 FROM tab0
----
-140
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT - 25 DIV 10 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
skipif mysql # not compatible
query I rowsort label-4815
SELECT - 25 / 10 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT ALL + 69 + + tab0.col1 * + col1 AS col2 FROM tab0
----
7465
8350
9478
query I rowsort
SELECT - + 52 * - tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b5fe9389dfaa2a94e671cb4bd04dd8f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT + ( tab0.col2 ) + col0 * + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT cor0.col0 * - 72 AS col1 FROM tab0, tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT ALL + + 55 AS col2 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT col2 + col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2121
3431
8270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2, tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT + col2 DIV col0 + col1 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-4825
SELECT + col2 / col0 + col1 FROM tab2 AS cor0
----
17
34
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT ALL cor0.col0 + col1 * col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL cor0.col0 + col1 * col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col2 * cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col1 - ( + col2 ) * col0 FROM tab0 cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * 4 + col1 col2 FROM tab1 AS cor0
----
-2270
-4979
-5590
onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT - col2 + col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4830
SELECT - col2 + col0 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col2 * + col0 * + col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL 32 + col2 * - col2 AS col1 FROM tab1
----
-2884
-3217
-9184
query I rowsort
SELECT + col1 * - col2 + + col1 * + 57 FROM tab2
----
1829
323
930
query I rowsort
SELECT 8 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 + + ( col1 + col1 * col0 ) FROM tab0 AS cor0
----
2174
3527
8279
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT ALL - col1 * - CAST( col0 + col1 * - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-21488
-266916
-6510
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - col1 * - CAST ( col0 + col1 * - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-21488
-266916
-6510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT ALL + CAST( + 79 AS SIGNED ) * col0 * - 36 col0 FROM tab0 AS cor0
----
-253116
-68256
-99540
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + CAST ( + 79 AS INTEGER ) * col0 * - 36 col0 FROM tab0 AS cor0
----
-253116
-68256
-99540
query I rowsort
SELECT + col0 + + ( col2 ) FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT ALL + CAST( col1 AS SIGNED ) + col0 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + 56 * + col1 AS col1 FROM tab0 AS cor0
----
4816
5096
5432
onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT DISTINCT - + col2 DIV + 85 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - + col2 / + 85 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 20 + col0 * col0 * - ( col2 ) - col1 AS col0 FROM tab2 cor0
----
-1334
-158223
-237155
query I rowsort
SELECT + - col1 * 30 * cor0.col0 FROM tab1 AS cor0
----
-19200
-2340
-31200
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - ( + 9 ) FROM tab2 AS cor0
----
-9
query I rowsort
SELECT DISTINCT 51 + + 60 * - col0 * - col0 FROM tab0 cor0
----
34611
475311
73551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT + col2 DIV - CAST( 71 * - col0 AS SIGNED ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + col2 / - CAST ( 71 * - col0 AS INTEGER ) AS col2 FROM tab0
----
0
query I rowsort
SELECT ALL - + 71 FROM tab0 cor0
----
-71
-71
-71
query I rowsort
SELECT ALL - col0 + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - cor0.col0 * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + + 68 + - col0 FROM tab2 AS cor0
----
-10
-11
61
query I rowsort
SELECT DISTINCT + 39 * ( - col1 ) FROM tab2 AS cor0
----
-1209
-2301
-663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT ALL + - 95 DIV 16 AS col1 FROM tab1 AS cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - 95 / 16 AS col1 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - 42 * col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT + 75 * - col2 + - 62 FROM tab2 AS cor0
----
-2012
-2087
-2912
query I rowsort
SELECT + col1 * - ( - col1 * + col1 ) - + col2 AS col0 FROM tab1
----
17522
2101
943
query I rowsort
SELECT DISTINCT 8 - col2 AS col2 FROM tab0
----
-25
-74
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + - col1 DIV + col1 - col1 * 25 FROM tab1 AS cor0
----
-251
-326
-651
skipif mysql # not compatible
query I rowsort label-4859
SELECT + - col1 / + col1 - col1 * 25 FROM tab1 AS cor0
----
-251
-326
-651
query I rowsort
SELECT ALL - ( + 62 ) AS col0 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT + 51 * + cor0.col0 + - cor0.col1 DIV 31 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 658367bd29f67b2fd3e3b321cdbaac22
skipif mysql # not compatible
query I rowsort label-4861
SELECT + 51 * + cor0.col0 + - cor0.col1 / 31 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 658367bd29f67b2fd3e3b321cdbaac22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * + col1 * 18 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * + col1 * 18 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT DISTINCT + CAST( col0 AS SIGNED ) * tab2.col2 AS col2 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * tab2.col2 AS col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + col2 * + col1 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - - ( - ( - col2 ) ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + 21 + - cor0.col2 FROM tab2 AS cor0
----
-17
-5
-6
query I rowsort
SELECT + col1 + + col1 + col1 AS col2 FROM tab0 cor0
----
258
273
291
query I rowsort
SELECT ALL + col1 * - ( + 88 ) * - col2 FROM tab0 AS cor0
----
249744
656656
8536
query I rowsort
SELECT DISTINCT col2 * 87 AS col0 FROM tab0 AS cor0
----
2871
7134
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 * 38 AS col2 FROM tab0 AS cor0
----
-1254
-3116
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4875
SELECT col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4875
SELECT col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - ( col2 ) AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + 59 + + tab1.col0 AS col2 FROM tab1
----
123
139
62
query I rowsort
SELECT col0 * 27 + 95 FROM tab2 AS cor0
----
2201
2228
284
query I rowsort
SELECT cor0.col0 + col0 + - 74 * col1 FROM tab2 AS cor0
----
-1100
-2280
-4210
query I rowsort
SELECT 24 * col2 AS col0 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT DISTINCT - 38 * - col2 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT DISTINCT 16 + 30 DIV + col0 AS col0 FROM tab2 AS cor0
----
16
20
skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT 16 + 30 / + col0 AS col0 FROM tab2 AS cor0
----
16
20
query I rowsort
SELECT ALL 77 * + 14 + + col2 AS col2 FROM tab2 AS cor0
----
1104
1105
1116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 82 * cor0.col0 col1 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL + - 43 + 88 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT col1 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + cor0.col0 + + 41 FROM tab0 AS cor0
----
130
65
76
query I rowsort
SELECT DISTINCT cor0.col2 + - 46 AS col0 FROM tab2, tab0, tab1 AS cor0
----
11
50
8
query I rowsort
SELECT ALL 10 + + tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f61e00821209332259822747e9f86b3b
query I rowsort
SELECT - 66 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT 81 FROM tab0, tab2 AS cor0
----
81
query I rowsort
SELECT DISTINCT col0 * ( 12 ) AS col1 FROM tab0
----
1068
288
420
query I rowsort
SELECT tab2.col2 * col2 * col2 AS col0 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT + col1 * ( + 67 * - col0 ) FROM tab0
----
-138288
-227465
-542633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4895
SELECT + CAST( NULL AS SIGNED ) * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4895
SELECT + CAST ( NULL AS INTEGER ) * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + col2 col1 FROM tab1
----
131
189
83
query I rowsort
SELECT cor0.col1 + 91 FROM tab0, tab0 AS cor0
----
9 values hashing to eb9deaabaf40ef0d84f95958c4266091
onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT DISTINCT - col1 * 28 DIV - 5 + cor0.col2 FROM tab1 AS cor0
----
113
168
199
skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - col1 * 28 / - 5 + cor0.col2 FROM tab1 AS cor0
----
113
168
199
query I rowsort
SELECT ALL 83 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-4456
-4721
-7955
query I rowsort
SELECT DISTINCT - col2 - + col2 * - 27 FROM tab2
----
676
702
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4901
SELECT - col0 * + CAST( - col2 AS SIGNED ) * + col2 - ( col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
111074
4914
50700
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4901
SELECT - col0 * + CAST ( - col2 AS INTEGER ) * + col2 - ( col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
111074
4914
50700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - col1 - col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT + col2 + 84 AS col1 FROM tab2 cor0
----
110
111
122
query I rowsort
SELECT + + cor0.col1 + col1 + - col0 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT + col2 * cor0.col2 + 51 AS col1 FROM tab1 AS cor0
----
2967
3300
9267
onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT col2 DIV col1 + col1 * - 5 + col0 DIV + col1 FROM tab2 AS cor0
----
-155
-294
-79
skipif mysql # not compatible
query I rowsort label-4907
SELECT col2 / col1 + col1 * - 5 + col0 / + col1 FROM tab2 AS cor0
----
-155
-294
-79
query I rowsort
SELECT 49 * - col1 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT DISTINCT + + 75 * col0 FROM tab0 cor0
----
1800
2625
6675
query I rowsort
SELECT + 90 + col2 * - ( col0 * + col0 ) FROM tab2 AS cor0
----
-1233
-158094
-237068
onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT col2 + - col1 DIV + col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT col2 + - col1 / + col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT + 71 * cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-26
2257
5731
query I rowsort
SELECT DISTINCT 49 * + col2 FROM tab0 AS cor0
----
1617
4018
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4914
SELECT ALL + col2 + + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + col2 + + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * col1 + - col1 FROM tab2 cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT + col0 DIV col2 + - col2 * + col0 FROM tab0 AS cor0
----
-7297
-792
0
skipif mysql # not compatible
query I rowsort label-4916
SELECT + col0 / col2 + - col2 * + col0 FROM tab0 AS cor0
----
-7297
-792
0
query I rowsort
SELECT ALL + col0 * - col2 + 57 FROM tab2 AS cor0
----
-132
-1971
-2945
query I rowsort
SELECT ALL + col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col1 * 42 * col1 FROM tab1 AS cor0
----
28392
4200
7098
query I rowsort
SELECT DISTINCT - col2 + 4 FROM tab1 AS cor0
----
-50
-53
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT DISTINCT + 96 + col0 DIV + col2 AS col2 FROM tab0
----
131
96
97
skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + 96 + col0 / + col2 AS col2 FROM tab0
----
131
96
97
query I rowsort
SELECT col2 * - col0 - + col0 AS col1 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT col2 + - 11 * + col0 FROM tab0 AS cor0
----
-231
-384
-897
query I rowsort
SELECT ALL + 39 * col0 FROM tab0 AS cor0
----
1365
3471
936
query I rowsort
SELECT + col2 - col0 * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT - 60 + - 15 DIV col2 FROM tab0 AS cor0
----
-60
-60
-75
skipif mysql # not compatible
query I rowsort label-4926
SELECT - 60 + - 15 / col2 FROM tab0 AS cor0
----
-60
-60
-75
query I rowsort
SELECT DISTINCT - 60 * 93 + - col0 AS col2 FROM tab0 AS cor0
----
-5604
-5615
-5669
query I rowsort
SELECT 9 - col1 AS col1 FROM tab0 AS cor0
----
-77
-82
-88
query I rowsort
SELECT ALL - ( col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab0, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + - ( + cor0.col1 ) * + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT ALL + CAST( NULL AS SIGNED ) * col0 - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + 15 AS col1 FROM tab1, tab1 cor0, tab0, tab1 AS cor1
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to a87c024a0045fd44371c9b28640799d7
query I rowsort
SELECT + 96 * col1 AS col2 FROM tab2
----
1632
2976
5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT + col2 * col0 + + col1 * + tab0.col0 + col1 DIV + ( + col0 ) AS col1 FROM tab0
----
15398
2859
3432
skipif mysql # not compatible
query I rowsort label-4936
SELECT + col2 * col0 + + col1 * + tab0.col0 + col1 / + ( + col0 ) AS col1 FROM tab0
----
15398
2859
3432
query I rowsort
SELECT - 63 + col2 * 77 AS col1 FROM tab2
----
1939
2016
2863
query I rowsort
SELECT + col1 + + cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
7506
8461
9541
query I rowsort
SELECT - 84 * + col2 - 89 AS col0 FROM tab2 AS cor0
----
-2273
-2357
-3281
query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT cor0.col1 + col1 * CAST( 92 * col2 AS SIGNED ) + + 41 AS col0 FROM tab0 cor0
----
261223
686636
9062
skipif mysql # not compatible
query I rowsort label-4942
SELECT cor0.col1 + col1 * CAST ( 92 * col2 AS INTEGER ) + + 41 AS col0 FROM tab0 cor0
----
261223
686636
9062
query I rowsort
SELECT ALL - col0 * col0 * - ( col1 ) FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT col1 * - 16 FROM tab2
----
-272
-496
-944
query I rowsort
SELECT tab2.col2 - - col1 * - ( col1 ) * col1 AS col2 FROM tab2
----
-205353
-29764
-4875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT DISTINCT - col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col1 * + col1 - cor0.col1 * + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT ALL - cor0.col1 DIV + 77 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - cor0.col1 / + 77 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT + + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - - col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 27 * - col2 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT DISTINCT 24 * + col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
16165
17465
34639
query I rowsort
SELECT DISTINCT col0 * 81 * - col2 - + 28 AS col1 FROM tab2 AS cor0
----
-15337
-164296
-243190
query I rowsort
SELECT ALL - - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
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 - 8 + col2 AS col0 FROM tab1 AS cor0
----
46
49
88
query I rowsort
SELECT DISTINCT - - ( + col2 ) * - cor0.col0 - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - ( - col1 ) + + col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL 7 * - 58 * col2 AS col0 FROM tab1 AS cor0
----
-21924
-23142
-38976
query I rowsort
SELECT DISTINCT + ( 20 ) + col0 FROM tab2 cor0
----
27
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - 82 - 57 col1 FROM tab1 AS cor0
----
4371
4617
7815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 - col2 col0 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT + - 73 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-73
query I rowsort
SELECT DISTINCT + - col2 * + 92 - + 80 AS col1 FROM tab1 AS cor0
----
-5048
-5324
-8912
query I rowsort
SELECT + col2 + - col2 * col0 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT col1 + + ( col0 ) AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT ( 14 ) AS col2 FROM tab0 AS cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT col2 DIV 90 - col0 FROM tab1 AS cor0
----
-3
-64
-79
skipif mysql # not compatible
query I rowsort label-4969
SELECT col2 / 90 - col0 FROM tab1 AS cor0
----
-3
-64
-79
query I rowsort
SELECT 47 AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
query I rowsort
SELECT cor0.col2 * 86 + col1 AS col2 FROM tab0 AS cor0
----
183
2924
7143
query I rowsort
SELECT ALL 84 * col1 AS col1 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT + + 0 * + 95 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + + 49 AS col0 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT DISTINCT + col2 - + 41 * col0 AS col2 FROM tab0 AS cor0
----
-1434
-3567
-951
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col1 * 72 * col0 AS col2 FROM tab2 AS cor0
----
15631
331422
96775
query I rowsort
SELECT ALL - 32 + + col0 - col1 * - ( col0 * - col1 ) FROM tab2 AS cor0
----
-22784
-271472
-6752
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT ALL + col2 * col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-112
-324
-708
skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + col2 * col2 / - col1 AS col2 FROM tab1 AS cor0
----
-112
-324
-708
query I rowsort
SELECT - col1 * col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) + ( 20 ) * - col1 AS col1 FROM tab0 AS cor0
----
5676
6461
7469
query I rowsort
SELECT DISTINCT + - 72 * - 78 - col2 AS col1 FROM tab0 AS cor0
----
5534
5583
5615
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT CAST( col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col1 * col2 + - 81 AS col0 FROM tab1 AS cor0
----
-1329
-1485
-651
query I rowsort
SELECT ALL + cor0.col2 - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 + cor0.col1 * + 48 col2 FROM tab1 AS cor0
----
-160
-416
1170
query I rowsort
SELECT col1 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - 55 + col1 * - col2 * col0 FROM tab2
----
-119707
-51089
-5914
query I rowsort
SELECT + ( + cor0.col2 ) + 12 FROM tab0 AS cor0
----
13
45
94
query I rowsort
SELECT + + 15 * col1 FROM tab0 cor0
----
1290
1365
1455
query I rowsort
SELECT + - cor0.col1 * col1 - - 39 * col0 FROM tab2 AS cor0
----
-439
-688
2792
query I rowsort
SELECT - + ( col2 ) - 33 * + col2 AS col0 FROM tab2 AS cor0
----
-1292
-884
-918
query I rowsort
SELECT 26 + col0 FROM tab0 cor0
----
115
50
61
query I rowsort
SELECT - + cor0.col2 + + col2 * - 50 + - col0 AS col2 FROM tab2 AS cor0
----
-1384
-1404
-2017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT + cor0.col2 * col0 * CAST( col1 AS SIGNED ) FROM tab0 cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-4994
SELECT + cor0.col2 * col0 * CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT + col2 + col1 * ( - col1 * cor0.col1 ) FROM tab2 AS cor0
----
-205353
-29764
-4875
query I rowsort
SELECT - ( + 29 ) * - col0 FROM tab2
----
203
2262
2291
query I rowsort
SELECT DISTINCT 77 + 86 + + tab0.col1 AS col0 FROM tab0
----
249
254
260
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) * col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + 92 * col0 + - col1 * + 56 FROM tab1 AS cor0
----
-1180
5328
6632
query I rowsort
SELECT + col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - - col0 * - col0 col1 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 60 * - 59 FROM tab2, tab1, tab2 AS cor0
----
-3540
query I rowsort
SELECT col0 * + 26 AS col2 FROM tab2
----
182
2028
2054
onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT cor0.col0 + + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-5006
SELECT cor0.col0 + + cor0.col2 / - col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT ALL - cor0.col2 * 42 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 95c17677382ac468647b0ea91234eb16
query I rowsort
SELECT 50 * 59 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 7c1e79aeeb4406ab6adc0fc492b42e66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT - col0 * - 21 + + cor0.col1 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
151
1638
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5009
SELECT - col0 * - 21 + + cor0.col1 / + cor0.col0 col2 FROM tab2 AS cor0
----
151
1638
1659
query I rowsort
SELECT ALL col1 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + col0 - - 68 FROM tab2 AS cor0
----
146
147
75
query I rowsort
SELECT DISTINCT - cor0.col1 * + 68 AS col0 FROM tab0 cor0
----
-5848
-6188
-6596
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT - + col1 DIV ( 78 ) - col1 * ( - ( + col0 ) ) DIV - 73 FROM tab1 AS cor0
----
-1
-14
-8
skipif mysql # not compatible
query I rowsort label-5013
SELECT - + col1 / ( 78 ) - col1 * ( - ( + col0 ) ) / - 73 FROM tab1 AS cor0
----
-1
-14
-8
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * col2 - + ( - col0 ) FROM tab1 AS cor0
----
1315
1381
624
query I rowsort
SELECT col1 + ( - col2 ) FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * + col1 / - col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * + col1 / - col0 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT DISTINCT col1 + CAST( 46 AS SIGNED ) * + tab2.col1 DIV - tab2.col1 FROM tab2
----
-15
-29
13
skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT col1 + CAST ( 46 AS INTEGER ) * + tab2.col1 / - tab2.col1 FROM tab2
----
-15
-29
13
query I rowsort
SELECT DISTINCT 94 * + col2 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
135815
63622
68533
query I rowsort
SELECT ALL + col0 - + cor0.col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT DISTINCT - col0 * col0 DIV - tab2.col1 + ( + 31 ) * + col2 * 76 AS col1 FROM tab2
----
61359
63613
89895
skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - col0 * col0 / - tab2.col1 + ( + 31 ) * + col2 * 76 AS col1 FROM tab2
----
61359
63613
89895
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ALL col2 + cor0.col2 DIV col0 AS col0 FROM tab2 cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL col2 + cor0.col2 / col0 AS col0 FROM tab2 cor0
----
26
30
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 - - 24 col0 FROM tab2 AS cor0
----
21
query I rowsort
SELECT + + 54 + + 82 * col1 AS col2 FROM tab1 cor0
----
1120
2186
874
onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT DISTINCT col2 DIV + 33 + + col1 * 87 AS col2 FROM tab1 AS cor0
----
1133
2263
871
skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT col2 / + 33 + + col1 * 87 AS col2 FROM tab1 AS cor0
----
1133
2263
871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT ALL CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 84 * col1 + col2 FROM tab0 AS cor0
----
7257
7726
8149
query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT + - CAST( NULL AS DECIMAL ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5028
SELECT + - CAST ( NULL AS REAL ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT ALL + + 88 DIV col2 + col2 AS col1 FROM tab1 cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + 88 / col2 + col2 AS col1 FROM tab1 cor0
----
55
58
96
query I rowsort
SELECT + col2 * 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT ALL - col0 * col2 + + col0 * col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col1 + cor0.col1 * 96 * - col2 AS col2 FROM tab1 AS cor0
----
-119821
-134810
-54730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col0 col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL - 38 DIV + col0 FROM tab2 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - 38 / + col0 FROM tab2 AS cor0
----
-5
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT DISTINCT + - col2 + + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + - col2 + + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT + col0 * - col0 * - 94 FROM tab0 AS cor0
----
115150
54144
744574
query I rowsort
SELECT DISTINCT - - col1 * - 83 AS col2 FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT DISTINCT col0 * - col0 * tab2.col2 AS col0 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT DISTINCT - col0 + col2 DIV 72 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - col0 + col2 / 72 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col0 * + ( col2 * - col2 + + 2 ) FROM tab1 AS cor0
----
-207808
-737120
-8742
query I rowsort
SELECT - col1 * + col2 * 36 AS col0 FROM tab0 AS cor0
----
-102168
-268632
-3492
query I rowsort
SELECT DISTINCT + 4 * + col2 AS col0 FROM tab1
----
216
228
384
query I rowsort
SELECT - 60 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT DISTINCT + 74 FROM tab2
----
74
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + - col1 * + col0 + ( - cor0.col0 ) * cor0.col1 FROM tab0 AS cor0
----
-3552
-5565
-8277
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
86
91
97
query I rowsort
SELECT ALL col1 + ( 23 ) FROM tab2 cor0
----
40
54
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - col1 DIV - col1 + - col1 * tab2.col1 AS col0 FROM tab2
----
-288
-3480
-960
skipif mysql # not compatible
query I rowsort label-5048
SELECT - col1 / - col1 + - col1 * tab2.col1 AS col0 FROM tab2
----
-288
-3480
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 90 * cor0.col2 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT + col2 + + ( + col2 ) * col0 + + col0 FROM tab0
----
71
7469
849
query I rowsort
SELECT ALL tab2.col2 + 38 FROM tab2
----
64
65
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT ALL - col2 * col2 + - col2 DIV - CAST( col0 * + col2 AS SIGNED ) AS col2 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - col2 * col2 + - col2 / - CAST ( col0 * + col2 AS INTEGER ) AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 AS col0 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - - 75 * + col0 + + col1 * + 51 AS col2 FROM tab1 AS cor0
----
1551
5310
6663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - col0 + ( - 4 ) col0 FROM tab2 AS cor0
----
-46
-472
-478
query I rowsort
SELECT ALL - + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 30 * - tab2.col2 + - col2 FROM tab2
----
1102
754
783
query I rowsort
SELECT - col2 * + ( + col2 ) + tab0.col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ( + ( col0 ) ) + - col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT col1 * + 74 + col1 AS col1 FROM tab1
----
1950
750
975
query I rowsort
SELECT + ( tab0.col0 ) + ( - col1 + - tab0.col1 ) FROM tab0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL - - 37 DIV + col2 + - ( col1 ) * col1 + 50 DIV col1 FROM tab1 AS cor0
----
-166
-675
-95
skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - - 37 / + col2 + - ( col1 ) * col1 + 50 / col1 FROM tab1 AS cor0
----
-166
-675
-95
query I rowsort
SELECT - - col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 cor0
----
94
query I rowsort
SELECT + 56 * - col2 AS col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT 0 + col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 49 * + col0 + - col2 FROM tab1 AS cor0
----
-201
-3193
-4016
onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT - col1 * col0 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5069
SELECT - col1 * col0 / col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - 89 AS col2 FROM tab1 AS cor0
----
89
query I rowsort
SELECT + 59 + + col1 * + 36 FROM tab1 AS cor0
----
419
527
995
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + + 77 col2 FROM tab2 AS cor0
----
1611
723
914
query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0 AS cor0
----
86
query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col2 - + 40 FROM tab1 AS cor0
----
14
17
56
query I rowsort
SELECT ( - 69 ) FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT - ( + 93 ) + col1 * col2 * ( col2 ) + col2 FROM tab0 cor0
----
5
611873
93594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( NULL AS DECIMAL ) * - col1 + col0 * + 5 + + 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( NULL AS REAL ) * - col1 + col0 * + 5 + + 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT ALL + tab1.col0 * ( - col0 ) DIV col0 AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + tab1.col0 * ( - col0 ) / col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 * 33 AS col2 FROM tab1
----
2112
2640
99
query I rowsort
SELECT 30 * col1 * - col1 + + ( - 20 ) FROM tab0
----
-221900
-248450
-282290
query I rowsort
SELECT - 59 * col2 AS col1 FROM tab2
----
-1534
-1593
-2242
query I rowsort
SELECT 57 * tab2.col2 FROM tab2, tab2 cor0
----
9 values hashing to 4c6548c0f5af5408e3f2bca06071606c
query I rowsort
SELECT - 55 * + col1 + col0 FROM tab0 AS cor0
----
-4706
-4916
-5300
query I rowsort
SELECT + - ( + col2 ) + - col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT + ( cor0.col2 ) * cor0.col2 + + 93 AS col1 FROM tab1 AS cor0
----
3009
3342
9309
onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT ALL + col2 * - col0 DIV - col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + col2 * - col0 / - col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + 84 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab0, tab1, tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT - col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5090
SELECT - col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - tab0.col1 * - col1 + tab0.col0 * col2 FROM tab0
----
15579
8188
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT DISTINCT 68 DIV - col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT 68 / - col0 FROM tab0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5094
SELECT + - col0 * CAST( NULL AS SIGNED ) - - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5094
SELECT + - col0 * CAST ( NULL AS INTEGER ) - - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + + 86 * - col0 * col2 AS col0 FROM tab2 cor0
----
-16227
-174382
-258134
query I rowsort
SELECT - col2 * 22 AS col2 FROM tab0 AS cor0
----
-1804
-22
-726
onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT + col2 DIV 47 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT + col2 / 47 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 * - cor0.col2 * + col2 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT + col1 - - 69 * + 54 AS col0 FROM tab2
----
3743
3757
3785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) - cor0.col1 col1 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5101
SELECT DISTINCT CAST( - col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 56 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
30
43
46
query I rowsort
SELECT + col0 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col0 col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT ALL - + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - 65 + col0 AS col0 FROM tab0 AS cor0
----
-30
-41
24
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 55 AS REAL ) + + col2 FROM tab2 cor0
----
-17
-28
-29
query I rowsort
SELECT + 13 * col2 - - col1 * - 86 FROM tab2 cor0
----
-2315
-4736
-968
query I rowsort
SELECT + col2 * 91 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT ALL - 63 * cor0.col0 AS col0 FROM tab2 cor0
----
-441
-4914
-4977
query I rowsort
SELECT ALL + 94 * col2 + col0 AS col0 FROM tab0
----
129
3126
7797
onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT + + col0 * col0 DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5113
SELECT + + col0 * col0 / + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + - 49 col0 FROM tab2 AS cor0
----
0
6035
6192
query I rowsort
SELECT - cor0.col0 + + col1 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - - 51 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
2728
2897
4883
query I rowsort
SELECT 14 + - col2 + + cor0.col0 FROM tab1 AS cor0
----
-2
-37
21
query I rowsort
SELECT - 41 * - col0 * - col1 + 86 FROM tab0 AS cor0
----
-139109
-331973
-84538
query I rowsort
SELECT DISTINCT + col2 * 92 + col0 * col0 + col0 FROM tab0 AS cor0
----
1352
15554
3636
onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT DISTINCT - - col0 * col2 + col1 DIV col0 FROM tab1 AS cor0
----
170
3648
7680
skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - - col0 * col2 + col1 / col0 FROM tab1 AS cor0
----
170
3648
7680
query I rowsort
SELECT ALL ( + col2 ) * cor0.col2 * - cor0.col2 + col1 * col0 + + col2 * col1 FROM tab0 AS cor0
----
-31035
-535807
3491
query I rowsort
SELECT DISTINCT col0 * + col0 * + 39 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
23256
316217
47810
query I rowsort
SELECT col2 - col0 * - col1 AS col2 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * col1 col0 FROM tab0 AS cor0
----
1204
1274
1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 + - col1 col2 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - 68 + + ( col1 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5126
SELECT - 68 + + ( col1 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 / + col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 / + col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT 62 * col2 - col2 FROM tab1
----
3294
3477
5856
onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT 23 + + col0 DIV - col1 AS col2 FROM tab0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-5129
SELECT 23 + + col0 / - col1 AS col2 FROM tab0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab0 AS cor0
----
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT DISTINCT col2 DIV - 30 + - ( - col1 ) AS col2 FROM tab1
----
10
25
9
skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT col2 / - 30 + - ( - col1 ) AS col2 FROM tab1
----
10
25
9
query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT DISTINCT - cor0.col2 DIV - tab1.col2 + - cor0.col0 FROM tab1, tab1 AS cor0
----
-2
-3
-63
-64
-79
skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - cor0.col2 / - tab1.col2 + - cor0.col0 FROM tab1, tab1 AS cor0
----
-2
-3
-63
-64
-79
query I rowsort
SELECT ALL - 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT + col0 DIV 15 + cor0.col2 FROM tab2 AS cor0
----
27
31
43
skipif mysql # not compatible
query I rowsort label-5135
SELECT + col0 / 15 + cor0.col2 FROM tab2 AS cor0
----
27
31
43
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1, tab0 cor0, tab2 cor1, tab0, tab0 AS cor2
----
-7
-78
-79
query I rowsort
SELECT - col0 + - 59 FROM tab1
----
-123
-139
-62
query I rowsort
SELECT - - col0 * - 1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - ( + 87 ) * + col2 * col0 AS col1 FROM tab0 AS cor0
----
-3045
-634926
-68904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5140
SELECT 49 * cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5140
SELECT 49 * cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT cor0.col1 + 77 AS col1 FROM tab1 AS cor0
----
103
87
90
query I rowsort
SELECT DISTINCT 77 + + col0 AS col1 FROM tab0 AS cor0
----
101
112
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5144
SELECT ALL + + col2 * col2 / - col2 - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + + col2 * col2 / - col2 - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - - cor0.col1 * 10 + col2 * ( - 32 ) FROM tab2 AS cor0
----
-1046
-242
-554
query I rowsort
SELECT ALL - cor0.col0 * - 87 FROM tab2 AS cor0
----
609
6786
6873
query I rowsort
SELECT 42 * - ( cor0.col0 * - 40 ) AS col2 FROM tab1 AS cor0
----
107520
134400
5040
query I rowsort
SELECT ALL - 82 * - col2 FROM tab1 cor0
----
4428
4674
7872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5150
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 35 + - col1 AS col1 FROM tab0 AS cor0
----
-121
-126
-132
query I rowsort
SELECT + 37 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1368
-936
-972
query I rowsort
SELECT DISTINCT cor0.col2 * + 85 FROM tab2, tab1 AS cor0
----
4590
4845
8160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT ALL col2 + - col0 * + col1 AS col0 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT tab1.col1 * 8 * + col1 AS col1 FROM tab1
----
1352
5408
800
query I rowsort
SELECT ALL col0 + col1 * + 97 AS col2 FROM tab1
----
1034
1341
2525
query I rowsort
SELECT cor0.col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT col1 * 64 DIV col2 + col0 AS col2 FROM tab1 AS cor0
----
33
75
88
skipif mysql # not compatible
query I rowsort label-5160
SELECT col1 * 64 / col2 + col0 AS col2 FROM tab1 AS cor0
----
33
75
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT col0 * - CAST( - col2 AS SIGNED ) + - col0 DIV tab2.col0 col2 FROM tab2
----
188
2027
3001
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT col0 * - CAST ( - col2 AS INTEGER ) + - col0 / tab2.col0 col2 FROM tab2
----
188
2027
3001
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT col1 * CAST( - col1 AS SIGNED ) FROM tab1
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-5162
SELECT col1 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - col0 * col0 * + tab0.col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT - col2 * col0 + 93 * - col0 AS col2 FROM tab1
----
-15120
-441
-9600
onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT col1 DIV + col1 + - col1 * col1 * + col2 FROM tab0
----
-244067
-679041
-9408
skipif mysql # not compatible
query I rowsort label-5165
SELECT col1 / + col1 + - col1 * col1 * + col2 FROM tab0
----
-244067
-679041
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - tab0.col1 col0 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + tab0.col2 * col0 + - col2 AS col0 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT ALL col2 DIV col2 + col1 + + col0 FROM tab0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL col2 / col2 + col1 + + col0 FROM tab0
----
111
133
181
query I rowsort
SELECT DISTINCT col1 + - col1 + - col1 AS col0 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT DISTINCT - col2 * col2 + col0 DIV tab2.col0 AS col1 FROM tab2
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col2 * col2 + col0 / tab2.col0 AS col1 FROM tab2
----
-1443
-675
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT col1 DIV + col1 + + col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5171
SELECT col1 / + col1 + + col1 FROM tab2
----
18
32
60
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT - col2 * - col1 DIV - col1 + col1 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-5173
SELECT - col2 * - col1 / - col1 + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT tab0.col2 FROM tab0 WHERE - col1 <= ( col0 + col1 * - col1 + col2 )
----
query I rowsort
SELECT tab1.col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col1 ) AND + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT col2 DIV tab2.col0 + + col1 * col2 AS col1 FROM tab2
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-5176
SELECT col2 / tab2.col0 + + col1 * col2 AS col1 FROM tab2
----
1534
646
840
query I rowsort
SELECT - - col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND NULL OR ( + col0 ) BETWEEN NULL AND col0 * col1
----
query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND NULL OR NOT ( col0 ) BETWEEN ( - col0 * col1 - - col0 / col2 ) AND ( NULL )
----
query I rowsort
SELECT ALL - col2 * col0 * tab0.col0 AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT col2 + col0 / + tab1.col1 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----
query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - col0 + + 94 * col2 FROM tab0 AS cor0
----
3078
59
7619
query I rowsort
SELECT ALL - - col2 * + 80 + 46 * + col0 FROM tab0 AS cor0
----
10654
1690
3744
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - tab1.col2 + - col2 * col1 * col1 FROM tab1
----
-16320
-36558
-5757
query I rowsort
SELECT 67 * - col2 + 32 FROM tab1
----
-3586
-3787
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - 90 * - col2 + - ( + col2 ) AS col1 FROM tab1
----
4806
5073
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col0 + + ( col1 ) * col1 FROM tab2 AS cor0
----
3559
368
968
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
query I rowsort
SELECT DISTINCT - - col2 + 20 FROM tab0 AS cor0
----
102
21
53
query I rowsort
SELECT ALL col1 * 7 + 62 + col2 FROM tab2 cor0
----
219
306
501
onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT DISTINCT - cor0.col1 + ( + col1 ) DIV - col0 AS col1 FROM tab2 cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - cor0.col1 + ( + col1 ) / - col0 AS col1 FROM tab2 cor0
----
-17
-35
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT col2 + + CAST( NULL AS DECIMAL ) * + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5197
SELECT col2 + + CAST ( NULL AS REAL ) * + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT col1 * - CAST ( + col2 * col1 AS REAL ) FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + tab0.col0 + col1 AS col0 FROM tab0 WHERE NULL <= col0
----
query I rowsort
SELECT ALL + col2 * col2 + col0 * + col0 AS col1 FROM tab1
----
15616
2925
7345
query I rowsort
SELECT col2 + + tab0.col0 + col1 * col1 AS col2 FROM tab0
----
7453
8452
9445
query I rowsort
SELECT - col2 FROM tab0 WHERE col2 <> ( col1 )
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT - col1 * col2 * col1 + col1 DIV + col0 FROM tab2
----
-10982
-25943
-90506
skipif mysql # not compatible
query I rowsort label-5203
SELECT - col1 * col2 * col1 + col1 / + col0 FROM tab2
----
-10982
-25943
-90506
query I rowsort
SELECT col1 * col2 * col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + tab1.col1 + col2 + col2 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT - col2 * + col2 * col1 AS col1 FROM tab1
----
-119808
-32490
-75816
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col1 > NULL
----
query I rowsort
SELECT + col2 * - tab2.col2 + col0 AS col1 FROM tab2
----
-1365
-598
-722
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----
query I rowsort
SELECT DISTINCT - col2 + col2 + col0 * - tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * col0 * + tab0.col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - cor0.col1 + + 69 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
43
56
59
query I rowsort
SELECT + - col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col0 * 96 * 78 AS col1 FROM tab0 AS cor0
----
179712
262080
666432
query I rowsort
SELECT cor0.col1 * cor0.col2 + 20 AS col1 FROM tab0 AS cor0
----
117
2858
7482
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT + col2 * + cor0.col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5219
SELECT + col2 * + cor0.col2 / - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col0 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL - col1 * + 94 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT ALL + col0 * ( - col2 ) * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT DISTINCT + col1 DIV ( 51 ) AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + col1 / ( 51 ) AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - cor0.col1 * + 68 FROM tab2 AS cor0
----
-1156
-2108
-4012
onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT cor0.col2 DIV 55 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5225
SELECT cor0.col2 / 55 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col2 * - 95 col0 FROM tab1 AS cor0
----
5127
5351
9040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 * col0 ) col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + 81 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + - col1 * col0 + + 51 col0 FROM tab0
----
-2099
-3441
-8139
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - + col2 * ( - col1 ) + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT col2 * + 7 FROM tab2 cor0
----
182
189
266
query I rowsort
SELECT - col2 * ( 87 + - col0 * + col2 ) FROM tab0 AS cor0
----
-52
23265
591302
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5235
SELECT + CAST( NULL AS SIGNED ) + 3 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5235
SELECT + CAST ( NULL AS INTEGER ) + 3 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 5 * col1 * cor0.col2 FROM tab1 cor0
----
-2850
-6240
-7020
query I rowsort
SELECT - 22 * - 91 FROM tab1 AS cor0
----
2002
2002
2002
query I rowsort
SELECT ALL + col0 * - ( + col2 ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
skipif mysql # not compatible
query I rowsort
SELECT 21 * + col2 + CAST ( col0 AS REAL ) * col2 + col2 * col0 FROM tab1 AS cor0
----
1458
17376
8493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col0 + col2 + + col0 col1 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT - col1 + - 95 AS col0 FROM tab0
----
-181
-186
-192
query I rowsort
SELECT DISTINCT - 33 + - col1 FROM tab2
----
-50
-64
-92
query I rowsort
SELECT + ( col1 ) * col0 + col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + 41 * col0 AS col0 FROM tab2
----
287
3198
3239
query I rowsort
SELECT ALL - col0 + - col1 + ( + 72 ) * - col0 AS col0 FROM tab0
----
-1838
-2652
-6588
onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT + cor0.col1 DIV - cor0.col2 + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5247
SELECT + cor0.col1 / - cor0.col2 + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5248
SELECT ALL + + col1 * col0 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL + + col1 * col0 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT ( - col2 ) + + ( + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - - col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT - + ( cor0.col0 ) - - col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - cor0.col2 + - col2 * col0 * + col0 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1365
598
722
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT ALL + + col0 + cor0.col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col1 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + tab0.col1 * tab0.col1 * + col0 + col0 AS col0 FROM tab0
----
177528
329350
737098
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 36 + col1 AS col1 FROM tab1
----
46
49
62
query I rowsort
SELECT DISTINCT + 23 FROM tab1, tab2 AS cor0
----
23
query I rowsort
SELECT ALL col2 + - ( - tab2.col0 ) * col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL - col0 * cor0.col1 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 37 * col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
-884
270
559
query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT ( - col1 ) * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - cor0.col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + 81 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1167
-1323
-489
query I rowsort
SELECT ALL + 46 * col2 - col2 * + col2 FROM tab0 AS cor0
----
-2952
429
45
query I rowsort
SELECT col0 * + col2 + + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 FROM tab1 cor0
----
0
query I rowsort
SELECT - col2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col1 * col2 - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + 75 + + col0 * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-106022
-1444
-358881
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * + col0 AS col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + - cor0.col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + 78 * - col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT + 55 + + col0 FROM tab1 AS cor0
----
119
135
58
query I rowsort
SELECT DISTINCT + ( + col0 ) - col2 AS col0 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT ALL col2 - - col0 DIV + col2 AS col0 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL col2 - - col0 / + col2 AS col0 FROM tab1
----
54
58
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT ( 12 ) DIV col0 + tab2.col2 AS col0 FROM tab2
----
26
28
38
skipif mysql # not compatible
query I rowsort label-5284
SELECT ( 12 ) / col0 + tab2.col2 AS col0 FROM tab2
----
26
28
38
query I rowsort
SELECT 54 + + col0 FROM tab2
----
132
133
61
query I rowsort
SELECT ( - col0 ) * + col2 * - col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + + ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT ( 81 ) * col1 - + col0 AS col1 FROM tab2
----
1298
2504
4701
query I rowsort
SELECT ( + 40 ) AS col1 FROM tab2
----
40
40
40
query I rowsort
SELECT 41 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831
query I rowsort
SELECT DISTINCT - 6 * - cor1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
156
60
78
query I rowsort
SELECT + col2 + + 65 * col1 * col0 AS col2 FROM tab2 AS cor0
----
14132
299156
87333
query I rowsort
SELECT - - cor0.col2 * - 40 AS col1 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT + col2 + ( - col0 * col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-1267
-163
-4550
query I rowsort
SELECT col0 + - ( col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col1 * cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - ( - col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 7 + col1 AS col2 FROM tab2 AS cor0
----
24
38
66
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) + cor0.col2 + col1 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT + - CAST( NULL AS DECIMAL ) * 49 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5300
SELECT + - CAST ( NULL AS REAL ) * 49 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL - col0 DIV - 32 FROM tab1 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - col0 / - 32 FROM tab1 AS cor0
----
0
2
2
query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0, tab0 AS cor0
----
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1 cor0
----
97
query I rowsort
SELECT ALL - - cor0.col2 * - 29 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT ALL - ( - col1 ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + ( col1 ) * col2 * + col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT + - col0 + + col2 DIV ( 76 ) AS col0 FROM tab0 cor0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - col0 + + col2 / ( 76 ) AS col0 FROM tab0 cor0
----
-24
-35
-88
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + + col1 * - col1 * ( - col1 ) FROM tab2 AS cor0
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT ALL + - col1 DIV - col0 - 45 AS col0 FROM tab1 cor0
----
-37
-45
-45
skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + - col1 / - col0 - 45 AS col0 FROM tab1 cor0
----
-37
-45
-45
query I rowsort
SELECT 5 * col1 - + col1 FROM tab1
----
104
40
52
query I rowsort
SELECT DISTINCT 70 + - col0 * tab1.col1 FROM tab1
----
-570
-8
-970
query I rowsort
SELECT - 29 + 18 * - tab1.col2 FROM tab1
----
-1001
-1055
-1757
query I rowsort
SELECT ALL - 30 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT ( col2 ) * - col0 * - col1 - + col0 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT + - col1 - - 28 FROM tab1 AS cor0
----
15
18
2
query I rowsort
SELECT DISTINCT - col2 * + col1 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT DISTINCT + - cor0.col1 * - ( col0 ) FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT + col2 DIV - 84 + col0 DIV cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5319
SELECT + col2 / - 84 + col0 / cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT ALL cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT - col0 DIV + col0 + col1 + + col2 FROM tab1 AS cor0
----
108
66
79
skipif mysql # not compatible
query I rowsort label-5321
SELECT - col0 / + col0 + col1 + + col2 FROM tab1 AS cor0
----
108
66
79
query I rowsort
SELECT col1 + - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 * - col0 + col0 * col1 AS col1 FROM tab0
----
15397
2856
3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 74 * + 60 col2 FROM tab1
----
13320
284160
355200
query I rowsort
SELECT - col0 * 31 + col2 AS col0 FROM tab2 AS cor0
----
-190
-2392
-2411
query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT col1 DIV col1 + + 12 AS col1 FROM tab0 cor0
----
13
13
13
skipif mysql # not compatible
query I rowsort label-5327
SELECT col1 / col1 + + 12 AS col1 FROM tab0 cor0
----
13
13
13
query I rowsort
SELECT + ( col2 ) + 92 FROM tab1
----
146
149
188
query I rowsort
SELECT - ( col0 ) * 8 AS col1 FROM tab2
----
-56
-624
-632
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - - 28 col2 FROM tab0, tab2 AS cor0
----
54
55
66
query I rowsort
SELECT + 54 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT col1 * col1 + - 28 * 19 FROM tab2 cor0
----
-243
2949
429
query I rowsort
SELECT ALL cor0.col0 * col2 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT ALL col1 * - col2 + + 7 FROM tab0 AS cor0
----
-2831
-7455
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + 7 * col1 + col0 * col2 AS col0 FROM tab0 cor0
----
1394
714
7935
query I rowsort
SELECT ALL - col0 - + col1 * col1 * + col0 FROM tab0 AS cor0
----
-177528
-329350
-737098
query I rowsort
SELECT - col2 * - col2 * - col0 + - col2 * col1 FROM tab1 AS cor0
----
-10152
-208506
-738528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * ( col1 ) + - col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + col1 + 62 * - col2 AS col1 FROM tab0 AS cor0
----
-1960
-4993
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col2 * - 49 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT ALL + + col0 * - col2 - 69 * col0 FROM tab0 cor0
----
-13439
-2448
-2450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - cor0.col1 + - 54 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-26
-7
29
query I rowsort
SELECT ALL - col0 * - 48 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT col2 * + ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT DISTINCT - - cor0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - - cor0.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 + 83 AS col0 FROM tab2 AS cor0
----
4
5
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + - col0 + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5354
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT - col0 * col1 + + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2067
-3397
-8100
skipif mysql # not compatible
query I rowsort label-5355
SELECT - col0 * col1 + + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-2067
-3397
-8100
query I rowsort
SELECT DISTINCT 29 * col0 FROM tab0 cor0
----
1015
2581
696
query I rowsort
SELECT + 15 * 55 + + col0 * + ( 17 * - col0 ) FROM tab2 AS cor0
----
-102603
-105272
-8
query I rowsort
SELECT DISTINCT + + cor0.col1 * 9 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT 79 * 84 + col2 AS col1 FROM tab0 AS cor0
----
6637
6669
6718
onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT ALL - - col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - - col2 / cor0.col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + - ( col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-9
5999
6186
query I rowsort
SELECT DISTINCT + col0 * - 28 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT DISTINCT col2 * + 7 * + col0 AS col1 FROM tab0
----
245
51086
5544
query I rowsort
SELECT ALL + 29 * 68 + - col2 FROM tab1 AS cor0
----
1876
1915
1918
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col2 * 97 - tab2.col2 FROM tab2
----
2496
2592
3648
query I rowsort
SELECT DISTINCT - - 91 * + cor0.col0 AS col2 FROM tab0 cor0
----
2184
3185
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col0 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT - 25 - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1559
-671
-862
query I rowsort
SELECT - 67 AS col2 FROM tab2
----
-67
-67
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT - col2 DIV col0 - col2 col1 FROM tab1
----
-57
-72
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - col2 / col0 - col2 col1 FROM tab1
----
-57
-72
-97
query I rowsort
SELECT + 92 + - col2 FROM tab2 cor0
----
54
65
66
query I rowsort
SELECT - + col2 * col0 * - 62 - col2 AS col1 FROM tab1 AS cor0
----
226119
476064
9990
query I rowsort
SELECT - + cor0.col0 + - cor0.col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT + col0 * + col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + 1 * cor0.col1 * - 75 AS col0 FROM tab2 AS cor0
----
-1275
-2325
-4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-5377
SELECT col0 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-5377
SELECT col0 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 89 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 89 FROM tab0
----
NULL
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * - col2 + 90 * col1 col1 FROM tab2 AS cor0
----
3544
4221
6688
query I rowsort
SELECT ALL - col0 + + tab0.col1 * + col1 AS col2 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-53
query I rowsort
SELECT + col2 + 91 FROM tab1 AS cor0
----
145
148
187
query I rowsort
SELECT - col0 * col0 * 19 + + col0 FROM tab0
----
-10920
-150410
-23240
query I rowsort
SELECT ALL + col0 * + col0 - col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - col0 * - cor0.col1 + - 14 AS col0 FROM tab1 AS cor0
----
1026
626
64
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - ( 6 ) * - col1 AS col0 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL col2 * - cor0.col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL - ( - 28 ) * tab1.col1 FROM tab1
----
280
364
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL col0 * + col1 DIV col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL col0 * + col1 / col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT - 3 * + col2 FROM tab2
----
-114
-78
-81
query I rowsort
SELECT - 2 * - tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7ce85f3c0cc2feeac41619efbad0a8a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT col2 DIV + 68 - col1 * col2 AS col1 FROM tab1
----
-1247
-1404
-570
skipif mysql # not compatible
query I rowsort label-5395
SELECT col2 / + 68 - col1 * col2 AS col1 FROM tab1
----
-1247
-1404
-570
query I rowsort
SELECT 15 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT - col1 + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT - col0 + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-5398
SELECT - col0 + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT - col2 * 39 FROM tab1
----
-2106
-2223
-3744
query I rowsort
SELECT DISTINCT + ( col1 + col2 ) AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL 61 * col2 + col1 FROM tab2 AS cor0
----
1645
1678
2335
query I rowsort
SELECT - 24 - col0 FROM tab0 AS cor0
----
-113
-48
-59
query I rowsort
SELECT ALL + 42 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT + - 87 + 55 * col2 AS col1 FROM tab2 AS cor0
----
1343
1398
2003
query I rowsort
SELECT ALL + + ( + col1 ) * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 74 * cor0.col0 FROM tab2 AS cor0
----
518
5772
5846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT 61 + cor0.col1 FROM tab0 AS cor0
----
147
152
158
query I rowsort
SELECT ALL 7 - - col2 FROM tab0
----
40
8
89
query I rowsort
SELECT ALL + col1 - col1 * + 22 FROM tab1
----
-210
-273
-546
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL col0 * cor0.col2 + 64 FROM tab1 AS cor0
----
226
3712
7744
query I rowsort
SELECT - 80 * + col1 - + 83 FROM tab1 AS cor0
----
-1123
-2163
-883
query I rowsort
SELECT ALL col2 - 40 AS col2 FROM tab1 AS cor0
----
14
17
56
query I rowsort
SELECT DISTINCT + col2 + 7 FROM tab1 cor0
----
103
61
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT DISTINCT - col0 + + CAST( col2 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1365
598
722
skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - col0 + + CAST ( col2 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + cor0.col0 - ( col1 * col1 ) FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - col0 * + 54 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-196992
-414720
-8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5420
SELECT - cor0.col2 * CAST( NULL AS DECIMAL ) * col0 + + cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5420
SELECT - cor0.col2 * CAST ( NULL AS REAL ) * col0 + + cor0.col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * + 62 * - col2 + + col0 + col1 FROM tab1 AS cor0
----
-180763
-201364
-571299
query I rowsort
SELECT ALL + + col0 * - col2 - col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-157626
-188841
-892416
onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT DISTINCT - col1 DIV col0 - 51 FROM tab2 AS cor0
----
-51
-55
skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - col1 / col0 - 51 FROM tab2 AS cor0
----
-51
-55
query I rowsort
SELECT DISTINCT col1 + 42 AS col1 FROM tab1 cor0
----
52
55
68
query I rowsort
SELECT ALL - cor0.col2 + 13 * + col0 FROM tab0 AS cor0
----
1075
279
454
query I rowsort
SELECT DISTINCT + + col2 * + 28 - cor0.col0 AS col1 FROM tab2 AS cor0
----
650
749
985
query I rowsort
SELECT DISTINCT + 17 * 87 FROM tab0, tab2 cor0, tab2 AS cor1
----
1479
query I rowsort
SELECT + + 77 * - 45 FROM tab1 AS cor0
----
-3465
-3465
-3465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + ( + col2 ) col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT - CAST( NULL AS SIGNED ) * + ( col0 ) * 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5430
SELECT - CAST ( NULL AS INTEGER ) * + ( col0 ) * 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * + 82 AS col2 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT - + cor0.col1 * cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT ALL tab0.col0 * CAST( col1 * col2 AS SIGNED ) AS col2 FROM tab0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL tab0.col0 * CAST ( col1 * col2 AS INTEGER ) AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + col2 * - 20 AS col1 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT ALL col2 + col2 + + col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + - col1 * col1 * ( col1 ) - col0 * col2 FROM tab1 AS cor0
----
-17738
-4648
-9877
query I rowsort
SELECT + + 8 * - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-11232
-4560
-9984
query I rowsort
SELECT ALL + col1 - 90 * tab2.col2 AS col0 FROM tab2
----
-2281
-2399
-3403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 + cor0.col0 * col0 + + col0 * - col1 col1 FROM tab0 AS cor0
----
-2267
-4326
-7640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + tab2.col2 - + 81 * col1 col1 FROM tab2
----
-1260
-2477
-4675
query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT DISTINCT + col2 * col0 DIV + 85 AS col1 FROM tab0 AS cor0
----
0
85
9
skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + col2 * col0 / + 85 AS col1 FROM tab0 AS cor0
----
0
85
9
query I rowsort
SELECT ALL ( cor0.col2 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( tab0.col0 ) col1 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL - tab2.col0 + + ( - 60 ) + col2 AS col2 FROM tab2
----
-101
-112
-40
query I rowsort
SELECT DISTINCT - col1 + 77 AS col0 FROM tab0
----
-14
-20
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT DISTINCT + col2 * + col2 + - col2 DIV - ( - cor0.col0 ) FROM tab1 AS cor0
----
2898
3249
9215
skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + col2 * + col2 + - col2 / - ( - cor0.col0 ) FROM tab1 AS cor0
----
2898
3249
9215
query I rowsort
SELECT + - ( col2 ) - + col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) + col1 AS col0 FROM tab0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT - 67 * - col0 + - col1 - - 75 * - col0 AS col1 FROM tab2 AS cor0
----
-649
-683
-87
query I rowsort
SELECT DISTINCT + + 61 AS col1 FROM tab1 cor0
----
61
query I rowsort
SELECT col1 + 92 + - cor0.col1 FROM tab0 AS cor0
----
92
92
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT col0 + col2 * col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5456
SELECT col0 + col2 * col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT DISTINCT + col1 / + col1 + - col2 * CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + col1 / + col1 + - col2 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT CAST( NULL AS SIGNED ) + cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 1 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT DISTINCT + col1 DIV cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + col1 / cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col1 * - 81 + - cor0.col0 FROM tab0 AS cor0
----
-6990
-7460
-7892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 + - col0 col2 FROM tab2 AS cor0
----
-143
-144
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 28 + - col1 AS col2 FROM tab1 AS cor0
----
15
18
2
query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - 27 + col1 FROM tab0 AS cor0
----
59
64
70
query I rowsort
SELECT DISTINCT - col2 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
query I rowsort
SELECT ALL col1 + - 16 AS col0 FROM tab2 AS cor0
----
1
15
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5472
SELECT DISTINCT + col0 * CAST( + 23 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
1965
519
804
skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + col0 * CAST ( + 23 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
1965
519
804
query I rowsort
SELECT ALL - col0 * + col0 + cor0.col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
-3939
-6135
721
query I rowsort
SELECT DISTINCT - col1 * - 54 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT DISTINCT col0 + - 46 * + 93 FROM tab0 cor0
----
-4189
-4243
-4254
query I rowsort
SELECT ALL 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT ALL - - col1 * col0 + - 23 + col1 AS col0 FROM tab2 AS cor0
----
1337
225
4638
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * + CAST ( cor0.col0 AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
query I rowsort
SELECT DISTINCT + cor0.col2 + - 17 FROM tab1 AS cor0
----
37
40
79
query I rowsort
SELECT col0 * 8 * - 51 FROM tab0 AS cor0
----
-14280
-36312
-9792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT DISTINCT + col2 - - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + col2 - - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + - col2 + - 73 FROM tab1 AS cor0
----
-127
-130
-169
query I rowsort
SELECT ALL - + col1 + - 85 AS col0 FROM tab2 AS cor0
----
-102
-116
-144
query I rowsort
SELECT + cor0.col2 * - 14 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT + cor0.col1 * - 31 AS col1 FROM tab0 cor0
----
-2666
-2821
-3007
query I rowsort
SELECT - + col2 * 38 FROM tab1 AS cor0
----
-2052
-2166
-3648
query I rowsort
SELECT col2 - 85 * + col1 AS col0 FROM tab2 AS cor0
----
-1407
-2608
-4989
query I rowsort
SELECT - + col1 * col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 + - ( 14 ) AS col2 FROM tab2
----
12
13
24
query I rowsort
SELECT + 78 + - 59 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT col2 * col2 * + 73 AS col2 FROM tab0
----
490852
73
79497
onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT - - 65 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5493
SELECT - - 65 / col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + 41 * - col0 AS col1 FROM tab1 AS cor0
----
-123
-2624
-3280
onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT 94 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
94
skipif mysql # not compatible
query I rowsort label-5496
SELECT 94 / col2 AS col0 FROM tab0 AS cor0
----
1
2
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT DISTINCT + col1 DIV - tab2.col0 AS col1 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + col1 / - tab2.col0 AS col1 FROM tab2
----
-4
0
query I rowsort
SELECT col1 * tab1.col0 + - tab1.col1 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT ( col1 + - ( + ( col1 ) ) ) * - col0 FROM tab2
----
0
query I rowsort
SELECT - cor0.col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT col2 DIV col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-5502
SELECT col2 / col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT - + ( - cor0.col2 ) AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 65 * + tab0.col1 AS col0 FROM tab0
----
-5590
-5915
-6305
query I rowsort
SELECT - ( - tab1.col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT tab2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col2 * cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT - - col1 * col0 + col0 DIV + col0 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-5508
SELECT - - col1 * col0 + col0 / + col0 FROM tab0 AS cor0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT + col2 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5509
SELECT + col2 / col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col0 * col2 + col0 * - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - col0 + col1 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1281
241
4583
query I rowsort
SELECT col2 + - cor0.col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
106135
1546
358982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT col2 * + col2 + + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL tab1.col2 + - col1 * tab1.col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT - col0 * col1 DIV + col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5519
SELECT - col0 * col1 / + col1 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT DISTINCT col0 DIV - col0 - col0 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT col0 / - col0 - col0 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT + tab1.col0 * + col0 * col1 + col1 + col2 FROM tab1
----
314
41027
83309
query I rowsort
SELECT col0 + + col1 + col1 FROM tab2 WHERE NOT + col0 / col0 = ( - col2 )
----
113
196
69
query I rowsort
SELECT + col1 + + tab2.col0 + col2 FROM tab2
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col1 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 94 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT - col0 <= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col0 <= col0 * col0
----
64
10
57
80
13
96
query I rowsort
SELECT col1 + - col2 * col0 + - col0 * - col1 * col2 FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT tab2.col2 + tab2.col2 + col1 AS col1 FROM tab2
----
111
85
93
query I rowsort
SELECT ALL col2 + - col2 + + 61 AS col0 FROM tab0
----
61
61
61
query I rowsort
SELECT ALL + col0 * - col2 + - col2 * - col1 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 + - col1 * col1 * + col0 AS col0 FROM tab2
----
-25816
-273487
-6885
query I rowsort
SELECT - col2 * - col2 + col1 + col1 FROM tab1 AS cor0
----
2968
3269
9242
onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT 16 DIV - col2 AS col1 FROM tab0
----
-16
0
0
skipif mysql # not compatible
query I rowsort label-5535
SELECT 16 / - col2 AS col1 FROM tab0
----
-16
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT - 88 DIV col1 AS col1 FROM tab2 cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-5536
SELECT - 88 / col1 AS col1 FROM tab2 cor0
----
-1
-2
-5
query I rowsort
SELECT DISTINCT + 65 + col2 AS col1 FROM tab1 AS cor0
----
119
122
161
onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT + 12 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5538
SELECT + 12 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL col2 + cor0.col1 * + col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL col1 * col1 * + col2 + - col0 * col2 * + col2 AS col1 FROM tab2
----
-103094
20844
37778
onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT DISTINCT tab0.col1 DIV col2 + + col0 DIV - col2 AS col1 FROM tab0
----
0
2
62
skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT tab0.col1 / col2 + + col0 / - col2 AS col1 FROM tab0
----
0
2
62
query I rowsort
SELECT col1 + col1 FROM tab1 WHERE ( col2 * col0 + col2 ) IN ( col2 + + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col1 * col1 col0 FROM tab2
----
-912
2603
5952
query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 * + col2 FROM tab2
----
1352
1458
2888
query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL IN ( - col1 * col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 + col0 <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT tab2.col1 DIV + col1 col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5548
SELECT tab2.col1 / + col1 col2 FROM tab2
----
1
1
1
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) < NULL
----
query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT + col1 IN ( - col0 )
----
-24
-35
-89
query I rowsort
SELECT + col2 * cor0.col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - col1 FROM tab0 WHERE ( - col0 * - col2 ) <= ( col1 )
----
-97
query I rowsort
SELECT DISTINCT col0 * - col1 - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + 81 * col1 + + 13 AS col0 FROM tab1 cor0
----
1066
2119
823
query I rowsort
SELECT ALL + 97 + col1 FROM tab0 AS cor0
----
183
188
194
query I rowsort
SELECT ALL col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT 6 + - col2 AS col1 FROM tab2 cor0
----
-20
-21
-32
query I rowsort
SELECT ALL - 3 * col1 FROM tab0 AS cor0
----
-258
-273
-291
onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT ALL + ( + col0 + - col0 ) DIV - col2 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + ( + col0 + - col0 ) / - col2 col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT - 95 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5560
SELECT - 95 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT col0 * col1 - cor0.col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT - + 26 * - col1 FROM tab1 AS cor0
----
260
338
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 + col2 col0 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT - CAST( col1 AS SIGNED ) + - col0 DIV ( ( col1 ) * - col1 ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5564
SELECT - CAST ( col1 AS INTEGER ) + - col0 / ( ( col1 ) * - col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col0 * - 98 FROM tab2 AS cor0
----
686
7644
7742
onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT DISTINCT - + 92 + - col0 DIV - col1 FROM tab0 AS cor0
----
-92
skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - + 92 + - col0 / - col1 FROM tab0 AS cor0
----
-92
query I rowsort
SELECT DISTINCT + - col0 + 30 FROM tab1 AS cor0
----
-34
-50
27
query I rowsort
SELECT ALL + col2 + + 33 FROM tab1
----
129
87
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5569
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5569
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - col1 + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1292
-1674
-3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL + + CAST( col2 AS SIGNED ) + + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + + CAST ( col2 AS INTEGER ) + + col1 / col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT ALL + + 4 AS col2 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT + + ( 76 ) + + col1 * + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
119728
51110
5935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT + CAST( NULL AS SIGNED ) + - 49 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5575
SELECT + CAST ( NULL AS INTEGER ) + - 49 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 3 * 91 AS col1 FROM tab2 AS cor0
----
273
273
273
query I rowsort
SELECT - - col0 * 40 AS col1 FROM tab1 AS cor0
----
120
2560
3200
query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL - cor0.col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT col2 * + col2 + col0 AS col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab2
----
1085
2065
595
query I rowsort
SELECT - ( - col1 ) * col1 + col2 * col2 AS col0 FROM tab1
----
3349
3592
9385
query I rowsort
SELECT ( tab0.col0 * + col1 ) AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + ( 83 ) + col0 AS col1 FROM tab2 AS cor0
----
161
162
90
query I rowsort
SELECT DISTINCT + - 27 + - col1 AS col0 FROM tab1 AS cor0
----
-37
-40
-53
query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col1 + 54 AS col0 FROM tab2 AS cor0
----
113
71
85
query I rowsort
SELECT + 24 + + col1 * + cor0.col1 * col0 FROM tab0 AS cor0
----
177528
329339
737033
query I rowsort
SELECT - cor0.col0 + col0 * col2 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - + 5 + + col2 * - col2 AS col0 FROM tab2 cor0
----
-1449
-681
-734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * + col0 * + col1 col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT ALL - col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT DISTINCT col0 DIV + 15 + col2 FROM tab2 AS cor0
----
27
31
43
skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT col0 / + 15 + col2 FROM tab2 AS cor0
----
27
31
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5595
SELECT ALL col0 * - CAST( col0 AS SIGNED ) * + cor0.col2 + + cor0.col2 * col2 FROM tab0 cor0
----
-1224
-17919
-642798
skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL col0 * - CAST ( col0 AS INTEGER ) * + cor0.col2 + + cor0.col2 * col2 FROM tab0 cor0
----
-1224
-17919
-642798
query I rowsort
SELECT - col0 * - col1 - + col2 * col0 AS col0 FROM tab0 AS cor0
----
1272
3360
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 92 col1 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT ALL cor0.col0 * + 31 + col1 FROM tab1 AS cor0
----
119
1994
2493
query I rowsort
SELECT DISTINCT + col2 - - ( 66 ) * col1 FROM tab1 AS cor0
----
1770
717
954
query I rowsort
SELECT - cor0.col2 - + col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col0 * + 81 + + 63 FROM tab2 AS cor0
----
630
6381
6462
query I rowsort
SELECT + col2 + ( col1 ) * + col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT - + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 77 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
14
20
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT + col0 * col2 + col0 * - tab0.col0 DIV + col0 AS col0 FROM tab0
----
0
7209
768
skipif mysql # not compatible
query I rowsort label-5605
SELECT + col0 * col2 + col0 * - tab0.col0 / + col0 AS col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT DISTINCT + + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 14 col0 FROM tab0 AS cor0
----
-1246
-336
-490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - 62 col1 FROM tab0 AS cor0
----
-458552
-513422
-583358
query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - ( cor2.col1 ) FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT - 95 AS col0 FROM tab2 cor0
----
-95
-95
-95
query I rowsort
SELECT ALL ( - col0 ) * col0 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT DISTINCT col0 - 18 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-227
-551
-984
query I rowsort
SELECT - + col0 * - col1 + cor0.col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT col1 * - 91 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1468
-2814
-5291
query I rowsort
SELECT + 36 * 63 * cor0.col1 - + 68 FROM tab1 cor0
----
22612
29416
58900
query I rowsort
SELECT + 65 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
2275
474370
51480
query I rowsort
SELECT ALL - 29 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT - col1 + 79 * - ( + col2 ) FROM tab1 AS cor0
----
-4292
-4513
-7597
query I rowsort
SELECT DISTINCT col2 * col1 + 30 * col2 AS col2 FROM tab0 AS cor0
----
127
3828
9922
query I rowsort
SELECT DISTINCT - ( + col2 + col0 ) * tab1.col2 FROM tab1
----
-16896
-3078
-6897
query I rowsort
SELECT ALL ( + col0 * col0 ) AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 * 81 AS col1 FROM tab2 AS cor0
----
-124254
-52326
-67797
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT DISTINCT - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - col0 / + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 31 col1 FROM tab2 AS cor0
----
-1178
-806
-837
query I rowsort
SELECT DISTINCT + col2 * + 21 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT 3 * - col2 FROM tab1
----
-162
-171
-288
query I rowsort
SELECT ALL - + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT DISTINCT 79 + col1 * col0 * tab2.col2 + col0 AS col1 FROM tab2
----
119809
51192
5945
query I rowsort
SELECT + 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 32 col1 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT ALL col2 + - 98 AS col2 FROM tab1
----
-2
-41
-44
query I rowsort
SELECT col2 + + col1 + + col0 * ( - 69 ) AS col1 FROM tab0 AS cor0
----
-1537
-2317
-5968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + ( 13 ) col1 FROM tab2, tab2 AS cor0
----
-65
-66
6
query I rowsort
SELECT ALL 90 - + col2 * col0 FROM tab0
----
-702
-7208
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT + - col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5637
SELECT + - col0 / + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - col1 + + cor0.col2 * + ( + col2 * - col2 ) AS col2 FROM tab2 AS cor0
----
-17635
-19714
-54889
query I rowsort
SELECT ALL - 60 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT + 11 + col2 * + col2 FROM tab0 AS cor0
----
1100
12
6735
query I rowsort
SELECT col1 + - col2 * ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT ALL - ( - col2 ) * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT - col1 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-5644
SELECT - col1 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + ( col0 ) * + col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT 83 * 21 + - col2 * col2 FROM tab2 AS cor0
----
1014
1067
299
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * col2 - col0 col1 FROM tab1 cor0
----
-2595
-2800
-4688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT + CAST( NULL AS DECIMAL ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5648
SELECT + CAST ( NULL AS REAL ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2, tab0 AS cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT col1 DIV col1 + col0 * - 82 FROM tab1
----
-245
-5247
-6559
skipif mysql # not compatible
query I rowsort label-5650
SELECT col1 / col1 + col0 * - 82 FROM tab1
----
-245
-5247
-6559
query I rowsort
SELECT ALL + 30 - col1 FROM tab2 AS cor0
----
-1
-29
13
query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1, tab0 AS cor0
----
53
query I rowsort
SELECT ALL + col0 * + 96 AS col1 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT ALL col0 * col0 * col0 FROM tab2 cor0
----
343
474552
493039
query I rowsort
SELECT ALL + + ( + ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + cor0.col0 * + col2 + ( 45 ) FROM tab2 AS cor0
----
2073
234
3047
query I rowsort
SELECT + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 96 * col2 + col0 AS col2 FROM tab0
----
131
3192
7961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT + col1 * col0 + + col1 DIV 77 AS col1 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5659
SELECT + col1 * col0 + + col1 / 77 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * + ( tab0.col1 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT 2 + col1 * + col0 FROM tab2
----
1345
219
4604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( - 39 * - col1 ) col2 FROM tab0 AS cor0
----
3387
3631
3784
onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT ALL + col2 + col0 DIV + col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + col2 + col0 / + col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT - + col0 * cor0.col1 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1185
-203
-4446
query I rowsort
SELECT + col1 * col2 - col1 * col0 FROM tab2 AS cor0
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - - col1 + col1 DIV col0 + + cor0.col2 FROM tab0 AS cor0
----
100
122
174
skipif mysql # not compatible
query I rowsort label-5666
SELECT - - col1 + col1 / col0 + + cor0.col2 FROM tab0 AS cor0
----
100
122
174
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - col0 + - col2 * ( + col2 ) FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT col1 + ( 52 ) AS col1 FROM tab2 AS cor0
----
111
69
83
query I rowsort
SELECT ALL - + col0 * col1 + cor0.col2 AS col1 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT ALL col1 * + ( col0 ) * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + col0 * col1 * - ( - tab0.col2 ) - col0 * - col0 AS col2 FROM tab0
----
4620
672039
68688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col2 ) + col1 col1 FROM tab1 cor0
----
106
122
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT DISTINCT - 38 DIV col2 AS col2 FROM tab0
----
-1
-38
0
skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - 38 / col2 AS col2 FROM tab0
----
-1
-38
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT DISTINCT - col2 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - col2 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT + ( - col1 * 58 ) + - col0 * col2 FROM tab1
----
-1670
-4228
-8434
query I rowsort
SELECT DISTINCT ( tab1.col1 ) + + 89 * - col2 - col0 AS col1 FROM tab1
----
-4783
-5127
-8611
query I rowsort
SELECT ALL - col0 + 81 AS col2 FROM tab1
----
1
17
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + ( 65 ) col2 FROM tab1 cor0
----
129
145
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT - + col2 * ( col0 ) + cor0.col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-5680
SELECT - + col2 * ( col0 ) + cor0.col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT DISTINCT - - col1 + - CAST( - 24 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
34
37
50
skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - - col1 + - CAST ( - 24 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
34
37
50
query I rowsort
SELECT + col0 + 89 FROM tab1 AS cor0
----
153
169
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL + col1 + cor0.col2 - + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
58
59
86
skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + col1 + cor0.col2 - + col0 / - col1 AS col1 FROM tab2 AS cor0
----
58
59
86
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT + col2 + + col0 DIV cor0.col1 - + col2 AS col0 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5685
SELECT + col2 + + col0 / cor0.col1 - + col2 AS col0 FROM tab1 cor0
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT DISTINCT tab2.col1 + CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT tab2.col1 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL col0 + col0 * col1 * col0 FROM tab2
----
106176
1526
359034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5688
SELECT - CAST( - 0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5688
SELECT - CAST ( - 0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 80 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - 50 ) col2 FROM tab0
----
4300
4550
4850
query I rowsort
SELECT ALL + col0 + 70 FROM tab1
----
134
150
73
query I rowsort
SELECT ALL ( 45 ) * col0 FROM tab2
----
315
3510
3555
query I rowsort
SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 57 + col1 AS col0 FROM tab2 AS cor0
----
116
74
88
query I rowsort
SELECT ALL + - cor0.col0 + 36 * + col2 AS col1 FROM tab1 AS cor0
----
1941
1988
3376
query I rowsort
SELECT + 75 + 24 * col2 + + col2 * - ( col2 + - col2 * col1 ) AS col2 FROM tab0 AS cor0
----
195
607203
93432
query I rowsort
SELECT - + col1 + 47 FROM tab2 AS cor0
----
-12
16
30
query I rowsort
SELECT ALL col1 + cor0.col0 + - col0 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT - cor0.col2 + ( + col2 ) DIV cor0.col1 AS col0 FROM tab1 cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-5700
SELECT - cor0.col2 + ( + col2 ) / cor0.col1 AS col0 FROM tab1 cor0
----
-52
-52
-89
query I rowsort
SELECT DISTINCT - - col1 + - col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - 81 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-43
-54
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT DISTINCT + col1 DIV - cor0.col0 + + ( 43 ) DIV + col1 FROM tab2 cor0
----
-3
0
2
skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT + col1 / - cor0.col0 + + ( 43 ) / + col1 FROM tab2 cor0
----
-3
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col1 * + ( col2 ) col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - col0 * col0 - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT ALL + col2 DIV ( - 35 ) + + col1 + - col1 col2 FROM tab1 AS cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + col2 / ( - 35 ) + + col1 + - col1 col2 FROM tab1 AS cor0
----
-1
-1
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT - col1 * 17 DIV tab1.col1 AS col0 FROM tab1
----
-17
-17
-17
skipif mysql # not compatible
query I rowsort label-5707
SELECT - col1 * 17 / tab1.col1 AS col0 FROM tab1
----
-17
-17
-17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5708
SELECT - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5708
SELECT - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * 94 + 84 + col1 AS col2 FROM tab1 AS cor0
----
-172
-5922
-7423
query I rowsort
SELECT + - col2 * col2 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT cor0.col0 * - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT - - 4 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 77a519d1c86a1c92d33bb9ce10f5a092
query I rowsort
SELECT ALL col1 * col1 * + col0 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL 64 * - col2 FROM tab1
----
-3456
-3648
-6144
query I rowsort
SELECT ALL cor0.col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 10 * col0 AS col1 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT DISTINCT + col1 * - col1 * 55 AS col2 FROM tab0 AS cor0
----
-406780
-455455
-517495
query I rowsort
SELECT DISTINCT - + 96 AS col1 FROM tab2 cor0
----
-96
query I rowsort
SELECT - col1 + col1 * - 63 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT DISTINCT + col2 * col2 * tab2.col0 + + col2 AS col1 FROM tab2
----
114114
5130
52754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT CAST( - 89 AS SIGNED ) FROM tab0
----
-89
skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT CAST ( - 89 AS INTEGER ) FROM tab0
----
-89
query I rowsort
SELECT - ( + col1 ) * col0 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL 5 * - ( + col1 ) AS col0 FROM tab2
----
-155
-295
-85
query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
11
query I rowsort
SELECT DISTINCT ( - col2 ) * 91 + 72 AS col2 FROM tab1 AS cor0
----
-4842
-5115
-8664
onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT - cor0.col1 * col0 DIV + 34 AS col2 FROM tab2 AS cor0
----
-135
-39
-6
skipif mysql # not compatible
query I rowsort label-5726
SELECT - cor0.col1 * col0 / + 34 AS col2 FROM tab2 AS cor0
----
-135
-39
-6
query I rowsort
SELECT ALL + + 35 AS col0 FROM tab2 AS cor0
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - tab1.col0 col2 FROM tab1
----
128
160
6
query I rowsort
SELECT + col0 * - 92 + 23 + - col1 AS col2 FROM tab2 AS cor0
----
-652
-7212
-7262
query I rowsort
SELECT - cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 24 col0 FROM tab0 cor0
----
110
115
121
query I rowsort
SELECT - 90 + + col0 AS col0 FROM tab0 AS cor0
----
-1
-55
-66
query I rowsort
SELECT - - 99 + + col2 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + ( 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT + CAST( NULL AS DECIMAL ) * - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5736
SELECT + CAST ( NULL AS REAL ) * - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 37 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-72
-7335
-829
query I rowsort
SELECT + cor0.col2 + - cor0.col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL 94 * col2 * - col1 FROM tab1 cor0
----
-117312
-131976
-53580
query I rowsort
SELECT + - 92 + col2 AS col1 FROM tab0 AS cor0
----
-10
-59
-91
query I rowsort
SELECT ALL + + col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col0 + 54 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT - col1 + 30 AS col1 FROM tab0 AS cor0
----
-56
-61
-67
query I rowsort
SELECT ALL col2 + - 46 FROM tab1 AS cor0
----
11
50
8
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) - col0 * col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col1 + col0 + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - 77 * - col1 - + col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT 86 * - 87 + - col2 FROM tab0 AS cor0
----
-7483
-7515
-7564
query I rowsort
SELECT ALL + - 84 + + col2 * col1 FROM tab1 AS cor0
----
1164
1320
486
query I rowsort
SELECT - cor0.col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - col1 + col1 + 99 AS col1 FROM tab0 AS cor0
----
271
281
293
query I rowsort
SELECT + - col2 * - col0 + + ( col2 ) FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL 53 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1378
1431
2014
onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT DISTINCT - 82 DIV 70 + + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - 82 / 70 + + col0 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL 8 + - cor0.col1 * ( + 5 ) FROM tab0, tab1 AS cor0
----
9 values hashing to e1be01c71fa02612e80d258ac771adda
query I rowsort
SELECT col2 * - col1 - - col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 - 45 AS col2 FROM tab2 AS cor0
----
144
1983
2957
query I rowsort
SELECT + col0 + 74 AS col0 FROM tab0 cor0
----
109
163
98
query I rowsort
SELECT ALL + col2 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT DISTINCT col0 + col0 DIV col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT col0 + col0 / col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT DISTINCT - col1 - + 81 * 8 FROM tab2
----
-665
-679
-707
query I rowsort
SELECT DISTINCT + cor0.col1 * 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col1 * - col2 * 12 AS col1 FROM tab1
----
-14976
-16848
-6840
query I rowsort
SELECT ALL + col1 + - col2 * - tab0.col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL - col2 + 90 * - col2 * tab0.col0 + col1 AS col2 FROM tab0
----
-3054
-656811
-71227
query I rowsort
SELECT + cor0.col2 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + tab1.col1 + 42 + - col1 FROM tab1
----
42
42
42
query I rowsort
SELECT col2 - col1 * ( + tab1.col0 + + col0 ) AS col0 FROM tab1
----
-102
-1223
-1984
onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT ALL tab2.col1 DIV - ( col1 ) + col2 AS col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL tab2.col1 / - ( col1 ) + col2 AS col0 FROM tab2
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT + - col2 DIV cor0.col1 + + 16 FROM tab1 AS cor0
----
11
14
9
skipif mysql # not compatible
query I rowsort label-5772
SELECT + - col2 / cor0.col1 + + 16 FROM tab1 AS cor0
----
11
14
9
query I rowsort
SELECT DISTINCT - 71 + + col0 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
1252
158113
237087
query I rowsort
SELECT + 2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT ALL - col0 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - col2 + - ( - 72 ) FROM tab2 AS cor0
----
34
45
46
query I rowsort
SELECT DISTINCT col1 * + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - tab2.col2 * + 56 FROM tab2
----
-1456
-1512
-2128
query I rowsort
SELECT ALL - col0 * 61 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT DISTINCT + 69 FROM tab1, tab0, tab1 AS cor0, tab2
----
69
query I rowsort
SELECT col0 * - 54 FROM tab0 cor0
----
-1296
-1890
-4806
query I rowsort
SELECT + col1 * + col0 + 10 FROM tab2 AS cor0
----
1353
227
4612
query I rowsort
SELECT - ( col2 ) * - col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 7 col2 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT ALL + + 62 + 70 FROM tab1 cor0
----
132
132
132
query I rowsort
SELECT ALL col2 * 4 AS col2 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT col0 + 85 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT + - 87 + col0 * - 44 * ( - col2 * - col2 ) FROM tab1 AS cor0
----
-32440407
-384999
-9149271
onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT - - col0 DIV - col1 + - ( + col2 ) * - col1 + - 2 FROM tab2 AS cor0
----
1531
640
835
skipif mysql # not compatible
query I rowsort label-5791
SELECT - - col0 / - col1 + - ( + col2 ) * - col1 + - 2 FROM tab2 AS cor0
----
1531
640
835
query I rowsort
SELECT ALL + ( - cor0.col2 ) * 65 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT - 12 * + col1 + - 72 FROM tab1 AS cor0
----
-192
-228
-384
query I rowsort
SELECT ALL 23 * col2 AS col2 FROM tab2 cor0
----
598
621
874
query I rowsort
SELECT ALL + ( col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 + + col0 + - 19 col1 FROM tab2 AS cor0
----
-1475
-586
-849
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL col2 DIV col0 + - col2 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL col2 / col0 + - col2 FROM tab1
----
-36
-57
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT + - ( - col2 ) DIV - col0 + col1 * col2 AS col0 FROM tab0 cor0
----
2837
7462
97
skipif mysql # not compatible
query I rowsort label-5798
SELECT + - ( - col2 ) / - col0 + col1 * col2 AS col0 FROM tab0 cor0
----
2837
7462
97
query I rowsort
SELECT + 36 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
133
2874
7498
query I rowsort
SELECT - + 35 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
-261170
-3395
-99330
onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL col0 DIV - col2 + + 65 FROM tab1 AS cor0
----
64
65
65
skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL col0 / - col2 + + 65 FROM tab1 AS cor0
----
64
65
65
query I rowsort
SELECT col1 * - ( ( col1 ) ) * + col0 + + ( - col2 ) FROM tab2 AS cor0
----
-22869
-271544
-6754
query I rowsort
SELECT col1 * col2 + + ( col2 ) FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT - col2 + + 1 AS col2 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT - - 31 * col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT - + col0 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col1 + - 33 FROM tab0 cor0
----
53
58
64
query I rowsort
SELECT + 93 * col1 AS col2 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT ALL - col2 * - 56 * - col1 AS col0 FROM tab1
----
-31920
-69888
-78624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab2, tab0 AS cor0
----
-20
query I rowsort
SELECT + cor0.col1 + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6
query I rowsort
SELECT DISTINCT + 73 * + col1 AS col2 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT - 21 * + col2 DIV col2 FROM tab0 AS cor0
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort label-5815
SELECT - 21 * + col2 / col2 FROM tab0 AS cor0
----
-21
-21
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 54 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT col1 * ( + ( + col1 ) ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col1 * + ( 90 ) FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT DISTINCT + col0 * - 8 AS col0 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT - col0 + - 69 * col2 * - col0 FROM tab2 AS cor0
----
13034
139854
207059
query I rowsort
SELECT DISTINCT + col0 + col0 * ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col0 + - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-118
-147
20
query I rowsort
SELECT + - col0 * col2 + + 4 FROM tab2 AS cor0
----
-185
-2024
-2998
query I rowsort
SELECT DISTINCT - 55 FROM tab1, tab2, tab0 AS cor0
----
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT DISTINCT - col2 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - col2 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT 45 * col2 FROM tab0
----
1485
3690
45
query I rowsort
SELECT + 94 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT + tab0.col1 * 56 AS col0 FROM tab0
----
4816
5096
5432
query I rowsort
SELECT ALL col1 + - col0 * + tab0.col1 * + col0 + - tab0.col2 FROM tab0
----
-118729
-49483
-720802
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT col2 DIV ( - 14 ) col2 FROM tab0 cor0
----
-2
-5
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5833
SELECT col2 / ( - 14 ) col2 FROM tab0 cor0
----
-2
-5
0
query I rowsort
SELECT + col2 * + ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT tab2.col0 * ( + col1 ) * col1 + + 87 AS col2 FROM tab2
----
22918
271605
6814
query I rowsort
SELECT ALL ( - col1 * + col2 ) AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 + col2 + + 74 AS col0 FROM tab0 AS cor0
----
40
67
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT ALL 8 * - col1 DIV + col1 - ( col1 ) FROM tab1
----
-18
-21
-34
skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL 8 * - col1 / + col1 - ( col1 ) FROM tab1
----
-18
-21
-34
query I rowsort
SELECT - - ( + col2 ) * - col1 + - col2 * 38 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-10487
-38
-4006
query I rowsort
SELECT DISTINCT 22 + tab0.col1 FROM tab0, tab1 AS cor0
----
108
113
119
query I rowsort
SELECT - col0 + - col1 + - 82 AS col0 FROM tab2 AS cor0
----
-120
-178
-219
query I rowsort
SELECT ALL - ( col0 ) + col1 + + col0 * col2 FROM tab1
----
185
3594
7613
onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT - + col2 + + col2 DIV + 48 + + 29 AS col0 FROM tab1 AS cor0
----
-24
-27
-65
skipif mysql # not compatible
query I rowsort label-5843
SELECT - + col2 + + col2 / + 48 + + 29 AS col0 FROM tab1 AS cor0
----
-24
-27
-65
query I rowsort
SELECT col0 * - col0 + + ( + col2 ) * - cor0.col1 - - cor0.col0 AS col0 FROM tab1 cor0
----
-1410
-4602
-7568
query I rowsort
SELECT + 34 - tab1.col1 AS col1 FROM tab1
----
21
24
8
query I rowsort
SELECT - 98 * + col0 AS col1 FROM tab2
----
-686
-7644
-7742
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 80 AS REAL ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT ALL cor0.col1 + - col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 + col1 * + ( 96 ) FROM tab2 AS cor0
----
1594
2949
5638
onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT col2 DIV col0 + ( + col2 * col0 ) + col2 AS col0 FROM tab0 cor0
----
36
7380
826
skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT col2 / col0 + ( + col2 * col0 ) + col2 AS col0 FROM tab0 cor0
----
36
7380
826
onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT + col2 DIV col1 - 5 * col2 FROM tab1 cor0
----
-268
-280
-473
skipif mysql # not compatible
query I rowsort label-5851
SELECT + col2 / col1 - 5 * col2 FROM tab1 cor0
----
-268
-280
-473
query I rowsort
SELECT ALL col0 * 65 FROM tab1 AS cor0
----
195
4160
5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( - 82 ) col2 FROM tab1 AS cor0
----
-4428
-4674
-7872
query I rowsort
SELECT - col0 * 28 + col1 FROM tab2 AS cor0
----
-165
-2125
-2195
query I rowsort
SELECT - - col2 * col1 + - cor0.col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT col1 + 2 AS col1 FROM tab1 AS cor0
----
12
15
28
query I rowsort
SELECT - - col1 * cor0.col0 + - 19 * col2 AS col0 FROM tab2 AS cor0
----
-296
4108
621
query I rowsort
SELECT ALL + + col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT col2 / + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5859
SELECT col2 / + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - - col1 * + 70 * + col2 AS col2 FROM tab1 AS cor0
----
39964
87440
98283
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 * + 40 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT ALL + col2 * 39 FROM tab2 cor0
----
1014
1053
1482
query I rowsort
SELECT col0 + cor0.col0 * - ( + col2 ) FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5865
SELECT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT + cor0.col1 DIV - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5866
SELECT + cor0.col1 / - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT 77 AS col2 FROM tab0 cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT ALL + - ( ( - cor0.col1 ) ) + + col0 DIV 42 AS col1 FROM tab2 AS cor0
----
18
31
60
skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + - ( ( - cor0.col1 ) ) + + col0 / 42 AS col1 FROM tab2 AS cor0
----
18
31
60
query I rowsort
SELECT ALL - 34 + + col1 FROM tab0 AS cor0
----
52
57
63
query I rowsort
SELECT ALL 72 + col2 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT DISTINCT - ( col0 ) + - 59 * + 2 FROM tab1 AS cor0
----
-121
-182
-198
onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT col2 * cor0.col1 * + col2 + col1 * + col0 DIV col0 + 63 FROM tab1 AS cor0
----
119884
32563
75905
skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT col2 * cor0.col1 * + col2 + col1 * + col0 / col0 + 63 FROM tab1 AS cor0
----
119884
32563
75905
query I rowsort
SELECT ALL + col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + cor0.col1 col0 FROM tab0 AS cor0
----
125
130
136
query I rowsort
SELECT - 11 + col1 AS col2 FROM tab0
----
75
80
86
query I rowsort
SELECT DISTINCT - 66 + tab1.col1 FROM tab1, tab1 AS cor0
----
-40
-53
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 * col2 ) - + col1 col0 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT 63 - cor0.col1 FROM tab2 AS cor0
----
32
4
46
query I rowsort
SELECT ALL col1 * + col2 - - col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL cor0.col2 * - 78 FROM tab0, tab1 cor0
----
9 values hashing to 417989dda1c8e28639bb31d9f39cc256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 48 col0 FROM tab2
----
-1488
-2832
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col0 ) col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 81 * 52 * + col0 AS col1 FROM tab1
----
12636
269568
336960
query I rowsort
SELECT - col0 * 48 * + col1 AS col0 FROM tab0
----
-162960
-388752
-99072
onlyif mysql # use DIV operator for integer division
query I rowsort label-5885
SELECT col1 DIV - col1 + - col1 * col0 + 8 FROM tab0
----
-2057
-3388
-8092
skipif mysql # not compatible
query I rowsort label-5885
SELECT col1 / - col1 + - col1 * col0 + 8 FROM tab0
----
-2057
-3388
-8092
query I rowsort
SELECT DISTINCT - 56 * col1 * - col0 FROM tab0
----
115584
190120
453544
query I rowsort
SELECT ALL - cor0.col0 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT col0 * col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
14823
3153
3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT ALL - + 83 DIV col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-89
skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - + 83 / col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT col1 DIV + col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-5890
SELECT col1 / + col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 55 + - col0 * + cor0.col2 + col1 FROM tab0 cor0
----
-651
-7152
117
query I rowsort
SELECT DISTINCT + ( + 31 ) * col1 * col1 FROM tab0
----
229276
256711
291679
query I rowsort
SELECT col0 - - col1 * ( 94 ) AS col0 FROM tab0
----
8108
8643
9153
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col2 * - col1 * - col2 + + ( - col0 ) AS col0 FROM tab1
----
119728
32426
75813
query I rowsort
SELECT DISTINCT - 67 + - cor0.col2 FROM tab1 AS cor0
----
-121
-124
-163
onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT DISTINCT - cor0.col0 DIV - cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT - cor0.col0 / - cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT ALL - - 4 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT DISTINCT cor0.col0 * CAST( - 88 AS SIGNED ) col1 FROM tab2 cor0
----
-616
-6864
-6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT cor0.col0 * CAST ( - 88 AS INTEGER ) col1 FROM tab2 cor0
----
-616
-6864
-6952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5901
SELECT ALL col0 * + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL col0 * + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 83 col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT col1 * tab1.col2 + + col0 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + col0 + + col2 * - 81 * col2 AS col1 FROM tab2
----
-116885
-54678
-59042
query I rowsort
SELECT ALL - + col1 + 45 FROM tab0 AS cor0
----
-41
-46
-52
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( cor0.col2 * + col1 ) FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL col2 + 61 FROM tab2 AS cor0
----
87
88
99
query I rowsort
SELECT - col0 * cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT - + CAST( - 41 AS SIGNED ) FROM tab1 cor0
----
41
41
41
skipif mysql # not compatible
query I rowsort label-5909
SELECT - + CAST ( - 41 AS INTEGER ) FROM tab1 cor0
----
41
41
41
query I rowsort
SELECT + 78 * - 77 AS col1 FROM tab0 AS cor0
----
-6006
-6006
-6006
onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT - cor0.col0 DIV + 87 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5911
SELECT - cor0.col0 / + 87 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 95 * 22 AS col0 FROM tab1 cor0
----
2090
2090
2090
query I rowsort
SELECT ALL - 50 FROM tab1, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT col0 + - 1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ( + 19 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT ALL - 7 + + cor0.col2 DIV ( - col0 ) FROM tab1 AS cor0
----
-25
-7
-8
skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 7 + + cor0.col2 / ( - col0 ) FROM tab1 AS cor0
----
-25
-7
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5917
SELECT + 69 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
35
70
82
skipif mysql # not compatible
query I rowsort label-5917
SELECT + 69 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
35
70
82
query I rowsort
SELECT 99 + + cor0.col0 * + 29 AS col2 FROM tab0 AS cor0
----
1114
2680
795
query I rowsort
SELECT + col1 * col0 + + 33 FROM tab0 AS cor0
----
2097
3428
8132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5920
SELECT ALL + col2 * - col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + col2 * - col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + col0 - ( - col2 + col1 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * + ( + col1 ) + - ( tab0.col0 ) FROM tab0
----
2814
62
7373
query I rowsort
SELECT + 6 * + col1 + + col0 FROM tab2 AS cor0
----
181
193
432
query I rowsort
SELECT - col0 * + col1 * 49 AS col0 FROM tab1
----
-31360
-3822
-50960
query I rowsort
SELECT DISTINCT 25 + col0 * col1 + + 81 FROM tab1
----
1146
184
746
query I rowsort
SELECT ALL tab1.col0 * col1 + col1 * - col1 AS col0 FROM tab1
----
-598
540
871
query I rowsort
SELECT 43 * tab2.col1 + tab2.col0 + + 41 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 356487f6c56744cff466a6adf184e587
query I rowsort
SELECT ALL - 98 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT DISTINCT 99 * cor0.col2 DIV 71 - - col2 col0 FROM tab1 AS cor0
----
129
136
229
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT 99 * cor0.col2 / 71 - - col2 col0 FROM tab1 AS cor0
----
129
136
229
query I rowsort
SELECT ALL + cor0.col2 * + col1 - - col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT - col2 * + col1 - + 26 FROM tab1 AS cor0
----
-1274
-1430
-596
onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - col0 DIV 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-5932
SELECT - col0 / 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + 27 col0 FROM tab2 AS cor0
----
44
58
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 48 col2 FROM tab0 AS cor0
----
-130
-49
-81
query I rowsort
SELECT DISTINCT col2 * 45 AS col1 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT col0 * 29 + + col1 FROM tab2 AS cor0
----
2308
2321
234
query I rowsort
SELECT - col0 * col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab1
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT - cor0.col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5939
SELECT - cor0.col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab2.col0 col1 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col1 col2 FROM tab2
----
1156
2108
4012
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * + col1 - 8 FROM tab0 AS cor0
----
-118833
-49544
-720819
query I rowsort
SELECT ALL - col1 * - col0 + col0 + 37 * col2 AS col0 FROM tab0 AS cor0
----
11222
3309
3467
query I rowsort
SELECT 56 * - ( - col0 ) AS col0 FROM tab0 cor0
----
1344
1960
4984
query I rowsort
SELECT ALL tab0.col1 * - ( + col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - 6 + col2 AS col1 FROM tab1 AS cor0
----
48
51
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT ALL - - CAST( 70 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230
skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - - CAST ( 70 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT - col1 * - col2 * - col1 + col2 FROM tab0 cor0
----
-244035
-678960
-9408
query I rowsort
SELECT DISTINCT - ( + col0 ) * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * - 49 col0 FROM tab1 cor0
----
-2672
-2803
-4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT ALL + - 93 DIV - col0 FROM tab1 AS cor0
----
1
1
31
skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + - 93 / - col0 FROM tab1 AS cor0
----
1
1
31
query I rowsort
SELECT ALL + 60 AS col2 FROM tab0 cor0
----
60
60
60
query I rowsort
SELECT + col1 * - cor0.col0 * + 27 FROM tab2 AS cor0
----
-124254
-36261
-5859
query I rowsort
SELECT DISTINCT - - 61 - col2 FROM tab1 AS cor0
----
-35
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 65 + + col2 col0 FROM tab2
----
482
5096
5173
query I rowsort
SELECT + col0 + 59 * - tab0.col1 FROM tab0
----
-5050
-5280
-5688
query I rowsort
SELECT - col0 - - 6 AS col0 FROM tab1
----
-58
-74
3
query I rowsort
SELECT 5 * col2 + col0 FROM tab0
----
189
40
499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT ( - tab0.col1 ) + - ( col1 + - col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5960
SELECT ( - tab0.col1 ) + - ( col1 + - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT - - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col1 + col2 * 47 AS col0 FROM tab0 AS cor0
----
144
1637
3945
query I rowsort
SELECT DISTINCT - 4 * col0 AS col0 FROM tab1 AS cor0
----
-12
-256
-320
query I rowsort
SELECT DISTINCT - 38 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-38
query I rowsort
SELECT - col1 * col2 - - 55 FROM tab2 AS cor0
----
-1479
-591
-782
query I rowsort
SELECT - col0 * col0 - - ( col1 + - col1 ) * + col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 + 34 * - col1 + - col2 * + col0 AS col1 FROM tab2
----
-1216
-3542
-4008
query I rowsort
SELECT ALL - col2 + + col2 + + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT 46 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL - 54 + - 91 FROM tab1 AS cor0
----
-145
-145
-145
query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab2 cor0
----
-30
query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-5974
SELECT CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - ( + col0 * tab1.col2 ) AS col1 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab0, tab1 AS cor0
----
26
query I rowsort
SELECT ALL + cor0.col0 * - 9 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to ca4bb5151ab78e2b59de075e1a8e7f8b
query I rowsort
SELECT DISTINCT + + col1 * - col1 + - 7 FROM tab2 AS cor0
----
-296
-3488
-968
query I rowsort
SELECT ALL - col2 * ( ( + col1 ) ) + 96 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
2139
4130
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 85 - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0507e5f24a6157e1123ddc68a9854c7a
query I rowsort
SELECT + col2 + 30 AS col1 FROM tab0 cor0
----
112
31
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT + + 46 * col2 + cor0.col0 + + CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
383
520
598
skipif mysql # not compatible
query I rowsort label-5983
SELECT + + 46 * col2 + cor0.col0 + + CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
383
520
598
query I rowsort
SELECT - col0 + + 86 AS col1 FROM tab1
----
22
6
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5985
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5985
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - col2 * - col2 * 18 FROM tab1 AS cor0
----
-165888
-52488
-58482
query I rowsort
SELECT + 43 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT + col2 + + col1 * - col1 - + tab0.col1 AS col1 FROM tab0
----
-7449
-8290
-9505
query I rowsort
SELECT ALL - col2 * col2 * + col2 AS col1 FROM tab0
----
-1
-35937
-551368
query I rowsort
SELECT ALL - col1 * + col2 * - col2 FROM tab1
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT + col0 DIV - tab1.col2 + 0 AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5991
SELECT + col0 / - tab1.col2 + 0 AS col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT + 98 * - col0 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT ALL - 3 * + col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1 AS cor0
----
-65
query I rowsort
SELECT - col1 * + 20 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT DISTINCT - cor0.col1 * 68 * - col2 FROM tab0 AS cor0
----
192984
507416
6596
query I rowsort
SELECT + 16 * + col2 AS col2 FROM tab1
----
1536
864
912
query I rowsort
SELECT ALL + ( 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT cor0.col2 * 15 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 655f1e904862adb63a36ade99f031c39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6000
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col1 - - col2 * tab1.col0 FROM tab1
----
3748
7849
838
query I rowsort
SELECT + col2 * ( + col1 + + col1 ) AS col2 FROM tab0 AS cor0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT - col1 DIV + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6003
SELECT - col1 / + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT col1 * col0 DIV - tab1.col2 FROM tab1
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-6004
SELECT col1 * col0 / - tab1.col2 FROM tab1
----
-1
-10
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT - - ( - ( - col2 ) ) * - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6005
SELECT - - ( - ( - col2 ) ) * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - tab0.col2 * + tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + - ( - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( col1 ) * + ( col1 ) + cor0.col0 AS col0 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - 13 FROM tab0, tab1 AS cor0
----
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT - CAST( NULL AS SIGNED ) + + col1 col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6011
SELECT - CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 18 + + col0 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-24
-5988
-6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT 32 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-6013
SELECT 32 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
10
query I rowsort
SELECT + col0 * - col0 + col1 * - col0 FROM tab2 AS cor0
----
-10686
-266
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col2 * + col2 col0 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT col2 - col0 DIV col1 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-6016
SELECT col2 - col0 / col1 FROM tab2
----
25
27
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( col2 ) * - col0 * col0 col2 FROM tab0 AS cor0
----
1190
18984
649433
query I rowsort
SELECT DISTINCT - 57 * ( col2 ) FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT + col1 + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col2 + + cor0.col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT + col2 - 5 * + col2 FROM tab0 AS cor0
----
-132
-328
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6022
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * + 64 AS col0 FROM tab2 cor0
----
448
4992
5056
query I rowsort
SELECT ALL - col0 * col1 + + col0 FROM tab1 cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT DISTINCT - ( ( cor0.col1 ) ) * - CAST( + col2 + col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
15895
295885
55738
skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - ( ( cor0.col1 ) ) * - CAST ( + col2 + col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
15895
295885
55738
query I rowsort
SELECT - + col1 + col2 + + cor0.col2 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT DISTINCT 17 + 36 * - col0 FROM tab2 AS cor0
----
-235
-2791
-2827
query I rowsort
SELECT - col0 * + col0 + col0 + ( + cor0.col1 ) * - col2 FROM tab1 AS cor0
----
-1410
-4602
-7568
query I rowsort
SELECT ALL + - 32 * col2 FROM tab0 AS cor0
----
-1056
-2624
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT ( + col1 ) * col1 DIV cor0.col2 FROM tab1 AS cor0
----
1
12
skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT ( + col1 ) * col1 / cor0.col2 FROM tab1 AS cor0
----
1
12
query I rowsort
SELECT - 12 + - 79 AS col2 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT - col2 * 64 + col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT - 22 * col0 - - 13 FROM tab2
----
-141
-1703
-1725
query I rowsort
SELECT DISTINCT - 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6035
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT ALL - col1 DIV col2 + 49 FROM tab1 cor0
----
49
49
49
skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - col1 / col2 + 49 FROM tab1 cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT + - col0 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-6038
SELECT + - col0 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col0 * cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + cor0.col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 * - ( + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + - cor0.col0 + - 46 + + col1 AS col1 FROM tab1 AS cor0
----
-100
-113
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + 71 * col0 col2 FROM tab2 AS cor0
----
466
5479
5592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT DISTINCT - col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - col0 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * + 20 + col2 * col2 * + col0 FROM tab0 AS cor0
----
15
25476
596796
query I rowsort
SELECT + col2 + - 13 AS col1 FROM tab0 AS cor0
----
-12
20
69
query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT DISTINCT col2 DIV + col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT col2 / + col2 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - 58 col0 FROM tab0 AS cor0
----
-23
-34
31
query I rowsort
SELECT + col1 * 90 AS col0 FROM tab0 AS cor0
----
7740
8190
8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 8 * col2 col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ALL 88 + - col0 + col1 FROM tab2
----
112
26
69
query I rowsort
SELECT ALL col2 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col0 * col1 + + ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT - col1 DIV - 87 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - col1 / - 87 AS col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT col0 + 48 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4152
4457
4691
query I rowsort
SELECT col2 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT col2 + 42 AS col1 FROM tab0 cor0
----
124
43
75
query I rowsort
SELECT + tab1.col2 - - 47 AS col2 FROM tab1
----
101
104
143
query I rowsort
SELECT cor0.col2 + tab1.col2 * 51 * tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to 8a39f75f0d4db9690c95deee90d2c4e1
query I rowsort
SELECT ALL - col1 - col0 * cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - - 95 * + col0 AS col2 FROM tab2 cor0
----
665
7410
7505
query I rowsort
SELECT DISTINCT 40 + tab1.col2 FROM tab1
----
136
94
97
query I rowsort
SELECT 35 * + 9 AS col2 FROM tab1
----
315
315
315
query I rowsort
SELECT col2 - 19 AS col1 FROM tab2
----
19
7
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) * col2 + + 79 * col2 col1 FROM tab1
----
2862
3933
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT ALL tab0.col0 * - col1 + col0 DIV 21 AS col2 FROM tab0
----
-2063
-3394
-8095
skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL tab0.col0 * - col1 + col0 / 21 AS col2 FROM tab0
----
-2063
-3394
-8095
query I rowsort
SELECT ALL + tab0.col2 * - col0 + - col2 * col0 FROM tab0
----
-14596
-1584
-70
query I rowsort
SELECT ALL + - col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col1 * col1 + - 64 AS col2 FROM tab0 cor0
----
7332
8217
9345
onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT ALL + tab0.col1 DIV - 22 AS col0 FROM tab0
----
-3
-4
-4
skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL + tab0.col1 / - 22 AS col0 FROM tab0
----
-3
-4
-4
query I rowsort
SELECT - cor0.col2 * - col2 + + col1 * - 39 FROM tab1 AS cor0
----
1902
2859
8709
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + - col1 col0 FROM tab2 AS cor0
----
16
44
58
query I rowsort
SELECT DISTINCT cor0.col2 * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL - + 92 + col1 AS col0 FROM tab1 AS cor0
----
-66
-79
-82
query I rowsort
SELECT ALL + + col1 * + 21 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT DISTINCT + 47 * col1 FROM tab2 AS cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6081
SELECT - - CAST( + 0 AS SIGNED ) * col1 + + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-6081
SELECT - - CAST ( + 0 AS INTEGER ) * col1 + + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6082
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT ALL + CAST( NULL AS SIGNED ) - - col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + CAST ( NULL AS INTEGER ) - - col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * 58 * col0 FROM tab2 AS cor0
----
10962
117624
174116
query I rowsort
SELECT ALL col1 + + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - + ( - col1 ) * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * ( + 87 ) AS col1 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT ALL 9 * + col0 FROM tab2 AS cor0
----
63
702
711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 85 col0 FROM tab1, tab2 cor0, tab2 cor1
----
-2210
-2295
-3230
query I rowsort
SELECT + cor0.col2 * + ( - col2 ) * - col0 + 66 FROM tab0 AS cor0
----
101
26202
598502
query I rowsort
SELECT DISTINCT col2 * 76 + col0 FROM tab2 AS cor0
----
2054
2059
2967
query I rowsort
SELECT ALL + cor0.col2 - 26 FROM tab0 AS cor0
----
-25
56
7
query I rowsort
SELECT ALL + - col1 * col1 + - col0 FROM tab1 cor0
----
-164
-249
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 57 col2 FROM tab1
----
3078
3249
5472
query I rowsort
SELECT col0 * col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT DISTINCT - col2 + 94 AS col1 FROM tab1 AS cor0
----
-2
37
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT + - col0 + - 7 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
-38
-80
-83
skipif mysql # not compatible
query I rowsort label-6097
SELECT + - col0 + - 7 * cor0.col1 / col0 FROM tab2 AS cor0
----
-38
-80
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT col2 DIV + 1 - col1 col0 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6098
SELECT col2 / + 1 - col1 col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT ALL + col2 - + 25 DIV + col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + col2 - + 25 / + col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT ALL - col0 DIV + ( - col1 ) + - col0 DIV - col0 AS col2 FROM tab1
----
1
7
7
skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - col0 / + ( - col1 ) + - col0 / - col0 AS col2 FROM tab1
----
1
7
7
query I rowsort
SELECT ALL - col1 + - ( col0 ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT 0 + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - - col1 * col1 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT - + ( - 49 ) * col0 + + col0 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT cor0.col2 * - col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT col2 * + ( - col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col1 * 53 AS col0 FROM tab1
----
1378
530
689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT col0 * - col0 + col0 * col0 + + CAST( col2 AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6109
SELECT col0 * - col0 + col0 * col0 + + CAST ( col2 AS INTEGER ) FROM tab0
----
1
33
82
query I rowsort
SELECT 32 * col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1456
910
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT 35 DIV + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82
skipif mysql # not compatible
query I rowsort label-6111
SELECT 35 / + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82
query I rowsort
SELECT + + ( col1 ) - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 * tab0.col1 * + 66 FROM tab0
----
187308
492492
6402
query I rowsort
SELECT - col2 * 20 FROM tab0
----
-1640
-20
-660
query I rowsort
SELECT - tab0.col0 + + 35 FROM tab0, tab1 AS cor0
----
9 values hashing to 15d23219791fd95a9b93d8d911c07406
query I rowsort
SELECT - col1 * + 65 FROM tab0
----
-5590
-5915
-6305
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6117
SELECT + - col2 * col0 + col2 + - CAST( col1 + + col0 AS SIGNED ) FROM tab0 cor0
----
-166
-7396
-869
skipif mysql # not compatible
query I rowsort label-6117
SELECT + - col2 * col0 + col2 + - CAST ( col1 + + col0 AS INTEGER ) FROM tab0 cor0
----
-166
-7396
-869
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6118
SELECT ALL + CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL 83 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT - col2 + ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + tab1.col1 + col1 AS col1 FROM tab1
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT ALL CAST( - 45 AS SIGNED ) * + cor1.col0 + ( tab1.col2 ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 63bee849da55393c92c06cc8c65b337c
skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL CAST ( - 45 AS INTEGER ) * + cor1.col0 + ( tab1.col2 ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 63bee849da55393c92c06cc8c65b337c
query I rowsort
SELECT + col0 - - 31 * + col1 FROM tab0 AS cor0
----
2690
2910
3042
query I rowsort
SELECT cor0.col0 + + col1 * - col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT col2 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT - + col1 DIV 58 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6127
SELECT - + col1 / 58 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 67 * col0 + 19 FROM tab1 AS cor0
----
220
4307
5379
query I rowsort
SELECT DISTINCT cor0.col2 - 70 FROM tab0, tab0 AS cor0
----
-37
-69
12
query I rowsort
SELECT ALL - + col2 + col2 + ( col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT ALL - cor0.col0 DIV col2 + + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - cor0.col0 / col2 + + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
569
query I rowsort
SELECT ALL 69 * + col1 * + col1 AS col1 FROM tab1 cor0
----
11661
46644
6900
query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + col0 col1 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT DISTINCT ( - col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT ( - col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 41 + - col2 + col2 * ( col1 + + col1 ) FROM tab0
----
14883
234
5684
query I rowsort
SELECT DISTINCT ( col1 ) * - col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab1.col1 + + col2 * col0 * col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT DISTINCT + ( - col0 + + col0 ) AS col2 FROM tab0
----
0
query I rowsort
SELECT + + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col1 * + ( + col0 ) * col2 + + col1 AS col0 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT + 11 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + - cor0.col1 * - 21 col1 FROM tab0 AS cor0
----
1854
2089
2107
query I rowsort
SELECT DISTINCT - - 98 + - col1 FROM tab0 cor0
----
1
12
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT + CAST( + col0 AS SIGNED ) * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-6147
SELECT + CAST ( + col0 AS INTEGER ) * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - - cor0.col2 * + ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + 35 * + col1 AS col2 FROM tab1
----
350
455
910
query I rowsort
SELECT - - 10 * col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT ALL ( col0 ) * - col1 + + 49 FROM tab0 AS cor0
----
-2015
-3346
-8050
query I rowsort
SELECT ALL 41 * + col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT ALL + 57 * + cor0.col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT - + 8 + cor0.col0 AS col2 FROM tab1 cor0
----
-5
56
72
query I rowsort
SELECT ( col1 ) * + col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + ( + col2 ) + - col0 + - 41 AS col0 FROM tab0
----
-32
-48
-75
query I rowsort
SELECT ALL + 15 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT ( - col0 ) DIV + col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT ( - col0 ) / + col1 AS col1 FROM tab2
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6159
SELECT DISTINCT - CAST( + 28 + col2 AS SIGNED ) AS col0 FROM tab2
----
-54
-55
-66
skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - CAST ( + 28 + col2 AS INTEGER ) AS col0 FROM tab2
----
-54
-55
-66
query I rowsort
SELECT ALL - ( 42 * col0 ) + col1 FROM tab0
----
-1373
-3647
-922
query I rowsort
SELECT col2 + + ( col2 ) FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col2 * col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT ALL - cor1.col1 DIV + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - cor1.col1 / + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
query I rowsort
SELECT ALL + 16 * - col0 - col0 FROM tab0 AS cor0
----
-1513
-408
-595
query I rowsort
SELECT - col1 + tab2.col1 + col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col1 + - 22 * col0 AS col2 FROM tab2 cor0
----
-123
-1657
-1721
query I rowsort
SELECT DISTINCT - - 64 + col2 FROM tab1 cor0
----
118
121
160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT - 50 * + ( - col1 ) + col0 FROM tab2 AS cor0
----
1557
3028
929
query I rowsort
SELECT ALL ( - col2 ) * 92 FROM tab0 AS cor0
----
-3036
-7544
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT DISTINCT + col0 + + col1 DIV + 56 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT + col0 + + col1 / + 56 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT + 24 * - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-24
-24
skipif mysql # not compatible
query I rowsort label-6172
SELECT + 24 * - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT - 12 * - col0 AS col0 FROM tab0 cor0
----
1068
288
420
query I rowsort
SELECT - 51 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-207
-3321
-4176
query I rowsort
SELECT ( - col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab0 AS cor0
----
-20
query I rowsort
SELECT DISTINCT - - 4 * + col0 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT ALL + + col0 * col2 + - col1 AS col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT 47 + cor0.col2 AS col1 FROM tab0 AS cor0
----
129
48
80
query I rowsort
SELECT ALL - 72 + col2 AS col2 FROM tab1 AS cor0
----
-15
-18
24
query I rowsort
SELECT + 81 * + col2 AS col0 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT ALL - 26 + - col1 FROM tab2 AS cor0
----
-43
-57
-85
query I rowsort
SELECT ALL + 25 * - col0 FROM tab1 AS cor0
----
-1600
-2000
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 98 col2 FROM tab2
----
124
125
136
query I rowsort
SELECT + 93 + - col0 AS col1 FROM tab1 AS cor0
----
13
29
90
query I rowsort
SELECT cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col1 * 49 + 35 AS col2 FROM tab1 AS cor0
----
-1239
-455
-602
query I rowsort
SELECT ALL + col2 + cor0.col2 + + 75 AS col2 FROM tab1 AS cor0
----
183
189
267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * 46 + - col0 * col0 col0 FROM tab2 AS cor0
----
205608
55537
9933
query I rowsort
SELECT - col1 * col2 * col1 AS col0 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT col0 * 31 + - col2 AS col2 FROM tab0 AS cor0
----
1084
2677
711
query I rowsort
SELECT - col0 * - col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col0 - + col0 * + col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + col0 + 45 + + 44 * - col1 FROM tab1 AS cor0
----
-1096
-331
-447
query I rowsort
SELECT + col2 * ( - ( + col0 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col1 * + col0 - - col1 FROM tab1 cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT col0 DIV col0 - 6 * - col0 AS col1 FROM tab2 cor0
----
43
469
475
skipif mysql # not compatible
query I rowsort label-6197
SELECT col0 / col0 - 6 * - col0 AS col1 FROM tab2 cor0
----
43
469
475
query I rowsort
SELECT ALL - col1 * + col1 + col1 FROM tab0 cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL col0 * 61 + 72 * col0 FROM tab2 AS cor0
----
10374
10507
931
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT DISTINCT - col1 * CAST( + col1 AS SIGNED ) - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - col1 * CAST ( + col1 AS INTEGER ) - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6202
SELECT col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 + cor0.col2 * + col0 AS col1 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ( cor1.col2 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6205
SELECT DISTINCT + ( + cor0.col1 ) DIV - col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + ( + cor0.col1 ) / - col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL col1 - + col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + 63 * - col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + col0 + - col2 col2 FROM tab2 AS cor0
----
-248
-3429
-981
query I rowsort
SELECT col2 + - 19 FROM tab2
----
19
7
8
query I rowsort
SELECT DISTINCT col0 + + col0 * 33 AS col2 FROM tab1
----
102
2176
2720
query I rowsort
SELECT + + cor0.col0 + - ( - col2 ) + cor0.col1 FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT ALL + col2 * col0 * 30 FROM tab2
----
5670
60840
90060
query I rowsort
SELECT 48 * col2 * col1 FROM tab0
----
136224
358176
4656
query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 * + tab1.col1 AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + col1 * - tab2.col1 * col0 AS col2 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT + col2 DIV + 44 + + col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-6216
SELECT + col2 / + 44 + + col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col1 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - col1 * 7 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT DISTINCT cor0.col1 * - 48 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT - col0 + 99 AS col1 FROM tab1 AS cor0
----
19
35
96
query I rowsort
SELECT ALL + - 62 + col0 AS col1 FROM tab0 AS cor0
----
-27
-38
27
query I rowsort
SELECT ALL + + col2 + + 8 AS col2 FROM tab1 AS cor0
----
104
62
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT 28 DIV + col1 + cor0.col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT 28 / + col1 + cor0.col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
1
2
query I rowsort
SELECT DISTINCT - cor0.col1 * - 9 + - cor0.col0 * + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-117952
-48762
-719992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT - 73 DIV - 92 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6225
SELECT - 73 / - 92 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * 90 AS col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT - 63 - col2 FROM tab1 AS cor0
----
-117
-120
-159
query I rowsort
SELECT DISTINCT 48 + - col0 AS col1 FROM tab1 AS cor0
----
-16
-32
45
query I rowsort
SELECT col1 + col1 + 58 * + col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT + cor0.col0 + + col2 * - ( 19 ) FROM tab1 AS cor0
----
-1019
-1023
-1744
onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT DISTINCT - 69 DIV - col0 AS col2 FROM tab2
----
0
9
skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - 69 / - col0 AS col2 FROM tab2
----
0
9
query I rowsort
SELECT ALL + + col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 26 * - col2 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL 57 + - 44 * col2 * 7 AS col0 FROM tab1
----
-16575
-17499
-29511
query I rowsort
SELECT - ( cor0.col1 ) + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT 70 * - col0 + col1 * + 20 + cor0.col0 FROM tab1 AS cor0
----
-4216
-5260
313
query I rowsort
SELECT + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - 8 * cor0.col2 * ( col1 ) AS col2 FROM tab2 cor0
----
-12272
-5168
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT - 40 * - cor0.col2 FROM tab0 AS cor0
----
1320
3280
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6241
SELECT DISTINCT - + col1 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - + col1 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + col2 + 89 * + col2 * col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
14526
324786
683712
onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT - col2 * 24 - cor0.col1 DIV + col1 FROM tab2 cor0
----
-625
-649
-913
skipif mysql # not compatible
query I rowsort label-6243
SELECT - col2 * 24 - cor0.col1 / + col1 FROM tab2 cor0
----
-625
-649
-913
query I rowsort
SELECT DISTINCT + - 85 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
-85
query I rowsort
SELECT 80 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT tab1.col2 + 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 9a431bbf3f7f7e55f66d0f165543700f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) + 40 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) + 40 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + col0 * col0 + cor0.col0 - - col2 * + 98 AS col0 FROM tab0 AS cor0
----
1358
16046
3834
query I rowsort
SELECT DISTINCT + col0 * col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - - ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 98 AS col0 FROM tab1
----
-98
-98
-98
query I rowsort
SELECT col2 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL col0 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL col0 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - - 97 * col1 AS col1 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT 68 FROM tab0, tab1, tab0 cor0
----
68
query I rowsort
SELECT ALL + ( col1 ) + 48 * - col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559
query I rowsort
SELECT cor0.col1 * 12 AS col2 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT DISTINCT - + col0 + - col2 - col0 * col1 AS col0 FROM tab0 cor0
----
-2121
-3431
-8270
query I rowsort
SELECT + col0 * col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ALL - + cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col1 + - col0 * + col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col0 * cor0.col2 + col0 * + col0 * + col1 FROM tab1 AS cor0
----
37312
72
75520
query I rowsort
SELECT cor0.col2 + + cor0.col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * + cor0.col2 FROM tab0, tab0 AS cor0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + col1 + - tab1.col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 - + col0 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-336
-474474
-492960
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 + - col0 FROM tab0 AS cor0
----
7300
854
97
query I rowsort
SELECT + tab1.col2 + col1 * col1 AS col2 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col1 col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 * col0 + - col2 * + col1 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT ALL - col2 + - col1 * - tab1.col2 AS col0 FROM tab1
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + - col0 * - col2 col0 FROM tab1
----
-448
1280
153
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 * col1 + tab2.col0 AS col2 FROM tab2
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT ALL + + 76 DIV + col1 + col2 + + col1 AS col1 FROM tab1 cor0
----
114
74
82
skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + + 76 / + col1 + col2 + + col1 AS col1 FROM tab1 cor0
----
114
74
82
query I rowsort
SELECT DISTINCT - - col2 - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - - cor0.col0 * - col2 - col0 * col1 AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - + col1 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ( col2 + col2 ) DIV - col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6281
SELECT ( col2 + col2 ) / - col0 FROM tab0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT - 10 DIV - 4 FROM tab2
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6282
SELECT - 10 / - 4 FROM tab2
----
2
2
2
query I rowsort
SELECT + col2 + 27 FROM tab1
----
123
81
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT CAST( NULL AS SIGNED ) + 61 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6284
SELECT CAST ( NULL AS INTEGER ) + 61 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 10 - col1 * - col0 FROM tab2
----
1353
227
4612
query I rowsort
SELECT DISTINCT + col2 * col2 * col1 + + col2 - - col2 FROM tab2
----
22653
24624
39936
onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT - 69 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6287
SELECT - 69 / - tab0.col1 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT + col2 DIV col0 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6288
SELECT + col2 / col0 col1 FROM tab0
----
0
0
1
query I rowsort
SELECT 12 * col2 FROM tab0
----
12
396
984
query I rowsort
SELECT col2 * col0 * + col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL col2 * - col0 * col2 + col0 FROM tab1
----
-207872
-737200
-8745
query I rowsort
SELECT + - cor0.col1 * - col2 * col2 AS col0 FROM tab1 cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT col1 DIV + col1 - cor0.col2 * + col0 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-6293
SELECT col1 / + col1 - cor0.col2 * + col0 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT + col2 * + col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT col0 DIV col2 + + col0 AS col2 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-6295
SELECT col0 / col2 + + col0 AS col2 FROM tab1
----
3
65
80
query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT DISTINCT col2 * tab1.col0 DIV + tab1.col2 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT col2 * tab1.col0 / + tab1.col2 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col1 + + col0 * + col2 col1 FROM tab2
----
2113
247
3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT - col1 DIV col0 + + col2 DIV tab1.col1 AS col0 FROM tab1
----
-6
5
7
skipif mysql # not compatible
query I rowsort label-6299
SELECT - col1 / col0 + + col2 / tab1.col1 AS col0 FROM tab1
----
-6
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT DISTINCT + col0 + col0 + - col0 * col1 DIV + col2 AS col2 FROM tab0
----
-14
-3325
80
skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + col0 + col0 + - col0 * col1 / + col2 AS col2 FROM tab0
----
-14
-3325
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT col2 * - col2 DIV tab0.col2 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6301
SELECT col2 * - col2 / tab0.col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - tab0.col0 + col0 + - col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT DISTINCT + tab0.col0 DIV - col0 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + tab0.col0 / - col0 AS col1 FROM tab0
----
-1
query I rowsort
SELECT + tab0.col1 * - col1 * col2 AS col0 FROM tab0 WHERE - col1 + col1 / + col2 - - col2 BETWEEN col0 AND - col0 + - col1 * col0 + col1
----
query I rowsort
SELECT + col1 * - col2 * - col0 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - tab2.col2 - col2 FROM tab2
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT tab0.col1 DIV - tab0.col1 + tab0.col0 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6307
SELECT tab0.col1 / - tab0.col1 + tab0.col0 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL = ( col0 )
----
query I rowsort
SELECT ALL - col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL col2 + col0 - col1 FROM tab0
----
-29
-61
80
query I rowsort
SELECT - col1 + col1 * + col1 - col1 AS col1 FROM tab2
----
255
3363
899
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 WHERE NOT col2 + - col1 + - col1 IN ( col1 )
----
10
13
26
query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN ( - col0 ) AND NULL
----
query I rowsort
SELECT ALL + tab1.col0 - + tab1.col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab1.col1 / - col0 FROM tab1 WHERE NOT NULL IN ( col0 - col1 * col0 )
----
query I rowsort
SELECT ALL col0 + + col1 * col1 AS col2 FROM tab2
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT ALL + col1 * + col2 DIV - col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + col1 * + col2 / - col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT ALL col0 + tab1.col2 DIV col2 + col0 FROM tab1
----
129
161
7
skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL col0 + tab1.col2 / col2 + col0 FROM tab1
----
129
161
7
query I rowsort
SELECT col0 + col0 * - col1 * - col2 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT cor0.col0 * cor0.col2 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT + - cor0.col2 + - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + - cor0.col2 + - col0 / col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT ALL - col2 * - col1 + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
1533
642
837
skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - col2 * - col1 + col0 / - col1 AS col1 FROM tab2 AS cor0
----
1533
642
837
query I rowsort
SELECT DISTINCT + - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col2 * + col1 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 * - col0 + col1 * + col0 col0 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT ALL - col1 DIV col0 AS col1 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - col1 / col0 AS col1 FROM tab1 cor0
----
-8
0
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 / col0 )
----
query I rowsort
SELECT cor0.col1 * + cor0.col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col0 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT ALL - col0 * col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * + 98 + - col0 FROM tab2 cor0
----
-2626
-2653
-3803
query I rowsort
SELECT 70 + + col1 AS col0 FROM tab1 AS cor0
----
80
83
96
query I rowsort
SELECT col0 + - 36 * - col2 AS col1 FROM tab2 AS cor0
----
1014
1447
979
query I rowsort
SELECT - ( - col2 ) - - col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 + - 37 FROM tab1
----
-34
27
43
query I rowsort
SELECT col2 * - 71 + + col0 + col2 * - 92 FROM tab2
----
-4160
-4394
-6115
query I rowsort
SELECT col1 + 69 + col1 AS col2 FROM tab1
----
121
89
95
query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) * - col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 * - 58 FROM tab1
----
-1508
-580
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 36 ) * col2 col1 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab1, tab1 AS cor0
----
52
query I rowsort
SELECT ALL + 96 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT DISTINCT + col0 DIV - col1 + col0 FROM tab1
----
3
58
74
skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + col0 / - col1 + col0 FROM tab1
----
3
58
74
query I rowsort
SELECT + + col1 * 19 * - col1 + - col0 * col0 AS col0 FROM tab2 cor0
----
-11732
-18308
-72223
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 + col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT col1 + 2 * col1 AS col0 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL - 2 * - tab1.col0 AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - col0 * + col1 * - col2 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT + - tab1.col2 DIV + ( 39 ) + + cor0.col1 * - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 007a90e479f120cd5ed88386122624ab
skipif mysql # not compatible
query I rowsort label-6353
SELECT + - tab1.col2 / + ( 39 ) + + cor0.col1 * - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 007a90e479f120cd5ed88386122624ab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab1, tab1 AS cor0
----
-43
query I rowsort
SELECT col0 + + 47 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1152
1680
4272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + 13 * col2 AS col1 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col0 - + 36 FROM tab0
----
-125
-60
-71
query I rowsort
SELECT 4 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 - tab0.col0 * col0 col0 FROM tab0
----
-1232
-583
-7928
query I rowsort
SELECT ALL 89 * + col0 AS col0 FROM tab0 cor0
----
2136
3115
7921
query I rowsort
SELECT ( - col2 ) * + col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT 36 * col0 FROM tab2
----
252
2808
2844
query I rowsort
SELECT ALL ( col1 ) * ( col0 ) * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - tab0.col2 * - 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 468b7772a1c0d35637601bbc1e1d0ba6
query I rowsort
SELECT ALL - 18 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT - + 11 FROM tab0 AS cor0
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col2 + col2 col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT col0 * + col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT - col2 + - ( + col0 ) DIV col2 col1 FROM tab1 AS cor0
----
-54
-58
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6372
SELECT - col2 + - ( + col0 ) / col2 col1 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT + ( + col2 * - ( + 34 ) ) AS col0 FROM tab0
----
-1122
-2788
-34
query I rowsort
SELECT + 80 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT + col1 * + tab2.col2 + + ( col2 ) AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT 9 - col2 AS col0 FROM tab2
----
-17
-18
-29
query I rowsort
SELECT ALL col1 * col0 + ( + 76 ) * tab2.col2 * + col0 FROM tab2
----
14581
158730
229495
query I rowsort
SELECT - - cor0.col1 + - col1 + + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - - col1 * col2 + - 24 * - col2 FROM tab1 AS cor0
----
1938
2700
3552
query I rowsort
SELECT ALL + col1 + col1 * - 48 FROM tab1 AS cor0
----
-1222
-470
-611
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT + col1 DIV col0 + col1 + - 4 FROM tab1 cor0
----
30
6
9
skipif mysql # not compatible
query I rowsort label-6383
SELECT + col1 / col0 + col1 + - 4 FROM tab1 cor0
----
30
6
9
query I rowsort
SELECT ALL + col2 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col1 * + col1 * - ( col0 + col2 * - col0 ) FROM tab2 cor0
----
174902
6787950
844747
query I rowsort
SELECT - col0 * + 3 + - cor0.col2 * col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
4486
552
9207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - col1 * + col0 * col1 + col0 col1 FROM tab1 AS cor0
----
-2016
-2240
-7040
query I rowsort
SELECT DISTINCT - + col2 + - col2 * - col1 + + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 * + col0 + col0 + + col2 * - 61 AS col0 FROM tab2 AS cor0
----
-1451
520
763
query I rowsort
SELECT col0 * - 11 + 6 + cor0.col1 * 54 * + 26 FROM tab2 AS cor0
----
23005
43453
81984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 33 ) + + col2 col2 FROM tab0 AS cor0
----
115
34
66
query I rowsort
SELECT - cor0.col0 * - 39 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to b3060af4699495e7f7c2e98edbb11201
query I rowsort
SELECT - 10 * col2 AS col0 FROM tab2 AS cor0
----
-260
-270
-380
onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL - + col1 + col0 DIV + col2 AS col1 FROM tab0 cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - + col1 + col0 / + col2 AS col1 FROM tab0 cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + cor0.col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL ( 56 ) + col0 * + 2 AS col0 FROM tab2 AS cor0
----
212
214
70
query I rowsort
SELECT + col1 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - - col1 * + col1 - - ( cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
214
361
784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT col2 - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6399
SELECT col2 - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col2 FROM tab2
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + col0 * - col2 * + 32 col1 FROM tab0
----
-1154
-233570
-25378
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT ALL 93 DIV + col0 FROM tab1
----
1
1
31
skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 93 / + col0 FROM tab1
----
1
1
31
query I rowsort
SELECT ALL 99 - + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to bd5a7e3b74ef1aace70deee7ed1aa4fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT ALL + col0 DIV col2 + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6400
9
skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + col0 / col2 + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6400
9
query I rowsort
SELECT DISTINCT + col1 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT cor0.col2 + 33 + - 30 AS col2 FROM tab2, tab0 AS cor0
----
36
4
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col1 * cor0.col2 + col0 col1 FROM tab1 cor0
----
36544
4215
99920
query I rowsort
SELECT ALL + ( 24 + + col2 ) * 11 AS col2 FROM tab2
----
550
561
682
query I rowsort
SELECT - cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT 98 + ( + col2 ) FROM tab2
----
124
125
136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT 13 DIV col0 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6413
SELECT 13 / col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT cor0.col1 * ( col1 ) - col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT 12 * - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col0 FROM tab2 cor0
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 + col2 col2 FROM tab2
----
46
47
58
query I rowsort
SELECT ALL tab0.col1 * + tab0.col0 + - col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL - tab1.col0 * + 47 + + col2 AS col2 FROM tab1
----
-2951
-3664
-87
query I rowsort
SELECT - col0 * col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + + ( 62 ) AS col0 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT 34 * - 49 FROM tab1 AS cor0
----
-1666
onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT ALL - col0 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - col0 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 31 FROM tab1, tab1 cor0
----
-31
query I rowsort
SELECT ALL + 59 + 27 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL col2 + + col0 + 93 FROM tab1
----
150
214
269
query I rowsort
SELECT ALL - col1 * + col2 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT DISTINCT - 66 DIV - 77 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - 66 / - 77 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( + 24 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT + 8 * 15 FROM tab2 AS cor0
----
120
120
120
query I rowsort
SELECT ALL - + col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - - 61 + col1 AS col2 FROM tab2 AS cor0
----
120
78
92
query I rowsort
SELECT - col1 * + cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - cor0.col0 * 16 AS col0 FROM tab2 cor0
----
-1189
-1247
-81
query I rowsort
SELECT ALL 27 + 36 * - col0 + - col2 FROM tab1 AS cor0
----
-135
-2334
-2949
query I rowsort
SELECT ALL - + col2 + + 43 * - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-289214
-44
-46860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) - + col2 col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col0 + - 13 AS col2 FROM tab0 AS cor0
----
-102
-37
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT ALL 92 DIV - col0 FROM tab2 cor0
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 92 / - col0 FROM tab2 cor0
----
-1
-1
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col2 * 11 AS col2 FROM tab2 cor0
----
286
297
418
query I rowsort
SELECT ALL tab0.col1 * - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d
query I rowsort
SELECT + - ( - col1 ) - - cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 * col0 col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT + - 67 DIV col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6445
SELECT + - 67 / col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT + CAST( - col2 AS SIGNED ) - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-6446
SELECT + CAST ( - col2 AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - ( + cor0.col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT - col0 * cor0.col2 DIV 66 FROM tab2 cor0
----
-2
-30
-45
skipif mysql # not compatible
query I rowsort label-6448
SELECT - col0 * cor0.col2 / 66 FROM tab2 cor0
----
-2
-30
-45
query I rowsort
SELECT ALL col0 - + col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col2 col0 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 * col1 col2 FROM tab2 cor0
----
1003
289
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT DISTINCT - col0 * cor0.col0 - + col1 DIV - col0 FROM tab2 AS cor0
----
-45
-6084
-6241
skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - col0 * cor0.col0 - + col1 / - col0 FROM tab2 AS cor0
----
-45
-6084
-6241
query I rowsort
SELECT + + col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + 45 + 90 FROM tab0
----
135
135
135
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT ALL ( + col0 ) + - col2 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL ( + col0 ) + - col2 / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - tab2.col2 + - 19 FROM tab2
----
-45
-46
-57
query I rowsort
SELECT col0 * + col1 * 14 FROM tab0
----
113386
28896
47530
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 35 ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT col1 * + col0 * - col2 + - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT ALL - col0 + - cor0.col2 * col2 * col2 AS col1 FROM tab2 cor0
----
-17654
-19690
-54951
query I rowsort
SELECT DISTINCT + col1 + 69 FROM tab2 AS cor0
----
100
128
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6463
SELECT col0 / CAST( NULL AS SIGNED ) + + 35 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6463
SELECT col0 / CAST ( NULL AS INTEGER ) + + 35 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + + 2 AS col1 FROM tab2 AS cor0
----
-15
-29
-57
query I rowsort
SELECT ALL col2 * 19 + + 52 FROM tab0 AS cor0
----
1610
679
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT ALL - - col0 DIV 76 AS col1 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - - col0 / 76 AS col1 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + + col0 * 15 + 78 AS col2 FROM tab0 AS cor0
----
1413
438
603
query I rowsort
SELECT col1 + 66 * - col2 FROM tab2 AS cor0
----
-1657
-1751
-2491
query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT CAST( 27 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif mysql # not compatible
query I rowsort label-6470
SELECT CAST ( 27 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT + col0 * 81 * + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
13096
295478
622067
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7
query I rowsort
SELECT DISTINCT + tab1.col2 * - ( col0 ) AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT + col2 * + 4 + col1 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-93
130
327
skipif mysql # not compatible
query I rowsort label-6474
SELECT + col2 * + 4 + col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-93
130
327
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query I rowsort
SELECT ALL - 61 * col2 AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT ALL ( + col2 ) - + col0 * + tab2.col1 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + cor0.col2 * - 4 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT - ( - cor0.col0 ) * - cor0.col1 - + 73 AS col0 FROM tab1 cor0
----
-1113
-151
-713
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
10
13
26
query I rowsort
SELECT col2 + col0 * 62 AS col0 FROM tab2 cor0
----
461
4862
4936
query I rowsort
SELECT ALL - 87 * + col0 AS col0 FROM tab1
----
-261
-5568
-6960
query I rowsort
SELECT + - 17 AS col1 FROM tab0 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL 57 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT ALL - 3 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL 82 + col2 AS col2 FROM tab0 cor0
----
115
164
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 - - col1 col2 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL + 94 * col1 + - col1 FROM tab1 AS cor0
----
1209
2418
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab2, tab0 AS cor0
----
1
query I rowsort
SELECT + col1 * - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT 19 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT DISTINCT - col1 + + col2 DIV col1 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - col1 + + col2 / col1 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 + - 37 FROM tab0
----
-119
-38
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL 62 + + 11 DIV col1 FROM tab1
----
62
62
63
skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 62 + + 11 / col1 FROM tab1
----
62
62
63
query I rowsort
SELECT + 0 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + col0 + - col2 * - col2 + - ( col1 ) * col2 FROM tab1
----
1515
2743
8048
query I rowsort
SELECT + 76 - col2 FROM tab2 AS cor0
----
38
49
50
query I rowsort
SELECT ALL + 62 * col0 FROM tab1 AS cor0
----
186
3968
4960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col0 ) ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + cor0.col2 * + col2 - + col1 * col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 * + ( cor0.col2 ) FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - col2 * + ( col1 * col1 ) + col1 * + col0 + - 54 * - col0 FROM tab0 cor0
----
-240708
-4124
-666137
query I rowsort
SELECT ALL ( 68 ) * - col2 * + ( 43 ) FROM tab0 AS cor0
----
-239768
-2924
-96492
query I rowsort
SELECT ALL 15 * col0 FROM tab0
----
1335
360
525
query I rowsort
SELECT ALL + 71 * 69 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 46d5f19905be6dc69772aac0268ea6d0
query I rowsort
SELECT ALL - 97 + - col1 * - col2 * col1 AS col2 FROM tab0
----
243971
678945
9312
query I rowsort
SELECT DISTINCT cor0.col0 + + 94 * - 34 FROM tab2, tab2 AS cor0
----
-3117
-3118
-3189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT - col2 + + col0 DIV - col1 FROM tab1 AS cor0
----
-102
-54
-63
skipif mysql # not compatible
query I rowsort label-6509
SELECT - col2 + + col0 / - col1 FROM tab1 AS cor0
----
-102
-54
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col1 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * ( + 89 ) col0 FROM tab1 cor0
----
1157
2314
890
query I rowsort
SELECT - - col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6515
SELECT col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6515
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
2236
3589
8281
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT ALL + + col2 DIV 89 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + + col2 / 89 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - - col0 * ( + cor0.col2 ) + col1 AS col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab1, tab0 AS cor0
----
53
query I rowsort
SELECT 93 - cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5980d81f73449d924ca5746be2a27e38
query I rowsort
SELECT - cor0.col2 * tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
query I rowsort
SELECT ALL - col0 + - ( ( col1 ) + cor0.col2 ) * - 28 * col1 FROM tab2 AS cor0
----
140342
26101
50337
query I rowsort
SELECT ALL + col2 + 61 + + col1 AS col0 FROM tab2 AS cor0
----
116
119
146
query I rowsort
SELECT DISTINCT - + ( 36 ) + col1 AS col0 FROM tab1 AS cor0
----
-10
-23
-26
query I rowsort
SELECT - + ( col2 ) * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - + ( ( - col0 ) ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 72 - - 28 FROM tab1, tab2 AS cor0
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675
query I rowsort
SELECT + col2 + 76 FROM tab0
----
109
158
77
query I rowsort
SELECT - col2 * - col0 + col1 AS col1 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT col2 * col1 + ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395
onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT - col0 DIV + col0 + ( - 31 * col1 ) AS col2 FROM tab2 AS cor0
----
-1830
-528
-962
skipif mysql # not compatible
query I rowsort label-6535
SELECT - col0 / + col0 + ( - 31 * col1 ) AS col2 FROM tab2 AS cor0
----
-1830
-528
-962
query I rowsort
SELECT ALL - 58 + + cor0.col0 AS col0 FROM tab0 cor0
----
-23
-34
31
query I rowsort
SELECT - 72 * col0 * - col2 + 72 AS col1 FROM tab2 AS cor0
----
13680
146088
216216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT ALL col0 + - col0 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL col0 + - col0 * col2 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT - cor0.col2 DIV col2 + + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-6539
SELECT - cor0.col2 / col2 + + col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - - col2 + col2 * 48 AS col2 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * 50 FROM tab0 AS cor0
----
1200
1750
4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 + - cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
-2851
-3184
-9151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - cor0.col0 * col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - col2 ) + 30 * + cor0.col0 FROM tab2 AS cor0
----
183
2314
2332
query I rowsort
SELECT DISTINCT - 1 * col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL tab2.col1 * - cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3a68b2420e96feae5e3ca1f4dd4282df
onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT DISTINCT + col0 + col1 DIV 13 FROM tab2 AS cor0
----
80
82
9
skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + col0 + col1 / 13 FROM tab2 AS cor0
----
80
82
9
query I rowsort
SELECT - + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + + col2 * - col0 - + 78 FROM tab2 AS cor0
----
-2106
-267
-3080
query I rowsort
SELECT ALL - 61 - col0 AS col2 FROM tab1
----
-125
-141
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT DISTINCT + col0 DIV + tab1.col2 + ( 91 ) AS col0 FROM tab1
----
91
92
skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + col0 / + tab1.col2 + ( 91 ) AS col0 FROM tab1
----
91
92
query I rowsort
SELECT + cor0.col1 * + col0 + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL ( col1 ) + 23 AS col2 FROM tab2 cor0
----
40
54
82
query I rowsort
SELECT + ( col1 * + col1 ) FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT DISTINCT + CAST( + 14 AS SIGNED ) * + col0 FROM tab2
----
1092
1106
98
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) * + col0 FROM tab2
----
1092
1106
98
query I rowsort
SELECT + 96 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT + - CAST( col2 AS SIGNED ) * col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif mysql # not compatible
query I rowsort label-6558
SELECT + - CAST ( col2 AS INTEGER ) * col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 87 col1 FROM tab2 cor0
----
609
6786
6873
query I rowsort
SELECT ALL cor0.col1 + ( - 74 ) FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 96808a6831faa202b9c2ddc35a41c6df
query I rowsort
SELECT + ( col1 ) + - ( + 41 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1007
-1076
-1541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT ALL cor0.col2 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL cor0.col2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * - cor0.col1 * - col2 col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT + col1 * - col2 * col2 + - col1 * + 23 AS col0 FROM tab0 AS cor0
----
-2328
-613977
-95632
query I rowsort
SELECT ALL + col2 + 30 AS col2 FROM tab0 AS cor0
----
112
31
63
query I rowsort
SELECT DISTINCT + col1 + 62 + col1 AS col1 FROM tab0 AS cor0
----
234
244
256
query I rowsort
SELECT + col1 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 7 col2 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT - + 56 DIV + col1 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-6571
SELECT - + 56 / + col1 FROM tab1 AS cor0
----
-2
-4
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT + ( 25 ) DIV col1 FROM tab1 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6572
SELECT + ( 25 ) / col1 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT DISTINCT col2 + 3 * - col0 FROM tab2
----
-199
-208
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT - CAST( NULL AS SIGNED ) + + 42 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6574
SELECT - CAST ( NULL AS INTEGER ) + + 42 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 27 * col2 + col2 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT col2 * + 59 + tab2.col1 * - tab2.col1 - - 39 * + col0 FROM tab2
----
1095
5034
905
query I rowsort
SELECT + cor0.col1 * 95 AS col0 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT - col0 + - 99 FROM tab0 AS cor0
----
-123
-134
-188
onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT + col2 DIV - 25 + col0 FROM tab0 AS cor0
----
23
35
86
skipif mysql # not compatible
query I rowsort label-6579
SELECT + col2 / - 25 + col0 FROM tab0 AS cor0
----
23
35
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ( - cor0.col0 ) + col2 * col0 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-112
-13
-255
skipif mysql # not compatible
query I rowsort label-6580
SELECT ( - cor0.col0 ) + col2 * col0 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-112
-13
-255
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT ALL CAST( NULL AS DECIMAL ) * col0 + col2 * + 18 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-6581
SELECT ALL CAST ( NULL AS REAL ) * col0 + col2 * + 18 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + ( ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT DISTINCT + - cor0.col1 DIV col1 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT + - cor0.col1 / col1 FROM tab0 cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT - col2 * cor0.col2 * col1 - col0 DIV col0 FROM tab2 AS cor0
----
-22600
-24549
-39885
skipif mysql # not compatible
query I rowsort label-6585
SELECT - col2 * cor0.col2 * col1 - col0 / col0 FROM tab2 AS cor0
----
-22600
-24549
-39885
query I rowsort
SELECT DISTINCT + col1 * + 52 + col2 AS col0 FROM tab0 AS cor0
----
4505
4814
5045
query I rowsort
SELECT DISTINCT - ( - col2 ) - + col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + - 93 AS col0 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + ( ( + col2 ) ) + col0 * col0 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col0 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - col1 - ( ( col1 ) + + col0 ) FROM tab1 AS cor0
----
-106
-55
-84
query I rowsort
SELECT DISTINCT + 84 * col0 * 9 FROM tab0
----
18144
26460
67284
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col1 * + ( + ( col1 ) ) FROM tab2
----
289
3481
961
query I rowsort
SELECT - - col2 + + 43 AS col1 FROM tab1 AS cor0
----
100
139
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT + col0 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-6596
SELECT + col0 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col2 col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT - col2 DIV - 78 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6598
SELECT - col2 / - 78 FROM tab2
----
0
0
0
query I rowsort
SELECT 50 + col2 * col1 FROM tab1 AS cor0
----
1298
1454
620
query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col1 * - col0 - - col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col1 * col0 + col0 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
16116
4095
6789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 + + col0 col2 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT DISTINCT + col1 * col2 - - col0 FROM tab1 cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - cor0.col1 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 20 + col1 FROM tab0 AS cor0
----
66
71
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 - + cor0.col0 AS col2 FROM tab1 cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT ALL cor0.col1 DIV col0 col2 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL cor0.col1 / col0 col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL + cor0.col0 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col0 * - col2 + col1 + col2 FROM tab1 AS cor0
----
-3581
-7571
-82
query I rowsort
SELECT ALL + col0 * col1 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT 65 * - 69 FROM tab0 AS cor0
----
-4485
query I rowsort
SELECT ALL ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col1 + ( - tab2.col2 ) FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - col2 * ( - col0 ) + + col0 * - col1 AS col0 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT + 59 + - 7 AS col2 FROM tab2
----
52
52
52
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) * + col1 AS col1 FROM tab0
----
636056
753571
912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * - 91 col0 FROM tab0
----
2184
3185
8099
query I rowsort
SELECT - tab2.col1 * col2 + - col0 * col2 AS col1 FROM tab2
----
-1026
-3562
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6622
SELECT ALL - CAST( - col1 AS SIGNED ) + col1 AS col0 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - CAST ( - col1 AS INTEGER ) + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - + ( 48 ) + col0 - - col1 AS col2 FROM tab1 cor0
----
-19
26
45
query I rowsort
SELECT - col2 * + 16 + - col2 AS col0 FROM tab0 cor0
----
-1394
-17
-561
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
86
91
97
query I rowsort
SELECT + + col2 * 27 + - col1 FROM tab0 AS cor0
----
-70
2123
805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT DISTINCT - CAST( col1 AS SIGNED ) - + col2 FROM tab1 cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - + col2 FROM tab1 cor0
----
-109
-67
-80
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT ALL - - 19 - cor0.col1 AS col2 FROM tab0 cor0
----
-67
-72
-78
query I rowsort
SELECT tab1.col1 + - col2 * tab1.col1 * + col1 AS col1 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT ALL - col2 + + col2 * + col2 FROM tab0
----
0
1056
6642
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----
query I rowsort
SELECT - col2 + + col0 + col1 * - col2 FROM tab0
----
-2847
-63
-7455
query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - col2 + + tab0.col1 * col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col0 * col1 ) = - col1 / col0
----
query I rowsort
SELECT ALL + col0 * col2 + - col1 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT ALL col2 + + col1 DIV + col2 + col1 * col1 FROM tab0
----
7431
8364
9507
skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL col2 + + col1 / + col2 + col1 * col1 FROM tab0
----
7431
8364
9507
query I rowsort
SELECT DISTINCT - col1 + - col1 * col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT - col1 + col0 + + col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - tab1.col1 + + col2 * - col2 AS col0 FROM tab1
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT DISTINCT cor0.col1 DIV - col0 AS col2 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT cor0.col1 / - col0 AS col2 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * cor0.col0 col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col2 + - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-42
-75
33
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab2, tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - col0 + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-131
-77
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col2 * cor0.col2 col0 FROM tab2 AS cor0
----
-680
4797
5408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * col1 + + cor0.col1 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1037
-1062
775
query I rowsort
SELECT DISTINCT col0 * + col1 + col2 * - col0 + col1 FROM tab0
----
1358
3457
892
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT col0 DIV - col0 + col0 + col1 FROM tab1 AS cor0
----
28
73
92
skipif mysql # not compatible
query I rowsort label-6653
SELECT col0 / - col0 + col0 + col1 FROM tab1 AS cor0
----
28
73
92
query I rowsort
SELECT - + col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 + + col0 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT tab2.col0 * + 5 FROM tab2
----
35
390
395
query I rowsort
SELECT - 7 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT - cor0.col1 DIV col0 + col1 * ( col1 ) + col2 col2 FROM tab1 cor0
----
157
265
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - cor0.col1 / col0 + col1 * ( col1 ) + col2 col2 FROM tab1 cor0
----
157
265
722
query I rowsort
SELECT col0 + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT col2 * 25 * + col2 FROM tab1
----
230400
72900
81225
skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + 90 * col0 AS REAL ) + ( col1 ) AS col2 FROM tab2
----
120887
19561
414239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab0
----
44
44
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 + + ( - col2 ) * + col2 col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT cor0.col0 * col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT + col0 * - col0 + 10 AS col0 FROM tab0 AS cor0
----
-1215
-566
-7911
query I rowsort
SELECT ALL + ( + col1 ) + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab1, tab0 cor0
----
86
query I rowsort
SELECT ALL + 9 * tab0.col2 FROM tab0
----
297
738
9
query I rowsort
SELECT ALL - + 79 * - ( + col2 ) FROM tab0 AS cor0
----
2607
6478
79
skipif mysql # not compatible
query I rowsort
SELECT + + col0 + + col1 * - CAST ( + col2 AS REAL ) FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - col0 * col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT + - col1 DIV - col0 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1223
-573
-7920
skipif mysql # not compatible
query I rowsort label-6675
SELECT + - col1 / - col0 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1223
-573
-7920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 - - cor0.col1 col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort
SELECT + 12 * - col0 * CAST ( - ( col2 ) AS REAL ) + + ( col1 ) FROM tab0 AS cor0
----
517
87667
9590
query I rowsort
SELECT + col1 * - cor0.col2 * 52 - - col1 FROM tab2 AS cor0
----
-33575
-43493
-79709
query I rowsort
SELECT - col2 * - col1 + + 0 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 * - col1 - + col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT ( - col2 ) + + col0 - col2 * col0 FROM tab1
----
-213
-3641
-7696
query I rowsort
SELECT 84 + col1 FROM tab2
----
101
115
143
query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 + - col0 * + 54 AS col1 FROM tab1
----
-165
-3520
-4400
query I rowsort
SELECT tab0.col1 - + col0 * - col2 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT + col0 + - cor0.col2 DIV ( col0 * + col0 + col0 * col0 ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6687
SELECT + col0 + - cor0.col2 / ( col0 * + col0 + col0 * col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 - - 83 * - 42 AS col0 FROM tab1 AS cor0
----
-3390
-3429
-3432
query I rowsort
SELECT ALL - col1 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 + col1 FROM tab0 AS cor0
----
195
2957
7635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 97 * tab2.col2 col1 FROM tab2
----
148798
62662
81189
query I rowsort
SELECT + col0 + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT + + col2 * - 20 - - col2 * col0 * col1 FROM tab2 AS cor0
----
119132
50274
5319
query I rowsort
SELECT col0 + 62 * - 68 * - col1 FROM tab2 AS cor0
----
130703
248822
71751
query I rowsort
SELECT - - col0 + col0 * - 65 AS col1 FROM tab1 AS cor0
----
-192
-4096
-5120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT ALL - col1 - 34 DIV + 99 AS col2 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - col1 - 34 / + 99 AS col2 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6697
SELECT - + col0 * - CAST( ( - col1 ) AS SIGNED ) * - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
672217
6790
70176
skipif mysql # not compatible
query I rowsort label-6697
SELECT - + col0 * - CAST ( ( - col1 ) AS INTEGER ) * - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
672217
6790
70176
onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL + col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT - cor0.col2 + - 72 + - col2 AS col0 FROM tab0 cor0
----
-138
-236
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * + col2 col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col1 + 97 AS col2 FROM tab1 cor0
----
71
84
87
query I rowsort
SELECT col0 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6703
SELECT ALL 43 * - cor0.col1 + + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-4074
-860
3549
skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL 43 * - cor0.col1 + + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-4074
-860
3549
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT + CAST( NULL AS SIGNED ) * - 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-6705
SELECT + CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col2 + + col2 * col1 FROM tab1 cor0
----
10464
3819
4320
query I rowsort
SELECT ( 0 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT ALL + 22 DIV 95 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + 22 / 95 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 29 * col0 + cor0.col0 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT DISTINCT - + 70 + col0 AS col1 FROM tab1 AS cor0
----
-6
-67
10
query I rowsort
SELECT + col2 * 31 FROM tab1 cor0
----
1674
1767
2976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6713
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6714
SELECT CAST( NULL AS SIGNED ) * 80 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6714
SELECT CAST ( NULL AS INTEGER ) * 80 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col0 + - ( - col0 ) * + 48 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT - col0 * + cor0.col2 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT - 99 + col1 AS col0 FROM tab2 cor0
----
-40
-68
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT ALL - cor0.col2 + - col1 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - cor0.col2 + - col1 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT ALL ( + col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL ( + col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT + - cor0.col2 * - 45 + - col0 FROM tab1 AS cor0
----
2427
2501
4240
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + 31 AS REAL ) + - col2 * col2 FROM tab0 AS cor0
----
-1058
-6693
30
query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - - ( - col0 ) * - ( col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col2 * + col1 * 32 FROM tab2 AS cor0
----
-20672
-26784
-49088
query I rowsort
SELECT DISTINCT - ( - col1 ) + + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + col2 + - 42 * + col2 FROM tab0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT tab0.col1 + 43 FROM tab0
----
129
134
140
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT DISTINCT + col2 DIV - ( + col0 * 5 ) + - col2 * - col0 + col1 * col2 * - col1 AS col0 FROM tab2
----
-25758
-7980
-88478
skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + col2 / - ( + col0 * 5 ) + - col2 * - col0 + col1 * col2 * - col1 AS col0 FROM tab2
----
-25758
-7980
-88478
query I rowsort
SELECT ALL col0 * - 38 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
113997
7175
76986
query I rowsort
SELECT + - col2 * + cor0.col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col2 + + 61 + + 93 FROM tab0 AS cor0
----
121
153
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( 64 ) col2 FROM tab0 cor0
----
22
27
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT ALL + col1 DIV - col0 + col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1515
358956
skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + col1 / - col0 + col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1515
358956
query I rowsort
SELECT DISTINCT - - col1 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col0 * + 53 - - col2 AS col1 FROM tab0 AS cor0
----
-1239
-1854
-4635
query I rowsort
SELECT - col1 * ( tab0.col2 ) - + tab0.col2 FROM tab0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * col0 + - col1 col1 FROM tab1 AS cor0
----
-266
-5130
-6413
query I rowsort
SELECT DISTINCT ( + 5 ) * col1 AS col1 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT ALL + - ( + 28 ) * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-344
-444
-731
query I rowsort
SELECT col1 * - 62 AS col2 FROM tab0 cor0
----
-5332
-5642
-6014
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 FROM tab2, tab1, tab1 AS cor0, tab1 cor1
----
81 values hashing to f3d13ee223d49784ddc477e9dce2d812
query I rowsort
SELECT ALL col0 * - 21 + - ( + col2 + col2 ) FROM tab2
----
-1690
-1735
-201
query I rowsort
SELECT ALL + col2 + 4 FROM tab0
----
37
5
86
query I rowsort
SELECT ALL col2 * + col0 + 96 * + col1 FROM tab0
----
16034
9048
9347
query I rowsort
SELECT ALL 7 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT col2 + col1 * col1 * - tab0.col2 FROM tab0
----
-244035
-678960
-9408
query I rowsort
SELECT ALL 28 + - 43 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT - col2 + 69 AS col1 FROM tab2 AS cor0
----
31
42
43
query I rowsort
SELECT DISTINCT + col2 * + col0 + 70 AS col0 FROM tab1
----
232
3718
7750
query I rowsort
SELECT ALL + cor0.col2 * + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to f293fb31cc171abeef4b8f6e790a6ab0
query I rowsort
SELECT ALL - 70 * 91 + + col2 FROM tab0
----
-6288
-6337
-6369
query I rowsort
SELECT ALL - 78 * 28 AS col0 FROM tab0
----
-2184
-2184
-2184
query I rowsort
SELECT DISTINCT + 67 - - ( col2 ) * - ( + col1 ) FROM tab2 cor0
----
-1467
-579
-770
query I rowsort
SELECT - ( + cor0.col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col0 * col1 - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT col1 DIV 98 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6759
SELECT col1 / 98 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - 49 * + col0 + + col2 * col1 * col1 FROM tab2 AS cor0
----
25604
7111
86684
query I rowsort
SELECT ALL + col0 * - ( - col0 ) + - 31 AS col0 FROM tab2 AS cor0
----
18
6053
6210
query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab2, tab1, tab0 AS cor0
----
-67
query I rowsort
SELECT ALL col1 * col2 + + 66 FROM tab1 AS cor0
----
1314
1470
636
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + - cor0.col2 - + 60 * col2 AS col2 FROM tab0 AS cor0
----
-2013
-5002
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL col2 DIV col1 - col0 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL col2 / col1 - col0 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT DISTINCT - - cor0.col1 * 60 + col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col2 + - col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - - col2 * col2 DIV - ( col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
-12
-21
-6
skipif mysql # not compatible
query I rowsort label-6770
SELECT - - col2 * col2 / - ( col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
-12
-21
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT ALL col0 DIV + 47 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL col0 / + 47 AS col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL - + col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col0 * col2 - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL col0 + ( 77 * + col1 ) AS col2 FROM tab1 AS cor0
----
1081
2005
834
query I rowsort
SELECT ALL + - col1 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + + col0 * ( - 30 ) + col1 AS col0 FROM tab1 cor0
----
-1910
-2387
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT DISTINCT - col0 * col1 DIV - ( + 2 ) FROM tab2
----
108
2301
671
skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - col0 * col1 / - ( + 2 ) FROM tab2
----
108
2301
671
onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT ( tab1.col1 ) * 62 DIV + 7 AS col1 FROM tab1
----
115
230
88
skipif mysql # not compatible
query I rowsort label-6778
SELECT ( tab1.col1 ) * 62 / + 7 AS col1 FROM tab1
----
115
230
88
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL NOT IN ( - col2 + + col0 / - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT - col1 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6780
SELECT - col1 / + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col2 * col0 + col0 AS col0 FROM tab0
----
1260
19032
649611
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col1
----
query I rowsort
SELECT ALL - tab1.col2 FROM tab1 WHERE NOT NULL IN ( col0 * - col1 + col2 )
----
query I rowsort
SELECT col0 - + col2 * col2 AS col1 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL - tab0.col1 * col2 + + col2 * col0 AS col1 FROM tab0
----
-164
-2046
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT col1 DIV col1 + - tab1.col1 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT col1 / col1 + - tab1.col1 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0 WHERE NOT NULL <> col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - tab0.col2 + tab0.col2 col1 FROM tab0 WHERE col1 IN ( - col1 * col2 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT DISTINCT - tab0.col0 * col1 + col1 * col2 DIV col2 FROM tab0
----
-1978
-3298
-8008
skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - tab0.col0 * col1 + col1 * col2 / col2 FROM tab0
----
-1978
-3298
-8008
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= col0 * + col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> col2 + col2
----
query I rowsort
SELECT ALL - col0 * - tab0.col0 + tab0.col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT - col1 + + tab1.col0 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT col1 FROM tab2 WHERE col0 IN ( + col2 * col2 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - + col0 * - col2 * + col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL - - 95 * col0 FROM tab1 AS cor0
----
285
6080
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT ALL + 65 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 65 / col0 AS col1 FROM tab2 AS cor0
----
0
0
9
query I rowsort
SELECT 14 * col1 AS col2 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT DISTINCT - 64 + - col0 AS col1 FROM tab2 AS cor0
----
-142
-143
-71
query I rowsort
SELECT DISTINCT - - 64 AS col1 FROM tab0 AS cor0
----
64
query I rowsort
SELECT ALL 95 * ( - tab0.col1 + - tab0.col0 ) AS col2 FROM tab0
----
-10450
-12540
-17100
query I rowsort
SELECT tab1.col1 * 77 * tab1.col2 + + 9 AS col2 FROM tab1
----
108117
43899
96105
query I rowsort
SELECT ALL 54 * + col0 AS col2 FROM tab2
----
378
4212
4266
query I rowsort
SELECT DISTINCT col1 * 86 * + col2 AS col0 FROM tab0
----
244068
641732
8342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab2 AS cor0
----
28
query I rowsort
SELECT - + cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col1 + + ( cor0.col2 ) * col0 * 15 FROM tab0 AS cor0
----
109561
11966
622
query I rowsort
SELECT - - col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 * - ( - col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col1 + + col0 + tab2.col2 FROM tab2
----
134
163
65
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( col1 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT - - col0 + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6814
SELECT - - col0 + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + ( + col1 ) + col2 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT + col1 * 57 DIV + col2 + + col2 * col0 FROM tab1 AS cor0
----
189
3658
7687
skipif mysql # not compatible
query I rowsort label-6816
SELECT + col1 * 57 / + col2 + + col2 * col0 FROM tab1 AS cor0
----
189
3658
7687
query I rowsort
SELECT - - col2 + col2 * + col1 * 66 AS col2 FROM tab1 cor0
----
37677
82464
92718
query I rowsort
SELECT + 74 * - col2 AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT + ( - 84 ) * col2 AS col0 FROM tab1 AS cor0
----
-4536
-4788
-8064
query I rowsort
SELECT 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL col2 * + 75 AS col1 FROM tab1
----
4050
4275
7200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - col1 * + col2 col1 FROM tab1 AS cor0
----
-1150
-1306
-472
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - col1 + - CAST ( + 68 AS REAL ) + + col2 FROM tab1
----
197
662
89
query I rowsort
SELECT DISTINCT + ( - tab2.col0 ) + col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + - tab0.col1 col2 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT DISTINCT col2 + - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT col2 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT - tab0.col2 + + col2 + col0 * col2 DIV + col1 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-6828
SELECT - tab0.col2 + + col2 + col0 * col2 / + col1 FROM tab0
----
0
80
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT + col2 DIV col2 + + col1 AS col2 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6829
SELECT + col2 / col2 + + col1 AS col2 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL - col2 * - col2 + - 66 FROM tab0
----
-65
1023
6658
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( col0 AS REAL ) + col2 + col0 FROM tab0 cor0
----
1261
633
8092
query I rowsort
SELECT + col1 - - col2 * col1 FROM tab0
----
194
2924
7553
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + ( 15 + tab2.col2 ) * col2 col1 FROM tab2
----
-468
1368
297
query I rowsort
SELECT - 74 + + 73 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT DISTINCT col1 + tab1.col1 * 14 FROM tab1
----
150
195
390
query I rowsort
SELECT 52 * - ( cor0.col1 ) + 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 5fbba081629c8cc301fc16aa01bc263b
query I rowsort
SELECT ALL + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT ALL col1 DIV - col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col1 / - col1 - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT col0 DIV 77 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
26
skipif mysql # not compatible
query I rowsort label-6840
SELECT col0 / 77 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
26
query I rowsort
SELECT DISTINCT - + col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col0 AS REAL ) + cor0.col0 FROM tab0 cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - col2 ) + col0 col0 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT DISTINCT - - col0 * + 76 - + col1 FROM tab2 cor0
----
501
5869
5987
query I rowsort
SELECT + cor0.col1 * - col0 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT + col0 * - 30 * ( col2 ) + col1 AS col0 FROM tab0 AS cor0
----
-218849
-23674
-953
query I rowsort
SELECT - cor0.col0 + 92 AS col1 FROM tab1 AS cor0
----
12
28
89
query I rowsort
SELECT ALL - + cor0.col2 + ( - 30 * - col1 ) AS col2 FROM tab0 AS cor0
----
2547
2648
2909
query I rowsort
SELECT ALL - col1 * + 36 - col1 * col2 AS col0 FROM tab2 cor0
----
-1258
-1953
-3658
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT ALL - col0 DIV - 23 + col1 * + col1 col1 FROM tab1 AS cor0
----
102
172
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - col0 / - 23 + col1 * + col1 col1 FROM tab1 AS cor0
----
102
172
676
query I rowsort
SELECT 32 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT - 39 DIV tab0.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 3345cc647185cb1cf39691b4bd92c2e4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6852
SELECT - 39 / tab0.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 3345cc647185cb1cf39691b4bd92c2e4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT - ( + cor0.col0 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6853
SELECT - ( + cor0.col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL - col1 * cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab2 AS cor0
----
59
query I rowsort
SELECT + - 37 + 66 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT ALL ( - col2 ) + col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 24 * col2 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT DISTINCT - 34 + col2 * + col1 + 70 FROM tab2 AS cor0
----
1570
682
873
query I rowsort
SELECT + + 41 * + col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT + - CAST( NULL AS SIGNED ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6861
SELECT + - CAST ( NULL AS INTEGER ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT 73 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT 83 + col1 * col0 * col0 AS col2 FROM tab0 AS cor0
----
118908
49619
720894
onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT DISTINCT + + col1 + - col1 DIV 12 FROM tab0 cor0
----
79
84
89
skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + + col1 + - col1 / 12 FROM tab0 cor0
----
79
84
89
query I rowsort
SELECT ALL - + ( + col1 ) - + 94 * - 15 AS col2 FROM tab2 cor0
----
1351
1379
1393
query I rowsort
SELECT 89 * col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT col1 DIV - col1 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6868
SELECT col1 / - col1 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL - - col1 * + cor0.col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL ( - col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col0 + col1 * + col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL - + cor0.col0 - + col0 * + cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT + 6 * - col0 AS col1 FROM tab1 cor0
----
-18
-384
-480
query I rowsort
SELECT col1 * col1 + col1 * col2 + - col0 FROM tab2 AS cor0
----
1791
4937
856
query I rowsort
SELECT + cor0.col0 - + col1 AS col0 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col1 FROM tab1
----
67
query I rowsort
SELECT + + 27 + - col1 FROM tab1 AS cor0
----
1
14
17
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + - col2 - - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) + tab2.col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT ALL - 54 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT 15 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT DISTINCT ( col1 + + col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - - 66 AS col2 FROM tab2 AS cor0
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT - ( col1 ) DIV col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - ( col1 ) / col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + cor0.col0 + cor0.col0 * + cor0.col0 * col2 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT + + col0 * - ( 41 ) AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT - col2 * + ( + col1 * col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + cor0.col0 * col0 * col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT 51 + + cor0.col1 DIV tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e3e33c09b8854aa9efc413cfadf15e0b
skipif mysql # not compatible
query I rowsort label-6891
SELECT 51 + + cor0.col1 / tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e3e33c09b8854aa9efc413cfadf15e0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * + cor0.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33
query I rowsort
SELECT DISTINCT + col1 - + 19 * col2 AS col2 FROM tab0
----
-1467
-541
78
query I rowsort
SELECT col1 - ( - col2 ) AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT 80 + - col1 - - col2 AS col1 FROM tab1
----
108
127
163
query I rowsort
SELECT + - ( - col2 ) + - col2 * col2 * + col1 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT - + 69 * 21 AS col0 FROM tab1 AS cor0
----
-1449
-1449
-1449
query I rowsort
SELECT DISTINCT + 43 FROM tab1, tab2 AS cor0
----
43
query I rowsort
SELECT DISTINCT ( 90 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT + col1 + - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + 80 * cor0.col1 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
1053
2106
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT DISTINCT 50 DIV + col2 FROM tab0
----
0
1
50
skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT 50 / + col2 FROM tab0
----
0
1
50
query I rowsort
SELECT DISTINCT + 23 * + col1 AS col1 FROM tab1
----
230
299
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT 34 + - 71 + cor0.col0 DIV cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-36
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT 34 + - 71 + cor0.col0 / cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-36
query I rowsort
SELECT - cor0.col1 * 27 AS col2 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT DISTINCT + col1 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 * + cor0.col1 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6909
SELECT + + col2 * CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6909
SELECT + + col2 * CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 ) * ( 93 ) FROM tab1
----
5022
5301
8928
query I rowsort
SELECT cor0.col1 FROM tab2, tab0, tab1 cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT ALL cor0.col0 DIV + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL cor0.col0 / + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT ALL cor0.col1 - - 92 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to dbb3da51562ad3cbad3d2d9deac416df
query I rowsort
SELECT DISTINCT - ( - tab0.col2 * + col0 ) FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT - cor0.col2 + + CAST( 62 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-20
29
61
skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - cor0.col2 + + CAST ( 62 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-20
29
61
query I rowsort
SELECT - - col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 * - col1 * + 66 FROM tab1 AS cor0
----
42240
5148
68640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6918
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) * + ( + cor0.col0 ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) * + ( + cor0.col0 ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL col1 + - ( 70 ) * col1 FROM tab2 cor0
----
-1173
-2139
-4071
query I rowsort
SELECT ALL 18 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT ALL col0 * 10 DIV 82 FROM tab2
----
0
9
9
skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL col0 * 10 / 82 FROM tab2
----
0
9
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6922
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT DISTINCT - col2 + - col1 * - col1 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - col2 + - col1 * - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * 19 * - col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
115537
118562
900
query I rowsort
SELECT DISTINCT 81 * col2 AS col0 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT ALL - col2 + col0 * + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
105
3527
7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT col0 * 49 + + col1 DIV col1 AS col0 FROM tab1
----
148
3137
3921
skipif mysql # not compatible
query I rowsort label-6927
SELECT col0 * 49 + + col1 / col1 AS col0 FROM tab1
----
148
3137
3921
query I rowsort
SELECT ALL - - 7 AS col0 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6929
SELECT DISTINCT + col1 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + col1 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT DISTINCT + + col1 DIV - col1 AS col1 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + + col1 / - col1 AS col1 FROM tab0 cor0
----
-1
query I rowsort
SELECT col1 + + col0 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 * col1 + + col0 DIV + ( col1 ) FROM tab1 AS cor0
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 * col1 + + col0 / + ( col1 ) FROM tab1 AS cor0
----
1254
1404
576
query I rowsort
SELECT ALL 70 * - col1 - - ( - 77 ) FROM tab1 AS cor0
----
-1897
-777
-987
query I rowsort
SELECT col1 * col1 + + 45 * col2 * - col1 FROM tab0 AS cor0
----
-120314
-327509
5044
query I rowsort
SELECT ALL - 2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * col1 * - col1 FROM tab2 cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - 76 * cor0.col2 FROM tab2, tab0 AS cor0
----
-2508
-6232
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT + 16 DIV col0 + tab1.col2 AS col0 FROM tab1
----
57
59
96
skipif mysql # not compatible
query I rowsort label-6939
SELECT + 16 / col0 + tab1.col2 AS col0 FROM tab1
----
57
59
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - tab2.col0 col2 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT ALL + col0 - - col2 DIV - col2 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + col0 - - col2 / - col2 AS col0 FROM tab1
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT - CAST( NULL AS SIGNED ) * - 26 + - col0 + + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6942
SELECT - CAST ( NULL AS INTEGER ) * - 26 + - col0 + + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - col2 * col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT + 25 * - col2 - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT - - col0 * - cor0.col2 * - 48 + 8 AS col0 FROM tab0 AS cor0
----
1688
350312
38024
onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT DISTINCT - col1 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - col1 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60
query I rowsort
SELECT - 61 + - col2 AS col1 FROM tab1 AS cor0
----
-115
-118
-157
query I rowsort
SELECT DISTINCT + 99 + - col1 * - 84 AS col1 FROM tab2
----
1527
2703
5055
query I rowsort
SELECT + 80 + + col1 * + ( - col2 ) FROM tab0 cor0
----
-17
-2758
-7382
query I rowsort
SELECT - + 23 * - ( - cor0.col0 ) FROM tab0 cor0
----
-2047
-552
-805
query I rowsort
SELECT 15 * - col0 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6952
SELECT ALL - CAST( col1 AS SIGNED ) + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - CAST ( col1 AS INTEGER ) + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - cor0.col1 * 92 + + col0 - col0 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924
query I rowsort
SELECT DISTINCT + + ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 69 * + 39 AS col2 FROM tab0 AS cor0
----
2691
query I rowsort
SELECT - + col0 * + 83 * + col0 FROM tab1 AS cor0
----
-339968
-531200
-747
query I rowsort
SELECT col1 - col2 * - 77 AS col0 FROM tab1
----
4184
4399
7405
query I rowsort
SELECT DISTINCT + 60 + - col0 FROM tab2
----
-18
-19
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT ( + cor0.col2 ) DIV col0 + col2 DIV + col2 FROM tab1 cor0
----
1
19
2
skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT ( + cor0.col2 ) / col0 + col2 / + col2 FROM tab1 cor0
----
1
19
2
query I rowsort
SELECT ALL + ( + col2 ) * col0 + - col2 - ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-1479
-799
2675
query I rowsort
SELECT 20 - 48 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT 0 * + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col2 * ( + col0 ) + + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col2 * col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 * + col1 + + col1 AS col1 FROM tab1 cor0
----
-16211
-36478
-5690
query I rowsort
SELECT + - 1 - - col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL + 85 * + col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
7286
7646
8210
query I rowsort
SELECT DISTINCT + 51 + - col2 AS col0 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT - ( col0 ) * col1 * col0 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
-105451
-357422
-682
query I rowsort
SELECT DISTINCT 86 + col1 + col0 FROM tab1
----
115
160
179
query I rowsort
SELECT cor0.col1 + col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - 58 * col2 AS col2 FROM tab2
----
-1508
-1566
-2204
query I rowsort
SELECT - + 71 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8481a69322061474e76e074548572675
query I rowsort
SELECT ALL - + col1 + + 39 FROM tab1 AS cor0
----
13
26
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT DISTINCT + + col0 DIV + 61 col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + + col0 / + 61 col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL - - col1 * ( col1 ) AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
43
query I rowsort
SELECT ALL + col0 + + ( + cor0.col2 ) + + col1 * + 95 * col2 FROM tab1 cor0
----
118736
133437
54271
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT col1 DIV + 2 AS col1 FROM tab1 AS cor0
----
13
5
6
skipif mysql # not compatible
query I rowsort label-6980
SELECT col1 / + 2 AS col1 FROM tab1 AS cor0
----
13
5
6
query I rowsort
SELECT + col2 * + col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT - + col1 + 53 DIV - col1 AS col1 FROM tab1 AS cor0
----
-15
-17
-28
skipif mysql # not compatible
query I rowsort label-6982
SELECT - + col1 + 53 / - col1 AS col1 FROM tab1 AS cor0
----
-15
-17
-28
query I rowsort
SELECT col1 + + 88 AS col0 FROM tab2 AS cor0
----
105
119
147
query I rowsort
SELECT col0 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + + cor0.col0 + 18 * col1 FROM tab2 cor0
----
1140
385
565
onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT + - col1 + - col1 * col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-103
-168
-20
skipif mysql # not compatible
query I rowsort label-6986
SELECT + - col1 + - col1 * col1 / + col0 AS col0 FROM tab2 AS cor0
----
-103
-168
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6987
SELECT ALL - - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - - col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - 11 col2 FROM tab2 AS cor0
----
-37
-38
-49
query I rowsort
SELECT + 86 * col2 * col2 FROM tab0 AS cor0
----
578264
86
93654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT + cor1.col0 / CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6990
SELECT + cor1.col0 / CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 62 + 99 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 028b12d69b976fd021e5ba2fec749092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT DISTINCT - 1 - + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 1 - + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + 51 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1197
-1353
-519
query I rowsort
SELECT ALL - 2 + - col1 FROM tab0 AS cor0
----
-88
-93
-99
query I rowsort
SELECT DISTINCT col0 * + col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT col1 + col0 DIV + 58 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-6996
SELECT col1 + col0 / + 58 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT ALL - col1 + + col0 * + ( col1 ) FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + 61 * + col1 FROM tab2
----
1037
1891
3599
query I rowsort
SELECT ALL + 98 + col2 AS col0 FROM tab1 cor0
----
152
155
194
query I rowsort
SELECT - col1 * + cor0.col1 - + col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT - - col2 + cor0.col2 - 8 AS col2 FROM tab1 AS cor0
----
100
106
184
query I rowsort
SELECT DISTINCT + + col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + cor0.col2 * + col2 + + 72 FROM tab1 AS cor0
----
2988
3321
9288
onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT ALL + 27 * col1 + ( + col0 ) DIV + col0 FROM tab1
----
271
352
703
skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + 27 * col1 + ( + col0 ) / + col0 FROM tab1
----
271
352
703
query I rowsort
SELECT ALL 20 * + col1 FROM tab1
----
200
260
520
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 22 AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL tab2.col0 * + col2 + col0 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT ALL col1 DIV col1 + + 24 FROM tab0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL col1 / col1 + + 24 FROM tab0
----
25
25
25
query I rowsort
SELECT DISTINCT 97 + tab0.col0 FROM tab0
----
121
132
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT ALL col0 DIV tab1.col2 + + tab1.col0 DIV col2 + tab1.col1 AS col1 FROM tab1
----
12
13
26
skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL col0 / tab1.col2 + + tab1.col0 / col2 + tab1.col1 AS col1 FROM tab1
----
12
13
26
query I rowsort
SELECT 51 * 15 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 67b0809fb57313fa52a40af70aedd072
query I rowsort
SELECT DISTINCT + col0 * + col1 * + ( col2 ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT 55 - + col0 FROM tab0
----
-34
20
31
query I rowsort
SELECT + 73 + col2 FROM tab2
----
100
111
99
query I rowsort
SELECT ALL col2 * - ( + col1 ) * + col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - col1 * 40 * + 27 FROM tab2
----
-18360
-33480
-63720
query I rowsort
SELECT col2 * - 59 FROM tab0
----
-1947
-4838
-59
query I rowsort
SELECT col0 + ( - col1 ) + col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + col2 + col1 * col1 + col1 FROM tab2 AS cor0
----
1019
344
3566
query I rowsort
SELECT + 36 * 41 + cor0.col1 + ( col1 + col0 ) FROM tab0 AS cor0
----
1672
1705
1747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT + + col0 * - col0 + - col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87
skipif mysql # not compatible
query I rowsort label-7021
SELECT + + col0 * - col0 + - col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT - + ( + col0 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7022
SELECT - + ( + col0 ) / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT 92 + 2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
163
173
352
query I rowsort
SELECT ALL + 37 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT col1 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 2 * + 72 + col1 FROM tab1 cor0
----
154
157
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT ALL 39 DIV col0 + - tab2.col2 + + 41 DIV tab2.col0 FROM tab2
----
-17
-26
-38
skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL 39 / col0 + - tab2.col2 + + 41 / tab2.col0 FROM tab2
----
-17
-26
-38
query I rowsort
SELECT ALL 90 + 49 AS col0 FROM tab1
----
139
139
139
query I rowsort
SELECT 33 + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
107
126
62
query I rowsort
SELECT ALL + 89 + 78 FROM tab2 AS cor0
----
167
167
167
query I rowsort
SELECT + col0 + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT - 25 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
1416
408
744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + - cor0.col0 col0 FROM tab1 AS cor0
----
-110
-33
-94
query I rowsort
SELECT col0 * + col1 + - col1 * + 73 AS col0 FROM tab2 AS cor0
----
-2046
102
295
query I rowsort
SELECT + ( - col0 ) + + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 + col1 * 60 AS col0 FROM tab2 AS cor0
----
1833
3514
982
query I rowsort
SELECT DISTINCT + 86 * + col0 AS col1 FROM tab2 cor0
----
602
6708
6794
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * - col2 + - ( col2 + 24 ) col2 FROM tab1 AS cor0
----
-157542
-185274
-884856
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT col0 DIV - col1 + - 49 DIV - 94 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT col0 / - col1 + - 49 / - 94 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT col1 DIV 62 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT col1 / 62 FROM tab0
----
1
query I rowsort
SELECT ALL col0 + col0 + + col2 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT - 19 AS col0 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - col0 * 54 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT 51 * - tab0.col0 AS col2 FROM tab0
----
-1224
-1785
-4539
query I rowsort
SELECT - cor0.col0 + - ( col0 ) * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT DISTINCT col1 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT col1 + cor0.col0 / col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT + - col2 + + ( col2 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * ( 84 ) FROM tab1 cor0
----
1092
2184
840
query I rowsort
SELECT ALL - col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT ALL + col2 DIV + col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + col2 / + col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT 28 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT col1 * 55 + - col0 FROM tab0 AS cor0
----
4706
4916
5300
query I rowsort
SELECT DISTINCT + + cor0.col1 + + 66 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT - 94 * - col0 - col0 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT - col0 + ( + 47 ) AS col2 FROM tab2 AS cor0
----
-31
-32
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT col1 DIV + ( + tab0.col2 ) + + col0 * col0 FROM tab0
----
1322
578
7922
skipif mysql # not compatible
query I rowsort label-7061
SELECT col1 / + ( + tab0.col2 ) + + col0 * col0 FROM tab0
----
1322
578
7922
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7062
SELECT ALL CAST( - 26 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL CAST ( - 26 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT - - cor0.col0 * 29 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5d0c77188add4ee71955628c5f27de84
query I rowsort
SELECT DISTINCT - + col2 + + 25 AS col1 FROM tab0 AS cor0
----
-57
-8
24
query I rowsort
SELECT ALL - + col1 + col0 * + cor0.col1 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT - 59 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7067
SELECT - 59 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 29 AS col0 FROM tab2 cor0
----
-29
-29
-29
query I rowsort
SELECT ( - 19 ) FROM tab2 cor0
----
-19
-19
-19
query I rowsort
SELECT - col1 + col1 * ( + col1 ) FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT 39 + + col0 * + col2 FROM tab1 AS cor0
----
201
3687
7719
query I rowsort
SELECT ALL - - col1 * col0 * col1 + - col1 FROM tab2 AS cor0
----
22814
271459
6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT col1 * cor0.col0 + CAST( 3 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
1457
298
4680
skipif mysql # not compatible
query I rowsort label-7073
SELECT col1 * cor0.col0 + CAST ( 3 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
1457
298
4680
query I rowsort
SELECT ALL col1 * col0 + ( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + + 96 * + col0 + col1 * col0 FROM tab0 AS cor0
----
16643
4368
6755
query I rowsort
SELECT + + 5 * + col2 AS col0 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT - - col2 * col0 + + 36 * cor0.col1 + + col1 FROM tab2 AS cor0
----
1336
3631
4211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 col0 FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 12 + + col0 col2 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT ALL - 1 + + tab1.col1 AS col2 FROM tab1
----
12
25
9
query I rowsort
SELECT ALL + 71 * - col1 FROM tab2 AS cor0
----
-1207
-2201
-4189
skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * col1 + - CAST ( + 37 AS REAL ) FROM tab1 AS cor0
----
132
63
639
onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT 75 + - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-7083
SELECT 75 + - col1 / col2 AS col2 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT col2 - 75 FROM tab1
----
-18
-21
21
query I rowsort
SELECT DISTINCT tab0.col2 + + 43 AS col2 FROM tab0
----
125
44
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * - ( + 82 + - col0 ) col1 FROM tab0
----
-52234
164604
4559
query I rowsort
SELECT + col0 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 58 * - col0 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT - col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + + col2 * ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT 66 DIV tab1.col1 FROM tab1
----
2
5
6
skipif mysql # not compatible
query I rowsort label-7094
SELECT 66 / tab1.col1 FROM tab1
----
2
5
6
query I rowsort
SELECT col1 * - col0 * col2 + col0 * + ( - col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-10962
-165110
-172380
query I rowsort
SELECT + + col0 * + 2 + + col0 AS col1 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ALL + - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - 84 FROM tab0, tab2 AS cor0
----
-84
query I rowsort
SELECT ALL + - ( 88 ) FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + ( + col0 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) * + 56 FROM tab0 cor0
----
1848
4592
56
query I rowsort
SELECT - - 42 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT ALL + 93 DIV + col0 col0 FROM tab2 AS cor0
----
1
1
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + 93 / + col0 col0 FROM tab2 AS cor0
----
1
1
13
query I rowsort
SELECT ALL - - 72 AS col0 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT - 92 * col0 * - col0 FROM tab1 AS cor0
----
376832
588800
828
query I rowsort
SELECT - ( ( col2 ) ) * - 87 + + col2 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT + col0 * 77 * - cor0.col0 FROM tab0 AS cor0
----
-44352
-609917
-94325
query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT - col2 DIV cor0.col2 - 8 FROM tab1 AS cor0
----
-9
-9
-9
skipif mysql # not compatible
query I rowsort label-7109
SELECT - col2 / cor0.col2 - 8 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - 43 AS col1 FROM tab0 cor0
----
-43
-43
-43
query I rowsort
SELECT + + col2 - + cor0.col0 * 62 FROM tab1 AS cor0
----
-132
-3911
-4864
query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab2 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 + + col1 col2 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT + tab2.col1 * col1 * - col0 AS col2 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT + col1 * col2 + tab0.col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col1 * - tab0.col2 + + tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col1 * + col0 - col0 FROM tab1 WHERE NOT - col2 >= tab1.col1
----
-1120
-704
-81
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 < ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 * col2 + + col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT - tab2.col0 + - col1 * - col1 AS col1 FROM tab2
----
210
3403
954
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( col0 * - col0 )
----
query I rowsort
SELECT col2 * tab2.col1 + col1 FROM tab2
----
1593
663
868
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + ( col2 ) + col2 * col1 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 4 * col2 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT col0 * col0 + col0 * col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 + - col0 + tab2.col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT ( + col0 + - col1 ) < - col2 * col0 / col0
----
82
query I rowsort
SELECT - col1 * tab2.col2 FROM tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL col0 FROM tab2 WHERE + col0 * - col0 IN ( - col0 + tab2.col1 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 col1 FROM tab2 cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT + cor0.col0 * + col2 * - cor0.col1 - cor0.col1 DIV - col2 FROM tab1 cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-7136
SELECT + cor0.col0 * + col2 * - cor0.col1 - cor0.col1 / - col2 FROM tab1 cor0
----
-36480
-4212
-99840
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= - tab0.col2
----
query I rowsort
SELECT - col1 - + tab2.col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT ALL col0 * col2 + col2 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT + col2 DIV + col2 + col2 * + col2 FROM tab0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-7140
SELECT + col2 / + col2 + col2 * + col2 FROM tab0
----
1090
2
6725
query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab1 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT - col2 DIV col1 col2 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7142
SELECT - col2 / col1 col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + col0 + + col2 + + col2 AS col0 FROM tab2
----
130
155
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7144
SELECT DISTINCT col2 * col2 DIV - col0 AS col2 FROM tab0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT col2 * col2 / - col0 AS col2 FROM tab0
----
-45
-75
0
query I rowsort
SELECT + cor0.col0 + - col0 + + col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7146
SELECT CAST( NULL AS SIGNED ) * 68 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7146
SELECT CAST ( NULL AS INTEGER ) * 68 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - + col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT ALL + col0 DIV ( - col1 ) - ( + col1 * col0 + cor0.col1 ) FROM tab2 AS cor0
----
-1364
-248
-4662
skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + col0 / ( - col1 ) - ( + col1 * col0 + cor0.col1 ) FROM tab2 AS cor0
----
-1364
-248
-4662
onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT DISTINCT + 30 DIV + col0 col2 FROM tab1 AS cor0
----
0
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + 30 / + col0 col2 FROM tab1 AS cor0
----
0
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT col2 * + ( - cor0.col2 + + CAST( col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-297
34
574
skipif mysql # not compatible
query I rowsort label-7152
SELECT col2 * + ( - cor0.col2 + + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT ( - cor0.col0 ) + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col0 col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - ( + col0 ) - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - col2 - col1 * ( col1 * col2 ) FROM tab2
----
-11020
-25974
-90532
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT ALL + 56 DIV col0 AS col1 FROM tab1
----
0
0
18
skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + 56 / col0 AS col1 FROM tab1
----
0
0
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col0 * + col0 col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT ALL ( + col0 ) * col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - 67 * - col1 FROM tab0 AS cor0
----
-5762
-6097
-6499
query I rowsort
SELECT - col2 + + 91 FROM tab0 AS cor0
----
58
9
90
query I rowsort
SELECT + col0 * + 16 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT DISTINCT 66 * - col2 FROM tab0
----
-2178
-5412
-66
query I rowsort
SELECT DISTINCT col1 * 75 - - col2 AS col1 FROM tab1 AS cor0
----
1071
2004
807
query I rowsort
SELECT DISTINCT - col0 * col2 * 68 - - col1 AS col0 FROM tab0 AS cor0
----
-2283
-496173
-53770
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ) * col2 + - col2 * - CAST( + 5 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + col1 + - CAST ( NULL AS REAL ) * col2 + - col2 * - CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * tab2.col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col1 * col2 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL 4 + + tab0.col2 * col2 * 20 FROM tab0
----
134484
21784
24
query I rowsort
SELECT - col0 * + col2 + - col0 * + 49 AS col0 FROM tab0 AS cor0
----
-11659
-1750
-1968
query I rowsort
SELECT ALL + 88 + col2 AS col0 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT ALL + + ( col1 ) * + col1 * + cor0.col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT + 99 * - ( + col2 ) * col1 AS col1 FROM tab2
----
-151866
-63954
-82863
query I rowsort
SELECT col1 + 89 AS col1 FROM tab0
----
175
180
186
query I rowsort
SELECT + tab0.col2 * ( - col1 ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0, tab2 cor0
----
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * 89 col1 FROM tab2 AS cor0
----
623
6942
7031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col1 col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 AS cor0
----
-90
query I rowsort
SELECT DISTINCT ( col2 ) * 66 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT - col1 + - col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL col1 + + col2 * 77 FROM tab0 AS cor0
----
174
2627
6405
onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT ALL - col0 * cor0.col1 DIV + 54 AS col2 FROM tab0 AS cor0
----
-149
-38
-62
skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - col0 * cor0.col1 / + 54 AS col2 FROM tab0 AS cor0
----
-149
-38
-62
query I rowsort
SELECT + col1 * col0 + - col1 FROM tab0 cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * + col0 * - col0 + col0 col0 FROM tab0
----
-110215
-51816
-712801
query I rowsort
SELECT ALL 63 + col0 * + col0 AS col2 FROM tab1
----
4159
6463
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + + col0 * col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 * 62 + - ( + col2 ) FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT - col1 * ( col0 ) + + col2 * ( - col1 ) FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + 17 * - col1 + - 85 AS col0 FROM tab2 AS cor0
----
-1717
-5690
-829
onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT ALL - cor0.col1 + cor0.col1 DIV + col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - cor0.col1 + cor0.col1 / + col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT col1 + + 90 FROM tab2 AS cor0
----
107
121
149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7197
SELECT DISTINCT + cor0.col1 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + cor0.col1 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col1 * 4 + col2 FROM tab2 AS cor0
----
106
151
262
query I rowsort
SELECT col1 - + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * + 29 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT ALL - col1 * - 12 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-5376
-6037
323
query I rowsort
SELECT + col1 + - ( - col0 ) + col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT + - col2 * - 74 AS col2 FROM tab2 AS cor0
----
1924
1998
2812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 47 col2 FROM tab1 cor0
----
-141
-3008
-3760
query I rowsort
SELECT ALL - col1 * - 31 AS col0 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT + cor0.col2 * - col0 * ( col0 * - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
12636
2334720
7987200
query I rowsort
SELECT + 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + col0 * - col1 + - col0 * - ( 15 ) + col1 * 87 AS col2 FROM tab0 AS cor0
----
1153
5569
5778
onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT DISTINCT + col0 + + col2 DIV col0 + col1 AS col1 FROM tab0 AS cor0
----
111
132
180
skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT + col0 + + col2 / col0 + col1 AS col1 FROM tab0 AS cor0
----
111
132
180
query I rowsort
SELECT - - ( + col2 ) - + col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 8 - - 12 AS col2 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT - col2 + ( tab2.col2 ) * col2 + - col0 * - tab2.col2 AS col0 FROM tab2
----
2678
4408
891
query I rowsort
SELECT DISTINCT col1 + - 41 AS col2 FROM tab2
----
-10
-24
18
query I rowsort
SELECT DISTINCT col0 + ( col0 ) FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + + col1 - + CAST ( col1 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
1567
625
841
query I rowsort
SELECT + col1 - + 46 FROM tab1 AS cor0
----
-20
-33
-36
query I rowsort
SELECT - col2 * 89 AS col2 FROM tab0
----
-2937
-7298
-89
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT DISTINCT + 38 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-316
-414
-985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT ALL - CAST( 67 AS SIGNED ) DIV - cor0.col0 + - col1 * - col0 + + col2 AS col0 FROM tab1 cor0
----
1136
154
698
skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - CAST ( 67 AS INTEGER ) / - cor0.col0 + - col1 * - col0 + + col2 AS col0 FROM tab1 cor0
----
1136
154
698
query I rowsort
SELECT ( 56 ) * - col0 FROM tab0
----
-1344
-1960
-4984
query I rowsort
SELECT - - 30 + 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL - col1 * - col0 * tab1.col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + col2 + ( - cor0.col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 37 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT cor0.col1 * + 55 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT ALL col1 + 28 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT col1 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 29 + col2 * col0 FROM tab1 cor0
----
191
3677
7709
query I rowsort
SELECT - col2 * - col0 * - ( + 65 ) - - col0 AS col2 FROM tab0 AS cor0
----
-2240
-474281
-51456
query I rowsort
SELECT + - col2 + + col2 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col0 + cor0.col0 * - col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-3359
-663947
-68055
onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT ALL + col2 + + col1 DIV cor0.col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + col2 + + col1 / cor0.col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT - + col2 - 79 AS col0 FROM tab1 AS cor0
----
-133
-136
-175
query I rowsort
SELECT + col0 + - ( cor0.col0 ) + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 + col0 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + ( + col2 ) * - col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - ( - cor1.col2 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ( 42 ) AS col1 FROM tab0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT DISTINCT - 43 * col1 * col2 + + col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-27776
-35991
-65962
skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 43 * col1 * col2 + + col2 / + cor0.col1 FROM tab2 AS cor0
----
-27776
-35991
-65962
query I rowsort
SELECT + + 33 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT ALL + col2 * col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + 85 + cor0.col1 AS col2 FROM tab0 cor0
----
171
176
182
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
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL 12 DIV col1 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL 12 / col1 AS col1 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT DISTINCT - cor0.col0 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT - cor0.col0 + col2 / col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab1 AS cor0
----
-98
query I rowsort
SELECT 17 * + col0 * 70 FROM tab0 AS cor0
----
105910
28560
41650
onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT ALL - 54 DIV - col1 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - 54 / - col1 FROM tab1 AS cor0
----
2
4
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT col0 DIV + col0 + - 26 FROM tab2
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-7250
SELECT col0 / + col0 + - 26 FROM tab2
----
-25
-25
-25
query I rowsort
SELECT + tab1.col0 * col2 + 89 AS col1 FROM tab1
----
251
3737
7769
query I rowsort
SELECT - - cor0.col0 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - - col0 * - cor0.col2 + 51 + col2 AS col0 FROM tab2 AS cor0
----
-111
-1951
-2913
query I rowsort
SELECT ( - tab2.col2 ) + 90 FROM tab2
----
52
63
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7255
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + tab2.col0 col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - - cor0.col1 + 85 FROM tab1 AS cor0
----
111
95
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 85 col2 FROM tab0
----
1
12
6
query I rowsort
SELECT col1 + 10 * + 12 AS col0 FROM tab0
----
206
211
217
query I rowsort
SELECT col1 + ( 73 + tab1.col1 ) * + 93 FROM tab1
----
7729
8011
9233
query I rowsort
SELECT col2 + + 44 FROM tab0
----
126
45
77
query I rowsort
SELECT ALL 34 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - col0 + 72 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT + ( cor0.col0 ) * + cor0.col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL cor0.col2 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - - ( col2 ) * - col0 - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT DISTINCT + ( - col0 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + ( - col0 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + 22 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
-210
-273
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT ALL col2 * + col2 DIV col2 AS col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL col2 * + col2 / col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - ( 58 ) + col0 * + cor0.col0 FROM tab0 AS cor0
----
1167
518
7863
query I rowsort
SELECT ALL ( - col1 ) * col2 * + col0 - col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT ALL col0 DIV col0 + ( - col0 ) FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL col0 / col0 + ( - col0 ) FROM tab1
----
-2
-63
-79
query I rowsort
SELECT col2 - + col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + 6 + col1 AS col0 FROM tab2
----
23
37
65
query I rowsort
SELECT DISTINCT 98 + + col2 * - 15 AS col2 FROM tab1
----
-1342
-712
-757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7276
SELECT ALL + - CAST( NULL AS SIGNED ) + 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + - CAST ( NULL AS INTEGER ) + 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7277
SELECT DISTINCT - 22 * cor0.col2 + - cor1.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - 22 * cor0.col2 + - cor1.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL
query I rowsort
SELECT + tab1.col2 * + ( - 71 + col0 ) AS col2 FROM tab1
----
-3672
-399
864
query I rowsort
SELECT DISTINCT - col0 + 25 * + cor0.col1 * col1 FROM tab1 AS cor0
----
16897
2436
4145
query I rowsort
SELECT DISTINCT col2 * 19 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT col2 + - 57 FROM tab0 AS cor0
----
-24
-56
25
query I rowsort
SELECT ALL + col2 * + 20 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT col0 + ( col2 ) - col2 * col2 DIV - ( + col2 ) AS col1 FROM tab0 AS cor0
----
253
37
90
skipif mysql # not compatible
query I rowsort label-7283
SELECT col0 + ( col2 ) - col2 * col2 / - ( + col2 ) AS col1 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL - + col2 * 85 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT col2 + + 20 AS col0 FROM tab1
----
116
74
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT DISTINCT - col1 DIV ( + col1 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - col1 / ( + col1 ) FROM tab0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7287
SELECT DISTINCT col1 - col2 * CAST( 87 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-108563
-122122
-49580
skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT col1 - col2 * CAST ( 87 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-108563
-122122
-49580
query I rowsort
SELECT col1 * + col1 * ( - col0 ) - + col0 AS col1 FROM tab1 AS cor0
----
-13600
-2031
-6464
query I rowsort
SELECT DISTINCT + col0 * col0 * + 35 AS col2 FROM tab0 AS cor0
----
20160
277235
42875
query I rowsort
SELECT ALL + 30 + col0 FROM tab1 AS cor0
----
110
33
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT DISTINCT - - CAST( 75 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
75
skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - - CAST ( 75 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
75
query I rowsort
SELECT ALL + + col0 + - col0 * - ( - 92 + col2 * col1 ) AS col2 FROM tab2 cor0
----
112554
43845
5222
query I rowsort
SELECT ALL - 96 FROM tab2 cor0
----
-96
-96
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7294
SELECT ALL - - col0 + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL - - col0 + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 21 + cor0.col2 * + 63 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e323525e3ab0a6b6099b9fc9580ede0f
query I rowsort
SELECT DISTINCT 5 * - col0 AS col1 FROM tab1
----
-15
-320
-400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT ALL + 45 DIV tab1.col1 AS col2 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + 45 / tab1.col1 AS col2 FROM tab1
----
1
3
4
query I rowsort
SELECT ALL 16 * col0 AS col2 FROM tab0
----
1424
384
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7299
SELECT ALL + col0 * col2 * - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + col0 * col2 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT 13 + cor0.col2 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 48143591d2c69b3a0d95cc87da7bb057
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 * 14 col0 FROM tab1 AS cor0
----
-1331
-730
-788
query I rowsort
SELECT + cor0.col2 * + 79 * 89 FROM tab2 AS cor0
----
182806
189837
267178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7303
SELECT col1 + + CAST( 11 * cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
108
449
993
skipif mysql # not compatible
query I rowsort label-7303
SELECT col1 + + CAST ( 11 * cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
108
449
993
onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT col1 * col2 + + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-7304
SELECT col1 * col2 + + col2 / - col2 AS col1 FROM tab1 AS cor0
----
1247
1403
569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab0
----
-16
-16
-16
query I rowsort
SELECT cor0.col1 + 18 FROM tab1, tab1 AS cor0
----
9 values hashing to 31b358a4139a1ddf22a05854ed04541a
query I rowsort
SELECT ALL - col2 * - col0 * - col0 AS col0 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - ( col1 ) col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col1 col1 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * - col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + 71 * 45 AS col2 FROM tab2 cor0
----
-3195
onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT - 56 DIV col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7312
SELECT - 56 / col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT col0 * 91 * col0 AS col2 FROM tab2 AS cor0
----
4459
553644
567931
query I rowsort
SELECT ALL - + col2 * - cor0.col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + col1 * - col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT - 93 + + col0 DIV col2 col2 FROM tab0 AS cor0
----
-58
-92
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7316
SELECT - 93 + + col0 / col2 col2 FROM tab0 AS cor0
----
-58
-92
-93
query I rowsort
SELECT ALL + col2 * col2 + - 64 * + tab2.col2 FROM tab2
----
-988
-988
-999
query I rowsort
SELECT 86 + col0 * + col1 * + 97 FROM tab1 cor0
----
100966
62166
7652
onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT ALL - col0 * + col0 + col2 DIV + col1 col1 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - col0 * + col0 + col2 / + col1 col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col1 * + col0 + - cor0.col2 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 75 + col2 col0 FROM tab2 AS cor0
----
-1237
-2298
-4399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT col2 + + cor0.col0 * ( col1 * - col0 ) FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT DISTINCT - 6 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-6
query I rowsort
SELECT ALL 90 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( + col1 * col0 + - col2 AS REAL ) FROM tab1
----
1296
33231
90624
query I rowsort
SELECT ALL col2 * + col0 + col1 + col2 AS col0 FROM tab2 cor0
----
2113
247
3057
query I rowsort
SELECT ALL - col0 + - 84 * - col1 AS col1 FROM tab2 AS cor0
----
1349
2597
4878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - 45 * - col1 col2 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT DISTINCT + col1 + 29 * + col1 AS col0 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT ALL - col2 + 12 + - cor0.col2 FROM tab1 AS cor0
----
-102
-180
-96
query I rowsort
SELECT ALL - 96 - - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b92a054ffc260f778beaf1c73159007c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col2 ) col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 52 col1 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT DISTINCT col2 * - 76 AS col0 FROM tab2 AS cor0
----
-1976
-2052
-2888
query I rowsort
SELECT ALL + 11 + + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7407
8292
9420
query I rowsort
SELECT DISTINCT + 11 + col2 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT ALL col0 + + 69 FROM tab1 AS cor0
----
133
149
72
query I rowsort
SELECT + - ( col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT col0 + col0 * ( ( col0 ) ) * 79 FROM tab2 AS cor0
----
3878
480714
493118
query I rowsort
SELECT + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + cor1.col1 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to dfaa497084cd523db2cbe4866663c6c2
query I rowsort
SELECT - - col1 + - 21 FROM tab1 AS cor0
----
-11
-8
5
query I rowsort
SELECT ALL ( 95 ) + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 247b471b99cee168d1898fcd7d13d143
query I rowsort
SELECT DISTINCT - - cor0.col0 + 80 FROM tab2 AS cor0
----
158
159
87
query I rowsort
SELECT DISTINCT col2 * ( cor0.col2 * - col0 ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT DISTINCT - - col1 DIV - 17 AS col1 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - - col1 / - 17 AS col1 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 70 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + ( col1 ) * col1 + col1 * col2 col2 FROM tab1 cor0
----
1497
2083
734
query I rowsort
SELECT - col2 + + 41 FROM tab2 AS cor0
----
14
15
3
query I rowsort
SELECT - cor0.col1 * - col2 + col1 * col2 AS col0 FROM tab1 cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - col0 * - 21 AS col0 FROM tab0
----
1869
504
735
query I rowsort
SELECT - - cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col1 + + ( + col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * ( 85 ) + col1 AS col0 FROM tab1 cor0
----
-229
-5430
-6787
query I rowsort
SELECT DISTINCT - - cor0.col1 * ( + 25 ) FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT ALL + ( - 96 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1632
-2976
-5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT - - 49 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7360
SELECT - - 49 / - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ALL ( 97 ) DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
32
skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL ( 97 ) / col0 AS col1 FROM tab1 AS cor0
----
1
1
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT - ( 84 ) DIV - cor0.col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7362
SELECT - ( 84 ) / - cor0.col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + + col2 * + 70 FROM tab0 AS cor0
----
2310
5740
70
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT ALL + col0 DIV - 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL + col0 / - 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT cor1.col2 * cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT + col0 - - col1 DIV + cor0.col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7367
SELECT + col0 - - col1 / + cor0.col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT - col0 * col1 * col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-106080
-1488
-358897
onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT DISTINCT + 68 DIV - col0 + + 66 DIV - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-7
skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + 68 / - col0 + + 66 / - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-7
query I rowsort
SELECT - - 9 + col0 * col2 FROM tab0 AS cor0
----
44
7307
801
query I rowsort
SELECT - cor0.col1 + + col2 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL + col2 * cor0.col2 * + cor0.col1 + - ( col0 ) FROM tab0 AS cor0
----
611795
62
93630
query I rowsort
SELECT ALL + + col2 - cor0.col1 AS col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col0 + col1 + + 99 FROM tab2
----
123
37
80
query I rowsort
SELECT DISTINCT 58 + + col0 FROM tab2
----
136
137
65
query I rowsort
SELECT - 9 * + col2 FROM tab0
----
-297
-738
-9
query I rowsort
SELECT DISTINCT col0 + + tab0.col2 * + ( - 29 * tab0.col2 ) AS col0 FROM tab0
----
-194907
-31557
6
query I rowsort
SELECT ALL + 49 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 12 ) col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT DISTINCT 55 + + col2 FROM tab0
----
137
56
88
query I rowsort
SELECT - 58 + - col1 * + col1 FROM tab0
----
-7454
-8339
-9467
query I rowsort
SELECT DISTINCT 93 * col0 + col0 * + col0 FROM tab2 cor0
----
13338
13588
700
query I rowsort
SELECT ALL - 59 * - col0 AS col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT DISTINCT - col2 * - 75 + col2 + + col2 * + col0 FROM tab0 AS cor0
----
111
13530
3300
query I rowsort
SELECT ALL - 27 * - cor0.col0 * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a961658cb4a43c5cc0fbf1c0c0364e90
query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 * - col0 AS col0 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT - 65 + tab0.col2 FROM tab0
----
-32
-64
17
query I rowsort
SELECT - col1 + col2 * col0 + tab0.col0 FROM tab0
----
-27
7296
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT DISTINCT col1 + - ( col2 + - col1 ) DIV + col1 AS col2 FROM tab1
----
25
6
7
skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT col1 + - ( col2 + - col1 ) / + col1 AS col2 FROM tab1
----
25
6
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT - col2 - col1 DIV + col1 col2 FROM tab2 cor0
----
-27
-28
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7390
SELECT - col2 - col1 / + col1 col2 FROM tab2 cor0
----
-27
-28
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT DISTINCT - ( - col1 ) * - col1 + - col2 + col0 DIV col0 AS col0 FROM tab1
----
-156
-264
-729
skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT - ( - col1 ) * - col1 + - col2 + col0 / col0 AS col0 FROM tab1
----
-156
-264
-729
query I rowsort
SELECT DISTINCT 6 + - col0 FROM tab1
----
-58
-74
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 2 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - 59 + - 38 FROM tab0
----
-97
-97
-97
query I rowsort
SELECT ALL ( col1 ) + tab0.col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ( - col0 * - col1 ) FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT ALL - tab1.col0 + + 45 DIV col2 + - col2 col1 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - tab1.col0 + + 45 / col2 + - col2 col1 FROM tab1
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7398
SELECT ALL - col2 * - col0 + CAST( + col2 AS SIGNED ) * + col0 AS col1 FROM tab1
----
15360
324
7296
skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - col2 * - col0 + CAST ( + col2 AS INTEGER ) * + col0 AS col1 FROM tab1
----
15360
324
7296
query I rowsort
SELECT - col0 + + 12 * 50 * col2 FROM tab0 AS cor0
----
19776
49111
565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 19 * col1 * - col0 col0 FROM tab1 AS cor0
----
-12096
-1479
-19680
query I rowsort
SELECT ALL + col0 + 94 AS col1 FROM tab2 AS cor0
----
101
172
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT DISTINCT col2 + ( cor0.col0 ) - + col1 DIV - col1 FROM tab2 AS cor0
----
105
118
35
skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT col2 + ( cor0.col0 ) - + col1 / - col1 FROM tab2 AS cor0
----
105
118
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - 50 col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to bf334e622d83b2c78aa2e572cf2966d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - cor0.col0 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + col0 * - ( - col0 ) + + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col0 + - col1 * - col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL - + col2 * cor0.col1 - cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT - col0 * + col1 + - 45 * col2 FROM tab0 cor0
----
-11789
-3440
-3549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 28 * 17 * cor0.col1 col1 FROM tab2 AS cor0
----
14763
28162
8171
query I rowsort
SELECT DISTINCT - col0 * - 67 AS col1 FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT cor0.col2 * + col0 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) < + col2
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - col0 > NULL OR NULL = col2 * col2 + - col1 / cor0.col2
----
query I rowsort
SELECT - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + - col2 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
-244044
-678953
-9374
query I rowsort
SELECT ALL col1 * cor0.col0 + col1 + - col0 FROM tab2 cor0
----
1281
241
4583
onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT ALL + - col2 + col2 DIV - col2 + - col1 FROM tab1 AS cor0
----
-110
-68
-81
skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + - col2 + col2 / - col2 + - col1 FROM tab1 AS cor0
----
-110
-68
-81
query I rowsort
SELECT - col2 - col0 * - cor0.col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + 4 + + col1 FROM tab0 AS cor0
----
101
90
95
query I rowsort
SELECT - col1 * + col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT + col2 + tab2.col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col2 + + col1 * - col0 * 67 FROM tab2 cor0
----
-14512
-308308
-89943
query I rowsort
SELECT ALL col2 * col0 + + 80 FROM tab0 AS cor0
----
115
7378
872
query I rowsort
SELECT DISTINCT 50 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT + 45 + + col2 FROM tab0 AS cor0
----
127
46
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT col2 * + col1 + - 78 FROM tab2 AS cor0
----
1456
568
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7431
SELECT ALL + + 75 + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + + 75 + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 - - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT + col1 DIV - tab0.col2 + - 97 AS col2 FROM tab0
----
-194
-98
-99
skipif mysql # not compatible
query I rowsort label-7433
SELECT + col1 / - tab0.col2 + - 97 AS col2 FROM tab0
----
-194
-98
-99
query I rowsort
SELECT ALL + 22 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7435
SELECT ALL + CAST( NULL AS SIGNED ) - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + CAST ( NULL AS INTEGER ) - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col0 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1260
-1368
-15219
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 13 * + 79 + tab1.col2 * - col1 AS col0 FROM tab1
----
-221
-377
457
query I rowsort
SELECT ( col2 ) * col0 * 89 - 85 FROM tab0
----
3030
649437
70403
query I rowsort
SELECT DISTINCT - 48 + - tab0.col0 FROM tab0
----
-137
-72
-83
query I rowsort
SELECT - - col0 + 73 FROM tab0 AS cor0
----
108
162
97
query I rowsort
SELECT + ( 17 ) * + col1 * - col2 - 25 AS col0 FROM tab2 AS cor0
----
-11007
-14254
-26103
query I rowsort
SELECT ( col1 ) * col0 + - 71 AS col2 FROM tab1 cor0
----
569
7
969
query I rowsort
SELECT + + 78 AS col1 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT ALL + col2 + 67 AS col2 FROM tab1
----
121
124
163
query I rowsort
SELECT - 22 - - col1 * + tab0.col1 FROM tab0
----
7374
8259
9387
query I rowsort
SELECT - 15 * col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT DISTINCT - 75 + col2 FROM tab0 cor0
----
-42
-74
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT ALL - - ( + cor0.col0 ) DIV - col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - - ( + cor0.col0 ) / - col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7450
SELECT + 8 * + col2 - - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7450
SELECT + 8 * + col2 - - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + - ( + col1 ) + + col1 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - - col2 * col0 - col1 * cor0.col2 * + col2 FROM tab1 AS cor0
----
-112128
-28842
-75654
query I rowsort
SELECT ALL - col0 + - cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT + + col0 * cor0.col1 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col0 * + col1 * - ( - col0 * col1 ) - col1 * + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1814631
21268910
73036
query I rowsort
SELECT + col0 + 70 * col2 FROM tab1 AS cor0
----
3783
4054
6800
query I rowsort
SELECT DISTINCT - col1 * 67 FROM tab2
----
-1139
-2077
-3953
onlyif mysql # use DIV operator for integer division
query I rowsort label-7459
SELECT DISTINCT col1 DIV ( + col1 ) FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT col1 / ( + col1 ) FROM tab2
----
1
query I rowsort
SELECT tab2.col1 * tab2.col0 + + tab2.col0 * col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT ALL - col2 * 93 AS col1 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT ALL 74 + 76 FROM tab0 AS cor0
----
150
150
150
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + + cor0.col1 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col2 * + col1 + col2 * + 87 AS col0 FROM tab0 AS cor0
----
14596
184
5709
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * - col1 * + col1 col2 FROM tab1 AS cor0
----
-33800
-5000
-8450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7466
SELECT ( - col0 ) + - col1 + CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7466
SELECT ( - col0 ) + - col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 37 - - cor0.col0 FROM tab1 AS cor0
----
101
117
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + + CAST ( NULL AS REAL ) / col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 62 AS REAL ) + col2 * ( + ( - col2 ) ) * col0 col0 FROM tab0 AS cor0
----
-26198
-598498
-97
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + CAST ( ( + col0 ) AS REAL ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - 71 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT col2 DIV - 32 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7472
SELECT col2 / - 32 FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT - col2 * cor0.col2 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT DISTINCT + col0 + ( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col1 - - 37 AS col2 FROM tab0 AS cor0
----
123
128
134
query I rowsort
SELECT DISTINCT - + col0 + + 73 FROM tab2 cor0
----
-5
-6
66
query I rowsort
SELECT - + col2 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - cor0.col0 * + 73 FROM tab1 cor0
----
-219
-4672
-5840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
query I rowsort
SELECT ( col1 ) * col2 * 18 FROM tab2 cor0
----
11628
15066
27612
query I rowsort
SELECT col1 + + 77 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT - col2 + + col2 DIV + 40 + - ( col2 ) FROM tab0 cor0
----
-162
-2
-66
skipif mysql # not compatible
query I rowsort label-7484
SELECT - col2 + + col2 / + 40 + - ( col2 ) FROM tab0 cor0
----
-162
-2
-66
query I rowsort
SELECT ALL + + col2 + col2 * + 23 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT + col1 + + col0 * - ( - col0 ) FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT cor0.col0 * col2 + 17 + + cor0.col0 * + col1 * col1 FROM tab0 cor0
----
178313
329367
744324
query I rowsort
SELECT - tab1.col2 * tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ( - col2 ) * - col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 98 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
101
162
178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7491
SELECT ALL - + 0 + col0 * - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - + 0 + col0 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - 95 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT - col0 + ( col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL 69 * tab0.col0 FROM tab0
----
1656
2415
6141
query I rowsort
SELECT + - col1 * 8 AS col1 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT ALL ( tab1.col1 ) * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT ( + col2 + 20 ) * col1 FROM tab0
----
2037
4558
9282
query I rowsort
SELECT 37 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT ALL + 67 DIV - col0 FROM tab2
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + 67 / - col0 FROM tab2
----
-9
0
0
query I rowsort
SELECT 15 * - 28 + cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 3d5ad86a43383f1b75edb842c65b0f3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT - + col1 + + 71 DIV col0 AS col1 FROM tab0 AS cor0
----
-84
-91
-95
skipif mysql # not compatible
query I rowsort label-7501
SELECT - + col1 + + 71 / col0 AS col1 FROM tab0 AS cor0
----
-84
-91
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT col2 + col1 DIV 54 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-7502
SELECT col2 + col1 / 54 col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7503
SELECT + col1 + + col0 DIV + 41 AS col2 FROM tab0 AS cor0
----
86
93
97
skipif mysql # not compatible
query I rowsort label-7503
SELECT + col1 + + col0 / + 41 AS col2 FROM tab0 AS cor0
----
86
93
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT ALL CAST( 72 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL CAST ( 72 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + col1 * 73 AS col2 FROM tab0
----
6278
6643
7081
query I rowsort
SELECT + ( + 7 ) * + col2 FROM tab1 AS cor0
----
378
399
672
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - col1 + - 67 FROM tab0 AS cor0
----
-153
-158
-164
query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col1 + - col1 * + tab2.col2 * tab2.col1 AS col2 FROM tab2
----
-10965
-25916
-90447
query I rowsort
SELECT DISTINCT + tab0.col1 + col2 * col2 AS col0 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL ( + 51 ) + col2 FROM tab2
----
77
78
89
query I rowsort
SELECT - cor0.col1 + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * - col1 col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1, tab0, tab2 AS cor0
----
73
query I rowsort
SELECT cor0.col2 * - 99 FROM tab2, tab0 AS cor0
----
9 values hashing to 3bff9d92a10ee3eb687738e821fbbd6e
query I rowsort
SELECT - ( + cor0.col2 ) + + col2 * col2 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT col2 * + col1 + + col1 * - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 - cor0.col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + ( - col1 ) * col2 + col2 * - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-604422
-90816
0
query I rowsort
SELECT + 16 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1550
662
853
query I rowsort
SELECT ALL - ( - col0 ) + + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT 24 + cor0.col1 * col1 + + 83 * cor0.col0 * col0 FROM tab1 AS cor0
----
1447
340092
531393
onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT col1 + 7 DIV col2 + - col2 FROM tab0
----
103
53
9
skipif mysql # not compatible
query I rowsort label-7526
SELECT col1 + 7 / col2 + - col2 FROM tab0
----
103
53
9
query I rowsort
SELECT ALL ( col1 ) * + tab2.col0 + + col0 AS col1 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 27 * - col0 * - ( col1 ) col2 FROM tab0
----
-218582
-55642
-91568
query I rowsort
SELECT DISTINCT + - ( + col0 ) * col2 * - col1 + col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT - + col1 * col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL ( cor0.col0 ) + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 + col2 * cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + + col0 * col0 + 47 FROM tab2 AS cor0
----
6131
6288
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT DISTINCT - 77 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - 77 / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - col0 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-7536
SELECT ALL 56 + col2 DIV 24 FROM tab0 AS cor0
----
56
57
59
skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 56 + col2 / 24 FROM tab0 AS cor0
----
56
57
59
query I rowsort
SELECT - col0 * cor0.col2 + - col0 FROM tab0 cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7538
SELECT DISTINCT ( - 60 ) DIV - col1 + + ( + col1 ) FROM tab1
----
16
17
28
skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT ( - 60 ) / - col1 + + ( + col1 ) FROM tab1
----
16
17
28
query I rowsort
SELECT ( - 26 ) * col0 * col1 FROM tab0
----
-210574
-53664
-88270
query I rowsort
SELECT ALL + 93 * col1 FROM tab1 AS cor0
----
1209
2418
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT cor0.col0 DIV - col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7541
SELECT cor0.col0 / - col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 + col0 * - col2 * + 50 FROM tab2 AS cor0
----
-101478
-150179
-9457
onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT col2 DIV CAST( - col0 + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7544
SELECT col2 / CAST ( - col0 + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + + 53 AS col1 FROM tab1 cor0
----
63
66
79
query I rowsort
SELECT ALL - col2 + - 38 * 9 FROM tab2 AS cor0
----
-368
-369
-380
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col0 - 31 FROM tab0 AS cor0
----
-7
4
58
query I rowsort
SELECT + col2 * + col2 * 54 AS col1 FROM tab2 AS cor0
----
36504
39366
77976
query I rowsort
SELECT ALL + - col0 + - 54 FROM tab1 cor0
----
-118
-134
-57
query I rowsort
SELECT DISTINCT - + col0 * 56 AS col1 FROM tab1 AS cor0
----
-168
-3584
-4480
query I rowsort
SELECT DISTINCT cor0.col2 * 16 + - 36 AS col0 FROM tab0 AS cor0
----
-20
1276
492
query I rowsort
SELECT ALL - col2 + col1 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
-244101
-679124
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7554
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) * col0 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-7554
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7555
SELECT ALL - + col2 DIV 30 col2 FROM tab1 AS cor0
----
-1
-1
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - + col2 / 30 col2 FROM tab1 AS cor0
----
-1
-1
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7556
SELECT col0 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7556
SELECT col0 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + cor0.col1 + ( col0 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL tab1.col0 - - tab1.col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - col2 + - col2 FROM tab0 AS cor0
----
-2130
-3397
-8263
query I rowsort
SELECT DISTINCT - + col2 + + col2 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-207993
-737376
-8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT ALL - 17 DIV + col0 col2 FROM tab1 AS cor0
----
-5
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - 17 / + col0 col2 FROM tab1 AS cor0
----
-5
0
0
query I rowsort
SELECT ALL - + col0 * ( - col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 * 55 + + col0 AS col2 FROM tab0 AS cor0
----
4754
5094
5370
query I rowsort
SELECT DISTINCT - col1 + ( + col0 ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + + cor0.col0 - - col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + ( - 41 ) * - col0 FROM tab0
----
1435
3649
984
query I rowsort
SELECT + col0 * - tab0.col0 AS col0 FROM tab0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a
query I rowsort
SELECT ALL + ( + 99 ) AS col0 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT ( col0 ) + - col0 * col0 + + col0 FROM tab0 AS cor0
----
-1155
-528
-7743
query I rowsort
SELECT DISTINCT + 14 * + col1 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT - cor0.col2 + - 86 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1222
-218
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT ALL ( ( - col0 ) ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL ( ( - col0 ) ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
32
query I rowsort
SELECT ALL + + ( col2 ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - col0 - - 5 FROM tab1 AS cor0
----
69
8
85
query I rowsort
SELECT - ( + col2 ) * col2 + col1 AS col1 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - 70 * + col1 FROM tab1
----
-1820
-700
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT + + col1 DIV col1 + - col0 DIV + 26 AS col1 FROM tab2 AS cor0
----
-2
-2
1
skipif mysql # not compatible
query I rowsort label-7579
SELECT + + col1 / col1 + - col0 / + 26 AS col1 FROM tab2 AS cor0
----
-2
-2
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7580
SELECT ALL col2 * col1 + ( - col0 ) DIV col0 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL col2 * col1 + ( - col0 ) / col0 FROM tab0 AS cor0
----
2837
7461
96
query I rowsort
SELECT ALL + col1 + + 12 AS col0 FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT DISTINCT col1 + 24 * col2 FROM tab2 AS cor0
----
679
683
929
query I rowsort
SELECT DISTINCT + col1 * - col2 + cor0.col1 * col2 + 76 FROM tab0 AS cor0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + ( + col1 ) * - col1 col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7585
SELECT DISTINCT - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - col1 / + col1 AS col1 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - 8 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL + + col0 * + col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col0 + - 21 FROM tab2 AS cor0
----
-14
57
58
query I rowsort
SELECT 0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT DISTINCT - - col2 * 4 DIV cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-35
-86
skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - - col2 * 4 / cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-35
-86
query I rowsort
SELECT col2 * + 21 AS col1 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT ALL 14 * col0 + + col1 AS col1 FROM tab2 cor0
----
1123
1151
129
query I rowsort
SELECT ALL - 56 * tab2.col2 AS col2 FROM tab2
----
-1456
-1512
-2128
query I rowsort
SELECT - tab2.col2 * 69 FROM tab2
----
-1794
-1863
-2622
query I rowsort
SELECT + + 98 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT ALL - col2 - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 55 - 6 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT ALL + 45 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ALL col0 + - 1 + + 63 AS col1 FROM tab2
----
140
141
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 65 col0 FROM tab1 AS cor0
----
-3510
-3705
-6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-7601
SELECT + col0 DIV - ( + col0 ) - + col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-7601
SELECT + col0 / - ( + col0 ) - + col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL col0 * ( col1 ) * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - ( - col2 ) + col2 AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT - cor0.col1 + col1 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 97 * + 17 * cor0.col1 FROM tab0 AS cor0
----
141814
150059
159953
onlyif mysql # use DIV operator for integer division
query I rowsort label-7606
SELECT DISTINCT + - col1 * - ( - cor0.col1 ) + - col0 - col0 DIV - col2 FROM tab0 AS cor0
----
-7420
-8369
-9409
skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + - col1 * - ( - cor0.col1 ) + - col0 - col0 / - col2 FROM tab0 AS cor0
----
-7420
-8369
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7607
SELECT ALL + + 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-7607
SELECT ALL + + CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - 47 * + 65 + col0 FROM tab1 AS cor0
----
3058
3119
3135
query I rowsort
SELECT - col2 * + col0 + + col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT - + cor0.col2 + + col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT tab2.col1 + col2 * 28 AS col1 FROM tab2
----
1081
787
query I rowsort
SELECT tab1.col0 * + ( + 61 ) AS col1 FROM tab1
----
183
3904
4880
query I rowsort
SELECT ALL + col0 * + col1 + + tab0.col2 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - 8 FROM tab1, tab1 AS cor0
----
-8
query I rowsort
SELECT + + col1 + - col2 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT - col2 DIV - 62 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7617
SELECT - col2 / - 62 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT col2 + col2 + - col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col2 * - col1 - - col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - col0 + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT + - col0 + - col0 + + col1 FROM tab0 AS cor0
----
-87
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT CAST( - 12 + col1 AS SIGNED ) DIV 58 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7622
SELECT CAST ( - 12 + col1 AS INTEGER ) / 58 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT 34 * + 72 + col0 DIV col1 + - col1 FROM tab0 AS cor0
----
2351
2357
2362
skipif mysql # not compatible
query I rowsort label-7623
SELECT 34 * + 72 + col0 / col1 + - col1 FROM tab0 AS cor0
----
2351
2357
2362
query I rowsort
SELECT - 48 + - col1 * + col2 FROM tab0 AS cor0
----
-145
-2886
-7510
onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT + cor0.col2 + + col2 * col1 DIV 73 + - col0 AS col0 FROM tab1 AS cor0
----
0
33
70
skipif mysql # not compatible
query I rowsort label-7625
SELECT + cor0.col2 + + col2 * col1 / 73 + - col0 AS col0 FROM tab1 AS cor0
----
0
33
70
query I rowsort
SELECT DISTINCT 34 * + col0 FROM tab0 AS cor0
----
1190
3026
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT col1 * + col2 + + col2 + 24 DIV col0 AS col2 FROM tab1 AS cor0
----
1344
1466
627
skipif mysql # not compatible
query I rowsort label-7627
SELECT col1 * + col2 + + col2 + 24 / col0 AS col2 FROM tab1 AS cor0
----
1344
1466
627
query I rowsort
SELECT + col1 * + col1 * + tab0.col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col0 * col0 * - tab1.col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT - ( - ( col0 ) ) * - 93 AS col0 FROM tab1
----
-279
-5952
-7440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col1 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT DISTINCT 26 DIV - col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT 26 / - col0 AS col1 FROM tab1
----
-8
0
query I rowsort
SELECT - ( - 30 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615
onlyif mysql # use DIV operator for integer division
query I rowsort label-7634
SELECT ALL + col0 DIV + 96 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + col0 / + 96 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT cor0.col2 + 28 DIV - col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7635
SELECT cor0.col2 + 28 / - col2 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT - col2 DIV ( ( + cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7636
SELECT - col2 / ( ( + cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + 71 - col0 * - ( col1 ) AS col2 FROM tab1
----
1111
149
711
query I rowsort
SELECT DISTINCT col2 + tab2.col0 * - col1 - + col2 * col1 AS col0 FROM tab2
----
-1027
-1951
-6110
query I rowsort
SELECT DISTINCT + 63 - - col0 * col1 AS col2 FROM tab0
----
2127
3458
8162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 - col2 col1 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT + col2 DIV tab2.col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7641
SELECT + col2 / tab2.col0 FROM tab2
----
0
0
3
query I rowsort
SELECT 43 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT + ( - col0 ) + 27 * ( col0 ) AS col2 FROM tab2 AS cor0
----
182
2028
2054
onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT - tab2.col0 DIV - col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7644
SELECT - tab2.col0 / - col1 FROM tab2
----
0
1
4
query I rowsort
SELECT - col0 + - col2 - 21 FROM tab2
----
-125
-138
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT - tab1.col2 DIV - col2 + - col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-7646
SELECT - tab1.col2 / - col2 + - col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT + col2 * 40 AS col2 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT - + col2 * 25 AS col2 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT DISTINCT - col1 - - 57 FROM tab0 AS cor0
----
-29
-34
-40
query I rowsort
SELECT ALL - - col0 * col0 + - cor0.col2 FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - cor0.col2 * col2 col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7652
SELECT ALL - - cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - - cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - col2 * col0 AS col0 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col1 + - ( col1 ) FROM tab0
----
0
query I rowsort
SELECT ALL col2 + + ( + col2 ) * + col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT col1 * - ( 27 ) + + col0 AS col1 FROM tab2 AS cor0
----
-1515
-380
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT - col2 DIV - col1 - col1 FROM tab1 cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-7657
SELECT - col2 / - col1 - col1 FROM tab1 cor0
----
-24
-5
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7658
SELECT col0 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7658
SELECT col0 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 69 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT 20 * 11 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
221
253
302
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 + + col1 col1 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT DISTINCT - + 22 * + col0 FROM tab0 AS cor0
----
-1958
-528
-770
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7663
SELECT DISTINCT + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
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-7665
SELECT - - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7665
SELECT - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7666
SELECT - - CAST( ( + col2 ) AS SIGNED ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7666
SELECT - - CAST ( ( + col2 ) AS INTEGER ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 89 * - col2 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT - ( + 80 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT ALL + cor0.col0 + + col1 * 6 AS col1 FROM tab0 AS cor0
----
540
617
635
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
query I rowsort
SELECT 61 + - tab1.col0 FROM tab1
----
-19
-3
58
query I rowsort
SELECT ALL 12 + col0 AS col1 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 + + col0 col0 FROM tab0 AS cor0
----
145
80
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT DISTINCT 82 DIV + col1 FROM tab1 cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT 82 / + col1 FROM tab1 cor0
----
3
6
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + col2 + 76 * - col2 * col2 col2 FROM tab2 AS cor0
----
-108262
-50674
-54648
query I rowsort
SELECT ALL + - 65 * col1 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * col2 + col0 * - col2 + col0 col0 FROM tab0 AS cor0
----
-977
1740
76
query I rowsort
SELECT + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * 47 col0 FROM tab0
----
-3854
-3854
-3854
query I rowsort
SELECT DISTINCT - 62 + + col0 FROM tab0 AS cor0
----
-27
-38
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT DISTINCT - 93 DIV cor0.col2 + col1 FROM tab1 cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - 93 / cor0.col2 + col1 FROM tab1 cor0
----
13
25
9
query I rowsort
SELECT DISTINCT - + 85 * - col0 + col1 FROM tab2 cor0
----
626
6689
6732
onlyif mysql # use DIV operator for integer division
query I rowsort label-7685
SELECT ALL 22 + col2 DIV 4 FROM tab0 AS cor0
----
22
30
42
skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL 22 + col2 / 4 FROM tab0 AS cor0
----
22
30
42
query I rowsort
SELECT + tab1.col2 * col2 * + col1 + - col0 AS col2 FROM tab1
----
119728
32426
75813
query I rowsort
SELECT - - col1 * cor0.col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - + col2 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - 65 * - 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2795
query I rowsort
SELECT DISTINCT + + 4 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT 65 + ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
1408
282
4667
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col1 * + 10 + col0 FROM tab0 AS cor0
----
-821
-836
-935
query I rowsort
SELECT ALL - col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col0 * col0 * col0 AS col2 FROM tab2
----
-343
-474552
-493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7697
SELECT CAST( NULL AS SIGNED ) col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7697
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col1 + + ( col2 ) * col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - + 58 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT + ( - col0 ) + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ( col0 ) * col1 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT 95 * col0 - col1 * - col1 FROM tab0 AS cor0
----
12734
16736
9676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 6 - - 19 col2 FROM tab1 AS cor0
----
175
79
97
query I rowsort
SELECT - - col2 + col1 + + col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL col2 + 20 AS col1 FROM tab1 cor0
----
116
74
77
query I rowsort
SELECT - col2 + col1 * - col2 AS col0 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL + col2 * col2 + - tab0.col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
10
13
26
query I rowsort
SELECT col1 * - 74 AS col2 FROM tab2
----
-1258
-2294
-4366
onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT ALL col2 DIV 29 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL col2 / 29 AS col2 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + col2 * ( 99 ) AS col2 FROM tab2
----
2574
2673
3762
query I rowsort
SELECT ALL cor0.col0 + 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 43e977fac5670cb543cbc893b4946fb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT + 44 * + col0 * - CAST( - col2 AS SIGNED ) FROM tab2
----
132088
8316
89232
skipif mysql # not compatible
query I rowsort label-7713
SELECT + 44 * + col0 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
132088
8316
89232
query I rowsort
SELECT ALL - col2 * + col0 * + 40 FROM tab1
----
-145920
-307200
-6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + + cor0.col0 * + 50 col2 FROM tab0 AS cor0
----
11748
1785
1992
query I rowsort
SELECT ALL ( col1 ) * col1 + - cor0.col0 + col2 FROM tab1 AS cor0
----
185
727
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 - - col0 * col2 col2 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT tab1.col0 - col2 * - col2 AS col1 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT + tab0.col1 + col1 + col1 AS col2 FROM tab0
----
258
273
291
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT - col0 * + col2 DIV col2 AS col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7721
SELECT - col0 * + col2 / col2 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab0.col2 - - col1 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col0 + + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + col0 + col1 + + col1 AS col0 FROM tab1 cor0
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7726
SELECT cor0.col0 DIV - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-7726
SELECT cor0.col0 / - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ALL + + col0 * - col1 + col0 * col0 - - col2 AS col2 FROM tab0 cor0
----
-1455
-2169
-96
query I rowsort
SELECT cor0.col0 * cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col2 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col1 * 90 FROM tab0
----
-7740
-8190
-8730
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7732
SELECT + + col1 + col2 DIV + col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-7732
SELECT + + col1 + col2 / + col1 FROM tab2 AS cor0
----
19
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT - - ( - 76 ) DIV + col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-7733
SELECT - - ( - 76 ) / + col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT + - 29 + - cor0.col2 FROM tab2 cor0
----
-55
-56
-67
query I rowsort
SELECT DISTINCT - 40 * + col0 + + cor0.col2 FROM tab1 cor0
----
-2503
-3104
-66
query I rowsort
SELECT ALL + 78 * - col1 AS col0 FROM tab0 AS cor0
----
-6708
-7098
-7566
query I rowsort
SELECT ( - col1 ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + 81 * col0 AS col1 FROM tab2 cor0
----
567
6318
6399
query I rowsort
SELECT DISTINCT + 62 * - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-40052
-51894
-95108
query I rowsort
SELECT DISTINCT + ( col1 + col1 ) * + col1 FROM tab1
----
1352
200
338
query I rowsort
SELECT DISTINCT tab1.col1 + - col0 AS col2 FROM tab1 WHERE ( NOT NULL NOT IN ( + col1 * + col1 ) AND NOT NULL IN ( tab1.col1 + col0 ) ) AND + col0 NOT IN ( tab1.col1 )
----
query I rowsort
SELECT ALL + 38 AS col0 FROM tab0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL + - col2 * col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL - + col1 * - 11 FROM tab2 AS cor0
----
187
341
649
query I rowsort
SELECT - ( + ( col0 ) + col1 ) FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 75 * cor0.col1 AS col0 FROM tab0, tab1 cor0
----
1950
750
975
query I rowsort
SELECT - 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT 72 + + col2 * col0 FROM tab1
----
234
3720
7752
query I rowsort
SELECT DISTINCT + ( tab1.col1 ) AS col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col0 col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT + col1 * - col0 + - 52 FROM tab0
----
-2116
-3447
-8151
query I rowsort
SELECT DISTINCT + col2 * ( col2 ) * - col2 + 95 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-157447
-185738
-885681
query I rowsort
SELECT - 16 * - col0 * - 86 + - col1 FROM tab1 AS cor0
----
-110093
-4154
-88074
query I rowsort
SELECT 28 - tab2.col1 * + col0 * + col1 FROM tab2
----
-22803
-271490
-6699
query I rowsort
SELECT ALL + col0 + + tab2.col2 * 53 FROM tab2
----
1438
1456
2093
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7757
SELECT + 83 * - col1 * - CAST( col1 * col2 AS SIGNED ) + - col2 + col1 FROM tab2
----
2153605
7512031
911485
skipif mysql # not compatible
query I rowsort label-7757
SELECT + 83 * - col1 * - CAST ( col1 * col2 AS INTEGER ) + - col2 + col1 FROM tab2
----
2153605
7512031
911485
query I rowsort
SELECT DISTINCT + col2 * col0 + + 45 FROM tab1 AS cor0
----
207
3693
7725
query I rowsort
SELECT DISTINCT col1 + 60 * + col0 AS col2 FROM tab2 AS cor0
----
451
4739
4757
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT ALL - col0 - + 99 DIV + col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - col0 - + 99 / + col1 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT - col0 + 61 AS col0 FROM tab0 cor0
----
-28
26
37
query I rowsort
SELECT + + col0 * cor0.col2 * - col0 + - col1 AS col2 FROM tab1 cor0
----
-233482
-512
-614413
query I rowsort
SELECT ALL + col2 + + 9 FROM tab0 cor0
----
10
42
91
query I rowsort
SELECT DISTINCT + - col0 + + 39 * col2 + col0 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT DISTINCT - col1 + - 84 FROM tab1 AS cor0
----
-110
-94
-97
query I rowsort
SELECT - cor0.col2 + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ALL tab1.col1 * - ( + ( col0 ) ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - 93 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT + cor0.col1 + + col0 + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
11
74
92
skipif mysql # not compatible
query I rowsort label-7770
SELECT + cor0.col1 + + col0 + col2 / - col0 AS col1 FROM tab1 AS cor0
----
11
74
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 0 + cor0.col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col1 * cor0.col0 * + col0 + col2 - 82 AS col1 FROM tab0 AS cor0
----
118744
49487
720811
query I rowsort
SELECT col2 * 92 AS col1 FROM tab2
----
2392
2484
3496
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7775
SELECT col1 + - 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-7775
SELECT col1 + - 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 DISTINCT - cor0.col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - 89 * - 72 * col2 AS col2 FROM tab0 AS cor0
----
211464
525456
6408
query I rowsort
SELECT ALL - col0 * 7 - + col1 * 62 FROM tab2 AS cor0
----
-1607
-1971
-4204
query I rowsort
SELECT - ( - 29 ) FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT ALL + 90 * + 62 FROM tab1 cor0
----
5580
5580
5580
query I rowsort
SELECT DISTINCT ( - 15 ) + + cor0.col2 * 23 FROM tab1 AS cor0
----
1227
1296
2193
query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) + 6 FROM tab1 AS cor0
----
-163
-670
-94
query I rowsort
SELECT DISTINCT + - ( + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - ( col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 - col0 * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 - col0 * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + ( + col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - ( - col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7789
SELECT CAST( 98 AS SIGNED ) * col0 * + 52 AS col2 FROM tab2 AS cor0
----
35672
397488
402584
skipif mysql # not compatible
query I rowsort label-7789
SELECT CAST ( 98 AS INTEGER ) * col0 * + 52 AS col2 FROM tab2 AS cor0
----
35672
397488
402584
query I rowsort
SELECT + - col1 * - col1 + ( 30 ) + col2 AS col1 FROM tab0 AS cor0
----
7459
8393
9440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7791
SELECT DISTINCT col0 DIV + col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT col0 / + col2 AS col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT 23 * col2 FROM tab2 AS cor0
----
598
621
874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col0 + + col1 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1151
63
6726
query I rowsort
SELECT - + 91 + col0 * + 76 * - col0 FROM tab2 AS cor0
----
-3815
-462475
-474407
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - + ( + col0 ) * + col0 * ( - cor0.col2 ) col1 FROM tab2 cor0
----
1274
152100
230917
query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + 27 * col0 - col0 FROM tab1 AS cor0
----
-1792
-2240
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT ALL 25 - tab2.col0 DIV + col1 FROM tab2
----
21
24
25
skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 25 - tab2.col0 / + col1 FROM tab2
----
21
24
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + tab2.col2 * + col0 ) - + col1 col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL - col1 * - cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + - col0 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * cor0.col1 + col0 col1 FROM tab2 AS cor0
----
317
441
904
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 * - ( cor0.col2 ) * + ( + col0 ) FROM tab0 AS cor0
----
-1190
-18216
-642224
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col0 + + tab2.col1 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT - col2 * ( + cor0.col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col1 * col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7810
SELECT DISTINCT cor0.col0 * - col0 * + 87 + + col2 * - CAST( NULL AS DECIMAL ) - - col0 * + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT cor0.col0 * - col0 * + 87 + + col2 * - CAST ( NULL AS REAL ) - - col0 * + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT tab0.col0 * col1 + ( + col0 * + col2 ) FROM tab0
----
15397
2856
3430
query I rowsort
SELECT - 68 + + 82 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7813
SELECT ALL - col1 + tab1.col2 DIV col0 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - col1 + tab1.col2 / col0 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT 19 * - col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT - - col2 * col1 + 17 AS col2 FROM tab2 AS cor0
----
1551
663
854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - + 14 * col0 FROM tab1 AS cor0
----
-1120
-42
-896
onlyif mysql # use DIV operator for integer division
query I rowsort label-7818
SELECT - cor0.col2 DIV col1 - col1 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif mysql # not compatible
query I rowsort label-7818
SELECT - cor0.col2 / col1 - col1 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + col1 * ( col0 ) * col0 + - 71 FROM tab0 AS cor0
----
118754
49465
720740
query I rowsort
SELECT - ( - col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502
query I rowsort
SELECT cor0.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - tab0.col1 * 93 + - 12 FROM tab0
----
-8010
-8475
-9033
query I rowsort
SELECT 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT col0 * 49 + - col0 AS col0 FROM tab1
----
144
3072
3840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT tab0.col1 + 40 DIV col2 col2 FROM tab0
----
137
87
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7827
SELECT tab0.col1 + 40 / col2 col2 FROM tab0
----
137
87
91
query I rowsort
SELECT 75 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7830
SELECT + 95 DIV + 43 col1 FROM tab1 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7830
SELECT + 95 / + 43 col1 FROM tab1 AS cor0
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7831
SELECT CAST( + 89 AS SIGNED ) col0 FROM tab1
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7831
SELECT CAST ( + 89 AS INTEGER ) col0 FROM tab1
----
89
89
89
query I rowsort
SELECT ALL + 35 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL + - cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + tab0.col1 * 93 AS col0 FROM tab0, tab1 AS cor0
----
7998
8463
9021
onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT 77 DIV col2 AS col0 FROM tab0 cor0
----
0
2
77
skipif mysql # not compatible
query I rowsort label-7835
SELECT 77 / col2 AS col0 FROM tab0 cor0
----
0
2
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7836
SELECT - ( col0 ) * + CAST( - 78 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
546
6084
6162
skipif mysql # not compatible
query I rowsort label-7836
SELECT - ( col0 ) * + CAST ( - 78 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT + + col0 * col1 + - col2 * col1 + + 76 FROM tab0 AS cor0
----
-698
3374
713
query I rowsort
SELECT - col0 * - col1 * cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT + col0 * col1 + col0 * - col1 * + col2 AS col1 FROM tab2 cor0
----
-115050
-49691
-5642
query I rowsort
SELECT ALL - col2 * 21 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT col1 * 63 FROM tab2
----
1071
1953
3717
query I rowsort
SELECT - cor0.col0 * - 67 + + col2 FROM tab0 cor0
----
1641
2346
6045
onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT - - col0 + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-7843
SELECT - - col0 + col0 / + cor0.col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + cor0.col2 * - ( + col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col0 + col0 + col1 col0 FROM tab2 AS cor0
----
689
7391
7443
query I rowsort
SELECT - ( 6 ) * col1 + - col2 FROM tab0 AS cor0
----
-549
-583
-628
query I rowsort
SELECT + 31 + + col0 + col0 * cor0.col0 * + col2 FROM tab2 AS cor0
----
1361
158293
237268
query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 FROM tab1 WHERE NULL > NULL
----
query III rowsort
SELECT * FROM tab2 WHERE - col0 >= NULL
----
query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( col1 )
----
54
57
96
query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * cor0.col0 col2 FROM tab2 AS cor0
----
106097
1519
358956
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT + col0 + + col1 + col1 * col0 AS col1 FROM tab0
----
2174
3527
8279
onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT DISTINCT tab2.col2 + + tab2.col1 DIV + col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT tab2.col2 + + tab2.col1 / + col1 FROM tab2
----
27
28
39
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT ALL + col2 * - col1 + + col2 * + col1 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + tab0.col0 - col2 col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT IN ( - col0 - col2 )
----
query I rowsort
SELECT + col2 * + col0 * col0 + - col0 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT DISTINCT + - col0 * + col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + + col1 * - col0 - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7864
SELECT - + col2 DIV col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7864
SELECT - + col2 / col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT col1 + col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-7865
SELECT col1 + col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
10
13
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT + col2 * col2 DIV - col0 AS col1 FROM tab1
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-7866
SELECT + col2 * col2 / - col0 AS col1 FROM tab1
----
-115
-50
-972
query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 - + col1 * col1 AS col1 FROM tab1
----
-16393
-37180
-5800
query I rowsort
SELECT ALL tab1.col1 * - col2 + col1 * col2 FROM tab1
----
0
0
0
query I rowsort
SELECT tab1.col0 + cor0.col2 AS col0 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to e30c1547d66313ce1b3436c5eda1349c
query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 - col0 * - col1 / - col1 ) IN ( - col0 / + col1 + cor0.col0 ) OR NOT NULL NOT IN ( + cor0.col2 + + col0 )
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT + tab1.col1 DIV - tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7872
SELECT + tab1.col1 / - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + 74 * col1 AS col0 FROM tab0
----
6364
6734
7178
query I rowsort
SELECT DISTINCT + col1 * - col2 * + tab2.col2 + - ( - col0 + + col1 ) FROM tab2
----
-22623
-24486
-39865
query I rowsort
SELECT - col2 * - col2 + 77 FROM tab2
----
1521
753
806
query I rowsort
SELECT - - col1 + + ( + col1 ) FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT col0 + - col1 * ( + col0 ) DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7877
SELECT col0 + - col1 * ( + col0 ) / + col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT ALL col0 DIV + tab0.col0 + col1 DIV tab0.col2 AS col1 FROM tab0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL col0 / + tab0.col0 + col1 / tab0.col2 AS col1 FROM tab0
----
2
3
98
query I rowsort
SELECT + - 24 + col2 AS col1 FROM tab2 AS cor0
----
14
2
3
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ( + col0 ) + - col2 + col2 * col0 FROM tab0
----
69
7305
783
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT 29 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7883
SELECT 29 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - - col2 + + ( 41 ) * - col1 + - col1 FROM tab0 AS cor0
----
-3579
-3740
-4073
query I rowsort
SELECT ALL - col0 + 53 AS col0 FROM tab1 AS cor0
----
-11
-27
50
query I rowsort
SELECT ALL col2 * 33 - + 40 AS col0 FROM tab0 AS cor0
----
-7
1049
2666
query I rowsort
SELECT cor0.col1 + 87 FROM tab2 cor0
----
104
118
146
onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT ALL col2 * col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL col2 * col2 / - col0 AS col1 FROM tab0 AS cor0
----
-45
-75
0
query I rowsort
SELECT DISTINCT col1 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 + + col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - cor0.col0 * 40 + + col1 FROM tab0 cor0
----
-1303
-3469
-874
query I rowsort
SELECT DISTINCT - - col2 - ( col1 + col1 ) AS col2 FROM tab1 AS cor0
----
2
37
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7893
SELECT + + cor0.col2 * - 37 + + col0 DIV + col0 FROM tab0 AS cor0
----
-1220
-3033
-36
skipif mysql # not compatible
query I rowsort label-7893
SELECT + + cor0.col2 * - 37 + + col0 / + col0 FROM tab0 AS cor0
----
-1220
-3033
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7894
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 * col0 + col0 AS col2 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col1 + - col2 FROM tab2 WHERE col2 BETWEEN + col0 AND - col0
----
query I rowsort
SELECT col2 - col2 * col0 * - col1 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT ALL + col2 * col1 + + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + tab2.col2 + + tab2.col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + + col0 * - col0 col2 FROM tab1
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT ALL col0 DIV col1 + - col2 AS col1 FROM tab2
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL col0 / col1 + - col2 AS col1 FROM tab2
----
-25
-27
-34
query I rowsort
SELECT - col1 + col0 * - col0 * - col0 AS col0 FROM tab1
----
1
262134
511987
query I rowsort
SELECT DISTINCT + tab1.col0 * - col0 * col2 + tab1.col1 AS col0 FROM tab1
----
-233462
-460
-614387
onlyif mysql # use DIV operator for integer division
query I rowsort label-7904
SELECT - col2 + col2 DIV - col1 FROM tab2
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-7904
SELECT - col2 + col2 / - col1 FROM tab2
----
-26
-27
-40
query I rowsort
SELECT + col1 / + col2 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col1 )
----
query I rowsort
SELECT ALL - col2 * col2 + + col1 * + col1 FROM tab1
----
-2240
-3149
-9047
query I rowsort
SELECT ALL cor0.col2 - - col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT - col0 DIV + col2 - 94 FROM tab0 AS cor0
----
-129
-94
-95
skipif mysql # not compatible
query I rowsort label-7908
SELECT - col0 / + col2 - 94 FROM tab0 AS cor0
----
-129
-94
-95
query I rowsort
SELECT ALL - + 28 AS col1 FROM tab2 AS cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 * col2 col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - 77 + - col1 FROM tab1 cor0
----
-103
-87
-90
query I rowsort
SELECT ALL col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 + - col2 + col2 * + col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab2 WHERE NOT col2 <= NULL
----
query I rowsort
SELECT - 13 + col2 FROM tab2 cor0
----
13
14
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + 69 * col1 - 84 AS col0 FROM tab0 AS cor0
----
-6018
-6363
-6777
onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT ALL col0 + cor0.col1 DIV 92 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL col0 + cor0.col1 / 92 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT col1 + 29 DIV ( - col1 ) FROM tab1 AS cor0
----
11
25
8
skipif mysql # not compatible
query I rowsort label-7919
SELECT col1 + 29 / ( - col1 ) FROM tab1 AS cor0
----
11
25
8
query I rowsort
SELECT col2 * - ( col2 + + tab1.col2 ) * + col1 FROM tab1
----
-151632
-239616
-64980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 32 col2 FROM tab1 AS cor0
----
19
22
6
query I rowsort
SELECT + ( - 56 ) FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT col0 + cor0.col1 * - 25 FROM tab0 AS cor0
----
-2126
-2186
-2390
query I rowsort
SELECT 16 + - col2 AS col1 FROM tab0 AS cor0
----
-17
-66
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-7925
SELECT col2 * - col0 + 86 DIV col0 + + col2 FROM tab0 AS cor0
----
-32
-7216
-756
skipif mysql # not compatible
query I rowsort label-7925
SELECT col2 * - col0 + 86 / col0 + + col2 FROM tab0 AS cor0
----
-32
-7216
-756
query I rowsort
SELECT - + col1 + - col1 * ( + col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-1515
-584
-861
query I rowsort
SELECT DISTINCT + 57 * col0 AS col1 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT + ( + col2 ) * col2 * col0 - col1 * - CAST( + col2 * + col0 AS SIGNED ) FROM tab2 cor0
----
10962
165110
172380
skipif mysql # not compatible
query I rowsort label-7928
SELECT + ( + col2 ) * col2 * col0 - col1 * - CAST ( + col2 * + col0 AS INTEGER ) FROM tab2 cor0
----
10962
165110
172380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * + cor0.col2 + col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT col2 * - 68 + + col0 FROM tab1 cor0
----
-3669
-3812
-6448
query I rowsort
SELECT - col1 + ( 72 ) FROM tab2 cor0
----
13
41
55
query I rowsort
SELECT - - cor0.col0 * + ( 67 ) * col0 + + ( + col0 ) FROM tab0 AS cor0
----
38616
530796
82110
query I rowsort
SELECT - cor0.col0 * 11 + - 64 AS col2 FROM tab2 cor0
----
-141
-922
-933
onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT + + col2 DIV - col1 + 50 AS col1 FROM tab0 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-7935
SELECT + + col2 / - col1 + 50 AS col1 FROM tab0 AS cor0
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * - col1 col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT + + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7937
SELECT + + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - col0 * - ( + col0 ) + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + col1 + - 73 AS col2 FROM tab0 cor0
----
13
18
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT col0 * ( - col2 ) + cor0.col1 DIV ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
-159
-1970
-2986
skipif mysql # not compatible
query I rowsort label-7941
SELECT col0 * ( - col2 ) + cor0.col1 / ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
-159
-1970
-2986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 * - col2 col2 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - + 83 + - col1 FROM tab1 AS cor0
----
-109
-93
-96
query I rowsort
SELECT DISTINCT + - 22 * 50 AS col0 FROM tab1 cor0
----
-1100
query I rowsort
SELECT ALL + 88 * col0 + cor0.col0 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
28248
3115
606268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT cor0.col1 - - cor0.col1 * + 40 AS col2 FROM tab0 AS cor0
----
3526
3731
3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT ALL col0 * col2 + col2 DIV col1 AS col0 FROM tab1 cor0
----
164
3653
7687
skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL col0 * col2 + col2 / col1 AS col0 FROM tab1 cor0
----
164
3653
7687
query I rowsort
SELECT - 11 * + cor0.col2 - col0 AS col2 FROM tab2 cor0
----
-304
-364
-497
onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT cor0.col0 + + cor0.col0 DIV - col1 + - col2 FROM tab1 AS cor0
----
-22
-51
1
skipif mysql # not compatible
query I rowsort label-7951
SELECT cor0.col0 + + cor0.col0 / - col1 + - col2 FROM tab1 AS cor0
----
-22
-51
1
query I rowsort
SELECT DISTINCT + ( - 0 * + col2 ) FROM tab2
----
0
query I rowsort
SELECT ALL - col2 * + col1 + col0 - - col0 FROM tab2
----
-1378
-488
-823
query I rowsort
SELECT ALL + 89 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + ( - 89 ) col2 FROM tab1
----
267
5696
7120
query I rowsort
SELECT - col2 + col0 * + cor0.col1 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - col2 + col2 + col2 * + 96 * + col0 AS col2 FROM tab0
----
3360
700608
76032
query I rowsort
SELECT - col1 + + tab1.col2 + + tab1.col1 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ( col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 21 * col1 col2 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT + - col0 * + col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + + ( 35 ) * col0 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT 1 * + 59 AS col0 FROM tab2 cor0
----
59
query I rowsort
SELECT + - 35 * + col2 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT - + 34 + + col2 AS col0 FROM tab1 AS cor0
----
20
23
62
query I rowsort
SELECT DISTINCT + + col2 + - 92 AS col1 FROM tab2 AS cor0
----
-54
-65
-66
query I rowsort
SELECT ALL + + col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT DISTINCT + ( col2 ) * col1 DIV + 92 + - col1 * tab1.col2 * col1 AS col0 FROM tab1
----
-16211
-36489
-5694
skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + ( col2 ) * col1 / + 92 + - col1 * tab1.col2 * col1 AS col0 FROM tab1
----
-16211
-36489
-5694
query I rowsort
SELECT - 5 + 80 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT ALL col0 + + col0 * 55 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT + + 45 + cor0.col1 FROM tab2 AS cor0
----
104
62
76
query I rowsort
SELECT DISTINCT + - 67 + - col0 FROM tab0 cor0
----
-102
-156
-91
query I rowsort
SELECT ALL - col0 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL ( cor0.col0 ) + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - + col2 + - col2 * - 56 AS col1 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT DISTINCT col0 * - ( 57 ) FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT - col1 * ( 16 ) FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT ALL - cor0.col0 + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT - - col2 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT DISTINCT CAST( 13 AS SIGNED ) * col2 FROM tab2 AS cor0
----
338
351
494
skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT CAST ( 13 AS INTEGER ) * col2 FROM tab2 AS cor0
----
338
351
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT + - CAST( col1 AS SIGNED ) * - cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7981
SELECT + - CAST ( col1 AS INTEGER ) * - cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + - 3 + + col2 AS col0 FROM tab1 AS cor0
----
51
54
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7983
SELECT + CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7983
SELECT + CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col0 - + col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 88 + - col2 + col1 FROM tab2 AS cor0
----
121
67
92
query I rowsort
SELECT ALL + col2 * 40 + + col1 AS col1 FROM tab1 AS cor0
----
2186
2290
3853
onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT - 11 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-11
-5
-5
skipif mysql # not compatible
query I rowsort label-7987
SELECT - 11 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
-11
-5
-5
query I rowsort
SELECT ALL 76 * col2 AS col2 FROM tab0 AS cor0
----
2508
6232
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7989
SELECT - ( col1 ) * + col1 + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7989
SELECT - ( col1 ) * + col1 + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - 68 * + col2 AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7991
SELECT DISTINCT - - CAST( 38 AS SIGNED ) * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
2106
2223
3744
skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - - CAST ( 38 AS INTEGER ) * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT DISTINCT 47 + + col0 * - col2 FROM tab2 AS cor0
----
-142
-1981
-2955
onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT ALL 37 DIV col0 - - col1 AS col1 FROM tab0 cor0
----
87
91
98
skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL 37 / col0 - - col1 AS col1 FROM tab0 cor0
----
87
91
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 24 ) * col1 + 28 * cor0.col1 * - col0 col0 FROM tab1 AS cor0
----
-1560
-17680
-28808
query I rowsort
SELECT DISTINCT + + 7 FROM tab0 AS cor0
----
7
query I rowsort
SELECT ALL - col2 + 9 - 0 FROM tab0
----
-24
-73
8
query I rowsort
SELECT DISTINCT tab1.col1 + ( col0 ) - + col2 * + col1 AS col1 FROM tab1
----
-1155
-1375
-496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col1 col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL 80 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT + col1 * - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - + 78 * - cor0.col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT - 11 * + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT DISTINCT 95 * col2 + + col2 AS col1 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT ALL + col2 * - 73 + - col2 AS col2 FROM tab2
----
-1924
-1998
-2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT 87 DIV tab2.col1 + col0 + ( - col2 ) FROM tab2
----
-18
46
53
skipif mysql # not compatible
query I rowsort label-8005
SELECT 87 / tab2.col1 + col0 + ( - col2 ) FROM tab2
----
-18
46
53
query I rowsort
SELECT 82 - col1 * col0 FROM tab0 AS cor0
----
-1982
-3313
-8017
query I rowsort
SELECT DISTINCT + ( - tab0.col0 ) + - tab0.col0 AS col1 FROM tab0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab1
----
22
22
22
skipif mysql # not compatible
query I rowsort
SELECT ALL 44 * + ( col0 ) + CAST ( + col1 AS REAL ) + - col0 FROM tab0
----
1118
1602
3918
query I rowsort
SELECT 12 * - col2 + + tab1.col2 * 88 FROM tab1
----
4104
4332
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8011
SELECT - CAST( NULL AS SIGNED ) / - ( - col0 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8011
SELECT - CAST ( NULL AS INTEGER ) / - ( - col0 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 46 + tab2.col0 * col0 FROM tab2
----
3
6038
6195
query I rowsort
SELECT ALL 50 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8015
SELECT + - col1 + - 62 DIV col1 FROM tab2 cor0
----
-20
-33
-60
skipif mysql # not compatible
query I rowsort label-8015
SELECT + - col1 + - 62 / col1 FROM tab2 cor0
----
-20
-33
-60
query I rowsort
SELECT 34 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + col2 + 7 * - col0 AS col0 FROM tab0 AS cor0
----
-135
-244
-541
query I rowsort
SELECT ALL - cor0.col1 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 + + col2 FROM tab1 AS cor0
----
1216
135
761
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8021
SELECT DISTINCT + col1 / + CAST( NULL AS DECIMAL ) + 94 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + col1 / + CAST ( NULL AS REAL ) + 94 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col0 + col1 * col1 * 94 AS col2 FROM tab0 AS cor0
----
695200
778325
884411
onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT ALL - col0 DIV + col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - col0 / + col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL ( col1 + + col2 ) AS col0 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8025
SELECT ALL 58 DIV col0 AS col1 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL 58 / col0 AS col1 FROM tab1
----
0
0
19
query I rowsort
SELECT ALL 76 * - col0 AS col1 FROM tab2
----
-532
-5928
-6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT + col2 DIV + col2 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8027
SELECT + col2 / + col2 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT 39 * col0 + col2 AS col0 FROM tab2 cor0
----
300
3068
3119
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8029
SELECT - col2 + col2 * - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8029
SELECT - col2 + col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * - col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col2 * col1 + - 61 * col0 AS col1 FROM tab0
----
-2038
1374
2033
onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT DISTINCT col1 + - col0 DIV col2 AS col2 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT col1 + - col0 / col2 AS col2 FROM tab1
----
13
26
9
query I rowsort
SELECT ALL - + col2 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - col1 + col0 * + 12 FROM tab1 AS cor0
----
10
758
947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 + - col0 col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL col2 * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT 92 * 82 * col0 + col0 AS col1 FROM tab1 AS cor0
----
22635
482880
603600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 27 ) * col1 - + 40 col1 FROM tab0 AS cor0
----
-2362
-2497
-2659
query I rowsort
SELECT - 43 * - col0 + col1 * - 45 FROM tab1 AS cor0
----
-1041
2302
2855
onlyif mysql # use DIV operator for integer division
query I rowsort label-8041
SELECT 38 DIV - col1 AS col0 FROM tab1
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8041
SELECT 38 / - col1 AS col0 FROM tab1
----
-1
-2
-3
query I rowsort
SELECT col0 * col2 + + cor0.col2 * col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT + 86 * tab0.col0 * + col1 FROM tab0
----
177504
291970
696514
query I rowsort
SELECT - col0 * + col2 + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col2 * cor0.col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT + col2 * + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - + 59 - col0 AS col0 FROM tab0 AS cor0
----
-148
-83
-94
query I rowsort
SELECT ALL col2 * col1 - 37 * 35 FROM tab0 AS cor0
----
-1198
1543
6167
query I rowsort
SELECT + 32 + + col2 FROM tab0 AS cor0
----
114
33
65
query I rowsort
SELECT DISTINCT - 94 + - col1 * - cor0.col1 FROM tab1 AS cor0
----
582
6
75
query I rowsort
SELECT DISTINCT ( 38 ) AS col2 FROM tab2
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 * col0 col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 64 FROM tab2, tab0 cor0, tab1 AS cor1
----
-64
query I rowsort
SELECT - col2 * + 61 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT - + cor0.col1 + + 56 FROM tab2 AS cor0
----
-3
25
39
query I rowsort
SELECT DISTINCT col2 * - col1 * ( col1 ) FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - col2 * + 2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT ALL + col1 * col0 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL - + 95 * - col2 AS col0 FROM tab2 AS cor0
----
2470
2565
3610
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT DISTINCT + 31 * 75 DIV col1 col1 FROM tab1 cor0
----
178
232
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT + 31 * 75 / col1 col1 FROM tab1 cor0
----
178
232
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT ALL tab0.col2 DIV ( 84 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL tab0.col2 / ( 84 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 + - 34 + + 51 AS col1 FROM tab1 cor0
----
20
81
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8063
SELECT + - col0 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-8063
SELECT + - col0 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col0 * ( - col1 ) * + cor0.col2 + - 90 * col1 AS col0 FROM tab1 cor0
----
-101010
-37380
-6552
query I rowsort
SELECT DISTINCT + col0 + + 20 FROM tab0
----
109
44
55
query I rowsort
SELECT ALL - 1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT ALL col1 + + col1 + + col1 * tab2.col0 AS col2 FROM tab2
----
1377
279
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8068
SELECT ALL col0 + col1 DIV + ( col2 ) AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL col0 + col1 / + ( col2 ) AS col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - ( + ( - cor0.col1 ) ) col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT ALL + + cor0.col1 * CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + + cor0.col1 * CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + ( + cor0.col1 ) FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-8072
SELECT ALL + + col2 + + 23 * + col2 DIV + col2 FROM tab1 AS cor0
----
119
77
80
skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + + col2 + + 23 * + col2 / + col2 FROM tab1 AS cor0
----
119
77
80
query I rowsort
SELECT ALL - 17 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8074
SELECT - + col2 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8074
SELECT - + col2 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col1 + 4 * + col1 AS col0 FROM tab0
----
430
455
485
query I rowsort
SELECT - + ( - 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 + 81 + col2 * - col2 col1 FROM tab2 AS cor0
----
-1363
-595
-648
query I rowsort
SELECT ALL - 35 * cor0.col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
261170
3395
99330
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * col2 col1 FROM tab0 AS cor0
----
-1968
-24
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8080
SELECT ALL + 84 * + cor0.col2 * + CAST( - 17 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-117096
-1428
-47124
skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + 84 * + cor0.col2 * + CAST ( - 17 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-117096
-1428
-47124
query I rowsort
SELECT DISTINCT + 80 - col0 AS col0 FROM tab2 AS cor0
----
1
2
73
query I rowsort
SELECT DISTINCT + 35 * col2 + cor0.col2 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
2268
71
9683
query I rowsort
SELECT - 3 * col1 AS col1 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT DISTINCT - - 20 + + col0 AS col1 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + col1 + + col2 * col1 + 96 FROM tab1 AS cor0
----
1357
1526
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8087
SELECT ALL - ( col1 ) * CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - ( col1 ) * CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + 95 + + col0 ) FROM tab0
----
119
130
184
query I rowsort
SELECT ALL 5 * - col0 FROM tab0
----
-120
-175
-445
query I rowsort
SELECT ( - col1 ) * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-8092
SELECT ALL + col1 DIV col0 - 22 AS col1 FROM tab1 AS cor0
----
-14
-22
-22
skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + col1 / col0 - 22 AS col1 FROM tab1 AS cor0
----
-14
-22
-22
query I rowsort
SELECT ALL + col2 * + col1 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + 87 + + col0 FROM tab0 AS cor0
----
111
122
176
query I rowsort
SELECT DISTINCT 56 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-3
25
39
query I rowsort
SELECT ALL - - 76 FROM tab0 cor0
----
76
76
76
query I rowsort
SELECT ALL + col2 + - col1 * - col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT 98 * + col1 + + col0 * + tab0.col1 FROM tab0
----
10492
12901
17017
query I rowsort
SELECT ( col2 ) + + col0 * + col1 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT + ( col0 * + 45 ) FROM tab0
----
1080
1575
4005
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT DISTINCT - 79 DIV + 69 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-1
skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - 79 / + 69 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-1
query I rowsort
SELECT - 78 * - col2 AS col1 FROM tab2 AS cor0
----
2028
2106
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 * - col0 col2 FROM tab0 cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - 24 + - col1 ) col2 FROM tab0 AS cor0
----
-121
-3630
-9430
query I rowsort
SELECT - col0 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col2 + ( 82 ) * + col2 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT 31 + col2 AS col2 FROM tab2
----
57
58
69
query I rowsort
SELECT + - 91 * + col1 + + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
-7716
-8101
-8695
query I rowsort
SELECT DISTINCT - + col1 + ( col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col2 * + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 71 * ( col1 ) + col1 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT DISTINCT - 24 + col2 * col2 AS col2 FROM tab1 cor0
----
2892
3225
9192
query I rowsort
SELECT col2 + 49 AS col2 FROM tab2 cor0
----
75
76
87
query I rowsort
SELECT ALL + + 92 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT col0 * 59 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT + ( - col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + ( - 83 ) + col1 * 62 AS col1 FROM tab2 AS cor0
----
1839
3575
971
query I rowsort
SELECT ALL ( - 74 ) FROM tab0 AS cor0
----
-74
-74
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8119
SELECT - CAST( cor0.col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8119
SELECT - CAST ( cor0.col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8120
SELECT col0 * - CAST( NULL AS DECIMAL ) - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8120
SELECT col0 * - CAST ( NULL AS REAL ) - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT col2 DIV - ( + col2 ) + + col0 * col1 FROM tab0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT col2 / - ( + col2 ) + + col0 * col1 FROM tab0
----
2063
3394
8098
query I rowsort
SELECT col1 + ( 2 ) FROM tab0
----
88
93
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT + CAST( ( col1 ) AS SIGNED ) * ( + col0 ) + col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
10256
2994
3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8123
SELECT + CAST ( ( col1 ) AS INTEGER ) * ( + col0 ) + col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
10256
2994
3889
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT DISTINCT - col2 + - CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - col2 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT CAST( NULL AS SIGNED ) + - col0 * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8125
SELECT CAST ( NULL AS INTEGER ) + - col0 * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 61 * cor0.col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT ALL - 60 * + col0 + cor0.col2 * 8 * + col1 AS col2 FROM tab1 AS cor0
----
11052
5184
720
query I rowsort
SELECT ( - col2 ) * - col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - col0 + - col1 * cor0.col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col1 * cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - 48 * + col1 FROM tab1
----
-1248
-480
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-8132
SELECT - 93 + col2 DIV - col1 col1 FROM tab1 AS cor0
----
-100
-95
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8132
SELECT - 93 + col2 / - col1 col1 FROM tab1 AS cor0
----
-100
-95
-98
query I rowsort
SELECT + + 75 * - col1 - col0 AS col0 FROM tab1 AS cor0
----
-1055
-1953
-814
query I rowsort
SELECT ALL col0 * + col1 - - col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT - - 86 + col2 * + ( col1 * - cor0.col2 ) FROM tab1 cor0
----
-119722
-32404
-75730
query I rowsort
SELECT DISTINCT - - col1 * col1 + + col1 + - ( - col0 + col0 ) AS col0 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 * + col1 + - 34 FROM tab1 AS cor0
----
-1282
-1438
-604
query I rowsort
SELECT - 1 * - col0 + + col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8140
SELECT 39 * cor0.col0 * - CAST( - col2 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
117040
7344
79066
skipif mysql # not compatible
query I rowsort label-8140
SELECT 39 * cor0.col0 * - CAST ( - col2 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
117040
7344
79066
query I rowsort
SELECT DISTINCT + 34 + col1 FROM tab1 AS cor0
----
44
47
60
query I rowsort
SELECT - + 83 + col2 FROM tab2 AS cor0
----
-45
-56
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT DISTINCT 99 DIV col0 FROM tab2
----
1
14
skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT 99 / col0 FROM tab2
----
1
14
query I rowsort
SELECT - + col2 + - 81 AS col2 FROM tab0 AS cor0
----
-114
-163
-82
query I rowsort
SELECT 17 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT ALL - tab0.col0 + 43 AS col2 FROM tab0
----
-46
19
8
query I rowsort
SELECT DISTINCT - col2 * 37 FROM tab1
----
-1998
-2109
-3552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8148
SELECT ALL - CAST( col1 AS SIGNED ) + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - CAST ( col1 AS INTEGER ) + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT DISTINCT + 78 DIV col0 FROM tab2 cor0
----
0
1
11
skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + 78 / col0 FROM tab2 cor0
----
0
1
11
query I rowsort
SELECT 22 * - 75 FROM tab1, tab2 cor0
----
9 values hashing to 67c25fab69bb5f1f42658e205bdbcde8
query I rowsort
SELECT DISTINCT - col2 * col0 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-34
-574
297
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * + cor0.col1 col1 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab2 AS cor0
----
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-8154
SELECT + + 27 DIV col2 FROM tab0 AS cor0
----
0
0
27
skipif mysql # not compatible
query I rowsort label-8154
SELECT + + 27 / col2 FROM tab0 AS cor0
----
0
0
27
query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL col0 * col0 - + col1 FROM tab2
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 col0 FROM tab2 cor0
----
0
query I rowsort
SELECT - ( 27 ) FROM tab1 AS cor0
----
-27
-27
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8160
SELECT DISTINCT + col2 * col0 + col1 DIV col0 FROM tab0 AS cor0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + col2 * col0 + col1 / col0 FROM tab0 AS cor0
----
37
7299
795
query I rowsort
SELECT ALL 57 * col0 * col0 + cor0.col0 AS col2 FROM tab2 cor0
----
2800
346866
355816
query I rowsort
SELECT DISTINCT col1 * + ( col0 * col0 ) + + col2 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - - col1 * cor0.col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT 93 + - col0 FROM tab1 AS cor0
----
13
29
90
query I rowsort
SELECT col0 * - col0 + col0 + - col1 FROM tab1 AS cor0
----
-32
-4042
-6333
query I rowsort
SELECT - col2 + - col2 * - col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + + col1 * + 92 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT DISTINCT - col2 DIV + CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - col2 / + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + col0 * - col1 + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT DISTINCT - col2 + + CAST( 13 + + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
20
4
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - col2 + + CAST ( 13 + + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
20
4
47
query I rowsort
SELECT ALL + + col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col0 + - 38 * - col1 AS col0 FROM tab0 AS cor0
----
3244
3369
3651
query I rowsort
SELECT ALL - col2 * + col0 * cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT cor0.col2 * col2 DIV + col1 AS col1 FROM tab2 cor0
----
11
23
84
skipif mysql # not compatible
query I rowsort label-8175
SELECT cor0.col2 * col2 / + col1 AS col1 FROM tab2 cor0
----
11
23
84
query I rowsort
SELECT ALL + - cor0.col0 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col0 AS col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 * cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT - col1 DIV col1 - col0 * - col0 FROM tab2
----
48
6083
6240
skipif mysql # not compatible
query I rowsort label-8180
SELECT - col1 / col1 - col0 * - col0 FROM tab2
----
48
6083
6240
query I rowsort
SELECT col1 + - tab1.col2 * col2 AS col2 FROM tab1
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT ALL - col1 * col1 DIV col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - col1 * col1 / col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT ALL + col1 DIV col1 + + col2 AS col1 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + col1 / col1 + + col2 AS col1 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT DISTINCT col1 * + col1 * - col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT + col1 * - col0 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT col1 * col2 * col2 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT tab1.col2 + + col1 * col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT - tab1.col1 + - col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT ALL col2 / col1 AS col2 FROM tab2 WHERE NULL IN ( col1 * col1 + + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT ALL col2 DIV + col2 + tab0.col0 col1 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL col2 / + col2 + tab0.col0 col1 FROM tab0
----
25
36
90
query I rowsort
SELECT - col2 * tab1.col1 * + col0 - + col1 FROM tab1
----
-36490
-4238
-99853
query I rowsort
SELECT + col2 * col2 + col0 AS col1 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL - cor0.col2 * col1 + col2 + - col0 FROM tab0 AS cor0
----
-131
-2829
-7469
query I rowsort
SELECT - col1 + col1 * - 10 + 19 AS col2 FROM tab0 AS cor0
----
-1048
-927
-982
onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT DISTINCT 4 * + col2 + col1 DIV 68 FROM tab2 AS cor0
----
104
108
152
skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT 4 * + col2 + col1 / 68 FROM tab2 AS cor0
----
104
108
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT DISTINCT + tab1.col1 DIV + tab1.col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + tab1.col1 / + tab1.col2 AS col1 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 + tab0.col1 * - col0 col1 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8201
SELECT - col2 DIV col1 + - col0 DIV + col1 FROM tab1
----
-11
-13
-2
skipif mysql # not compatible
query I rowsort label-8201
SELECT - col2 / col1 + - col0 / + col1 FROM tab1
----
-11
-13
-2
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NOT NULL IN ( - col1 + col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col0 * col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + col2 + col1 * col1 + + col2 FROM tab2
----
1015
3533
365
query I rowsort
SELECT ALL - col1 * - col1 + + col2 AS col1 FROM tab0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-8206
SELECT - col2 DIV - col1 + - col1 * col0 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8206
SELECT - col2 / - col1 + - col1 * col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + tab0.col1 * col0 + col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT col2 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT col2 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col1 + - col2 + col0 FROM tab2
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8212
SELECT DISTINCT col2 * col2 DIV col1 + col2 + col0 AS col1 FROM tab1
----
169
445
884
skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT col2 * col2 / col1 + col2 + col0 AS col1 FROM tab1
----
169
445
884
query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab2 WHERE NULL <= ( + col1 )
----
query I rowsort
SELECT + col2 * + col1 * tab1.col2 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * col0 * + col1 FROM tab0
----
-3395
-664118
-68112
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col0 * - col0 NOT IN ( col1 )
----
query I rowsort
SELECT + tab0.col2 * col2 * tab0.col1 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL col2 + - col0 + col1 AS col2 FROM tab1
----
29
3
77
query I rowsort
SELECT DISTINCT + tab0.col2 + - col0 + col1 AS col2 FROM tab0
----
63
84
95
query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NULL NOT IN ( col2 * col0 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT - col2 * + col0 DIV col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8222
SELECT - col2 * + col0 / col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 + + col0 AS col0 FROM tab1
----
185
256
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT + col0 DIV - col1 + col0 * + col1 - col1 FROM tab1
----
1021
52
624
skipif mysql # not compatible
query I rowsort label-8224
SELECT + col0 / - col1 + col0 * + col1 - col1 FROM tab1
----
1021
52
624
query I rowsort
SELECT ALL col0 + col1 * col2 + - col0 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + col0 + col2 * 42 FROM tab1 AS cor0
----
2271
2458
4112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 80 - cor0.col0 col1 FROM tab2 AS cor0
----
-567
-6318
-6399
query I rowsort
SELECT col0 + ( col1 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + + col0 + + col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col0 - + 43 * col2 AS col2 FROM tab1 cor0
----
-2319
-2387
-4048
query I rowsort
SELECT + cor0.col1 * ( col0 ) + col1 * + col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT DISTINCT - + col2 * 24 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT ALL + cor0.col2 * ( + ( col2 ) ) * + col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT - col2 + - 73 FROM tab1 cor0
----
-127
-130
-169
query I rowsort
SELECT + 81 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2145
3476
8180
query I rowsort
SELECT - + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8237
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 80 + col1 FROM tab1 cor0
----
106
90
93
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT - ( - 90 ) DIV col1 AS col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-8240
SELECT - ( - 90 ) / col1 AS col1 FROM tab2 AS cor0
----
1
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT DISTINCT - col0 DIV ( - col0 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - col0 / ( - col0 ) FROM tab1
----
1
query I rowsort
SELECT ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8243
SELECT - ( ( col2 ) ) + + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-8243
SELECT - ( ( col2 ) ) + + col2 / + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT - col0 + - col1 * col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT 97 + col1 AS col1 FROM tab1 cor0
----
107
110
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT ALL + 25 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + 25 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 77 * cor0.col1 * + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
218559
574656
7470
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT DISTINCT col2 DIV - col1 + - 74 * col1 FROM tab0 cor0
----
-6364
-6734
-7178
skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT col2 / - col1 + - 74 * col1 FROM tab0 cor0
----
-6364
-6734
-7178
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT ALL - ( + col1 ) DIV + 83 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - ( + col1 ) / + 83 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( + 31 ) AS col1 FROM tab2
----
31
31
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8252
SELECT DISTINCT - - cor0.col0 * - col0 + + CAST( ( col2 ) AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
-1190
-623
216
skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT - - cor0.col0 * - col0 + + CAST ( ( col2 ) AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
-1190
-623
216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT - col2 * col1 DIV - 20 AS col0 FROM tab2 AS cor0
----
32
41
76
skipif mysql # not compatible
query I rowsort label-8253
SELECT - col2 * col1 / - 20 AS col0 FROM tab2 AS cor0
----
32
41
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT 80 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
11
skipif mysql # not compatible
query I rowsort label-8254
SELECT 80 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
11
query I rowsort
SELECT + - col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col0 FROM tab2 AS cor0
----
-66
-66
-66
query I rowsort
SELECT 40 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT ALL - 96 FROM tab2, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col1 - - col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col0 * ( col2 ) * - cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
-233536
-489
-614480
query I rowsort
SELECT - col0 * - 57 FROM tab2
----
399
4446
4503
query I rowsort
SELECT ALL - col1 + col1 * tab1.col0 + col1 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8265
SELECT ALL - CAST( - 49 AS SIGNED ) + - col1 * col2 FROM tab1
----
-1199
-1355
-521
skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - CAST ( - 49 AS INTEGER ) + - col1 * col2 FROM tab1
----
-1199
-1355
-521
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * + 61 col2 FROM tab2 AS cor0
----
-2745
-2745
-2745
query I rowsort
SELECT 48 * + col0 + col1 AS col2 FROM tab1 cor0
----
170
3082
3853
query I rowsort
SELECT 39 - tab0.col1 AS col1 FROM tab0
----
-47
-52
-58
query I rowsort
SELECT DISTINCT + col2 * col0 - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * cor0.col0 + col1 col2 FROM tab2 AS cor0
----
-291
-3529
-3617
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT DISTINCT - col2 - 92 FROM tab1 AS cor0
----
-146
-149
-188
query I rowsort
SELECT ALL + + col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - col2 * 68 FROM tab2 cor0
----
1768
1836
2584
query I rowsort
SELECT ALL - col2 * - 9 AS col0 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT - col1 + - 70 AS col2 FROM tab1 AS cor0
----
-80
-83
-96
query I rowsort
SELECT DISTINCT col0 + - 33 FROM tab1 AS cor0
----
-30
31
47
query I rowsort
SELECT + col1 + 96 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT - col2 + - cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT col2 + + 83 FROM tab2 AS cor0
----
109
110
121
query I rowsort
SELECT - - col0 * - 89 * 42 AS col0 FROM tab0 AS cor0
----
-130830
-332682
-89712
query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 * - col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - - col1 * 52 FROM tab1 AS cor0
----
1352
520
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * - col1 + - col0 col2 FROM tab2 cor0
----
-1048
-1774
-3441
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 52 col1 FROM tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT DISTINCT - - ( col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col0 + - 12 AS col2 FROM tab1 AS cor0
----
-9
52
68
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - col1 * + 11 AS col1 FROM tab2
----
-187
-341
-649
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b
query I rowsort
SELECT - - 9 + col0 - + col2 FROM tab0 AS cor0
----
0
16
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT DISTINCT - col0 DIV - col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - col0 / - col1 AS col1 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + col2 + - col1 * - col0 col1 FROM tab2 AS cor0
----
1308
171
4555
query I rowsort
SELECT ALL + + 77 * - col1 * - 67 AS col2 FROM tab0 AS cor0
----
443674
469469
500423
query I rowsort
SELECT 52 * col2 + + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3034
17
924
onlyif mysql # use DIV operator for integer division
query I rowsort label-8296
SELECT DISTINCT + 2 DIV col1 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + 2 / col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - tab2.col0 - - col1 * + col2 AS col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT + 11 - + col1 * - 15 AS col2 FROM tab0 AS cor0
----
1301
1376
1466
onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT DISTINCT col0 DIV - col1 + + 75 FROM tab2 AS cor0
----
71
74
75
skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT col0 / - col1 + + 75 FROM tab2 AS cor0
----
71
74
75
query I rowsort
SELECT - col1 * col2 + col1 + - col2 * col2 FROM tab1
----
-10451
-3809
-4294
query I rowsort
SELECT + 74 + col1 * 58 - ( + tab1.col2 ) * + 13 * - col2 AS col0 FROM tab1
----
120636
39490
42891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8302
SELECT ALL col1 + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT DISTINCT - col2 * - 3 - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
246
3
99
skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - col2 * - 3 - col0 / col1 AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL 52 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 + tab0.col0 col1 FROM tab0
----
148
83
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8306
SELECT - col2 + col1 + + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-20
-47
-83
skipif mysql # not compatible
query I rowsort label-8306
SELECT - col2 + col1 + + col1 / cor0.col0 FROM tab1 AS cor0
----
-20
-47
-83
query I rowsort
SELECT - 76 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT DISTINCT - 66 + + col0 FROM tab1
----
-2
-63
14
query I rowsort
SELECT - col2 * col0 + - col1 - - col0 FROM tab1 AS cor0
----
-185
-3594
-7613
query I rowsort
SELECT col0 + 51 * col0 AS col2 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT + col0 * - 63 - + col1 FROM tab0 AS cor0
----
-1598
-2302
-5698
query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1, tab2 AS cor0
----
20
query I rowsort
SELECT col1 * - 6 AS col1 FROM tab1 cor0
----
-156
-60
-78
query I rowsort
SELECT - col2 * - ( col0 ) + cor0.col1 + col1 FROM tab2 AS cor0
----
2146
251
3036
query I rowsort
SELECT ALL - 96 + + col2 FROM tab2
----
-58
-69
-70
query I rowsort
SELECT ALL 72 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ALL col0 * - ( - ( + cor0.col2 ) * + col0 ) + cor0.col2 + cor0.col1 FROM tab2 cor0
----
1381
158269
237213
query I rowsort
SELECT - - cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + - col2 * - col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab1, tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8321
SELECT ALL tab1.col0 DIV - col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL tab1.col0 / - col1 AS col1 FROM tab1
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT - - CAST( 87 AS SIGNED ) FROM tab2 AS cor0
----
87
87
87
skipif mysql # not compatible
query I rowsort label-8322
SELECT - - CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT - ( 8 ) * - col2 FROM tab1 AS cor0
----
432
456
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT ALL + ( col1 ) DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + ( col1 ) / - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 62 * col0 FROM tab2
----
434
4836
4898
query I rowsort
SELECT - col0 * + col2 * col1 + col0 * col2 FROM tab2
----
-117624
-48032
-5670
query I rowsort
SELECT col1 + col0 * col1 - 51 AS col0 FROM tab1 AS cor0
----
1002
53
599
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( col2 ) * CAST ( 49 AS REAL ) AS col1 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + - ( 41 * + cor0.col1 ) AS col1 FROM tab0 cor0
----
-1462
-582
4368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT + + ( + col0 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * col0 col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col1 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8334
SELECT + - 36 - + col2 / - CAST( NULL AS SIGNED ) 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-8334
SELECT + - 36 - + col2 / - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 + col0 col2 FROM tab1 cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT DISTINCT cor0.col0 DIV col1 + col1 FROM tab2 cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT cor0.col0 / col1 + col1 FROM tab2 cor0
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT ALL + 34 * col1 + 64 DIV 37 FROM tab2 cor0
----
1055
2007
579
skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + 34 * col1 + 64 / 37 FROM tab2 cor0
----
1055
2007
579
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8338
SELECT ALL - + CAST( 86 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
2064
3010
7654
skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL - + CAST ( 86 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT ALL 27 + + col1 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT - ( 63 ) FROM tab0 cor0
----
-63
-63
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8341
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 19 * + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 19 * + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( - 7 ) * - col1 FROM tab0 AS cor0
----
602
637
679
query I rowsort
SELECT DISTINCT 73 + - col0 FROM tab2 cor0
----
-5
-6
66
query I rowsort
SELECT ALL + ( - col0 * + col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - + ( - col2 ) * - col0 + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8346
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col2 * 18 + col2 AS col1 FROM tab0 cor0
----
1558
19
627
query I rowsort
SELECT col0 - + 59 * col1 FROM tab2
----
-1822
-3403
-924
query I rowsort
SELECT ALL + + col1 * col2 - 65 AS col0 FROM tab2 AS cor0
----
1469
581
772
query I rowsort
SELECT + cor0.col2 * + 33 + 75 FROM tab0 AS cor0
----
108
1164
2781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 42 + 40 col2 FROM tab2 AS cor0
----
-1262
-2438
-674
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( - cor0.col2 ) + cor0.col1 col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col0 + - 67 * col0 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT DISTINCT col0 DIV col1 + - 22 AS col1 FROM tab0
----
-22
skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT col0 / col1 + - 22 AS col1 FROM tab0
----
-22
query I rowsort
SELECT - col0 * + 54 AS col1 FROM tab2
----
-378
-4212
-4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT ALL - col0 + - ( + col2 ) DIV col0 col1 FROM tab2
----
-10
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - col0 + - ( + col2 ) / col0 col1 FROM tab2
----
-10
-78
-79
query I rowsort
SELECT DISTINCT col1 + + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT + col2 * col1 + - cor0.col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8360
SELECT - col2 * + ( col0 * cor0.col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8360
SELECT - col2 * + ( col0 * cor0.col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 - ( col2 ) * col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + cor0.col1 - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT col0 * + col1 + + 42 * - col1 + - col0 AS col2 FROM tab1 cor0
----
-1017
156
414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 45 ) * + col0 col0 FROM tab2 cor0
----
315
3510
3555
query I rowsort
SELECT + 65 * - 41 AS col1 FROM tab1 AS cor0
----
-2665
-2665
-2665
query I rowsort
SELECT ALL - 43 + + col1 AS col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT + ( 94 ) AS col0 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8369
SELECT ALL - + CAST( NULL AS SIGNED ) * ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - + CAST ( NULL AS INTEGER ) * ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 24 AS col1 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT ALL + col2 * col0 + col1 - - col1 FROM tab0 AS cor0
----
229
7480
964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + col2 * + col1 * - col1 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + col0 * - col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col2 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT tab2.col2 * 95 AS col0 FROM tab2
----
2470
2565
3610
onlyif mysql # use DIV operator for integer division
query I rowsort label-8378
SELECT DISTINCT - - 85 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - - 85 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + cor0.col0 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT cor0.col1 * + col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT - col1 * col2 - 38 FROM tab1 cor0
----
-1286
-1442
-608
query I rowsort
SELECT 55 + cor0.col1 * - 23 FROM tab1 AS cor0
----
-175
-244
-543
query I rowsort
SELECT - ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 + - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - + col0 * - 0 * - col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - + col0 * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT col2 + + ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT + 61 * tab2.col2 AS col0 FROM tab2
----
1586
1647
2318
query I rowsort
SELECT DISTINCT cor1.col0 - 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43
28
29
query I rowsort
SELECT 77 * col2 FROM tab1
----
4158
4389
7392
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 49 ) + col1 + 87 col1 FROM tab2
----
55
69
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8393
SELECT - col0 DIV col2 + - col1 FROM tab0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-8393
SELECT - col0 / col2 + - col1 FROM tab0
----
-132
-86
-92
query I rowsort
SELECT + 61 + - col1 FROM tab0 AS cor0
----
-25
-30
-36
query I rowsort
SELECT col1 + - 43 - - col2 FROM tab0
----
130
55
76
query I rowsort
SELECT + cor0.col1 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 * 71 AS col2 FROM tab0 AS cor0
----
525116
587951
668039
query I rowsort
SELECT - col0 * cor0.col1 + + 94 FROM tab1 AS cor0
----
-546
-946
16
query I rowsort
SELECT ALL cor0.col1 * col2 * col1 FROM tab1 cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT + 30 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
30
skipif mysql # not compatible
query I rowsort label-8400
SELECT + 30 / col2 AS col1 FROM tab0 AS cor0
----
0
0
30
query I rowsort
SELECT ALL + ( col1 ) + + ( + 2 ) FROM tab2 cor0
----
19
33
61
query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab1 cor0
----
35
query I rowsort
SELECT DISTINCT + cor0.col2 * 72 + + 51 AS col2 FROM tab2 AS cor0
----
1923
1995
2787
query I rowsort
SELECT + + cor0.col2 * cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col1 * col2 * + cor0.col1 - - col0 * col1 AS col2 FROM tab0 AS cor0
----
12804
246132
687141
query I rowsort
SELECT + col0 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + col0 * 28 - col0 * col2 FROM tab2 AS cor0
----
-790
156
7
query I rowsort
SELECT DISTINCT - col2 * - 84 * - col0 + - col2 FROM tab2 cor0
----
-15903
-170378
-252206
query I rowsort
SELECT ALL - col1 + cor0.col0 + + 25 * col0 * + cor0.col0 FROM tab0 AS cor0
----
14338
198023
30563
query I rowsort
SELECT DISTINCT + col0 * col1 * cor0.col0 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT col0 * + cor0.col2 * + col1 + + col1 - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3395
65360
656747
query I rowsort
SELECT 88 - + 36 * + col0 AS col2 FROM tab2 AS cor0
----
-164
-2720
-2756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT - 97 + 77 DIV col0 FROM tab0 AS cor0
----
-94
-95
-97
skipif mysql # not compatible
query I rowsort label-8413
SELECT - 97 + 77 / col0 FROM tab0 AS cor0
----
-94
-95
-97
query I rowsort
SELECT + 67 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT DISTINCT + 10 + col1 * cor0.col1 + + 87 * col2 FROM tab2 cor0
----
3320
3605
5753
query I rowsort
SELECT DISTINCT + - ( - 31 ) + col0 AS col2 FROM tab2 AS cor0
----
109
110
38
query I rowsort
SELECT ALL - + 21 + - 44 AS col2 FROM tab1 AS cor0
----
-65
-65
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT DISTINCT 5 + - cor0.col1 DIV - cor0.col1 AS col1 FROM tab0 cor0
----
6
skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT 5 + - cor0.col1 / - cor0.col1 AS col1 FROM tab0 cor0
----
6
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 91 + - col1 FROM tab0 AS cor0
----
-177
-182
-188
query I rowsort
SELECT - ( 55 ) FROM tab2, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT DISTINCT - - 49 * 64 + cor0.col1 AS col1 FROM tab0 AS cor0
----
3222
3227
3233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 - + col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col0 - col1 * + col0 FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT + ( - ( + col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( 75 ) AS col1 FROM tab2 cor0
----
75
query I rowsort
SELECT + + 64 + col1 AS col0 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT ALL - col2 * - col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - - col0 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - - ( + 84 ) FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT - ( col2 ) * + col2 * col1 AS col0 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + + 46 * - col0 + + 97 FROM tab1 AS cor0
----
-2847
-3583
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT - cor0.col1 DIV - cor0.col1 - col2 DIV + 65 col0 FROM tab2 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8433
SELECT - cor0.col1 / - cor0.col1 - col2 / + 65 col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL 5 + 89 * - col0 FROM tab2
----
-618
-6937
-7026
onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT - col0 DIV + 70 AS col2 FROM tab2 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8435
SELECT - col0 / + 70 AS col2 FROM tab2 cor0
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8436
SELECT ALL ( cor0.col2 ) / CAST( NULL AS SIGNED ) + + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL ( cor0.col2 ) / CAST ( NULL AS INTEGER ) + + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT DISTINCT - + col1 * - col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 * 33 AS col2 FROM tab0
----
-1155
-2937
-792
query I rowsort
SELECT + 77 * - col1 + 70 * cor0.col1 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT - + 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL - - col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL 69 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT DISTINCT col0 * + col1 + + col2 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8445
SELECT ALL + tab1.col0 + + 5 DIV + 15 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + tab1.col0 + + 5 / + 15 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - - col1 + col0 + + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT 52 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT 22 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT - - col0 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + col0 + + ( col0 ) * + col1 FROM tab0 cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT + + col1 * col2 - col0 DIV - ( + cor0.col0 ) FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-8451
SELECT + + col1 * col2 - col0 / - ( + cor0.col0 ) FROM tab0 AS cor0
----
2839
7463
98
query I rowsort
SELECT + + col2 + + cor0.col0 * + col0 * 27 AS col2 FROM tab1 AS cor0
----
110649
172896
297
query I rowsort
SELECT - 33 * + col1 FROM tab0
----
-2838
-3003
-3201
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT - col0 - + cor0.col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-8454
SELECT - col0 - + cor0.col1 / - col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT col1 * + col1 + + col2 * - ( + col2 * + col1 ) AS col1 FROM tab0 AS cor0
----
-603603
-86258
9312
query I rowsort
SELECT col1 * 0 + - col0 - col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT ALL - ( 16 * + col2 ) - col2 * + col2 FROM tab0
----
-1617
-17
-8036
query I rowsort
SELECT DISTINCT col1 - tab2.col0 * - col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT - 37 - - 8 FROM tab0
----
-29
query I rowsort
SELECT ALL - ( + col0 ) FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8461
SELECT ALL + CAST( - col0 AS SIGNED ) * - col0 * + col1 AS col0 FROM tab1
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + CAST ( - col0 AS INTEGER ) * - col0 * + col1 AS col0 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT ALL 40 DIV - col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL 40 / - col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT tab0.col0 - col1 * + col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT col1 * + col0 + - col0 + col1 FROM tab0
----
2126
3457
8101
onlyif mysql # use DIV operator for integer division
query I rowsort label-8466
SELECT DISTINCT + col0 * + col0 + + col2 DIV + col1 FROM tab1
----
11
4101
6407
skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + col0 * + col0 + + col2 / + col1 FROM tab1
----
11
4101
6407
query I rowsort
SELECT - 79 * - col1 + - col0 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
1247
2411
4524
query I rowsort
SELECT ALL 42 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 + col1 AS col2 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + + 15 + + col2 AS col1 FROM tab1 AS cor0
----
111
69
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-8471
SELECT ALL cor0.col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL cor0.col2 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + 22 + + col1 AS col0 FROM tab2 AS cor0
----
-5
37
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT 44 DIV col1 + col0 + col1 * col2 DIV col2 AS col2 FROM tab1
----
30
78
96
skipif mysql # not compatible
query I rowsort label-8473
SELECT 44 / col1 + col0 + col1 * col2 / col2 AS col2 FROM tab1
----
30
78
96
query I rowsort
SELECT - 64 * + col1 AS col2 FROM tab0
----
-5504
-5824
-6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT + - 13 DIV col2 AS col0 FROM tab0 cor0
----
-13
0
0
skipif mysql # not compatible
query I rowsort label-8475
SELECT + - 13 / col2 AS col0 FROM tab0 cor0
----
-13
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + col0 * col2 col0 FROM tab0 AS cor0
----
118
7381
875
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( + col0 * col2 * - col0 ) BETWEEN NULL AND col0 ) AND NOT NULL >= ( col1 ) OR NOT col1 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8478
SELECT ALL col0 DIV col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL col0 / col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col2 * col0 + cor0.col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
6604
9374
983
query I rowsort
SELECT ALL - 94 * col2 + cor0.col1 FROM tab2 AS cor0
----
-2385
-2507
-3555
query I rowsort
SELECT ALL 86 * col1 + col0 * - col1 FROM tab1 AS cor0
----
2158
220
78
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + - col2 * - 18 AS col1 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT - col2 * 16 - + tab2.col2 FROM tab2
----
-442
-459
-646
query I rowsort
SELECT DISTINCT col1 * 81 AS col0 FROM tab2 AS cor0
----
1377
2511
4779
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT ALL + - col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * - 59 AS col0 FROM tab2 AS cor0
----
413
4602
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8489
SELECT cor0.col2 * CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8489
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8490
SELECT + col2 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8490
SELECT + col2 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8491
SELECT ALL - 80 + col2 + - col1 DIV - cor0.col0 AS col0 FROM tab2 cor0
----
-42
-49
-54
skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - 80 + col2 + - col1 / - cor0.col0 AS col0 FROM tab2 cor0
----
-42
-49
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8492
SELECT DISTINCT CAST( NULL AS SIGNED ) + 59 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 59 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col0 * - 26 * col2 FROM tab0 cor0
----
-189748
-20592
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8496
SELECT ALL - col1 * cor0.col2 + cor0.col1 * cor0.col2 DIV + col1 FROM tab2 cor0
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - col1 * cor0.col2 + cor0.col1 * cor0.col2 / + col1 FROM tab2 cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL col1 * + col2 DIV - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL col1 * + col2 / - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + 85 + col1 AS col1 FROM tab1 AS cor0
----
-59
-72
-75
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b
query I rowsort
SELECT col1 + - col1 * cor0.col0 + + col2 FROM tab0 AS cor0
----
-1945
-3297
-7926
query I rowsort
SELECT DISTINCT - col1 + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-196
-229
-271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8502
SELECT ALL + col0 + - CAST( - col2 AS SIGNED ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + col0 + - CAST ( - col2 AS INTEGER ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - col1 * col1 - - col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - col0 * - col0 + - col1 col1 FROM tab0 AS cor0
----
-451
-6906
-8281
query I rowsort
SELECT tab0.col0 + tab0.col2 * - ( - 24 ) AS col0 FROM tab0
----
2057
59
816
query I rowsort
SELECT + tab1.col0 - + 51 FROM tab1, tab0 cor0
----
9 values hashing to 547981d0224813e9155fb3ff6e5938b0
query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL + col1 + - 76 FROM tab1
----
-50
-63
-66
query I rowsort
SELECT + col1 - - 60 FROM tab0 AS cor0
----
146
151
157
onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT DISTINCT - col2 DIV ( - cor0.col1 ) FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - col2 / ( - cor0.col1 ) FROM tab1 cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 + + col2 col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT col2 + col2 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
242
3715
7789
query I rowsort
SELECT ALL - - cor0.col0 * ( 87 ) + - col2 FROM tab1 AS cor0
----
207
5511
6864
query I rowsort
SELECT col1 * + ( 18 ) + col2 AS col2 FROM tab0 AS cor0
----
1581
1720
1747
query I rowsort
SELECT DISTINCT - col1 * 20 * - 49 FROM tab1
----
12740
25480
9800
query I rowsort
SELECT ALL + col2 * - ( - col2 + - col0 ) FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT - 75 + col1 * + tab2.col1 * - col1 AS col0 FROM tab2
----
-205454
-29866
-4988
query I rowsort
SELECT ALL - ( ( col2 ) ) * ( col2 ) AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + + 24 + + col0 FROM tab1 AS cor0
----
104
27
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT DISTINCT + col0 DIV col0 + + col1 * + col0 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + col0 / col0 + + col1 * + col0 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + 76 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-716
-7222
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + - col2 * col2 * col2 col0 FROM tab2
----
-12974
-19466
-53529
query I rowsort
SELECT ALL + cor0.col2 * + col2 * col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + - 53 AS col0 FROM tab0 AS cor0
----
-53
query I rowsort
SELECT + tab2.col0 + + tab2.col2 * 12 FROM tab2
----
331
390
535
query I rowsort
SELECT DISTINCT 91 * col2 AS col2 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL 16 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1394
17
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT DISTINCT col1 + cor0.col2 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT col1 + cor0.col2 / col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8531
SELECT - 38 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8531
SELECT - 38 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col1 * cor0.col0 + - col2 * + col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT ALL col2 * - col1 - - col1 * col1 AS col2 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT DISTINCT - col0 + col1 * + 3 FROM tab2 AS cor0
----
-28
86
99
query I rowsort
SELECT DISTINCT - 20 + + col1 + + col2 FROM tab2 cor0
----
35
38
65
query I rowsort
SELECT ALL - col0 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 * - col1 - col0 col0 FROM tab1 AS cor0
----
-1315
-1381
-624
query I rowsort
SELECT - col1 + 59 FROM tab0 AS cor0
----
-27
-32
-38
query I rowsort
SELECT ALL + + 27 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col0 * 19 AS col0 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT + ( col1 ) * cor0.col1 + col1 * 66 FROM tab0 AS cor0
----
13072
14287
15811
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) - col1 * + 91 * col0 FROM tab2 AS cor0
----
-122175
-19720
-418756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 8 + col2 + col1 col0 FROM tab2 cor0
----
274
293
359
onlyif mysql # use DIV operator for integer division
query I rowsort label-8546
SELECT 62 + + 28 DIV col1 AS col2 FROM tab2
----
62
62
63
skipif mysql # not compatible
query I rowsort label-8546
SELECT 62 + + 28 / col1 AS col2 FROM tab2
----
62
62
63
query I rowsort
SELECT - - col2 * - col2 * + col1 + 89 * col1 FROM tab2 AS cor0
----
-19840
-23035
-34633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT CAST( - col0 + + col2 AS SIGNED ) * - 19 AS col1 FROM tab0
----
-171
133
646
skipif mysql # not compatible
query I rowsort label-8548
SELECT CAST ( - col0 + + col2 AS INTEGER ) * - 19 AS col1 FROM tab0
----
-171
133
646
query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT - 26 + col1 * col2 FROM tab0
----
2812
71
7436
query I rowsort
SELECT DISTINCT 57 - ( - col1 ) FROM tab1
----
67
70
83
query I rowsort
SELECT - col0 * + ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT 70 + col2 DIV col2 FROM tab0 AS cor0
----
71
71
71
skipif mysql # not compatible
query I rowsort label-8553
SELECT 70 + col2 / col2 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 - + col1 AS col2 FROM tab0 cor0
----
-159
-2900
-7464
query I rowsort
SELECT + cor0.col0 + - 32 AS col0 FROM tab1 AS cor0
----
-29
32
48
query I rowsort
SELECT col2 - 64 FROM tab2 AS cor0
----
-26
-37
-38
query I rowsort
SELECT - ( 7 ) * + col0 + col2 FROM tab0 AS cor0
----
-135
-244
-541
query I rowsort
SELECT - 46 * - col1 AS col2 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + 31 FROM tab1 AS cor0
----
-131
-3617
-7649
query I rowsort
SELECT DISTINCT + - 75 * col2 + - col1 FROM tab1 AS cor0
----
-4076
-4285
-7213
query I rowsort
SELECT + - col0 * 44 AS col0 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT - + 25 * - cor2.col0 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 3853a21938400fb86c90071d6ccde34d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8563
SELECT DISTINCT - col1 * - CAST( + col2 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - col1 * - CAST ( + col2 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 43 + + 99 AS col1 FROM tab2 AS cor0
----
56
query I rowsort
SELECT ALL - ( 38 ) AS col1 FROM tab2 AS cor0
----
-38
-38
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8566
SELECT - CAST( col1 AS SIGNED ) * + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif mysql # not compatible
query I rowsort label-8566
SELECT - CAST ( col1 AS INTEGER ) * + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL col1 * - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT - 28 - - col0 DIV - col1 AS col2 FROM tab2 cor0
----
-28
-29
-32
skipif mysql # not compatible
query I rowsort label-8568
SELECT - 28 - - col0 / - col1 AS col2 FROM tab2 cor0
----
-28
-29
-32
query I rowsort
SELECT ALL 18 + - 15 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT ( tab0.col2 ) * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1
query I rowsort
SELECT ALL - - ( - col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 10 * cor0.col2 AS col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 1751d8ec783486b9121baa2709745253
query I rowsort
SELECT ALL 14 * + col1 * - col1 - - col2 * + tab0.col1 AS col2 FROM tab0
----
-100706
-108472
-131629
query I rowsort
SELECT DISTINCT + col1 * col1 - + col1 FROM tab2
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8578
SELECT 34 * 37 DIV + col2 + CAST( col2 AS SIGNED ) FROM tab1
----
109
77
79
skipif mysql # not compatible
query I rowsort label-8578
SELECT 34 * 37 / + col2 + CAST ( col2 AS INTEGER ) FROM tab1
----
109
77
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT - CAST( ( + col1 ) AS SIGNED ) + + col0 DIV tab2.col0 FROM tab2
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-8579
SELECT - CAST ( ( + col1 ) AS INTEGER ) + + col0 / tab2.col0 FROM tab2
----
-16
-30
-58
query I rowsort
SELECT ALL - col2 + + tab1.col2 * - tab1.col1 - + col2 * col0 AS col0 FROM tab1
----
-1620
-4275
-9024
query I rowsort
SELECT DISTINCT tab2.col1 * + col2 + - col1 + - 99 AS col0 FROM tab2
----
1376
530
707
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 30 + + col0 * ( col2 ) + + tab2.col0 * CAST ( - 30 AS REAL ) AS col2 FROM tab2
----
-342
-51
602
query I rowsort
SELECT DISTINCT col2 + + tab0.col0 * - col0 AS col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - cor0.col1 + - 35 FROM tab1 AS cor0
----
-45
-48
-61
query I rowsort
SELECT ALL - + col1 + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - - cor0.col1 * + ( - col2 ) + cor0.col0 + - 45 AS col2 FROM tab2 AS cor0
----
-1501
-612
-875
query I rowsort
SELECT 72 * + col1 AS col1 FROM tab1
----
1872
720
936
query I rowsort
SELECT col2 + col1 * - 73 FROM tab1
----
-1844
-673
-853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8589
SELECT col0 + CAST( col1 AS SIGNED ) FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8589
SELECT col0 + CAST ( col1 AS INTEGER ) FROM tab0
----
110
132
180
query I rowsort
SELECT - + col2 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT ALL - - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 * + 61 + + col1 FROM tab2 AS cor0
----
458
4817
4836
query I rowsort
SELECT DISTINCT + + col2 + col2 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL cor0.col1 * + 64 FROM tab1 AS cor0
----
1664
640
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT + col1 + + col2 DIV - 62 col1 FROM tab1 AS cor0
----
10
12
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8595
SELECT + col1 + + col2 / - 62 col1 FROM tab1 AS cor0
----
10
12
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + ( col0 ) * col1 col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT 7 AS col0 FROM tab2
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab2
----
-38
-38
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col1 FROM tab2
----
72
query I rowsort
SELECT ALL - - col1 + + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + 47 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 79962577c0add9c47b55da7472585e96
query I rowsort
SELECT ALL col1 + 5 FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT + col2 * 46 AS col0 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT ALL - 0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - 13 AS col2 FROM tab0
----
-13
-13
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8606
SELECT ALL - + CAST( NULL AS DECIMAL ) + 15 * col1 * 33 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - + CAST ( NULL AS REAL ) + 15 * col1 * 33 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * - col2 + col2 * col0 FROM tab2 AS cor0
----
2704
4446
918
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-8609
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 * col2 + 15 * + cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 * col2 + 15 * + cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 75 + cor0.col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-66
4021
6325
query I rowsort
SELECT DISTINCT + 12 + 50 FROM tab2 AS cor0
----
62
query I rowsort
SELECT ALL - 14 * + ( - col0 ) FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT + col2 * - col1 + cor0.col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8615
SELECT CAST( + col2 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( + col2 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL - - col1 * col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col2 * 42 + - col1 AS col2 FROM tab2
----
1033
1103
1579
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) + col2 * - col1 FROM tab0
----
-1
-2785
-7453
query I rowsort
SELECT DISTINCT - col0 + tab0.col0 * col1 AS col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT + 61 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT - - ( col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - - ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col2 * + 32 * + col1 AS col1 FROM tab0 cor0
----
238784
3104
90816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - cor0.col0 ) ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - ( cor0.col0 ) + 64 FROM tab2 AS cor0
----
-14
-15
57
query I rowsort
SELECT - 24 * col0 AS col2 FROM tab2 cor0
----
-168
-1872
-1896
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT ALL 24 DIV + 99 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL 24 / + 99 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 72 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT - ( + cor0.col1 ) * ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT - 43 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8630
SELECT - 43 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col0 ) * + ( - col2 ) * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT - col0 * - col1 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8632
SELECT - col0 * - col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 * 37 AS col0 FROM tab2
----
259
2886
2923
query I rowsort
SELECT + col1 * tab1.col2 * - col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col2 + ( - ( col0 ) ) * + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - + col0 + + 38 FROM tab1 AS cor0
----
-26
-42
35
query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + col2 + ( col2 + col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + - col0 + ( col2 ) FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - cor0.col0 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL + col1 + ( - ( - col0 ) ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8642
SELECT + CAST( NULL AS DECIMAL ) + 53 - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8642
SELECT + CAST ( NULL AS REAL ) + 53 - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT 73 - + col1 AS col1 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT col1 * - 91 + - col2 + 62 * + cor0.col1 * - col0 FROM tab1 AS cor0
----
-40647
-65759
-7256
query I rowsort
SELECT - - 15 * + col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT + col1 * cor0.col1 + - 67 + cor0.col0 AS col0 FROM tab2 AS cor0
----
301
3492
901
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT + col1 + 48 DIV + ( col0 * + 62 ) + + col0 * + col0 col1 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8648
SELECT + col1 + 48 / + ( col0 * + 62 ) + + col0 * + col0 col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col0 + ( + col1 ) - col2 AS col2 FROM tab1 AS cor0
----
-111
-163
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT DISTINCT col1 DIV ( tab1.col2 ) - - tab1.col0 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT col1 / ( tab1.col2 ) - - tab1.col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col0 * - 0 + 67 * col1 AS col1 FROM tab0
----
5762
6097
6499
query I rowsort
SELECT col0 + col1 * 22 AS col2 FROM tab2
----
1376
453
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT - col0 DIV + ( + col2 ) AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8653
SELECT - col0 / + ( + col2 ) AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL col1 - 52 FROM tab2
----
-21
-35
7
query I rowsort
SELECT + col0 + + ( + 72 ) FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT DISTINCT + col2 + 81 + col0 AS col1 FROM tab0 AS cor0
----
117
138
252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8657
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * + cor0.col2 * col1 + col2 / + ( col0 * col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * + cor0.col2 * col1 + col2 / + ( col0 * col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - - 12 AS col2 FROM tab0
----
101
36
47
query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0, tab0 AS cor0
----
-34
query I rowsort
SELECT DISTINCT - 59 + col1 * col1 AS col1 FROM tab0
----
7337
8222
9350
query I rowsort
SELECT - - col1 * cor0.col2 * + col1 + 11 AS col2 FROM tab2 AS cor0
----
10993
25958
90517
query I rowsort
SELECT + ( col2 ) * - cor0.col1 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col2 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - col2 * - tab2.col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - cor0.col1 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab2 AS cor0
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * cor0.col1 col2 FROM tab1, tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT + + col0 * - col1 + + 79 AS col1 FROM tab1 AS cor0
----
-561
-961
1
query I rowsort
SELECT ALL + col1 * + col0 + + ( - col1 ) AS col2 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT 38 * + col0 FROM tab0 AS cor0
----
1330
3382
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL 96 + - cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 845176108c5cf71cee9bbab47dc9a667
query I rowsort
SELECT DISTINCT + - ( + cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - ( col0 ) * 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8676
SELECT ALL col1 * - CAST( - col0 * - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL col1 * - CAST ( - col0 * - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + + col0 * 64 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT ALL - col0 + - col1 * + ( col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + 39 * - col2 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT DISTINCT + cor0.col0 + + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
110
115
121
126
132
175
180
186
query I rowsort
SELECT - col2 * + col1 + - col2 * + col0 * + col0 FROM tab1 AS cor0
----
-1890
-234042
-615648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8682
SELECT ALL + CAST( 58 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
68
71
84
skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + CAST ( 58 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
68
71
84
query I rowsort
SELECT col1 + + 34 * - col1 - + ( + 45 * col2 ) AS col1 FROM tab0 cor0
----
-3246
-4323
-6693
query I rowsort
SELECT col0 * - 86 + cor0.col1 * col0 FROM tab2 AS cor0
----
-2106
-385
-5451
query I rowsort
SELECT + ( + col2 ) + - col0 * + 10 FROM tab1 cor0
----
-583
-704
24
query I rowsort
SELECT DISTINCT - 40 * col2 * + col0 AS col1 FROM tab1 cor0
----
-145920
-307200
-6480
query I rowsort
SELECT ALL 78 * cor0.col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT + - 79 + + 33 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
-204
-2201
-2732
query I rowsort
SELECT ALL - 12 + - col1 FROM tab1 AS cor0
----
-22
-25
-38
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col2 + + col0 * - col2 * - col2 FROM tab2 AS cor0
----
117078
5292
54756
query I rowsort
SELECT - - col0 * + ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 + - 3 * - col1 * - col2 FROM tab1 AS cor0
----
-1646
-3664
-4209
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT ALL - col1 DIV 23 - col2 FROM tab0
----
-36
-5
-85
skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - col1 / 23 - col2 FROM tab0
----
-36
-5
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT DISTINCT 83 DIV - tab1.col0 FROM tab1, tab1 AS cor0
----
-1
-27
skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT 83 / - tab1.col0 FROM tab1, tab1 AS cor0
----
-1
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT ALL - col0 DIV + 34 AS col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - col0 / + 34 AS col0 FROM tab0
----
-1
-2
0
query I rowsort
SELECT + 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + 76 * cor1.col2 AS col1 FROM tab2, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 78da5659d0450737015b4d0a915630da
query I rowsort
SELECT - col2 + + col2 + - col2 * col0 * - cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - 6 * 25 AS col0 FROM tab1 AS cor0
----
-150
query I rowsort
SELECT ALL 28 + + 63 AS col0 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8702
SELECT - ( col2 ) * col0 DIV 25 FROM tab0 AS cor0
----
-1
-291
-31
skipif mysql # not compatible
query I rowsort label-8702
SELECT - ( col2 ) * col0 / 25 FROM tab0 AS cor0
----
-1
-291
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8703
SELECT + + ( - col1 ) * cor0.col2 DIV + ( col1 ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8703
SELECT + + ( - col1 ) * cor0.col2 / + ( col1 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 41 FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831
query I rowsort
SELECT ALL 73 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT 75 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT DISTINCT + col1 DIV 88 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + col1 / 88 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col2 * + 0 + 46 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT + cor0.col2 + 76 * - col2 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT - - cor0.col2 + - 60 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - col0 + ( col1 ) AS col2 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col0 ) col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - + 42 * 27 AS col0 FROM tab0 AS cor0
----
-1134
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8716
SELECT - cor0.col0 DIV + 30 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8716
SELECT - cor0.col0 / + 30 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - cor0.col0 + col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8719
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8720
SELECT - CAST( NULL AS SIGNED ) * - 68 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8720
SELECT - CAST ( NULL AS INTEGER ) * - 68 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col1 + - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL ( col0 ) * col1 + 33 FROM tab0 AS cor0
----
2097
3428
8132
query I rowsort
SELECT DISTINCT ( col0 ) * ( + col0 * col1 ) AS col2 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + ( + cor0.col2 ) + - 13 AS col1 FROM tab0 AS cor0
----
-12
20
69
query I rowsort
SELECT DISTINCT ( + col2 ) * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + 65 + + col1 AS col1 FROM tab2 cor0
----
124
82
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT DISTINCT col1 * col1 DIV 2 FROM tab0 cor0
----
3698
4140
4704
skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT col1 * col1 / 2 FROM tab0 cor0
----
3698
4140
4704
query I rowsort
SELECT ALL - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT + - 39 DIV - col0 + + col0 AS col2 FROM tab1 AS cor0
----
16
64
80
skipif mysql # not compatible
query I rowsort label-8730
SELECT + - 39 / - col0 + + col0 AS col2 FROM tab1 AS cor0
----
16
64
80
query I rowsort
SELECT - 96 * + col2 FROM tab2 cor0
----
-2496
-2592
-3648
query I rowsort
SELECT DISTINCT + col2 * - col2 - col0 * cor0.col1 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT ALL - - col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + - cor0.col0 + 16 AS col1 FROM tab0 cor0
----
-19
-73
-8
query I rowsort
SELECT ALL col1 * col2 + + 92 AS col0 FROM tab2
----
1626
738
929
query I rowsort
SELECT ALL + col2 - 26 AS col1 FROM tab1 AS cor0
----
28
31
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 * col0 + - cor0.col0 col2 FROM tab2 AS cor0
----
-114155
-5110
-52806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT ALL ( col1 ) DIV - 93 + 68 FROM tab2
----
68
68
68
skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL ( col1 ) / - 93 + 68 FROM tab2
----
68
68
68
query I rowsort
SELECT + + col1 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col2 + + col1 * - col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + col2 * + col0 * 87 AS col0 FROM tab1 AS cor0
----
14094
317376
668160
query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 + - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT - col0 * col1 + - col1 * col0 * col2 AS col2 FROM tab1
----
-100880
-37120
-4290
query I rowsort
SELECT col1 * - col2 * + 4 FROM tab1
----
-2280
-4992
-5616
query I rowsort
SELECT DISTINCT 27 * + col1 + col2 AS col2 FROM tab0
----
2355
2539
2620
query I rowsort
SELECT - - col1 * + col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - - col0 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + col2 * + ( - 7 ) FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT ALL + col2 * ( col2 ) * + col2 AS col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT ALL - cor2.col2 + + cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to 7523346a68d1574b36a2587eb0c082d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8751
SELECT - + col1 * + CAST( col0 AS SIGNED ) + col0 * + cor0.col0 + 85 FROM tab2 AS cor0
----
-83
1567
4983
skipif mysql # not compatible
query I rowsort label-8751
SELECT - + col1 * + CAST ( col0 AS INTEGER ) + col0 * + cor0.col0 + 85 FROM tab2 AS cor0
----
-83
1567
4983
query I rowsort
SELECT + col0 * 30 FROM tab0
----
1050
2670
720
query I rowsort
SELECT - 89 + col0 AS col2 FROM tab1
----
-25
-86
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8754
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
query I rowsort
SELECT - + col1 * + col1 + col1 AS col2 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 AS col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ( - col0 ) * + 17 * + 54 AS col1 FROM tab0 AS cor0
----
-22032
-32130
-81702
onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT ALL - 79 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - 79 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT - + col2 + col0 * + col0 + + 95 * col0 AS col1 FROM tab2 AS cor0
----
13468
13708
687
query I rowsort
SELECT ALL - + 72 * col0 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT ALL ( 1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - ( col1 ) + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8763
SELECT + ( col2 ) * col2 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
115
50
972
skipif mysql # not compatible
query I rowsort label-8763
SELECT + ( col2 ) * col2 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
115
50
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT + ( cor0.col1 ) * col1 DIV ( - ( - col0 ) ) AS col2 FROM tab1 cor0
----
1
2
225
skipif mysql # not compatible
query I rowsort label-8764
SELECT + ( cor0.col1 ) * col1 / ( - ( - col0 ) ) AS col2 FROM tab1 cor0
----
1
2
225
query I rowsort
SELECT DISTINCT + col1 * + col0 - + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - 57 * + 5 + - col0 FROM tab1 cor0
----
-288
-349
-365
query I rowsort
SELECT DISTINCT - 66 + col1 AS col1 FROM tab0 AS cor0
----
20
25
31
query I rowsort
SELECT + - 59 FROM tab1 cor0
----
-59
-59
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8769
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT + 77 + col2 AS col2 FROM tab0
----
110
159
78
query I rowsort
SELECT DISTINCT - 14 + col0 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT col0 + 65 FROM tab2
----
143
144
72
query I rowsort
SELECT cor1.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6819f736aa6a1554f72e3f1d90c2453b
query I rowsort
SELECT + 69 + + tab1.col2 * + col2 - - tab1.col2 AS col1 FROM tab1
----
3039
3375
9381
onlyif mysql # use DIV operator for integer division
query I rowsort label-8776
SELECT ALL - col1 DIV col0 - + ( 37 + - col0 ) * col1 FROM tab0
----
-1121
-196
4731
skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - col1 / col0 - + ( 37 + - col0 ) * col1 FROM tab0
----
-1121
-196
4731
query I rowsort
SELECT DISTINCT + 84 * col1 AS col1 FROM tab0
----
7224
7644
8148
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT + col2 DIV 6 + col0 * col0 col1 FROM tab2 AS cor0
----
53
6088
6247
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8778
SELECT + col2 / 6 + col0 * col0 col1 FROM tab2 AS cor0
----
53
6088
6247
onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT DISTINCT col2 DIV + col0 + + 15 * col0 FROM tab0
----
1335
361
525
skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT col2 / + col0 + + 15 * col0 FROM tab0
----
1335
361
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT ALL + col1 * 82 + + col1 + - col2 DIV col2 AS col0 FROM tab1
----
1078
2157
829
skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL + col1 * 82 + + col1 + - col2 / col2 AS col0 FROM tab1
----
1078
2157
829
query I rowsort
SELECT col0 * 93 AS col1 FROM tab2
----
651
7254
7347
query I rowsort
SELECT DISTINCT - col1 * 79 + - col2 FROM tab0
----
-6827
-7271
-7664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 + + col2 * col1 col2 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT + 0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT col0 + + col2 + - 94 FROM tab0
----
-37
-58
77
query I rowsort
SELECT ALL - + cor0.col2 * 63 FROM tab2 AS cor0
----
-1638
-1701
-2394
query I rowsort
SELECT ALL + col0 + + 74 AS col2 FROM tab0 cor0
----
109
163
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8789
SELECT DISTINCT col1 + 49 * col1 DIV cor0.col0 col2 FROM tab1 AS cor0
----
17
20
450
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT col1 + 49 * col1 / cor0.col0 col2 FROM tab1 AS cor0
----
17
20
450
onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT ALL - col2 * col2 + - cor0.col2 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2914
-3244
-9209
skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - col2 * col2 + - cor0.col2 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2914
-3244
-9209
query I rowsort
SELECT ALL - col2 + + col0 * + 41 FROM tab0 AS cor0
----
1434
3567
951
query I rowsort
SELECT DISTINCT + col1 - + 87 FROM tab2 AS cor0
----
-28
-56
-70
query I rowsort
SELECT col1 * + col1 + 42 + col0 * col0 AS col0 FROM tab1
----
4238
6611
727
query I rowsort
SELECT ALL col0 + + col0 + col0 * + col1 FROM tab2
----
1501
231
4758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 98 col0 FROM tab1 AS cor0
----
-152
-155
-194
query I rowsort
SELECT - + cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 54 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 85 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1449
-561
-752
onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT + + col1 + - col0 DIV col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-8800
SELECT + + col1 + - col0 / col2 FROM tab1 AS cor0
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col0 FROM tab1
----
53
53
53
query I rowsort
SELECT DISTINCT ( 93 ) AS col2 FROM tab0
----
93
query I rowsort
SELECT - 13 + - col0 FROM tab0 AS cor0
----
-102
-37
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8804
SELECT DISTINCT - - CAST( ( col1 ) AS SIGNED ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT - - CAST ( ( col1 ) AS INTEGER ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-8805
SELECT - - 0 + col0 * cor0.col0 DIV col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8805
SELECT - - 0 + col0 * cor0.col0 / col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 * - col1 + tab0.col2 AS col2 FROM tab0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL + col0 * + 71 AS col0 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT ALL + - 89 + - col0 * - col2 FROM tab2 AS cor0
----
100
1939
2913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 90 * cor0.col2 + cor0.col2 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
-3459
-4624
-7472
query I rowsort
SELECT col2 * tab2.col2 * - col2 + col2 + col0 FROM tab2
----
-17472
-19649
-54755
query I rowsort
SELECT ALL + tab0.col1 * cor0.col2 + tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60797dd3288d60fdf3eb51a3b8619615
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8815
SELECT DISTINCT col2 DIV + col0 + - col0 FROM tab1
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT col2 / + col0 + - col0 FROM tab1
----
-64
-79
15
query I rowsort
SELECT - col0 + tab2.col0 + 39 FROM tab2
----
39
39
39
query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + + col2 - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 10 + - col1 AS col2 FROM tab0 AS cor0
----
-101
-107
-96
query I rowsort
SELECT DISTINCT ( col0 ) * - 15 + + 77 AS col2 FROM tab0 AS cor0
----
-1258
-283
-448
query I rowsort
SELECT + - 48 AS col2 FROM tab2 cor0
----
-48
-48
-48
query I rowsort
SELECT ALL - cor0.col2 + - col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8824
SELECT + cor0.col1 * + CAST( - col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-8824
SELECT + cor0.col1 * + CAST ( - col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - col0 + 80 AS col0 FROM tab0 AS cor0
----
-9
45
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT - col0 DIV 78 - + 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-49
skipif mysql # not compatible
query I rowsort label-8826
SELECT - col0 / 78 - + 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8827
SELECT ALL - col2 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - col2 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col0 + 3 FROM tab1 AS cor0
----
-61
-77
0
query I rowsort
SELECT DISTINCT - - col0 * + 26 AS col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT + - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col1 + + ( col1 ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + col2 * ( col2 ) - + col0 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
-230223
-605184
2430
query I rowsort
SELECT - col1 * + col2 + + cor0.col1 * col1 FROM tab0 AS cor0
----
4558
819
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT col1 * col1 DIV + 26 FROM tab0
----
284
318
361
skipif mysql # not compatible
query I rowsort label-8834
SELECT col1 * col1 / + 26 FROM tab0
----
284
318
361
onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT DISTINCT + col0 - + col1 DIV ( + col2 * tab1.col2 + + col2 ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + col0 - + col1 / ( + col2 * tab1.col2 + + col2 ) FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + 61 * + col2 * + tab1.col1 AS col1 FROM tab1
----
34834
76208
85647
query I rowsort
SELECT + - ( - cor0.col1 ) + + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + 73 * - col0 + cor0.col1 FROM tab0 AS cor0
----
-1666
-2458
-6406
query I rowsort
SELECT + + col0 + + cor0.col0 * col2 + + cor0.col1 * + col2 FROM tab0 AS cor0
----
14849
167
3654
query I rowsort
SELECT DISTINCT - + 15 AS col0 FROM tab2, tab1 AS cor0
----
-15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + cor0.col2 col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to bab94cc73df61875a2103f4dcc388131
query I rowsort
SELECT ALL - col1 * - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT DISTINCT col2 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT col2 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL - col1 * col0 * - 2 FROM tab1
----
1280
156
2080
query I rowsort
SELECT ALL 89 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT + col2 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT ALL col0 DIV - col1 + - col1 DIV 89 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL col0 / - col1 + - col1 / 89 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL + + cor0.col1 * - 36 + col1 * + col0 FROM tab2 AS cor0
----
-899
2478
731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * cor0.col0 col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT ( 28 ) FROM tab2 AS cor0
----
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8851
SELECT CAST( - col0 AS SIGNED ) * col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-8851
SELECT CAST ( - col0 AS INTEGER ) * col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col0 ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT + 82 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-8853
SELECT + 82 / col1 AS col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT ALL 26 * 91 AS col0 FROM tab0 AS cor0
----
2366
2366
2366
query I rowsort
SELECT + 0 * 78 + col2 + 53 FROM tab2 AS cor0
----
79
80
91
query I rowsort
SELECT + 85 + - col0 * - col0 FROM tab0 AS cor0
----
1310
661
8006
query I rowsort
SELECT ( - col1 ) - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + 23 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL ( 42 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8860
SELECT ALL 40 - + cor0.col1 * - CAST( + 70 AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b07cc10575f7dbe8215e32b04d98ac21
skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL 40 - + cor0.col1 * - CAST ( + 70 AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b07cc10575f7dbe8215e32b04d98ac21
query I rowsort
SELECT - cor0.col1 + - cor0.col1 - - col0 * 97 FROM tab1 AS cor0
----
239
6188
7734
query I rowsort
SELECT + col0 * - col2 + - ( + col2 + col2 ) FROM tab1 AS cor0
----
-270
-3762
-7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT - - col2 * col2 + - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1088
6724
skipif mysql # not compatible
query I rowsort label-8863
SELECT - - col2 * col2 + - col2 / + col0 AS col2 FROM tab0 AS cor0
----
1
1088
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT - col1 + + col0 DIV - col2 FROM tab1
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-8864
SELECT - col1 + + col0 / - col2 FROM tab1
----
-11
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8865
SELECT tab2.col0 DIV 92 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8865
SELECT tab2.col0 / 92 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT ( - ( col2 ) ) DIV + 30 col0 FROM tab0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8866
SELECT ( - ( col2 ) ) / + 30 col0 FROM tab0
----
-1
-2
0
query I rowsort
SELECT col0 * 91 AS col2 FROM tab1
----
273
5824
7280
query I rowsort
SELECT + + 95 * col2 + ( col0 ) * cor0.col1 FROM tab2 cor0
----
2782
4953
7072
query I rowsort
SELECT 41 * col0 + + ( + cor0.col1 ) + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1255
2045
2064
query I rowsort
SELECT ALL + col1 + col1 * - cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab1 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8872
SELECT col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8872
SELECT col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 * - 3 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT cor0.col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 * + 0 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * - cor0.col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT + col1 * + 86 + col0 * - col2 FROM tab2 AS cor0
----
-1540
2477
3046
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT ALL - col2 DIV + col2 + + 93 + col0 * + col0 FROM tab1
----
101
4188
6492
skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - col2 / + col2 + + 93 + col0 * + col0 FROM tab1
----
101
4188
6492
onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT DISTINCT col2 + + col1 DIV - col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT col2 + + col1 / - col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - col2 * 19 + + col1 FROM tab0 AS cor0
----
-1467
-541
78
query I rowsort
SELECT - + col1 * - col0 + col2 + col2 AS col1 FROM tab2 AS cor0
----
1419
271
4654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * - col2 col2 FROM tab0
----
-2244
-5576
-68
query I rowsort
SELECT ALL - col1 + 6 * + 78 + col2 * - 71 FROM tab0 AS cor0
----
-1961
-5445
300
query I rowsort
SELECT DISTINCT + col1 * + 25 AS col2 FROM tab0 cor0
----
2150
2275
2425
query I rowsort
SELECT ALL - - cor0.col0 + 95 FROM tab0 AS cor0
----
119
130
184
query I rowsort
SELECT ALL - col0 + 36 FROM tab2 AS cor0
----
-42
-43
29
query I rowsort
SELECT DISTINCT - col2 - - 87 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT DISTINCT - col2 * + col0 - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 23 + col2 * col0 col0 FROM tab0 AS cor0
----
1551
58
9184
query I rowsort
SELECT + cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + - col2 * - col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT DISTINCT - 47 DIV + col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - 47 / + col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + - 96 * - col1 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT DISTINCT 73 - 9 AS col2 FROM tab1, tab1 AS cor0
----
64
query I rowsort
SELECT + cor0.col0 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9ad08696e06c4a9888aca646cc28acd6
query I rowsort
SELECT - 66 - col1 AS col1 FROM tab1 cor0
----
-76
-79
-92
query I rowsort
SELECT col0 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL col1 + col2 * col2 * + col0 AS col1 FROM tab0
----
132
26222
598527
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NULL <> NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col1 IN ( - col1 )
----
query I rowsort
SELECT ALL col1 + - col2 FROM tab0 WHERE NOT col1 * + col0 NOT IN ( col0 )
----
query I rowsort
SELECT col2 * col1 - col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT + col2 DIV col1 + + col2 + + col1 FROM tab2 AS cor0
----
57
58
85
skipif mysql # not compatible
query I rowsort label-8905
SELECT + col2 / col1 + + col2 + + col1 FROM tab2 AS cor0
----
57
58
85
query I rowsort
SELECT + col0 * col2 + col2 + - col1 FROM tab2
----
185
1995
3023
onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT - col1 DIV + col0 + + col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-8907
SELECT - col1 / + col0 + + col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT DISTINCT + col0 - col2 * ( tab0.col0 ) FROM tab0
----
-7209
-768
0
query I rowsort
SELECT - 61 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
query I rowsort
SELECT ALL + col2 + - 30 AS col1 FROM tab1 AS cor0
----
24
27
66
query I rowsort
SELECT DISTINCT col0 + col0 * + 69 AS col1 FROM tab1 AS cor0
----
210
4480
5600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT DISTINCT + col2 DIV 9 + + 9 * - col0 FROM tab2
----
-60
-700
-707
skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + col2 / 9 + + 9 * - col0 FROM tab2
----
-60
-700
-707
query I rowsort
SELECT DISTINCT tab2.col2 + ( 85 ) * - col1 + - col1 * col1 AS col2 FROM tab2
----
-1696
-3569
-8470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( ( + tab1.col1 ) ) + + col2 col0 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT col0 + - col2 * col0 AS col1 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT + col0 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-8917
SELECT ALL - col0 DIV ( - 81 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - col0 / ( - 81 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( - cor0.col1 ) - + cor0.col0 col1 FROM tab1 AS cor0
----
-106
-55
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8919
SELECT col1 * col2 * + tab1.col0 + - col2 DIV + 37 AS col1 FROM tab1
----
36479
4211
99838
skipif mysql # not compatible
query I rowsort label-8919
SELECT col1 * col2 * + tab1.col0 + - col2 / + 37 AS col1 FROM tab1
----
36479
4211
99838
onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT ALL + col2 DIV - 69 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + col2 / - 69 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT - 43 - col0 * - col2 FROM tab0
----
-8
7255
749
query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab2, tab0 AS cor0
----
-19
query I rowsort
SELECT 51 - - col1 * + col0 FROM tab1
----
1091
129
691
query I rowsort
SELECT - + cor0.col0 + col0 * + col1 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL ( - col1 ) * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * - col0 * cor0.col0 col0 FROM tab1 AS cor0
----
-282624
-441600
-621
query I rowsort
SELECT ALL + + cor0.col1 - + col0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8928
SELECT + 28 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
28
skipif mysql # not compatible
query I rowsort label-8928
SELECT + 28 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + 75 + + col1 * 1 FROM tab1 AS cor0
----
101
85
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * + ( 36 + - col0 * - 11 ) col1 FROM tab1 AS cor0
----
11988
1797
7464
query I rowsort
SELECT DISTINCT + col2 * col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL + + 5 + + col2 FROM tab2 AS cor0
----
31
32
43
query I rowsort
SELECT ALL + + ( col0 ) * col1 * - col2 + col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-3298
-65274
-656656
query I rowsort
SELECT ALL - cor0.col2 * col0 * 97 FROM tab2 AS cor0
----
-18333
-196716
-291194
query I rowsort
SELECT DISTINCT - - col0 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 + - col2 * + col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + col0 * col1 * + col1 FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT + col2 DIV + col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8940
SELECT + col2 / + col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 * + col1 * col0 + col2 FROM tab0
----
3396
664200
68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * col0 + + col1 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT + cor0.col0 * col0 * - col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col1 + + col1 * col0 * - tab0.col2 AS col0 FROM tab0
----
-3298
-664027
-68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT - col2 + - col1 DIV - col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-8946
SELECT - col2 + - col1 / - col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * + col0 col0 FROM tab2
----
539
6006
6083
query I rowsort
SELECT DISTINCT - - 88 AS col1 FROM tab1 AS cor0
----
88
query I rowsort
SELECT - + col1 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - + 40 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT ALL ( col2 ) + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + + col2 * col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL 78 * + col2 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( NULL ) < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col0 * col1
----
query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NULL <= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( tab1.col1 + - col2 )
----
query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( col1 ) <> NULL
----
query I rowsort
SELECT ALL - col1 * col0 * col2 + col2 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----
query I rowsort
SELECT + col0 * tab2.col0 + - tab2.col2 - col0 FROM tab2
----
15
5980
6124
query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT NULL <> col1
----
query I rowsort
SELECT col2 + tab0.col1 + + col0 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-8966
SELECT tab0.col2 DIV tab0.col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8966
SELECT tab0.col2 / tab0.col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - tab2.col1 + col0 * + col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL - tab2.col2 + + tab2.col1 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL + - col1 * - col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col1 + + col1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT - - col1 * col0 * - col1 - + col0 FROM tab1 AS cor0
----
-13600
-2031
-6464
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) <= col2
----
7
31
27
78
59
26
query I rowsort
SELECT col1 * - col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8974
SELECT - CAST( NULL AS DECIMAL ) + + ( - col2 * + col2 ) + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8974
SELECT - CAST ( NULL AS REAL ) + + ( - col2 * + col2 ) + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - tab0.col1 + - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + ( - col0 ) * ( + 7 ) + col2 FROM tab1 AS cor0
----
-391
-464
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - - col0 + col2 * 11 * cor0.col2 AS col1 FROM tab0 AS cor0
----
12003
46
74053
query I rowsort
SELECT DISTINCT - + col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 + - col0 * 71 col1 FROM tab0
----
-1594
-2353
-6139
query I rowsort
SELECT DISTINCT col2 * - col1 + - col1 + + col2 FROM tab0 AS cor0
----
-193
-2891
-7471
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8982
SELECT + + cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8983
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT cor0.col1 + cor0.col0 + + col0 * + 69 FROM tab0 cor0
----
1766
2547
6321
query I rowsort
SELECT - + col1 * + col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + 32 * + col0 FROM tab2 AS cor0
----
224
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-8988
SELECT col1 DIV 86 + tab2.col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8988
SELECT col1 / 86 + tab2.col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT ALL col0 * - col0 + - 20 DIV cor0.col0 FROM tab1 AS cor0
----
-15
-4096
-6400
skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL col0 * - col0 + - 20 / cor0.col0 FROM tab1 AS cor0
----
-15
-4096
-6400
query I rowsort
SELECT ALL + - 68 * + col2 - - col0 FROM tab2 cor0
----
-1690
-1829
-2505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT ALL CAST( col0 AS SIGNED ) - + col1 col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL CAST ( col0 AS INTEGER ) - + col1 col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8992
SELECT DISTINCT col2 DIV - col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1255
-1406
-575
skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT col2 / - col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1255
-1406
-575
query I rowsort
SELECT DISTINCT 95 + col0 + col1 AS col0 FROM tab0 AS cor0
----
205
227
275
query I rowsort
SELECT + + col1 - + ( col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL 78 * col2 + - col1 FROM tab0 AS cor0
----
-19
2488
6305
onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT DISTINCT - cor0.col1 * col0 + col1 DIV 87 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT - cor0.col1 * col0 + col1 / 87 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + - ( + col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 * - col0 + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + + ( ( col2 ) ) AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 + + col1 - col1 * col1 FROM tab1 AS cor0
----
-147
-252
-704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + ( - col1 ) * + ( col2 ) col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0 WHERE NULL IN ( cor0.col0 )
----
query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab1 AS cor0
----
54
67
70
query I rowsort
SELECT - 45 + - 14 FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL col2 * 90 AS col1 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT DISTINCT + 74 + col2 FROM tab2 cor0
----
100
101
112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT ALL ( - col2 ) DIV - col0 - - ( col1 ) FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL ( - col2 ) / - col0 - - ( col1 ) FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT + + 25 * col1 AS col0 FROM tab1 cor0
----
250
325
650
query I rowsort
SELECT DISTINCT tab2.col2 * 41 AS col1 FROM tab2
----
1066
1107
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT + + ( col2 ) * + col2 - - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
2934
3249
9217
skipif mysql # not compatible
query I rowsort label-9011
SELECT + + ( col2 ) * + col2 - - col2 / col0 AS col0 FROM tab1 AS cor0
----
2934
3249
9217
query I rowsort
SELECT 11 + + col2 * col1 AS col1 FROM tab2
----
1545
657
848
onlyif mysql # use DIV operator for integer division
query I rowsort label-9013
SELECT - - col2 DIV + 22 AS col2 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-9013
SELECT - - col2 / + 22 AS col2 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL + col0 + + ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9016
SELECT ALL 76 DIV - col0 + col2 + - col0 FROM tab0
----
-36
-7
6
skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL 76 / - col0 + col2 + - col0 FROM tab0
----
-36
-7
6
query I rowsort
SELECT - 91 + 26 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT ALL ( - cor1.col0 ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab1, tab0 AS cor0
----
-72
query I rowsort
SELECT DISTINCT col1 * + 77 FROM tab2
----
1309
2387
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9021
SELECT CAST( NULL AS SIGNED ) / + cor0.col2 + + tab1.col2 col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9021
SELECT CAST ( NULL AS INTEGER ) / + cor0.col2 + + tab1.col2 col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 * col2 + 90 AS col2 FROM tab2 AS cor0
----
1624
736
927
query I rowsort
SELECT DISTINCT col2 + ( col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col2 * 90 FROM tab2 AS cor0
----
2340
2430
3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT ALL + col2 * - ( col0 ) - - cor0.col2 DIV + 63 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7679
skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + col2 * - ( col0 ) - - cor0.col2 / + 63 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7679
query I rowsort
SELECT ALL + col1 + - col0 * 38 AS col2 FROM tab1 AS cor0
----
-2422
-3027
-88
query I rowsort
SELECT DISTINCT - 7 + + col0 * cor0.col1 FROM tab2 cor0
----
1336
210
4595
onlyif mysql # use DIV operator for integer division
query I rowsort label-9028
SELECT - + 58 DIV + cor0.col1 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-9028
SELECT - + 58 / + cor0.col1 FROM tab1 AS cor0
----
-2
-4
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9029
SELECT + col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9029
SELECT + col1 / + 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-9030
SELECT cor0.col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9030
SELECT cor0.col1 / - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 25 * + cor0.col0 * + 42 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 19089b6d29fc6f0a15bc0c6e6cf8bc80
query I rowsort
SELECT - cor0.col1 * 24 + col1 * ( - col1 + col0 ) FROM tab0 cor0
----
-2366
-7396
-8342
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 + 87 FROM tab2 AS cor0
----
104
118
146
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + - 96 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT + + ( - col2 ) + - cor0.col0 + col0 * - col0 AS col1 FROM tab0 cor0
----
-1261
-633
-8092
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL - - col0 - cor0.col1 * col1 DIV + 20 AS col0 FROM tab2 AS cor0
----
-41
-96
65
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - - col0 - cor0.col1 * col1 / + 20 AS col0 FROM tab2 AS cor0
----
-41
-96
65
query I rowsort
SELECT - - col2 * + ( col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + ( 90 ) * - col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT ( cor0.col2 ) * + col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + 26 + - col1 AS col0 FROM tab1 AS cor0
----
0
13
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9043
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9043
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + 78 * col0 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT + 32 + col0 * 54 FROM tab2 AS cor0
----
410
4244
4298
query I rowsort
SELECT + 81 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-4374
-4617
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col1 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + 69 AS col2 FROM tab2
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV + tab1.col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT CAST ( col1 AS INTEGER ) / + tab1.col2 FROM tab1
----
0
query I rowsort
SELECT - 39 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT - col1 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + ( + cor0.col0 ) + + ( col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + + cor0.col0 + 81 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to eb3eedc88e79149d67c3f64bba8542d4
query I rowsort
SELECT ALL - col0 + col0 * col0 - 70 FROM tab1 AS cor0
----
-64
3962
6250
query I rowsort
SELECT DISTINCT - + 96 * + col2 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT + 94 * col1 FROM tab1 cor0
----
1222
2444
940
query I rowsort
SELECT DISTINCT 49 * + col2 AS col2 FROM tab0
----
1617
4018
49
query I rowsort
SELECT ALL + - cor0.col2 - + cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT ALL - col1 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - col1 * col1 / col0 AS col0 FROM tab2 AS cor0
----
-137
-3
-44
query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + - col1 * + 8 + + col2 FROM tab2 AS cor0
----
-221
-446
-98
query I rowsort
SELECT + ( col2 * + ( - col2 ) ) + col1 * + col0 FROM tab1
----
-2609
-2838
-8176
query I rowsort
SELECT tab0.col1 * col1 - 26 * + ( col1 ) FROM tab0
----
5160
5915
6887
onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT 95 DIV col2 + + 23 AS col0 FROM tab1
----
23
24
24
skipif mysql # not compatible
query I rowsort label-9064
SELECT 95 / col2 + + 23 AS col0 FROM tab1
----
23
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT - col0 DIV + 91 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9065
SELECT - col0 / + 91 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + tab1.col2 * col2 AS col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 + col0 AS col2 FROM tab1
----
-13440
-2025
-6336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9068
SELECT + CAST( NULL AS SIGNED ) * - col1 + col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9068
SELECT + CAST ( NULL AS INTEGER ) * - col1 + col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 72 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 76 col1 FROM tab0
----
-1824
-2660
-6764
query I rowsort
SELECT ALL col1 * + 76 FROM tab2
----
1292
2356
4484
query I rowsort
SELECT + col0 * - 6 FROM tab0 cor0
----
-144
-210
-534
query I rowsort
SELECT 20 + - 85 * + cor0.col1 FROM tab1 AS cor0
----
-1085
-2190
-830
query I rowsort
SELECT - 33 - + col1 * - col1 FROM tab0 AS cor0
----
7363
8248
9376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9076
SELECT - 24 * ( col0 ) + CAST( + col1 AS SIGNED ) + + col2 col1 FROM tab2 AS cor0
----
-110
-1787
-1841
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9076
SELECT - 24 * ( col0 ) + CAST ( + col1 AS INTEGER ) + + col2 col1 FROM tab2 AS cor0
----
-110
-1787
-1841
query I rowsort
SELECT DISTINCT + col0 * + 65 AS col2 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT + + col2 DIV 11 AS col1 FROM tab1 cor0
----
4
5
8
skipif mysql # not compatible
query I rowsort label-9079
SELECT + + col2 / 11 AS col1 FROM tab1 cor0
----
4
5
8
query I rowsort
SELECT ALL - col0 + 96 * + 59 FROM tab2 AS cor0
----
5585
5586
5657
query I rowsort
SELECT DISTINCT - col2 + 53 * cor0.col2 * - col2 FROM tab2 cor0
----
-35854
-38664
-76570
query I rowsort
SELECT ALL col0 + 67 AS col1 FROM tab0 cor0
----
102
156
91
query I rowsort
SELECT + 92 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT col0 - - 1 AS col0 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT col0 DIV col2 col1 FROM tab1 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9087
SELECT col0 / col2 col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT col1 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab0, tab2 AS cor0
----
86
query I rowsort
SELECT - col2 + 96 * col0 AS col0 FROM tab1 cor0
----
234
6087
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col2 FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - - 64 AS col1 FROM tab1 cor0
----
64
64
64
query I rowsort
SELECT + col1 * col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + 33 * + col2 AS col1 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 + col2 col0 FROM tab1 AS cor0
----
100
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT ALL + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * + cor0.col2 col0 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT ALL + col2 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + col2 / - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT col2 + col0 + - 35 AS col0 FROM tab1 AS cor0
----
141
22
86
query I rowsort
SELECT ALL + 98 + + col2 AS col2 FROM tab2 AS cor0
----
124
125
136
query I rowsort
SELECT DISTINCT + col0 + + col1 * ( - col0 + - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-1216
-153
-2000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9103
SELECT - col1 + + col1 * 27 DIV 84 AS col2 FROM tab0 AS cor0
----
-59
-62
-66
skipif mysql # not compatible
query I rowsort label-9103
SELECT - col1 + + col1 * 27 / 84 AS col2 FROM tab0 AS cor0
----
-59
-62
-66
query I rowsort
SELECT ALL - - col0 + - cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 70 * col2 + ( 79 ) AS col1 FROM tab1 AS cor0
----
3859
4069
6799
query I rowsort
SELECT DISTINCT + + col2 + - 18 AS col2 FROM tab0 AS cor0
----
-17
15
64
query I rowsort
SELECT + cor0.col1 + 38 AS col0 FROM tab1 cor0
----
48
51
64
query I rowsort
SELECT ALL - col1 + ( col2 ) * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col1 - + 17 AS col2 FROM tab2 AS cor0
----
0
14
42
query I rowsort
SELECT ALL - 14 * - 58 + col1 FROM tab0 AS cor0
----
898
903
909
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col0 + + col0 * - col1 col2 FROM tab1 cor0
----
108
3328
3920
query I rowsort
SELECT ALL + - cor0.col2 + + 72 * + cor0.col0 FROM tab1 AS cor0
----
162
4551
5664
query I rowsort
SELECT DISTINCT + 70 * - col2 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2 - col0 * col2 * - col0 FROM tab2 AS cor0
----
1512
160212
240160
skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 - col0 * col2 * - col0 FROM tab2 AS cor0
----
1512
160212
240160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col2 - - cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col2 - - cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT ( col2 ) * - col0 + col1 AS col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT - cor0.col0 * tab0.col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to aeb03985fecddc38e7359124808a5cdd
query I rowsort
SELECT - col2 * col2 + col2 AS col0 FROM tab0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT + col1 - tab1.col0 DIV - col0 AS col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9119
SELECT + col1 - tab1.col0 / - col0 AS col0 FROM tab1
----
11
14
27
query I rowsort
SELECT ( - col1 ) + - col2 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT ALL + 17 - col1 * cor0.col2 DIV + col0 FROM tab0 cor0
----
-101
-66
15
skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + 17 - col1 * cor0.col2 / + col0 FROM tab0 cor0
----
-101
-66
15
query I rowsort
SELECT ALL + tab1.col2 + + tab1.col2 AS col2 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT + col1 * - col1 + + col1 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9123
SELECT + col1 * - col1 + + col1 - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - ( + tab0.col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - tab0.col0 + + col0 * + col0 AS col1 FROM tab0
----
1190
552
7832
query I rowsort
SELECT + ( - tab1.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT DISTINCT col2 DIV - tab1.col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT col2 / - tab1.col1 AS col1 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT ALL - col0 DIV 80 + 59 AS col0 FROM tab2 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - col0 / 80 + 59 AS col0 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 34 col2 FROM tab2 cor0
----
1054
2006
578
query I rowsort
SELECT col2 * + 76 AS col2 FROM tab1 cor0
----
4104
4332
7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab2
----
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9133
SELECT ALL + ( col0 ) + col2 * CAST( 47 AS SIGNED ) FROM tab2 AS cor0
----
1276
1300
1865
skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + ( col0 ) + col2 * CAST ( 47 AS INTEGER ) FROM tab2 AS cor0
----
1276
1300
1865
query I rowsort
SELECT DISTINCT - - 91 AS col0 FROM tab2 AS cor0
----
91
query I rowsort
SELECT ALL - - 32 + - 60 AS col2 FROM tab2 AS cor0
----
-28
-28
-28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9136
SELECT - CAST( 87 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
skipif mysql # not compatible
query I rowsort label-9136
SELECT - CAST ( 87 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + tab1.col0 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + 73 * + col2 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT + col0 + col0 * + col1 * - col1 AS col1 FROM tab1
----
-13440
-2025
-6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT DISTINCT + col1 + col2 DIV - 83 FROM tab1 AS cor0
----
10
12
26
skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + col1 + col2 / - 83 FROM tab1 AS cor0
----
10
12
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT col1 * + col0 - ( - 30 ) DIV col1 AS col1 FROM tab1 cor0
----
1042
643
79
skipif mysql # not compatible
query I rowsort label-9141
SELECT col1 * + col0 - ( - 30 ) / col1 AS col1 FROM tab1 cor0
----
1042
643
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9142
SELECT DISTINCT - col2 + cor0.col2 * - ( + cor0.col2 ) * col0 - - CAST( NULL AS SIGNED ) / - 15 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - col2 + cor0.col2 * - ( + cor0.col2 ) * col0 - - CAST ( NULL AS INTEGER ) / - 15 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - cor0.col1 * - col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
1010
17602
2210
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT DISTINCT col2 DIV - col0 + col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT col2 / - col0 + col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL col1 * + col0 * - ( cor0.col2 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT + + col2 + col2 * 89 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT + - cor0.col1 * 41 + - col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
query I rowsort
SELECT - col2 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - - col2 * + col2 + col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col0 * col0 * - col2 FROM tab2 AS cor0
----
-1354
-158243
-237175
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 + 57 AS col1 FROM tab2 AS cor0
----
-2
26
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col2 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT cor0.col0 - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col1 * + ( + 97 ) + col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT cor0.col2 * col0 + col1 * col1 * col0 FROM tab0 AS cor0
----
178296
329350
744307
query I rowsort
SELECT 85 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT + col1 + col0 * tab2.col0 * + col1 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT - col2 + - 22 AS col1 FROM tab1 AS cor0
----
-118
-76
-79
query I rowsort
SELECT cor0.col0 * + ( 48 ) + + col2 * 1 AS col2 FROM tab1 AS cor0
----
198
3129
3936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9162
SELECT - col2 * + CAST( - col1 AS SIGNED ) - col2 AS col2 FROM tab1
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-9162
SELECT - col2 * + CAST ( - col1 AS INTEGER ) - col2 AS col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT col0 * + col2 * - col1 - - col2 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT DISTINCT col1 * + 54 - col1 AS col0 FROM tab0
----
4558
4823
5141
query I rowsort
SELECT ALL - col0 * + 34 - 52 AS col2 FROM tab1 AS cor0
----
-154
-2228
-2772
query I rowsort
SELECT DISTINCT + - col1 * 59 AS col2 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT + col0 - - 88 FROM tab1 AS cor0
----
152
168
91
query I rowsort
SELECT + col0 * col1 + 46 FROM tab0 AS cor0
----
2110
3441
8145
query I rowsort
SELECT + col2 - ( - 2 ) AS col0 FROM tab1 AS cor0
----
56
59
98
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - 48 FROM tab2 cor0
----
-48
-48
-48
query I rowsort
SELECT + - 65 * col0 * + col0 + ( - col2 ) FROM tab1 AS cor0
----
-266297
-416096
-639
query I rowsort
SELECT ALL - 33 * + col2 * - col0 FROM tab1 AS cor0
----
120384
253440
5346
query I rowsort
SELECT DISTINCT + ( + col1 ) * + cor0.col1 + - col2 * - col2 * - col2 + col2 FROM tab1 AS cor0
----
-156734
-185036
-884471
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 95 col1 FROM tab2 AS cor0
----
36
64
78
query I rowsort
SELECT - - ( + col0 ) * - col2 + col2 * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-22788
-27550
-41912
onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT ALL - - ( - col0 ) + + col1 + + col0 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - - ( - col0 ) + + col1 + + col0 * col2 / col2 AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9178
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 / col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 / col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 8 * - cor0.col0 AS col0 FROM tab0 cor0
----
-192
-280
-712
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * col2 * col0 col0 FROM tab2 AS cor0
----
-13419
-143988
-213142
query I rowsort
SELECT + 66 * col2 FROM tab0 cor0
----
2178
5412
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9182
SELECT CAST( col1 + col1 AS SIGNED ) FROM tab2
----
118
34
62
skipif mysql # not compatible
query I rowsort label-9182
SELECT CAST ( col1 + col1 AS INTEGER ) FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
-75
query I rowsort
SELECT - 56 + col0 FROM tab1 AS cor0
----
-53
24
8
query I rowsort
SELECT DISTINCT 56 + col2 AS col1 FROM tab1 AS cor0
----
110
113
152
query I rowsort
SELECT - 41 * + col1 AS col0 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT 47 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-31
-593
-993
query I rowsort
SELECT ALL + cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT ALL - + 82 AS col0 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT ALL - + 67 * - cor0.col2 + col0 * ( col0 ) * col0 FROM tab0 AS cor0
----
16035
42942
710463
query I rowsort
SELECT ALL 38 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL - 24 AS col2 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT col2 * 8 AS col1 FROM tab1 cor0
----
432
456
768
query I rowsort
SELECT ALL + col0 * col0 + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT + col2 DIV - col1 + + col0 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-9196
SELECT + col2 / - col1 + + col0 FROM tab2
----
7
77
78
query I rowsort
SELECT 93 * col2 + col2 AS col2 FROM tab0
----
3102
7708
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col1 * + cor0.col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ALL - + col1 - CAST( - 25 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-16
-31
-59
skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL - + col1 - CAST ( - 25 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-16
-31
-59
query I rowsort
SELECT col1 + col1 * col0 AS col2 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-9203
SELECT DISTINCT + col1 DIV col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + col1 / col2 AS col0 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL tab2.col1 + - col1 * + col2 * tab2.col2 FROM tab2
----
-22568
-24531
-39825
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT DISTINCT + col1 DIV - col1 + col1 DIV col2 AS col2 FROM tab0
----
0
1
96
skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT + col1 / - col1 + col1 / col2 AS col2 FROM tab0
----
0
1
96
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( - tab1.col2 + - col2 )
----
query I rowsort
SELECT col2 FROM tab1 WHERE NULL IN ( + col2 + col0 / col2 )
----
query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL >= ( col2 )
----
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 + col2 = NULL
----
query I rowsort
SELECT col2 + - tab0.col1 - + col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL + col2 * - tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 * + col2 + + col0 * - col1 )
----
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( + col2 ) NOT IN ( - tab0.col1 )
----
query I rowsort
SELECT col1 * - col0 + col1 + col1 AS col0 FROM tab1
----
-1014
-26
-620
query I rowsort
SELECT + col2 * - tab0.col2 + - col0 * tab0.col0 FROM tab0
----
-1226
-14645
-1665
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col1 * + col0 NOT BETWEEN col2 + col2 * col0 AND ( + col2 * - tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col0 * col1 * col1 + - col2 FROM tab1
----
-13616
-2082
-6457
query I rowsort
SELECT col1 + col1 * tab0.col0 * 14 + - col0 * col2 FROM tab0
----
106179
28190
47592
query I rowsort
SELECT DISTINCT - 60 * + col2 * tab1.col2 + ( col0 ) AS col1 FROM tab1
----
-174957
-194876
-552880
query I rowsort
SELECT + col1 * + 96 + - col0 * + col1 AS col2 FROM tab0
----
5917
6192
637
query I rowsort
SELECT DISTINCT 72 + 13 * col2 FROM tab2
----
410
423
566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9223
SELECT DISTINCT CAST( col0 AS SIGNED ) * col2 + ( + col1 ) + + col2 AS col2 FROM tab2
----
2113
247
3057
skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col2 + ( + col1 ) + + col2 AS col2 FROM tab2
----
2113
247
3057
query I rowsort
SELECT - col1 + col0 + - col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + col1 * 78 col1 FROM tab1 AS cor0
----
1063
2077
829
query I rowsort
SELECT DISTINCT tab1.col2 * - 82 AS col0 FROM tab1
----
-4428
-4674
-7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * + 35 col0 FROM tab0
----
-1785
-1785
-1785
onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT - 75 + + 69 * col0 + - 50 DIV 63 AS col0 FROM tab1 AS cor0
----
132
4341
5445
skipif mysql # not compatible
query I rowsort label-9228
SELECT - 75 + + 69 * col0 + - 50 / 63 AS col0 FROM tab1 AS cor0
----
132
4341
5445
query I rowsort
SELECT DISTINCT - 17 + - col1 FROM tab1
----
-27
-30
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + + tab0.col2 col1 FROM tab0
----
141
60
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT + col1 + - col0 + col1 DIV col1 FROM tab2 cor0
----
-18
-61
25
skipif mysql # not compatible
query I rowsort label-9231
SELECT + col1 + - col0 + col1 / col1 FROM tab2 cor0
----
-18
-61
25
query I rowsort
SELECT DISTINCT 26 * + col2 FROM tab2
----
676
702
988
query I rowsort
SELECT 69 * + col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL 60 + col1 * ( + cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
119712
51094
5919
query I rowsort
SELECT ALL - ( col1 ) + + 44 AS col2 FROM tab2 AS cor0
----
-15
13
27
query I rowsort
SELECT DISTINCT - 34 + - col0 * - 66 AS col2 FROM tab1 AS cor0
----
164
4190
5246
query I rowsort
SELECT + - 96 AS col1 FROM tab1 cor0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 68 + col0 * col2 col0 FROM tab0 AS cor0
----
103
7366
860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 27 col2 FROM tab2 AS cor0
----
1593
459
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT DISTINCT + col0 * cor0.col0 + + col2 * + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT + col0 * cor0.col0 + + col2 * + col0 / - col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT + col2 * 81 + 41 * - col2 * - col2 + cor0.col1 * col0 FROM tab0 AS cor0
----
290425
3517
49386
query I rowsort
SELECT DISTINCT + - col1 + ( - 98 ) * + col1 FROM tab1 AS cor0
----
-1287
-2574
-990
query I rowsort
SELECT ALL - + col0 * 19 AS col0 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT - - cor0.col0 * 46 FROM tab0 AS cor0
----
1104
1610
4094
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9247
SELECT DISTINCT col1 * CAST( - col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT col1 * CAST ( - col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT DISTINCT - col2 * CAST( ( col2 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - col2 * CAST ( ( col2 ) AS REAL ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col0 + + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + - col1 + col2 + col0 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT - 15 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT col2 + + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9255
SELECT + CAST( NULL AS SIGNED ) + 37 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9255
SELECT + CAST ( NULL AS INTEGER ) + 37 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 20 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT DISTINCT + + 20 + - col2 DIV col0 + - col1 * 8 AS col0 FROM tab1 AS cor0
----
-206
-60
-85
skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + + 20 + - col2 / col0 + - col1 * 8 AS col0 FROM tab1 AS cor0
----
-206
-60
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab2 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 33 AS REAL ) + - col1 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT - col2 + - col0 + col1 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT - - cor0.col2 * + col1 + col0 * col2 AS col2 FROM tab2 AS cor0
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT - col0 DIV + 32 AS col0 FROM tab1
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-9262
SELECT - col0 / + 32 AS col0 FROM tab1
----
-2
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT + col1 + - col0 * tab1.col2 DIV - col2 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9263
SELECT + col1 + - col0 * tab1.col2 / - col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - 69 + col2 FROM tab0
----
-36
-68
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9265
SELECT ALL + CAST( - 0 AS SIGNED ) + - col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + CAST ( - 0 AS INTEGER ) + - col2 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 + col1 ) * + col2 * + col1 col1 FROM tab1
----
-30780
-83616
32292
query I rowsort
SELECT col0 + - col1 * - col2 AS col2 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 38 * + col0 AS col0 FROM tab0
----
1330
3382
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT + col0 * col0 DIV - col1 + col1 AS col0 FROM tab1
----
-399
-479
26
skipif mysql # not compatible
query I rowsort label-9271
SELECT + col0 * col0 / - col1 + col1 AS col0 FROM tab1
----
-399
-479
26
query I rowsort
SELECT 2 * - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9273
SELECT CAST( NULL AS SIGNED ) * 59 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9273
SELECT CAST ( NULL AS INTEGER ) * 59 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT DISTINCT - col0 DIV + 21 AS col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - col0 / + 21 AS col0 FROM tab2
----
-3
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9275
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col1 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 2 * - 90 FROM tab0
----
-180
-180
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab0, tab0 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT - tab0.col0 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9278
SELECT - tab0.col0 / col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 5 * - ( col1 * + col2 ) AS col1 FROM tab1
----
-2850
-6240
-7020
onlyif mysql # use DIV operator for integer division
query I rowsort label-9280
SELECT + ( + col0 ) DIV col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9280
SELECT + ( + col0 ) / col0 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 * - col0 - + tab0.col2 * - col1 AS col2 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col1 * - col2 - + col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT col1 + col0 * col0 + col1 AS col2 FROM tab0
----
1419
748
8103
onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT ALL + col2 DIV + col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + col2 / + col0 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL col1 * col0 + col1 * + col2 + col2 AS col2 FROM tab2
----
1081
2027
6162
query I rowsort
SELECT ALL col2 + - col2 * col2 * col1 + - col0 * + col2 AS col2 FROM tab0
----
-131
-619100
-94413
query I rowsort
SELECT - col1 * col0 * tab2.col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT cor0.col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col2 * - col1 - + col1 FROM tab1 AS cor0
----
-16237
-36530
-5710
query I rowsort
SELECT - col2 - + cor0.col1 AS col0 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT cor0.col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 * + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT ALL - tab0.col0 DIV + col0 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - tab0.col0 / + col0 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col2 * + ( 21 ) AS col0 FROM tab2
----
546
567
798
query I rowsort
SELECT - col0 + col1 * - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT ALL 62 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL + col2 * + col1 + - 33 FROM tab2 cor0
----
1501
613
804
onlyif mysql # use DIV operator for integer division
query I rowsort label-9300
SELECT ALL - - col1 * - col2 * col0 + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-36479
-4211
-99839
skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - - col1 * - col2 * col0 + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
-36479
-4211
-99839
query I rowsort
SELECT - col1 + + 70 FROM tab2 AS cor0
----
11
39
53
query I rowsort
SELECT DISTINCT - + col1 * - 43 + - col0 FROM tab2 AS cor0
----
1326
2459
652
query I rowsort
SELECT + + col0 + + 75 AS col1 FROM tab2 AS cor0
----
153
154
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9304
SELECT DISTINCT + - 93 + + col1 * col1 * CAST( + 45 * - cor0.col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1027488
-12218403
-302808
skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + - 93 + + col1 * col1 * CAST ( + 45 * - cor0.col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1027488
-12218403
-302808
query I rowsort
SELECT DISTINCT + - ( col0 ) + col2 + col1 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT ALL 25 * cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT ALL + 35 * + col2 AS col0 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT ALL + + 22 + - col1 * + col0 FROM tab2 AS cor0
----
-1321
-195
-4580
query I rowsort
SELECT - + 89 * + 1 FROM tab2 AS cor0
----
-89
-89
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT DISTINCT - 26 DIV - cor0.col2 + - col1 col0 FROM tab0 AS cor0
----
-71
-86
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - 26 / - cor0.col2 + - col1 col0 FROM tab0 AS cor0
----
-71
-86
-91
query I rowsort
SELECT col2 + ( col2 + + 48 ) * - col0 FROM tab2 AS cor0
----
-498
-5746
-6756
onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT + - ( 69 ) * col1 + - cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-5935
-6279
-6693
skipif mysql # not compatible
query I rowsort label-9312
SELECT + - ( 69 ) * col1 + - cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-5935
-6279
-6693
query I rowsort
SELECT DISTINCT col2 + 51 + col0 AS col1 FROM tab0
----
108
222
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9314
SELECT ( col1 ) * col0 * CAST( col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
36537
4266
99936
skipif mysql # not compatible
query I rowsort label-9314
SELECT ( col1 ) * col0 * CAST ( col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 + - col2 AS col0 FROM tab0 cor0
----
-195
-205
-264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col0 ) + - col0 col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 38 ) col0 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9319
SELECT DISTINCT + tab0.col0 DIV + 79 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + tab0.col0 / + 79 AS col2 FROM tab0
----
0
1
query I rowsort
SELECT + - col1 + col1 * 78 AS col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT ALL + cor0.col2 + - col1 * - 38 AS col1 FROM tab0 AS cor0
----
3301
3540
3687
query I rowsort
SELECT + col0 - col1 * 59 AS col1 FROM tab1 AS cor0
----
-1531
-526
-687
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9323
SELECT DISTINCT + col0 + + col1 * CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + col0 + + col1 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - col2 - + col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT + - col0 * col1 - 90 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-2067
-3397
-8100
skipif mysql # not compatible
query I rowsort label-9325
SELECT + - col0 * col1 - 90 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-2067
-3397
-8100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9326
SELECT DISTINCT + col0 * col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + col0 * col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT DISTINCT - col2 + + col2 * 51 DIV - 81 col2 FROM tab0 AS cor0
----
-1
-133
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - col2 + + col2 * 51 / - 81 col2 FROM tab0 AS cor0
----
-1
-133
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT ALL - - 23 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - - 23 / cor0.col1 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col1 col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT ALL + 50 DIV + col1 + + 70 AS col0 FROM tab0 AS cor0
----
70
70
70
skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL + 50 / + col1 + + 70 AS col0 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 + - 52 * col0 AS col1 FROM tab1 AS cor0
----
320
3520
6
query I rowsort
SELECT ALL 1 - col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col2 - col0 AS col1 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col2 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col0 - col2 * - tab0.col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + col0 + 75 FROM tab0 AS cor0
----
110
164
99
query I rowsort
SELECT + + col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT col1 - 0 * col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + col0 * + col2 * 35 FROM tab0 AS cor0
----
-1225
-255430
-27720
query I rowsort
SELECT + - col1 * - 66 + cor0.col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT DISTINCT - col2 * + 89 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - cor0.col2 + - 45 * - 83 + - col2 FROM tab2 AS cor0
----
3659
3681
3683
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT ALL cor0.col0 DIV + col0 col0 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL cor0.col0 / + col0 col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT - col2 * - 83 AS col0 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT ALL 40 * + col1 FROM tab0
----
3440
3640
3880
onlyif mysql # use DIV operator for integer division
query I rowsort label-9347
SELECT DISTINCT col0 * tab0.col0 * + col2 + col2 DIV tab0.col1 AS col2 FROM tab0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT col0 * tab0.col0 * + col2 + col2 / tab0.col1 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 20 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8
query I rowsort
SELECT + col0 - 66 * cor0.col2 AS col1 FROM tab1 cor0
----
-3561
-3698
-6256
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col1 + 47 * cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
137078
152713
433165
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - col1 + + 57 + col1 AS col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT tab2.col1 + 76 AS col0 FROM tab2
----
107
135
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT + + CAST( NULL AS SIGNED ) + col0 * col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9355
SELECT + + CAST ( NULL AS INTEGER ) + col0 * col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + 83 * + 66 FROM tab2 AS cor0
----
-5478
-5478
-5478
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT ALL + ( col1 ) * col0 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + ( col1 ) * col0 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - 10 AS col1 FROM tab0 AS cor0
----
-10
-10
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9360
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9360
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ( + 14 ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT - cor0.col0 * + col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + ( + col1 ) * 54 + col0 AS col2 FROM tab2 AS cor0
----
-1667
-3108
-839
query I rowsort
SELECT 17 - + col0 * - col2 FROM tab2 cor0
----
2045
206
3019
query I rowsort
SELECT - 99 * + col1 * - tab1.col0 AS col0 FROM tab1
----
102960
63360
7722
query I rowsort
SELECT ALL - - col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + 91 * - cor0.col0 FROM tab1 AS cor0
----
-247
-5814
-7267
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 * + 0 + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - ( ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 * 91 AS col0 FROM tab1 AS cor0
----
1183
2366
910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT - - ( + col1 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9372
SELECT - - ( + col1 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 8 AS col1 FROM tab2
----
8
8
8
query I rowsort
SELECT ALL 55 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab1
----
31
31
31
query I rowsort
SELECT - col2 * + 97 + - ( - col1 ) FROM tab0
----
-3115
-7863
0
query I rowsort
SELECT ALL + cor0.col2 * + ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT DISTINCT ( 98 ) * - cor0.col0 DIV ( + col0 ) AS col2 FROM tab0 AS cor0
----
-98
skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT ( 98 ) * - cor0.col0 / ( + col0 ) AS col2 FROM tab0 AS cor0
----
-98
query I rowsort
SELECT - - col2 + - col2 * col0 AS col0 FROM tab0 cor0
----
-34
-7216
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT - 68 * + col0 FROM tab2 cor0
----
-476
-5304
-5372
onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT + col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9383
SELECT + col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - col2 col2 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT ALL + cor1.col2 * + cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 02081120b66025475df9f31f465bcbe4
query I rowsort
SELECT ALL 9 * col2 AS col0 FROM tab0
----
297
738
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9387
SELECT CAST( col2 AS SIGNED ) - - tab1.col2 AS col1 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-9387
SELECT CAST ( col2 AS INTEGER ) - - tab1.col2 AS col1 FROM tab1
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * 57 col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to b2791fcbc317839c2f18c26810f698bf
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab2 cor0
----
17
31
59
query I rowsort
SELECT ( col1 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + ( 4 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + + col1 * + 61 AS col2 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT - col2 * ( + col2 ) FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + col1 * - col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT + cor0.col1 DIV - CAST( + 53 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9396
SELECT + cor0.col1 / - CAST ( + 53 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col1 * col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT col0 * - col0 + + 75 FROM tab0 AS cor0
----
-1150
-501
-7846
query I rowsort
SELECT + col0 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL 82 FROM tab0, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL + col0 * + col0 + col1 AS col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL + 57 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT DISTINCT + col1 + 74 FROM tab0
----
160
165
171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9404
SELECT CAST( NULL AS SIGNED ) * - 44 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9404
SELECT CAST ( NULL AS INTEGER ) * - 44 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT ( + tab1.col0 ) * 3 + + col2 DIV + col0 FROM tab1
----
192
241
27
skipif mysql # not compatible
query I rowsort label-9405
SELECT ( + tab1.col0 ) * 3 + + col2 / + col0 FROM tab1
----
192
241
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + tab1.col0 col0 FROM tab1
----
118
134
57
query I rowsort
SELECT 11 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + col1 col0 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT DISTINCT - col1 DIV - col0 + col2 * col0 col2 FROM tab1
----
170
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - col1 / - col0 + col2 * col0 col2 FROM tab1
----
170
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 - - col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT col1 * + col2 + cor0.col1 * col2 + + col0 FROM tab0 AS cor0
----
15013
229
5700
query I rowsort
SELECT 30 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - + col2 - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col0 * 44 AS col2 FROM tab0
----
-1056
-1540
-3916
query I rowsort
SELECT 30 * 54 FROM tab0, tab1 AS cor0
----
9 values hashing to e15c529b050aea1c7ee32f3db31d2ed5
query I rowsort
SELECT ALL - 21 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT ALL - + 51 + - col2 AS col1 FROM tab0 AS cor0
----
-133
-52
-84
query I rowsort
SELECT ALL 11 * 38 FROM tab1 AS cor0
----
418
418
418
query I rowsort
SELECT DISTINCT - col0 * + col2 * - col0 + + col0 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT ALL - ( + ( - col1 ) ) * + ( cor0.col1 ) FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + - cor0.col1 * col1 col0 FROM tab1 AS cor0
----
-191
-260
-767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 7 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 7 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col2 + 32 * - cor0.col1 FROM tab0 AS cor0
----
-2785
-2994
-3105
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col0 * - 27 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL + col2 * 36 FROM tab1 AS cor0
----
1944
2052
3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-9427
SELECT - col2 * + col1 DIV + col1 + + col1 AS col0 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-9427
SELECT - col2 * + col1 / + col1 + + col1 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT 88 * + 59 + + col1 FROM tab1 AS cor0
----
5202
5205
5218
query I rowsort
SELECT - 43 + col0 AS col2 FROM tab1 AS cor0
----
-40
21
37
query I rowsort
SELECT ALL - cor0.col0 * 78 FROM tab0 AS cor0
----
-1872
-2730
-6942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 28 * cor0.col1 col1 FROM tab2 AS cor0
----
1711
493
899
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9432
SELECT - CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9432
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9433
SELECT ALL + 14 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + 14 / + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + 36 * col2 * - col2 FROM tab0 AS cor0
----
-242064
-36
-39204
query I rowsort
SELECT + + col0 + + col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT - col1 + - col0 + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT + ( - 85 ) AS col1 FROM tab0, tab1, tab2 cor0
----
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col1 FROM tab1
----
44
44
44
query I rowsort
SELECT ALL + col0 + ( + ( col0 ) ) FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT DISTINCT - col2 DIV 72 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - col2 / 72 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col1 * 18 AS col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - + col0 * col2 + 48 AS col0 FROM tab0 AS cor0
----
-7250
-744
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9445
SELECT ALL - col2 / CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - col2 / CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 46 * col0 col2 FROM tab1 AS cor0
----
-112
-2934
-3667
query I rowsort
SELECT + - col0 + - ( + 57 ) AS col1 FROM tab0 AS cor0
----
-146
-81
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9448
SELECT ALL - + col0 * - ( - cor0.col0 ) - + col0 DIV col1 FROM tab2 AS cor0
----
-49
-6085
-6245
skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - + col0 * - ( - cor0.col0 ) - + col0 / col1 FROM tab2 AS cor0
----
-49
-6085
-6245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + tab2.col2 * 81 col0 FROM tab2
----
2184
2194
3157
onlyif mysql # use DIV operator for integer division
query I rowsort label-9450
SELECT DISTINCT col0 DIV col1 + tab0.col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT col0 / col1 + tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - col0 + + ( col2 ) * cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
-33
1098
6717
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9452
SELECT - - col0 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-9452
SELECT - - col0 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - col0 * col1 + 83 * + col2 * col1 FROM tab2 AS cor0
----
131924
54961
69688
query I rowsort
SELECT + + col1 + ( 62 ) FROM tab2 cor0
----
121
79
93
query I rowsort
SELECT ALL - 92 * tab1.col2 FROM tab1
----
-4968
-5244
-8832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9456
SELECT DISTINCT + col0 + CAST( + cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + col0 + CAST ( + cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT ALL col1 DIV cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL col1 / cor0.col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col2 * + 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT col1 + ( + 49 ) * cor0.col1 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT col0 + ( + 42 ) AS col2 FROM tab1 cor0
----
106
122
45
query I rowsort
SELECT DISTINCT - 13 + - col2 * col0 FROM tab2 AS cor0
----
-202
-2041
-3015
query I rowsort
SELECT - 40 * col0 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT - ( - col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT 40 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT 19 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT ALL - cor0.col1 * - 11 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2317ce0c4c8f7dfe40c62e4e9ed83fb1
query I rowsort
SELECT ( 94 ) * - col2 AS col2 FROM tab1
----
-5076
-5358
-9024
onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT + - col1 DIV col2 col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9469
SELECT + - col1 / col2 col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL - - col2 - cor0.col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + col2 * - 20 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT + 96 * + col2 FROM tab1 cor0
----
5184
5472
9216
query I rowsort
SELECT - + 66 * + col0 + col2 AS col2 FROM tab1 cor0
----
-144
-4167
-5184
query I rowsort
SELECT - 92 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1156
1312
478
query I rowsort
SELECT 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL - col0 + + cor0.col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 40 * cor0.col1 * ( + col1 ) + col0 FROM tab2 AS cor0
----
11639
139318
38447
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 * + 82 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT DISTINCT + + 14 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
21
48
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9480
SELECT DISTINCT + + ( - col1 ) + + 21 DIV col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + + ( - col1 ) + + 21 / col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col0 + col1 - col2 AS col1 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9482
SELECT DISTINCT + - 20 + col1 * + ( - cor0.col0 ) DIV col0 + - col0 FROM tab2 AS cor0
----
-116
-157
-58
skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + - 20 + col1 * + ( - cor0.col0 ) / col0 + - col0 FROM tab2 AS cor0
----
-116
-157
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT ALL col1 + + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL col1 + + col2 / + cor0.col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT col1 * 91 AS col2 FROM tab1 cor0
----
1183
2366
910
query I rowsort
SELECT - cor0.col0 * - 40 FROM tab2, tab0 AS cor0
----
9 values hashing to 459b733380ffa31859a792e86546d76b
query I rowsort
SELECT DISTINCT col2 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT tab1.col2 * col2 * - col2 FROM tab1
----
-157464
-185193
-884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9488
SELECT CAST( NULL AS SIGNED ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( NULL AS INTEGER ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col0 * col2 - + col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9490
SELECT - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9490
SELECT - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 58 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9493
SELECT - CAST( - col2 AS SIGNED ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9493
SELECT - CAST ( - col2 AS INTEGER ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 + + col0 * col0 * ( + col0 ) FROM tab1
----
105
262784
513040
query I rowsort
SELECT + col0 + ( + col0 ) FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT DISTINCT + col0 + 27 - - col0 DIV col1 FROM tab1 AS cor0
----
113
30
97
skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + col0 + 27 - - col0 / col1 FROM tab1 AS cor0
----
113
30
97
query I rowsort
SELECT col0 * + 79 FROM tab1 AS cor0
----
237
5056
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9498
SELECT DISTINCT + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 76 * col0 AS col0 FROM tab1
----
228
4864
6080
query I rowsort
SELECT ALL col0 * + ( col2 ) AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL - col1 * col0 - ( + col0 * 32 ) FROM tab1
----
-174
-2688
-3600
query I rowsort
SELECT DISTINCT col2 * col0 - col1 * - col0 * col2 AS col1 FROM tab2
----
121680
54036
6048
query I rowsort
SELECT ALL col1 - - 40 FROM tab2
----
57
71
99
query I rowsort
SELECT - col0 + - col2 + - col0 * col0 FROM tab1
----
-4217
-6576
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 98 + - col0 + col2 col0 FROM tab2
----
1625
3058
5730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT - tab0.col2 - col0 DIV + col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-9507
SELECT - tab0.col2 - col0 / + col2 FROM tab0
----
-33
-36
-83
query I rowsort
SELECT ALL + col0 - 91 FROM tab2
----
-12
-13
-84
query I rowsort
SELECT + 66 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT DISTINCT 37 FROM tab2, tab1 cor0, tab2 AS cor1
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT ALL - - col1 * col1 * - col1 + col0 DIV 35 AS col1 FROM tab1 cor0
----
-17576
-2195
-999
skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - - col1 * col1 * - col1 + col0 / 35 AS col1 FROM tab1 cor0
----
-17576
-2195
-999
query I rowsort
SELECT DISTINCT + 11 FROM tab2, tab1 cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT tab1.col0 * - 20 + col2 DIV + col0 AS col1 FROM tab1
----
-1280
-1599
-42
skipif mysql # not compatible
query I rowsort label-9513
SELECT tab1.col0 * - 20 + col2 / + col0 AS col1 FROM tab1
----
-1280
-1599
-42
query I rowsort
SELECT col0 * - tab0.col2 * + col0 + col2 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT + 71 FROM tab1, tab2 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9516
SELECT ALL CAST( NULL AS SIGNED ) + - 72 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL CAST ( NULL AS INTEGER ) + - 72 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9517
SELECT ALL - - 79 + - col2 DIV - col1 FROM tab1 AS cor0
----
81
84
86
skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - - 79 + - col2 / - col1 FROM tab1 AS cor0
----
81
84
86
query I rowsort
SELECT - + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9519
SELECT + CAST( 3 + col1 AS SIGNED ) FROM tab0
----
100
89
94
skipif mysql # not compatible
query I rowsort label-9519
SELECT + CAST ( 3 + col1 AS INTEGER ) FROM tab0
----
100
89
94
query I rowsort
SELECT - col1 + 10 FROM tab1
----
-16
-3
0
query I rowsort
SELECT + ( 54 ) AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT tab2.col2 + + col0 + tab2.col2 AS col0 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT + ( + 45 ) + - col1 * + col2 FROM tab1
----
-1203
-1359
-525
query I rowsort
SELECT + 2 + + col1 FROM tab0
----
88
93
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT ALL + - col0 + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + - col0 + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT - col2 * + col1 * col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL 10 * cor0.col0 AS col0 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT ALL + 51 * + col0 * col1 FROM tab0 cor0
----
105264
173145
413049
query I rowsort
SELECT ALL - col1 * col2 * cor0.col1 + - col2 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 AS col0 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL col0 - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT 0 * col2 + - col1 AS col0 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT - 33 * + col1 DIV - col1 + 91 FROM tab2 AS cor0
----
124
124
124
skipif mysql # not compatible
query I rowsort label-9535
SELECT - 33 * + col1 / - col1 + 91 FROM tab2 AS cor0
----
124
124
124
query I rowsort
SELECT col2 * - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 * 69 AS col1 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT - + col0 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - ( - 1 ) - col1 * 27 FROM tab2 AS cor0
----
-1592
-458
-836
query I rowsort
SELECT DISTINCT + 6 + - col1 FROM tab0 cor0
----
-80
-85
-91
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - + ( + 26 ) + cor0.col1 * + 80 AS col1 FROM tab2 AS cor0
----
1334
2454
4694
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT + cor0.col0 + - col1 DIV cor0.col0 FROM tab2 cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-9543
SELECT + cor0.col0 + - col1 / cor0.col0 FROM tab2 cor0
----
3
78
79
query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1 cor0
----
-60
query I rowsort
SELECT + - 40 * - col1 + col1 * - col2 FROM tab0 AS cor0
----
-3822
3783
602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 72 ) + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
1415
289
4674
query I rowsort
SELECT ALL + - cor0.col1 * - col0 - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - col2 * col0 + col1 * ( col2 ) FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT ALL + 80 * 59 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-1364
-1521
4671
query I rowsort
SELECT - col0 * col2 + - cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + col0 + 16 FROM tab1 AS cor0
----
19
80
96
query I rowsort
SELECT + 99 + - 23 AS col0 FROM tab2 cor0
----
76
76
76
query I rowsort
SELECT ALL - 13 - + col0 FROM tab0 AS cor0
----
-102
-37
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT DISTINCT + col1 DIV + col0 AS col2 FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + col1 / + col0 AS col2 FROM tab1 cor0
----
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT DISTINCT + cor0.col2 + 29 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
55
59
98
skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + cor0.col2 + 29 / cor0.col1 AS col2 FROM tab1 AS cor0
----
55
59
98
query I rowsort
SELECT ALL - 58 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-169128
-188442
-534528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9557
SELECT CAST( - 17 AS SIGNED ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-43
-44
-55
skipif mysql # not compatible
query I rowsort label-9557
SELECT CAST ( - 17 AS INTEGER ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-43
-44
-55
query I rowsort
SELECT ALL col0 * 91 AS col2 FROM tab0 AS cor0
----
2184
3185
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT ALL + - col2 DIV col1 AS col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + - col2 / col1 AS col1 FROM tab2 cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT - col1 + ( col1 ) DIV col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-9560
SELECT - col1 + ( col1 ) / col2 FROM tab0 AS cor0
----
-84
-90
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + 12 * 45 FROM tab1, tab0 cor0
----
-540
query I rowsort
SELECT - 13 + col1 AS col2 FROM tab0 AS cor0
----
73
78
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT + ( - col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9564
SELECT + ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT DISTINCT col0 DIV col0 + - tab1.col1 * 53 AS col2 FROM tab1
----
-1377
-529
-688
skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT col0 / col0 + - tab1.col1 * 53 AS col2 FROM tab1
----
-1377
-529
-688
query I rowsort
SELECT + ( + ( + cor0.col2 ) ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ( - 19 ) * - col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT - col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - + 4 + 74 AS col0 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT ALL + col0 * 41 * 17 FROM tab1
----
2091
44608
55760
query I rowsort
SELECT - ( + col0 * col0 ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + 42 * - col0 FROM tab1
----
-126
-2688
-3360
query I rowsort
SELECT + ( 62 ) AS col2 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT + - ( - col1 ) * + col2 + + col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
1026
3562
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT col1 + col1 * CAST( NULL AS SIGNED ) * 62 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9575
SELECT col1 + col1 * CAST ( NULL AS INTEGER ) * 62 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 54 + col2 FROM tab1 AS cor0
----
108
111
150
query I rowsort
SELECT + col0 * - cor0.col1 + col1 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-3395
-728
688
query I rowsort
SELECT col0 + col0 - - col0 * - col1 FROM tab2 AS cor0
----
-1185
-203
-4446
query I rowsort
SELECT DISTINCT 96 FROM tab2, tab0 cor0, tab1 AS cor1
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9580
SELECT + cor0.col2 / + CAST( NULL AS SIGNED ) + - 29 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9580
SELECT + cor0.col2 / + CAST ( NULL AS INTEGER ) + - 29 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - 59 - col2 AS col2 FROM tab1 AS cor0
----
-116
-180
-235
query I rowsort
SELECT + col0 + col2 + + cor0.col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT ALL - col2 - 88 FROM tab0
----
-121
-170
-89
query I rowsort
SELECT DISTINCT tab1.col1 * + ( col1 * col0 ) FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT col1 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9586
SELECT col1 / ( col0 ) AS col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - col2 * ( col1 ) - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + col1 * col1 + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL 83 FROM tab1, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9590
SELECT ALL col0 * col0 + + col2 * + CAST( NULL AS SIGNED ) + + col2 * - col1 * 54 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL col0 * col0 + + col2 * + CAST ( NULL AS INTEGER ) + + col2 * - col1 * 54 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917
query I rowsort
SELECT - - ( 9 ) * col1 + - ( - 23 ) * + cor0.col0 AS col2 FROM tab0 cor0
----
1326
1678
2866
query I rowsort
SELECT - col1 + - col1 * + col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT col2 * 36 + col1 + 38 FROM tab2 AS cor0
----
1033
1041
1423
query I rowsort
SELECT ALL - - 83 * - col1 AS col0 FROM tab0 cor0
----
-7138
-7553
-8051
query I rowsort
SELECT - 7 AS col0 FROM tab1 cor0
----
-7
-7
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
NULL
query I rowsort
SELECT ALL 98 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
153
156
183
query I rowsort
SELECT - 5 * col0 AS col2 FROM tab1
----
-15
-320
-400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9602
SELECT col1 DIV + col0 + ( col1 ) AS col2 FROM tab2 cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9602
SELECT col1 / + col0 + ( col1 ) AS col2 FROM tab2 cor0
----
17
35
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT DISTINCT - - col1 + col2 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - - col1 + col2 / col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9604
SELECT + + col0 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9604
SELECT + + col0 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * 18 AS col0 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT ALL + col1 + ( 19 ) FROM tab0 AS cor0
----
105
110
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 5 + + col1 col1 FROM tab2 AS cor0
----
-331
-378
-4
query I rowsort
SELECT + col0 * + col2 - - col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab1, tab0, tab0 AS cor0
----
21
query I rowsort
SELECT ALL - + col0 * - col1 * 69 + + 39 AS col0 FROM tab1 AS cor0
----
44199
5421
71799
onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT ALL - 64 DIV + col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - 64 / + col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL - 19 * col2 + - 63 * - col0 AS col0 FROM tab0 AS cor0
----
2186
4049
885
query I rowsort
SELECT ALL cor0.col2 + - cor0.col0 + col2 FROM tab0 cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + 37 FROM tab1 AS cor0
----
-1211
-1367
-533
query I rowsort
SELECT ALL 81 + - col0 AS col0 FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT DISTINCT + col1 * - 43 * col1 FROM tab1 AS cor0
----
-29068
-4300
-7267
query I rowsort
SELECT ALL col1 * 99 AS col0 FROM tab1 AS cor0
----
1287
2574
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9618
SELECT cor0.col2 * CAST( + 19 AS SIGNED ) FROM tab2 AS cor0
----
494
513
722
skipif mysql # not compatible
query I rowsort label-9618
SELECT cor0.col2 * CAST ( + 19 AS INTEGER ) FROM tab2 AS cor0
----
494
513
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( col2 ) - col2 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL col1 + col2 * + col0 * + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
167
26246
598616
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 + + 31 FROM tab0 cor0
----
-1194
-545
-7890
query I rowsort
SELECT DISTINCT - 61 + + 42 AS col1 FROM tab1 AS cor0
----
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT ALL + CAST( NULL AS SIGNED ) / col1 - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + CAST ( NULL AS INTEGER ) / col1 - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 27 AS col2 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT 70 FROM tab0, tab2, tab1 AS cor0
----
70
query I rowsort
SELECT DISTINCT ( col2 ) + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 * 68 AS col1 FROM tab0
----
1632
2380
6052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 29 * - col2 + - col0 AS col1 FROM tab0
----
-2467
-64
-981
query I rowsort
SELECT ALL - - 65 + - col2 FROM tab1 AS cor0
----
-31
11
8
query I rowsort
SELECT - col1 * + col0 + 8 FROM tab2 AS cor0
----
-1335
-209
-4594
query I rowsort
SELECT DISTINCT tab1.col1 + 17 * - col2 FROM tab1
----
-1619
-892
-959
query I rowsort
SELECT ALL + + ( 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 86 + - col2 col0 FROM tab0
----
4
53
85
query I rowsort
SELECT 64 * - tab0.col2 * - col0 + col2 FROM tab0
----
2241
467154
50721
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT 88 + tab0.col0 DIV tab0.col1 + + col0 AS col2 FROM tab0
----
112
123
177
skipif mysql # not compatible
query I rowsort label-9637
SELECT 88 + tab0.col0 / tab0.col1 + + col0 AS col2 FROM tab0
----
112
123
177
query I rowsort
SELECT 98 * col1 + - col0 FROM tab2 AS cor0
----
1587
3031
5704
query I rowsort
SELECT tab0.col2 * + tab0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col1 * col1 col2 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT - cor0.col2 + + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 15 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL col0 - + col1 * - 2 FROM tab1
----
106
55
84
query I rowsort
SELECT ALL - col1 * 16 AS col1 FROM tab2
----
-272
-496
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + 84 col2 FROM tab2 AS cor0
----
162
163
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT DISTINCT CAST( col0 AS SIGNED ) + col2 AS col1 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - - 27 + col0 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT + + 52 FROM tab1 cor0
----
52
52
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9649
SELECT - + CAST( col1 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-9649
SELECT - + CAST ( col1 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT ALL col2 DIV 25 FROM tab1 AS cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL col2 / 25 FROM tab1 AS cor0
----
2
2
3
query I rowsort
SELECT DISTINCT - + 37 * col2 FROM tab2 AS cor0
----
-1406
-962
-999
query I rowsort
SELECT + 67 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1694
-2442
-6054
query I rowsort
SELECT ALL - ( + col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9654
SELECT - col1 / - col0 + cor0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9654
SELECT - col1 / - col0 + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 55 + col1 + cor0.col2 * + col1 AS col2 FROM tab0 cor0
----
249
2979
7608
query I rowsort
SELECT - col0 + 57 * - col0 AS col1 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT 1 * col2 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + col2 * + 37 + + col0 * + col1 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
178725
329352
740043
query I rowsort
SELECT tab1.col1 + 72 AS col2 FROM tab1
----
82
85
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9660
SELECT DISTINCT - 26 + tab2.col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - 26 + tab2.col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT ALL + col2 + - ( col0 ) * col2 DIV - 17 FROM tab2
----
145
214
38
skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + col2 + - ( col0 ) * col2 / - 17 FROM tab2
----
145
214
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT + + col2 DIV - 75 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9662
SELECT + + col2 / - 75 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - col1 + + 60 AS col2 FROM tab0 cor0
----
-26
-31
-37
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 * - 35 + + col0 * + col0 * - CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-2124
-42955
-86560
query I rowsort
SELECT - col1 * + col1 - - 25 AS col0 FROM tab2 AS cor0
----
-264
-3456
-936
query I rowsort
SELECT 45 * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 099f6cefcd63d940d9eff2c452d0ec5a
query I rowsort
SELECT + + col2 * col1 - + col1 * + col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 16 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
16
query I rowsort
SELECT + ( col2 ) + + col2 * col2 FROM tab1 cor0
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 27 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 27 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * ( + col0 * + col0 + - 88 * + col0 ) FROM tab2 AS cor0
----
15309
20280
27018
query I rowsort
SELECT DISTINCT + 87 FROM tab0 cor0
----
87
query I rowsort
SELECT DISTINCT - col0 * 58 FROM tab1 AS cor0
----
-174
-3712
-4640
query I rowsort
SELECT ALL - col2 * - col1 + + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT - 44 * + col2 + - col2 * ( 71 + - cor0.col1 * cor0.col2 ) FROM tab1 cor0
----
108768
25935
69606
query I rowsort
SELECT ALL col0 * 50 + col1 AS col2 FROM tab1 AS cor0
----
176
3210
4013
query I rowsort
SELECT DISTINCT + 93 * col0 AS col0 FROM tab1 AS cor0
----
279
5952
7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT ALL col1 DIV ( col2 ) col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL col1 / ( col2 ) col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9680
SELECT CAST( + 68 AS SIGNED ) AS col2 FROM tab0
----
68
68
68
skipif mysql # not compatible
query I rowsort label-9680
SELECT CAST ( + 68 AS INTEGER ) AS col2 FROM tab0
----
68
68
68
query I rowsort
SELECT ALL + + cor0.col2 + + ( - col2 ) AS col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9682
SELECT + col1 * - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9682
SELECT + col1 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - 55 + cor0.col1 AS col2 FROM tab2 cor0
----
-1674
-3186
-918
query I rowsort
SELECT col2 - - col2 * ( ( + col0 ) ) FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT 64 * col1 - 37 DIV 94 AS col2 FROM tab2
----
1088
1984
3776
skipif mysql # not compatible
query I rowsort label-9685
SELECT 64 * col1 - 37 / 94 AS col2 FROM tab2
----
1088
1984
3776
query I rowsort
SELECT - col0 + col0 * - col2 * col2 AS col0 FROM tab0
----
-26160
-598525
-70
query I rowsort
SELECT ALL col1 + - 13 * col0 FROM tab0
----
-1066
-226
-358
query I rowsort
SELECT DISTINCT - tab1.col0 - col1 * + col1 * + col0 FROM tab1
----
-13600
-2031
-6464
query I rowsort
SELECT ALL + - col2 * - cor0.col1 - + col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT + col1 * cor0.col2 + 89 AS col0 FROM tab2 AS cor0
----
1623
735
926
query I rowsort
SELECT cor0.col0 * - 5 + col1 FROM tab2 AS cor0
----
-331
-378
-4
query I rowsort
SELECT ALL col1 + 71 FROM tab2 AS cor0
----
102
130
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * col0 col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + col2 * col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT DISTINCT + - col0 + 30 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + - col0 + 30 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + + 54 * col2 FROM tab2 AS cor0
----
1465
1482
2131
query I rowsort
SELECT + cor0.col2 * - col2 * ( col1 * + ( + col1 ) ) FROM tab0 cor0
----
-55681444
-8054244
-9409
query I rowsort
SELECT DISTINCT + ( - col1 + col1 ) * tab1.col2 * - col2 AS col1 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + col0 * col0 col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + 13 * 6 FROM tab2 AS cor0
----
78
78
78
query I rowsort
SELECT + ( cor0.col1 ) * - col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 32 * 12 + + col2 AS col0 FROM tab1
----
438
441
480
query I rowsort
SELECT - - 74 + 51 AS col1 FROM tab1 AS cor0
----
125
125
125
query I rowsort
SELECT + - col0 * - col2 AS col0 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * ( - col0 ) col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT + ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 * 39 * - tab0.col0 AS col1 FROM tab0
----
132405
315861
80496
query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + cor0.col0 * 82 FROM tab1, tab1 AS cor0
----
9 values hashing to 669f1d4f8fa3ee4e77110d388fdff94d
query I rowsort
SELECT ALL col0 + + col0 + - col2 FROM tab0
----
15
69
96
query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT ALL - tab1.col2 + - col2 * col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL + col2 + + col1 * - col2 AS col0 FROM tab1
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9714
SELECT col1 * - CAST( NULL AS DECIMAL ) 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-9714
SELECT col1 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 27 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-2132
-216
-2171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9716
SELECT cor0.col2 * ( + col1 ) + col2 * CAST( NULL AS SIGNED ) - + ( + col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9716
SELECT cor0.col2 * ( + col1 ) + col2 * CAST ( NULL AS INTEGER ) - + ( + col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + 27 AS col1 FROM tab2 cor0
----
105
106
34
query I rowsort
SELECT ALL col0 * - 12 AS col0 FROM tab2 cor0
----
-84
-936
-948
query I rowsort
SELECT ALL - 41 AS col1 FROM tab1
----
-41
-41
-41
query I rowsort
SELECT + cor0.col2 + - 1 AS col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - ( - cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL ( - 62 ) + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2090
-251
-3064
query I rowsort
SELECT + 58 * + col1 AS col0 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT DISTINCT ( ( col1 ) ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - 50 * col2 AS col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT col0 * - col1 * CAST( 5 AS SIGNED ) + tab2.col2 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9726
SELECT col0 * - col1 * CAST ( 5 AS INTEGER ) + tab2.col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * col2 * + 95 + - col0 FROM tab0 AS cor0
----
3290
693221
75216
query I rowsort
SELECT col2 * cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - col2 * - cor0.col1 + ( 38 ) * col2 AS col2 FROM tab1 AS cor0
----
2736
3456
4896
query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT ALL ( + col2 ) * - 73 + col2 + + col2 DIV + 58 AS col1 FROM tab0 AS cor0
----
-2376
-5903
-72
skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL ( + col2 ) * - 73 + col2 + + col2 / + 58 AS col1 FROM tab0 AS cor0
----
-2376
-5903
-72
query I rowsort
SELECT + col0 + col0 + 10 * - col2 * col2 AS col0 FROM tab2
----
-14282
-6604
-7276
onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT - 98 DIV col0 AS col0 FROM tab1
----
-1
-1
-32
skipif mysql # not compatible
query I rowsort label-9733
SELECT - 98 / col0 AS col0 FROM tab1
----
-1
-1
-32
query I rowsort
SELECT DISTINCT + col2 + - tab1.col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - col0 + tab2.col1 * col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL 1 * - col0 + ( + col0 * col2 ) FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT + 74 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT - + col2 * + col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT ALL 40 DIV col2 + - col2 + 32 FROM tab0 AS cor0
----
-50
0
71
skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL 40 / col2 + - col2 + 32 FROM tab0 AS cor0
----
-50
0
71
query I rowsort
SELECT DISTINCT 69 - cor0.col0 FROM tab1 AS cor0
----
-11
5
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9741
SELECT ALL col1 * CAST( - 87 AS SIGNED ) FROM tab1 AS cor0
----
-1131
-2262
-870
skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL col1 * CAST ( - 87 AS INTEGER ) FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9743
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + + 14 FROM tab0 cor0
----
15
47
96
query I rowsort
SELECT col1 + + 10 FROM tab1 cor0
----
20
23
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT col2 * - CAST( 0 AS SIGNED ) DIV + col0 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9746
SELECT col2 * - CAST ( 0 AS INTEGER ) / + col0 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9747
SELECT ALL - col0 + col0 DIV - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - col0 + col0 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3
-65
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9748
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - col1 + - ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 63 col2 FROM tab1 AS cor0
----
117
120
159
query I rowsort
SELECT + - col0 * + col2 + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT ALL + col0 + - 95 DIV + 81 FROM tab0 cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL + col0 + - 95 / + 81 FROM tab0 cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 * - col2 col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - 38 + col2 * col0 - col2 * col1 AS col1 FROM tab1
----
-1280
3040
6394
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9755
SELECT ALL col1 * col2 - CAST( col2 AS SIGNED ) * - tab2.col1 FROM tab2
----
1292
1674
3068
skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL col1 * col2 - CAST ( col2 AS INTEGER ) * - tab2.col1 FROM tab2
----
1292
1674
3068
query I rowsort
SELECT DISTINCT - col1 + col1 * 41 AS col0 FROM tab1
----
1040
400
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-9757
SELECT ALL 27 - col0 DIV - col0 AS col1 FROM tab1
----
28
28
28
skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL 27 - col0 / - col0 AS col1 FROM tab1
----
28
28
28
query I rowsort
SELECT - + 7 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT - col0 + + 79 AS col2 FROM tab1 AS cor0
----
-1
15
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 + CAST ( col0 AS REAL ) * + col0 col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col0 * + col1 - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT col1 + + 56 AS col1 FROM tab0 AS cor0
----
142
147
153
query I rowsort
SELECT DISTINCT + col2 + 15 FROM tab2 AS cor0
----
41
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT ( col2 ) DIV + col2 + + col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9764
SELECT ( col2 ) / + col2 + + col2 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 - + 94 col0 FROM tab0 AS cor0
----
-129
-7392
-886
query I rowsort
SELECT + col2 * ( - ( cor0.col0 ) * col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT tab1.col1 * - 34 + + col0 * col2 * col1 AS col0 FROM tab1
----
3328
36140
99398
onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT DISTINCT tab1.col1 DIV 16 + col2 * col0 AS col0 FROM tab1
----
163
3648
7680
skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT tab1.col1 / 16 + col2 * col0 AS col0 FROM tab1
----
163
3648
7680
query I rowsort
SELECT DISTINCT - col1 + 60 AS col0 FROM tab2
----
1
29
43
query I rowsort
SELECT col1 * - 2 AS col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT - col1 * + 99 FROM tab2
----
-1683
-3069
-5841
query I rowsort
SELECT - col0 + + col1 * ( 26 ) AS col0 FROM tab1 AS cor0
----
196
258
673
query I rowsort
SELECT + col0 * - col0 * + ( cor0.col0 + col2 ) AS col1 FROM tab1 AS cor0
----
-1126400
-495616
-513
query I rowsort
SELECT - + 98 * + col0 AS col0 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT ALL - col0 * col1 + + 95 FROM tab2 AS cor0
----
-122
-1248
-4507
query I rowsort
SELECT DISTINCT - col2 + col1 * 69 AS col2 FROM tab2 AS cor0
----
1135
2112
4045
query I rowsort
SELECT DISTINCT col2 * - col1 - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 58 * 39 * - tab1.col1 AS col2 FROM tab1
----
22620
29406
58812
query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - ( col1 + col2 ) * 21 FROM tab1
----
-1407
-1680
-2289
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT - 63 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9782
SELECT - 63 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9783
SELECT ALL CAST( + 66 AS SIGNED ) AS col0 FROM tab1
----
66
66
66
skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL CAST ( + 66 AS INTEGER ) AS col0 FROM tab1
----
66
66
66
query I rowsort
SELECT + - 25 * cor0.col1 + + cor0.col0 - col2 FROM tab2 AS cor0
----
-1423
-384
-795
query I rowsort
SELECT - 7 + + cor0.col2 * 8 FROM tab2 AS cor0
----
201
209
297
query I rowsort
SELECT col2 + col1 * + 91 AS col0 FROM tab2 AS cor0
----
1585
2848
5395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9788
SELECT + - col1 DIV - col0 + ( col2 * + col1 ) + 19 DIV col0 col1 FROM tab1 cor0
----
1248
1418
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9788
SELECT + - col1 / - col0 + ( col2 * + col1 ) + 19 / col0 col1 FROM tab1 cor0
----
1248
1418
570
query I rowsort
SELECT DISTINCT - 38 * + col0 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT 39 * + col0 - + 77 FROM tab0 AS cor0
----
1288
3394
859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9791
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 73 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 73 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT 65 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9792
SELECT 65 / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT - - cor0.col1 - + col2 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT DISTINCT 75 * cor0.col1 DIV - ( + ( col0 ) ) + col2 AS col1 FROM tab1 AS cor0
----
-596
46
84
skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT 75 * cor0.col1 / - ( + ( col0 ) ) + col2 AS col1 FROM tab1 AS cor0
----
-596
46
84
query I rowsort
SELECT - 88 - + col2 * col1 * - col1 AS col0 FROM tab1 cor0
----
16136
36416
5612
query I rowsort
SELECT col1 * + 54 + - col2 AS col1 FROM tab2 AS cor0
----
1647
3160
880
query I rowsort
SELECT - col0 * 98 + + cor0.col2 FROM tab0 AS cor0
----
-2319
-3429
-8640
query I rowsort
SELECT cor0.col1 * col1 + 38 FROM tab0 AS cor0
----
7434
8319
9447
query I rowsort
SELECT + 35 FROM tab2, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT - col1 + - ( - col1 + col1 ) * col1 * - col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT ALL ( col1 ) DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL ( col1 ) / col0 + col1 AS col2 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT - ( + 3 ) FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT - - 70 * + col0 AS col2 FROM tab2 AS cor0
----
490
5460
5530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9805
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - - col1 * 89 FROM tab0 AS cor0
----
7740
8190
8730
skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - - col1 * 89 FROM tab0 AS cor0
----
7740
8190
8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT DISTINCT + - col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + - col2 / - col0 AS col0 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT ALL ( col0 ) DIV col2 - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL ( col0 ) / col2 - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col2 + + 67 AS col0 FROM tab0 AS cor0
----
164
2905
7529
query I rowsort
SELECT - 40 * col1 AS col0 FROM tab0 AS cor0
----
-3440
-3640
-3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 4 * + ( + col2 ) * + 89 + - col2 AS col2 FROM tab2 AS cor0
----
13490
9230
9585
query I rowsort
SELECT ALL - - ( + col0 ) - + cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab1.col2 - + 42 FROM tab1, tab2, tab0 AS cor0
----
-138
-96
-99
query I rowsort
SELECT tab0.col1 * 72 FROM tab0
----
6192
6552
6984
query I rowsort
SELECT ALL col1 * col0 + ( - col2 ) AS col2 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2 AS cor0
----
36
query I rowsort
SELECT ALL - + 77 AS col2 FROM tab1 AS cor0
----
-77
-77
-77
query I rowsort
SELECT 50 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9819
SELECT - 51 + - col0 * col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9819
SELECT - 51 + - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 93 ) col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT - col2 + 95 FROM tab2 AS cor0
----
57
68
69
query I rowsort
SELECT + col2 * - 56 + - tab0.col2 FROM tab0
----
-1881
-4674
-57
query I rowsort
SELECT DISTINCT 51 * col1 - col1 AS col0 FROM tab2
----
1550
2950
850
query I rowsort
SELECT col1 - col1 * col1 FROM tab1
----
-156
-650
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT ALL col2 + CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL col2 + CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 * + 99 * col2 AS col1 FROM tab0 AS cor0
----
-3465
-722502
-78408
query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort
SELECT cor1.col0 + - CAST ( 11 AS REAL ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to ff07da8b8a86e7472a1936303cab1865
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9830
SELECT + col1 * - 18 + + ( + col1 ) + CAST( NULL AS DECIMAL ) 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-9830
SELECT + col1 * - 18 + + ( + col1 ) + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 89 * - col2 - - col1 FROM tab0 AS cor0
----
-2851
-7207
8
query I rowsort
SELECT - ( col2 ) + - 81 FROM tab1 AS cor0
----
-135
-138
-177
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 - - ( col0 ) - + 22 AS col2 FROM tab0 cor0
----
13
2
67
query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - - col0 + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + 33 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-45
-46
26
query I rowsort
SELECT col0 * col1 - ( col1 ) FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + 36 + col1 * col2 FROM tab0 AS cor0
----
133
2874
7498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9840
SELECT DISTINCT col0 + col1 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT col0 + col1 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT ALL + tab0.col1 + col0 DIV - col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + tab0.col1 + col0 / - col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ( cor0.col1 ) * 30 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 014c83c26abd20da9de5ac8894c81835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9843
SELECT ALL + ( - 13 ) / - col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + ( - 13 ) / - col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 64 * col1 + col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT ALL 5 * + col1 - col2 * ( tab2.col2 ) AS col0 FROM tab2
----
-1359
-381
-574
query I rowsort
SELECT + 71 + + col1 FROM tab0
----
157
162
168
query I rowsort
SELECT ( - col0 ) * col2 + + 55 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-12193
-1960
-2112
query I rowsort
SELECT ALL + 27 + + col2 * col2 FROM tab2 AS cor0
----
1471
703
756
query I rowsort
SELECT DISTINCT ( - col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT + ( - 0 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( 75 AS REAL ) FROM tab2
----
101
102
113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL col0 + 89 + + col0 FROM tab2 cor0
----
103
245
247
onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT DISTINCT + col0 DIV 90 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + col0 / 90 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + col1 + + 15 FROM tab0 cor0
----
101
106
112
query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab2 cor0
----
72
query I rowsort
SELECT + ( + cor0.col1 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 51 * tab0.col1 + + col1 * col2 AS col2 FROM tab0
----
-1548
-4850
2821
query I rowsort
SELECT DISTINCT 73 - - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
159
164
170
query I rowsort
SELECT cor0.col0 + + 28 AS col0 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT DISTINCT 40 FROM tab2 cor0
----
40
query I rowsort
SELECT ALL - ( + 51 ) AS col2 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT 98 + tab2.col1 FROM tab2, tab2 AS cor0
----
115
129
157
query I rowsort
SELECT ALL + - 79 * 39 + + col0 + 61 FROM tab2 AS cor0
----
-2941
-2942
-3013
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 47 * col2 - 14 AS col0 FROM tab1
----
-2552
-2693
-4526
query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab1
----
49
query I rowsort
SELECT ALL + col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col0 * col2 * - col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT DISTINCT col2 * + 40 + + col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
1041
1080
1524
skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT col2 * + 40 + + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
1041
1080
1524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9873
SELECT + col2 DIV 24 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9873
SELECT + col2 / 24 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9874
SELECT col0 DIV 25 AS col0 FROM tab1 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-9874
SELECT col0 / 25 AS col0 FROM tab1 AS cor0
----
0
2
3
query I rowsort
SELECT - col1 * 6 AS col0 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT DISTINCT - col2 * + ( + 41 ) AS col1 FROM tab0
----
-1353
-3362
-41
query I rowsort
SELECT - col1 + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-9878
SELECT + 60 + 14 DIV cor0.col0 col0 FROM tab1 AS cor0
----
60
60
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9878
SELECT + 60 + 14 / cor0.col0 col0 FROM tab1 AS cor0
----
60
60
64
query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT ALL col0 * CAST( NULL AS SIGNED ) * + 63 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL col0 * CAST ( NULL AS INTEGER ) * + 63 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT ALL + col1 DIV + col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + col1 / + col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 91 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col2 ) col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col2 - 88 * - 89 AS col0 FROM tab1 cor0
----
7886
7889
7928
query I rowsort
SELECT - - ( 3 ) * - cor0.col0 * + 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 277ad058c12c7a683b5cce8415d45bed
query I rowsort
SELECT ALL - - cor0.col0 * + 6 + + ( cor0.col2 ) AS col0 FROM tab1 cor0
----
441
576
72
query I rowsort
SELECT DISTINCT + col1 + 19 * + col1 + col0 FROM tab0 AS cor0
----
1744
1909
1975
query I rowsort
SELECT col2 + - 94 AS col0 FROM tab0 AS cor0
----
-12
-61
-93
query I rowsort
SELECT - + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT ALL + col1 * + col0 + - ( 24 ) AS col2 FROM tab0
----
2040
3371
8075
query I rowsort
SELECT col0 * col2 - + col1 AS col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - - col0 * + 67 AS col2 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT DISTINCT ( 21 ) AS col0 FROM tab0
----
21
query I rowsort
SELECT DISTINCT 82 * + col2 FROM tab2
----
2132
2214
3116
query I rowsort
SELECT ALL col1 * col1 * col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT + 75 + col1 * col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
1063
3582
402
query I rowsort
SELECT ( - col2 ) * col1 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - 24 + 73 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT - 49 * + col2 FROM tab1
----
-2646
-2793
-4704
query I rowsort
SELECT ALL + col2 * - col2 + - col1 + 34 * col2 FROM tab0
----
-4027
-53
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9902
SELECT CAST( NULL AS SIGNED ) * 58 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9902
SELECT CAST ( NULL AS INTEGER ) * 58 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9903
SELECT ALL CAST( + 19 AS SIGNED ) + col1 FROM tab1
----
29
32
45
skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL CAST ( + 19 AS INTEGER ) + col1 FROM tab1
----
29
32
45
query I rowsort
SELECT + 29 + col0 AS col0 FROM tab2 AS cor0
----
107
108
36
query I rowsort
SELECT - 12 * col0 * 14 FROM tab2 AS cor0
----
-1176
-13104
-13272
query I rowsort
SELECT ( + col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + - 79 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-121186
-51034
-66123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9908
SELECT ALL + + cor0.col0 + col0 / - CAST( NULL AS SIGNED ) 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-9908
SELECT ALL + + cor0.col0 + col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT 77 * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
1872
2730
6942
query I rowsort
SELECT 74 * tab1.col0 + - ( - col1 ) FROM tab1
----
248
4746
5933
query I rowsort
SELECT col0 + col1 + + col0 * + col1 * + col2 FROM tab2
----
119789
51130
5897
query I rowsort
SELECT 83 + + tab0.col2 AS col2 FROM tab0
----
116
165
84
query I rowsort
SELECT DISTINCT - tab0.col0 + - col2 + col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 9 + - tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
-1
-17
-4
query I rowsort
SELECT DISTINCT 21 + col0 AS col2 FROM tab1
----
101
24
85
query I rowsort
SELECT DISTINCT - col0 + - col1 * + ( - 39 * col2 ) FROM tab2 AS cor0
----
25115
32636
59748
query I rowsort
SELECT ALL + col2 + - col0 * + 11 FROM tab0 cor0
----
-231
-384
-897
query I rowsort
SELECT 24 + col0 FROM tab2 AS cor0
----
102
103
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9921
SELECT ALL + + 92 + col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1340
1496
662
skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + + 92 + col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1340
1496
662
onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT + + 42 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9922
SELECT + + 42 / col1 AS col2 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + 92 + + col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT + col0 + col2 * - 97 FROM tab0 AS cor0
----
-3177
-62
-7865
query I rowsort
SELECT + 27 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1561
673
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT + col0 + + col1 DIV col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-9926
SELECT + col0 + + col1 / col0 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - col1 + + col1 * 30 AS col2 FROM tab1 AS cor0
----
290
377
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT ALL col1 + col1 DIV 76 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL col1 + col1 / 76 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT + col0 + cor0.col1 DIV + cor0.col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-9930
SELECT + col0 + cor0.col1 / + cor0.col0 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT ALL col1 + 74 AS col1 FROM tab0 cor0
----
160
165
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT DISTINCT + cor0.col0 DIV - ( - col2 * col2 ) FROM tab0 AS cor0
----
0
35
skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + cor0.col0 / - ( - col2 * col2 ) FROM tab0 AS cor0
----
0
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 20 col2 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + col2 * tab1.col2 + - col1 AS col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab1, tab2, tab1 cor0
----
5
query I rowsort
SELECT + cor0.col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9938
SELECT - + CAST( NULL AS SIGNED ) + 73 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9938
SELECT - + CAST ( NULL AS INTEGER ) + 73 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT ALL + + col2 * col1 * cor0.col1 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
10978
25947
90505
skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + + col2 * col1 * cor0.col1 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
10978
25947
90505
query I rowsort
SELECT DISTINCT col0 + 86 FROM tab0 AS cor0
----
110
121
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) + + col0 - - col0 col0 FROM tab1 cor0
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * col2 + col1 col1 FROM tab2 AS cor0
----
1645
1678
2335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9944
SELECT DISTINCT - ( col1 ) + + col0 - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT - ( col1 ) + + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT col2 * + col0 - cor0.col0 * - col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT ALL + + 7 * col0 + + col0 FROM tab1 AS cor0
----
24
512
640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9947
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - 19 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - 19 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9949
SELECT + - col0 DIV + col2 + col1 AS col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-9949
SELECT + - col0 / + col2 + col1 AS col2 FROM tab1 AS cor0
----
13
26
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT DISTINCT cor0.col0 * - col2 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT cor0.col0 * - col2 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT 91 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT - 48 * + tab1.col2 AS col0 FROM tab1
----
-2592
-2736
-4608
query I rowsort
SELECT DISTINCT + col2 - col2 * col2 * + ( + 2 * - col0 + + col1 ) AS col0 FROM tab2
----
-12366
203642
65598
query I rowsort
SELECT DISTINCT + tab1.col2 * col2 * col0 + + tab1.col1 AS col2 FROM tab1
----
207946
737293
8774
query I rowsort
SELECT ALL - col2 * col0 + - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT + col1 + + col0 * col0 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9957
SELECT ALL col2 DIV col2 + col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL col2 / col2 + col2 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 WHERE NULL NOT IN ( - col1 + col0 * + col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT BETWEEN col2 AND NULL
----
79
17
38
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( tab1.col0 * col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 * - tab2.col1 * tab2.col2 + tab2.col1 * + col2 * + col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col1 * col0 + - col2 * - col0 FROM tab1
----
3008
6640
84
query I rowsort
SELECT col2 + + tab1.col1 + + col1 * - tab1.col2 AS col1 FROM tab1
----
-1139
-1324
-503
onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT col1 DIV - tab2.col1 + + col2 + + col1 * + col0 FROM tab2
----
1380
243
4627
skipif mysql # not compatible
query I rowsort label-9964
SELECT col1 / - tab2.col1 + + col2 + + col1 * + col0 FROM tab2
----
1380
243
4627
query I rowsort
SELECT col0 * col0 + col1 + col0 FROM tab0
----
1357
686
8101
query I rowsort
SELECT DISTINCT tab1.col2 * - col0 * col0 + col1 * + col0 + col0 FROM tab1
----
-232768
-405
-613280
query I rowsort
SELECT ALL - tab0.col2 * - tab0.col0 AS col1 FROM tab0
----
35
7298
792
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * + col2 + col2 ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col1 - + col2 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 * - col1 + ( col0 ) - - col0 AS col0 FROM tab2 AS cor0
----
-1185
-203
-4446
query I rowsort
SELECT + - col2 + col0 * - col0 - col0 * + col0 FROM tab1 cor0
----
-12896
-72
-8249
onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT col0 + col0 * col0 DIV + col1 FROM tab0
----
176
30
47
skipif mysql # not compatible
query I rowsort label-9972
SELECT col0 + col0 * col0 / + col1 FROM tab0
----
176
30
47
query I rowsort
SELECT ALL col1 / col1 FROM tab1 WHERE NOT NULL = + col2
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9975
SELECT ALL cor0.col1 * col0 DIV + col0 AS col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL cor0.col1 * col0 / + col0 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col2 * col0 + + tab0.col2 AS col0 FROM tab0
----
36
7380
825
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN col0 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + + tab0.col1 * + col0 col2 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT col2 + col0 - col2 AS col2 FROM tab1 WHERE NOT NULL = col1 * col2 * col2
----
query I rowsort
SELECT - col0 * + col2 + + col2 FROM tab0 WHERE col1 <> + col1 * - col1
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT ALL + col2 * col2 + tab1.col1 DIV col2 FROM tab1
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + col2 * col2 + tab1.col1 / col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col1 FROM tab2
----
-14
-156
-158
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - + cor0.col1 * col0 > NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT ALL col0 * col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL col0 * col0 / - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 + col1 * - col2 AS col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9987
SELECT DISTINCT + tab0.col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT + col1 * 23 AS col1 FROM tab1
----
230
299
598
query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9990
SELECT DISTINCT - 30 * + tab0.col1 DIV tab0.col1 AS col1 FROM tab0, tab2 cor0
----
-30
skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT - 30 * + tab0.col1 / tab0.col1 AS col1 FROM tab0, tab2 cor0
----
-30
query I rowsort
SELECT - ( - col0 + + col2 ) FROM tab2
----
-20
41
52
query I rowsort
SELECT ( + col0 + col1 ) FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT 70 * col1 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT - + col2 * 79 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT ( - 57 ) FROM tab2
----
-57
-57
-57
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2, tab0 AS cor0
----
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) col2 FROM tab0
----
19
19
19
query I rowsort
SELECT - 91 * + col0 FROM tab0 cor0
----
-2184
-3185
-8099
query I rowsort
SELECT - ( col2 + + ( col2 ) ) AS col1 FROM tab0
----
-164
-2
-66