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)
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + 96 col1 FROM tab2 AS cor0
----
1632
2976
5664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1
SELECT ALL + CAST( col0 AS SIGNED ) - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-1
SELECT ALL + CAST ( col0 AS INTEGER ) - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + - ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + ( 71 ) * + col1 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - 21 - col2 AS col1 FROM tab1 AS cor0
----
-117
-75
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( col1 ) col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + 20 FROM tab1, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT - - 38 * + col0 - + col0 * 33 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT ALL - 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT + 75 + + col0 * - col2 FROM tab1 cor0
----
-3573
-7605
-87
query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0, tab1 AS cor0
----
86
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 9 + + cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6d73e1ff96f6ba5dc39a35c582d75c81
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + - col0 + - col1 + - 73 AS col2 FROM tab1 AS cor0
----
-102
-147
-166
query I rowsort
SELECT DISTINCT - 89 * - col0 AS col2 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT + + 77 AS col0 FROM tab2 cor0
----
77
77
77
query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT ALL + + col2 DIV col2 col0 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + + col2 / col2 col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL + - col1 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT 41 + - col2 * col2 FROM tab2
----
-1403
-635
-688
query I rowsort
SELECT - tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 * - 1 FROM tab2
----
1508
608
810
query I rowsort
SELECT + 77 - - col1 FROM tab0
----
163
168
174
query I rowsort
SELECT - 51 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-77
-78
-89
query I rowsort
SELECT ALL - + col0 + - col0 * - ( col0 ) + col1 FROM tab1 AS cor0
----
32
4042
6333
query I rowsort
SELECT ALL + 18 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-28
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-28
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 * col1 + + ( - col2 ) AS col0 FROM tab2
----
1305
190
4576
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + + col0 col2 FROM tab0 AS cor0
----
119
130
184
query I rowsort
SELECT DISTINCT - 66 * col2 AS col1 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT + col2 + col1 * - 69 AS col1 FROM tab1 AS cor0
----
-1740
-633
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT - - col1 + - col2 DIV + col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-35
SELECT - - col1 + - col2 / + col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT - col1 + 10 FROM tab2
----
-21
-49
-7
query I rowsort
SELECT + col2 + 63 AS col2 FROM tab2
----
101
89
90
query I rowsort
SELECT DISTINCT col0 + col1 * + 44 AS col0 FROM tab2
----
1371
2674
827
query I rowsort
SELECT DISTINCT tab2.col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + tab1.col0 + - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col2 + + tab1.col2 - 69 AS col1 FROM tab1
----
123
39
45
query I rowsort
SELECT DISTINCT col0 + 6 FROM tab0
----
30
41
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + 73 col2 FROM tab1
----
1045
1952
787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 57 - col0 col0 FROM tab2 AS cor0
----
1404
1532
2087
query I rowsort
SELECT DISTINCT - col0 * + 70 + + col1 AS col0 FROM tab0 cor0
----
-1594
-2353
-6139
query I rowsort
SELECT DISTINCT - col1 - 64 * + col0 AS col1 FROM tab1 AS cor0
----
-218
-4106
-5133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * + ( + col0 ) col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT col2 * - 76 FROM tab1 cor0
----
-4104
-4332
-7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 * 68 col0 FROM tab0
----
165
2330
5667
query I rowsort
SELECT col1 + ( + col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - + 54 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-351
-4186
-4228
query I rowsort
SELECT ALL - - 2 - 9 FROM tab1 AS cor0
----
-7
-7
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730
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 DISTINCT + ( col0 ) + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab2 cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col0 ) ) col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-59
SELECT ( col0 ) + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-59
SELECT ( col0 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - 37 ) * - col0 - + col0 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 66 col1 FROM tab0 AS cor0
----
152
157
163
query I rowsort
SELECT ALL - 41 * + cor0.col0 + col2 * col0 FROM tab1 AS cor0
----
1024
39
4400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - 46 * + col0 col2 FROM tab1 AS cor0
----
-132
-2938
-3674
query I rowsort
SELECT ALL + ( col0 ) - col0 * cor0.col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - 17 AS col2 FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - - 8 * + ( - col2 + - 11 ) FROM tab1 AS cor0
----
-520
-544
-856
query I rowsort
SELECT DISTINCT - 23 * col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT DISTINCT + - 48 * cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-198
-3129
-3936
query I rowsort
SELECT DISTINCT col1 * + ( cor0.col1 * 76 ) FROM tab2 AS cor0
----
21964
264556
73036
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-71
SELECT tab1.col2 - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-71
SELECT tab1.col2 - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL ( tab2.col2 ) * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 67 * 44 * col1 FROM tab0 AS cor0
----
-253528
-268268
-285956
query I rowsort
SELECT - cor0.col0 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + - col0 * + col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - ( - cor0.col0 ) * 97 + col1 + - col0 FROM tab1 AS cor0
----
314
6154
7693
query I rowsort
SELECT col2 * - col2 * + ( - 67 ) FROM tab0 AS cor0
----
450508
67
72963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-78
SELECT col1 * - col1 + + CAST( 43 AS SIGNED ) FROM tab2 AS cor0
----
-246
-3438
-918
skipif mysql # not compatible
query I rowsort label-78
SELECT col1 * - col1 + + CAST ( 43 AS INTEGER ) FROM tab2 AS cor0
----
-246
-3438
-918
query I rowsort
SELECT - 25 * 4 AS col1 FROM tab2
----
-100
-100
-100
query I rowsort
SELECT col2 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col2 * - col0 + 97 FROM tab1 cor0
----
259
3745
7777
onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT + 40 DIV col0 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
91
skipif mysql # not compatible
query I rowsort label-82
SELECT + 40 / col0 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
91
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col1 * cor0.col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT + + col0 + ( - col2 ) * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col2 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col2 * 14 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( ( col1 ) AS REAL ) FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT col2 + + 48 * col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
196665
307296
486
query I rowsort
SELECT 38 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL + col2 + - col0 + col2 * - col0 FROM tab0
----
-69
-7305
-783
query I rowsort
SELECT ALL col2 * + 49 + 85 + - col1 AS col2 FROM tab2
----
1300
1377
1930
query I rowsort
SELECT ( - 9 ) * col2 * col1 FROM tab2 AS cor0
----
-13806
-5814
-7533
query I rowsort
SELECT DISTINCT + 59 + 96 AS col1 FROM tab1, tab0 cor0
----
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT - - 22 * col1 DIV - col1 FROM tab2 AS cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-98
SELECT - - 22 * col1 / - col1 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + 74 * + col0 AS col1 FROM tab0 AS cor0
----
1776
2590
6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT + ( + col1 ) + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-100
SELECT + ( + col1 ) + col0 / col1 AS col0 FROM tab2 AS cor0
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-101
SELECT col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-101
SELECT col2 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT 61 + col1 * - 40 AS col1 FROM tab1 AS cor0
----
-339
-459
-979
query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT col1 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-104
SELECT col1 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - col0 + - col0 * 35 FROM tab2 cor0
----
-252
-2808
-2844
query I rowsort
SELECT ALL - col0 * + col0 * col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT - col2 + 26 FROM tab0 AS cor0
----
-56
-7
25
query I rowsort
SELECT ALL - col2 + + 49 AS col1 FROM tab0 cor0
----
-33
16
48
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1 cor0
----
17
31
59
query I rowsort
SELECT + 78 * + tab0.col1 + - col1 FROM tab0
----
6622
7007
7469
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-111
SELECT CAST( col0 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-111
SELECT CAST ( col0 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT cor0.col1 - 27 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dd529c0c7384cf21d1d1da691c4b1896
onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT - 19 DIV col2 FROM tab0 AS cor0
----
-19
0
0
skipif mysql # not compatible
query I rowsort label-114
SELECT - 19 / col2 FROM tab0 AS cor0
----
-19
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT - 92 * 78 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1025
-90
-92
skipif mysql # not compatible
query I rowsort label-115
SELECT - 92 * 78 / + col0 AS col1 FROM tab2 AS cor0
----
-1025
-90
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-116
SELECT CAST( tab1.col0 + col0 AS SIGNED ) FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-116
SELECT CAST ( tab1.col0 + col0 AS INTEGER ) FROM tab1
----
128
160
6
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT + + col0 DIV + col1 + 56 * col0 FROM tab2 AS cor0
----
392
4369
4428
skipif mysql # not compatible
query I rowsort label-118
SELECT + + col0 / + col1 + 56 * col0 FROM tab2 AS cor0
----
392
4369
4428
query I rowsort
SELECT ALL col0 * - col0 + + 96 FROM tab1 AS cor0
----
-4000
-6304
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT DISTINCT 62 + col0 DIV col0 FROM tab1 cor0
----
63
skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT 62 + col0 / col0 FROM tab1 cor0
----
63
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT 56 - + 33 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col2 FROM tab1
----
54
57
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29
query I rowsort
SELECT ALL 92 + col1 AS col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT - + col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - + 6 + col2 AS col2 FROM tab0 AS cor0
----
-5
27
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT DISTINCT - + cor0.col1 DIV cor0.col2 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - + cor0.col1 / cor0.col2 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
84
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-129
SELECT ALL + col1 + col0 * CAST( - 89 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-592
-6883
-7014
skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + col1 + col0 * CAST ( - 89 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-592
-6883
-7014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + - 31 AS col2 FROM tab1 AS cor0
----
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-132
SELECT ALL col0 + - ( - 74 * - col0 ) - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-132
SELECT ALL col0 + - ( - 74 * - col0 ) - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab1.col0 - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT 54 + 96 AS col0 FROM tab0, tab1 AS cor0
----
150
query I rowsort
SELECT col2 * ( + col0 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-136
SELECT col2 * CAST( + 10 AS SIGNED ) FROM tab1 AS cor0
----
540
570
960
skipif mysql # not compatible
query I rowsort label-136
SELECT col2 * CAST ( + 10 AS INTEGER ) FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT ALL 2 * - col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 91 AS REAL ) FROM tab1 AS cor0
----
91
query I rowsort
SELECT ALL + ( + col0 ) + - col0 * + 7 FROM tab2 AS cor0
----
-42
-468
-474
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 43 * col2 col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * 69 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT - + 18 * col1 + col1 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT + col1 * 90 * cor0.col2 FROM tab2 AS cor0
----
138060
58140
75330
query I rowsort
SELECT + col1 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL - + ( - col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 * col0 + + col1 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab0, tab2 AS cor0
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + 83 - col2 FROM tab1 AS cor0
----
-13
26
29
query I rowsort
SELECT DISTINCT + 29 + col0 FROM tab0 AS cor0
----
118
53
64
query I rowsort
SELECT DISTINCT 5 * + 46 - col2 FROM tab0 AS cor0
----
148
197
229
query I rowsort
SELECT DISTINCT - 33 + col1 FROM tab1 AS cor0
----
-20
-23
-7
query I rowsort
SELECT ALL ( + tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT col2 + - 75 FROM tab1 AS cor0
----
-18
-21
21
query I rowsort
SELECT ALL col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT + col1 * 4 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT ALL col1 + tab2.col0 * col2 + + 17 FROM tab2
----
2104
237
3036
query I rowsort
SELECT - ( cor0.col0 ) * - col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - 73 + + col1 FROM tab1 AS cor0
----
83
86
99
query I rowsort
SELECT - col0 * + col0 + - col0 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT ALL + col2 * - 44 + + cor0.col1 FROM tab1 AS cor0
----
-2350
-2498
-4211
query I rowsort
SELECT 0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 95 * - 36 AS col0 FROM tab0, tab0 AS cor0
----
-3420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 + col0 col1 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT DISTINCT - - 60 * col0 FROM tab1 AS cor0
----
180
3840
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT DISTINCT + + col1 + + col2 DIV 77 + + col1 AS col0 FROM tab0 AS cor0
----
172
183
194
skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT + + col1 + + col2 / 77 + + col1 AS col0 FROM tab0 AS cor0
----
172
183
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT ALL + ( col1 ) * ( col1 ) + col0 DIV + col2 FROM tab1 AS cor0
----
101
169
676
skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + ( col1 ) * ( col1 ) + col0 / + col2 FROM tab1 AS cor0
----
101
169
676
query I rowsort
SELECT ALL - 97 * col1 * cor0.col0 + 46 * col2 FROM tab2 cor0
----
-128523
-19807
-445198
query I rowsort
SELECT 7 + cor0.col2 AS col1 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT DISTINCT - - 43 * col1 AS col2 FROM tab2 AS cor0
----
1333
2537
731
query I rowsort
SELECT DISTINCT - - col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + - 33 * col2 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT ALL - + 70 + + col1 AS col0 FROM tab1 AS cor0
----
-44
-57
-60
query I rowsort
SELECT ( col1 + col2 ) AS col0 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-179
SELECT ALL + CAST( NULL AS SIGNED ) * 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + CAST ( NULL AS INTEGER ) * 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab1.col1 * col2 + - col1 * col1 + tab1.col1 * - col0 AS col0 FROM tab1
----
-170
39
650
query I rowsort
SELECT ALL + cor0.col0 * - col1 + ( + 85 ) * + col1 FROM tab0 AS cor0
----
-364
4850
5246
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-183
SELECT col2 * - col0 + - CAST( NULL AS SIGNED ) + 12 * col0 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-183
SELECT col2 * - col0 + - CAST ( NULL AS INTEGER ) + 12 * col0 * col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + tab2.col2 col2 FROM tab2
----
66
67
78
query I rowsort
SELECT DISTINCT - 10 * + col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT ALL + col1 + col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT 27 - - col2 FROM tab2 AS cor0
----
53
54
65
query I rowsort
SELECT + 86 AS col1 FROM tab2 cor0
----
86
86
86
query I rowsort
SELECT DISTINCT 67 * col0 + 83 FROM tab0 AS cor0
----
1691
2428
6046
query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 * + col0 * col0 + col1 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT + col0 - - col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - ( + col1 ) - - 84 * col1 FROM tab2 AS cor0
----
1411
2573
4897
onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT - col1 DIV tab1.col0 AS col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-197
SELECT - col1 / tab1.col0 AS col2 FROM tab1
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT 33 * col1 DIV 47 AS col2 FROM tab0
----
60
63
68
skipif mysql # not compatible
query I rowsort label-198
SELECT 33 * col1 / 47 AS col2 FROM tab0
----
60
63
68
query I rowsort
SELECT DISTINCT cor0.col1 + tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
9 values hashing to 07a9fa96c94913f866af2be611e89dab
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT col0 DIV + tab1.col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-200
SELECT col0 / + tab1.col1 FROM tab1
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT 76 + tab1.col1 DIV CAST( + 8 AS SIGNED ) AS col0 FROM tab1
----
77
77
79
skipif mysql # not compatible
query I rowsort label-201
SELECT 76 + tab1.col1 / CAST ( + 8 AS INTEGER ) AS col0 FROM tab1
----
77
77
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 * col2 col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT + col0 DIV col0 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-203
SELECT + col0 / col0 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL + + 36 + col0 * 48 * + 39 FROM tab1 AS cor0
----
119844
149796
5652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 + cor0.col1 col0 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT col1 + 71 AS col1 FROM tab1 AS cor0
----
81
84
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + ( col0 + col1 ) col1 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT - - col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT + col0 DIV ( col1 ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-209
SELECT + col0 / ( col1 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * + col1 + 85 AS col1 FROM tab1 AS cor0
----
-1163
-1319
-485
query I rowsort
SELECT + - col0 - 96 AS col1 FROM tab1 AS cor0
----
-160
-176
-99
query I rowsort
SELECT - cor0.col2 + ( + col1 ) FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL col0 * + 66 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT 99 * col0 * + cor0.col1 FROM tab0 AS cor0
----
204336
336105
801801
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT - col1 DIV - ( + col2 + col1 * ( - col2 ) ) FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-215
SELECT - col1 / - ( + col2 + col1 * ( - col2 ) ) FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT 64 * 70 FROM tab2 AS cor0
----
4480
4480
4480
onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT + + col0 * col0 DIV col2 + col0 * - 36 FROM tab0 AS cor0
----
-3108
-35
-847
skipif mysql # not compatible
query I rowsort label-217
SELECT + + col0 * col0 / col2 + col0 * - 36 FROM tab0 AS cor0
----
-3108
-35
-847
query I rowsort
SELECT 97 FROM tab1 cor0
----
97
97
97
query I rowsort
SELECT ALL - - col0 * cor0.col0 - col2 * - col1 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + - 13 * 8 * col2 FROM tab2 AS cor0
----
-2704
-2808
-3952
query I rowsort
SELECT - col1 + col1 * 36 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT DISTINCT col1 * col2 + 38 AS col1 FROM tab0
----
135
2876
7500
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-224
SELECT + col2 * - CAST( col1 + + col2 AS SIGNED ) FROM tab1
----
-10464
-3819
-4320
skipif mysql # not compatible
query I rowsort label-224
SELECT + col2 * - CAST ( col1 + + col2 AS INTEGER ) FROM tab1
----
-10464
-3819
-4320
query I rowsort
SELECT - tab1.col0 * ( + col0 ) + - col1 AS col0 FROM tab1
----
-35
-4106
-6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-226
SELECT - col0 * - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-226
SELECT - col0 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col2 + col2 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col1 + ( col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT + cor0.col2 * 37 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1849b7229632196896d705b46c8f5cc9
query I rowsort
SELECT col2 - - ( + tab1.col1 ) * - col2 AS col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - ( 42 ) FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT 25 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT - - 15 + - col2 AS col0 FROM tab1 cor0
----
-39
-42
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT DISTINCT - 63 * col2 DIV col2 + - col2 * - ( - col1 ) FROM tab0 AS cor0
----
-160
-2901
-7525
skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - 63 * col2 / col2 + - col2 * - ( - col1 ) FROM tab0 AS cor0
----
-160
-2901
-7525
query I rowsort
SELECT ALL - + cor0.col1 * col0 - - col2 * cor0.col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT ( 56 ) FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT 8 + col1 * col0 AS col2 FROM tab2
----
1351
225
4610
query I rowsort
SELECT ALL - ( col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col2 + - col1 * + 28 * col1 col1 FROM tab0 AS cor0
----
-207022
-231704
-263450
query I rowsort
SELECT DISTINCT + col0 * 77 + - col1 FROM tab2 AS cor0
----
508
5947
6066
query I rowsort
SELECT DISTINCT - cor0.col0 + + ( + col2 ) * col0 + col1 * col1 * col0 FROM tab2 cor0
----
25754
273468
6909
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-243
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col0 + 6 * cor0.col0 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT ( - 25 ) DIV + col2 FROM tab0 cor0
----
-25
0
0
skipif mysql # not compatible
query I rowsort label-245
SELECT ( - 25 ) / + col2 FROM tab0 cor0
----
-25
0
0
query I rowsort
SELECT ALL - col0 * + 79 AS col1 FROM tab2 AS cor0
----
-553
-6162
-6241
query I rowsort
SELECT DISTINCT - + 51 + - col1 AS col1 FROM tab0 AS cor0
----
-137
-142
-148
query I rowsort
SELECT ALL - - col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 8 + + col2 * 91 FROM tab1 AS cor0
----
4922
5195
8744
query I rowsort
SELECT + cor0.col1 * col0 - + col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col1 * col1 + + ( col1 ) AS col2 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT - + ( - col1 ) * + col2 + + 22 AS col1 FROM tab1 AS cor0
----
1270
1426
592
query I rowsort
SELECT ALL - 83 + - col1 - + col0 FROM tab0
----
-193
-215
-263
query I rowsort
SELECT + col0 + + col0 * - ( + 25 + col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-103350
-189047
-9821
query I rowsort
SELECT ALL 29 * - cor0.col1 * - col1 FROM tab1 AS cor0
----
19604
2900
4901
query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT - - col1 DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-258
SELECT - - col1 / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - cor0.col1 - - 94 FROM tab0, tab2 cor0
----
9 values hashing to be0c24323cefe4fd495a09f61ba20d84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 21 col2 FROM tab2 AS cor0
----
546
567
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT DISTINCT - + col1 DIV - cor0.col2 AS col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - + col1 / - cor0.col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - tab2.col1 - 31 FROM tab2, tab2 AS cor0
----
-48
-62
-90
query I rowsort
SELECT 80 * + col0 FROM tab1
----
240
5120
6400
query I rowsort
SELECT ( col1 ) * 34 FROM tab1
----
340
442
884
onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT col1 DIV - col2 - - 1 FROM tab0 cor0
----
-1
-96
0
skipif mysql # not compatible
query I rowsort label-266
SELECT col1 / - col2 - - 1 FROM tab0 cor0
----
-1
-96
0
query I rowsort
SELECT DISTINCT - col0 + + 17 FROM tab2 AS cor0
----
-61
-62
10
query I rowsort
SELECT + col2 + col0 * + 81 FROM tab1 AS cor0
----
297
5241
6576
query I rowsort
SELECT ALL - col1 * - 67 * - ( + col2 * col1 ) FROM tab0 AS cor0
----
-16352556
-45495814
-630403
query I rowsort
SELECT + col2 * + ( - 86 * + cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-243982
-641641
-8245
query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 * - 55 + + col0 FROM tab2 AS cor0
----
1014
1712
3323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 29 * + col2 col0 FROM tab1 AS cor0
----
-267264
-84564
-94221
query I rowsort
SELECT ALL - col0 + 25 FROM tab0 AS cor0
----
-10
-64
1
query I rowsort
SELECT DISTINCT col2 + - ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col1 * ( + col1 * + col0 ) FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT + col2 + - col0 * 21 AS col2 FROM tab1 AS cor0
----
-1287
-1584
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT col1 DIV - col0 col0 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-279
SELECT col1 / - col0 col0 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL ( col0 ) * tab0.col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col2 * + col0 + col1 * - tab1.col2 FROM tab1
----
-1242
3078
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 * + col0 - - col0 col0 FROM tab0
----
-16109
-4104
-6755
onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT - cor0.col0 + - 39 * col2 DIV - col2 FROM tab1 AS cor0
----
-25
-41
36
skipif mysql # not compatible
query I rowsort label-284
SELECT - cor0.col0 + - 39 * col2 / - col2 FROM tab1 AS cor0
----
-25
-41
36
query I rowsort
SELECT DISTINCT + - col0 * + ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - col0 - - cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col0 * - 97 AS col1 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - col2 + - ( + col2 ) * col2 + col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + 37 * - 77 * - col0 AS col2 FROM tab1 AS cor0
----
182336
227920
8547
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT ALL - col0 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - col0 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT + col1 DIV - col1 + + col2 col2 FROM tab1
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-292
SELECT + col1 / - col1 + + col2 col2 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT - col1 + 86 AS col1 FROM tab0
----
-11
-5
0
query I rowsort
SELECT - 51 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT - col2 DIV + 71 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-295
SELECT - col2 / + 71 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL - col2 + + ( col1 ) AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT 84 + col0 + 25 FROM tab0 AS cor0
----
133
144
198
query I rowsort
SELECT + 88 AS col0 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT ALL - col1 + col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-193
-2061
-2981
query I rowsort
SELECT DISTINCT - - 16 AS col1 FROM tab0 AS cor0
----
16
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * 30 AS col0 FROM tab2 cor0
----
1770
510
930
query I rowsort
SELECT 18 - col1 FROM tab1
----
-8
5
8
query I rowsort
SELECT ALL - 13 * - col2 AS col2 FROM tab0
----
1066
13
429
query I rowsort
SELECT ALL - 87 * col0 + 5 * - tab0.col2 - col0 * col0 FROM tab0
----
-16074
-2829
-4275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col2 FROM tab0
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + col1 col2 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT DISTINCT + - 42 * col0 FROM tab0 AS cor0
----
-1008
-1470
-3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT - + 14 DIV - col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-308
SELECT - + 14 / - col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT col2 + col0 * 24 AS col2 FROM tab0
----
2218
609
841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - ( - col2 ) col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 + - col0 * ( + col2 ) FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT ALL col2 * 75 + - col2 DIV - CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab2
----
1950
2025
2850
skipif mysql # not compatible
query I rowsort label-313
SELECT ALL col2 * 75 + - col2 / - CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab2
----
1950
2025
2850
query I rowsort
SELECT ALL + ( - col1 ) - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 AS cor0
----
-57
query I rowsort
SELECT + 45 - 10 * col1 FROM tab2 AS cor0
----
-125
-265
-545
query I rowsort
SELECT ALL + col2 * 17 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1609
2672
996
query I rowsort
SELECT ALL + 7 * col1 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT col1 + - col0 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT ALL - CAST( NULL AS DECIMAL ) * - 45 * - col2 + 91 + + 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - CAST ( NULL AS REAL ) * - 45 * - col2 + 91 + + 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 52 + col1 * col2 * col1 FROM tab2 AS cor0
----
11034
25999
90558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-322
SELECT + ( - ( col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-322
SELECT + ( - ( col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT DISTINCT - cor0.col0 DIV cor0.col1 + col2 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - cor0.col0 / cor0.col1 + col2 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT col1 + + 67 * cor0.col1 FROM tab1 cor0
----
1768
680
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + col0 col0 FROM tab1 AS cor0
----
153
169
92
query I rowsort
SELECT ALL - 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT - cor0.col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col1 + + col1 * col2 * 23 FROM tab2
----
14875
19282
35341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 + tab2.col1 ) * 40 col0 FROM tab2
----
1360
2480
4720
query I rowsort
SELECT ALL + - cor0.col0 * + 14 + col0 AS col0 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-334
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) * - 45 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-334
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) * - 45 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-335
SELECT DISTINCT col2 * + CAST( - col2 AS SIGNED ) FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT col2 * + CAST ( - col2 AS INTEGER ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + + col1 + col0 * - col2 AS col2 FROM tab2 cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT + col1 + - 67 * col0 AS col2 FROM tab1 AS cor0
----
-175
-4278
-5347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 * 50 FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT - 42 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT ALL + col2 * - tab1.col0 * col2 FROM tab1
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT - 3 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-344
SELECT - 3 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT - + col0 DIV 31 AS col2 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-345
SELECT - + col0 / 31 AS col2 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-346
SELECT DISTINCT + CAST( - 36 AS SIGNED ) FROM tab0, tab1 cor0
----
-36
skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + CAST ( - 36 AS INTEGER ) FROM tab0, tab1 cor0
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-347
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-347
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT 79 DIV col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT 79 / col1 FROM tab2
----
1
2
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-349
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-349
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 * col0 + + col0 * + col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT ALL - col2 * 24 AS col2 FROM tab1
----
-1296
-1368
-2304
onlyif mysql # use DIV operator for integer division
query I rowsort label-352
SELECT - 75 DIV - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif mysql # not compatible
query I rowsort label-352
SELECT - 75 / - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col2 FROM tab2
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-354
SELECT - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-354
SELECT - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-355
SELECT - CAST( 12 AS SIGNED ) AS col1 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
skipif mysql # not compatible
query I rowsort label-355
SELECT - CAST ( 12 AS INTEGER ) AS col1 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT - col1 * + col2 + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT 73 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT DISTINCT + col2 * - col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - col2 * col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 + 39 FROM tab0 cor0
----
128
63
74
query I rowsort
SELECT - - 75 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0813b97ccf3422bb1f9b85c429e9bf44
onlyif mysql # use DIV operator for integer division
query I rowsort label-362
SELECT - cor0.col0 DIV + 46 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-362
SELECT - cor0.col0 / + 46 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + - col0 + + 35 * - col1 AS col1 FROM tab0 cor0
----
-3034
-3274
-3430
query I rowsort
SELECT + tab0.col2 * + col0 * + col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab1
----
19
query I rowsort
SELECT DISTINCT - col0 * - ( 62 ) + + col0 + 46 AS col2 FROM tab2 cor0
----
487
4960
5023
query I rowsort
SELECT + col2 + + 37 AS col2 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT ALL + cor0.col0 + + 78 AS col2 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT - col0 + 42 FROM tab0 cor0
----
-47
18
7
query I rowsort
SELECT DISTINCT col1 + ( + col2 + col0 ) * - cor0.col1 * col0 AS col1 FROM tab2 cor0
----
-157114
-478549
-7347
query I rowsort
SELECT DISTINCT - col1 * 76 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-120
-1898
52
query I rowsort
SELECT ALL col0 + - 97 * - cor0.col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
1454
5528
9347
query I rowsort
SELECT + col1 + + 89 FROM tab2 AS cor0
----
106
120
148
onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT ALL - col1 DIV - 93 + - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - col1 / - 93 + - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 - - col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL + col0 * - col0 - - ( col2 * + col1 ) AS col2 FROM tab0
----
-1128
-459
2262
query I rowsort
SELECT ALL col1 - - col1 * - col1 * - 67 AS col0 FROM tab2
----
19380
233286
64418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 13 col1 FROM tab0
----
-73
-78
-84
query I rowsort
SELECT col0 + col0 + + col2 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT - - col2 * col0 + col2 AS col1 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT ALL - cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col1 + - col0 * col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT col1 + + tab0.col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - tab0.col2 * col1 - col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT + col2 + col2 * tab2.col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL + col1 - + col0 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT - col0 + col1 + col2 DIV + col1 AS col1 FROM tab2
----
-19
-60
24
skipif mysql # not compatible
query I rowsort label-388
SELECT - col0 + col1 + col2 / + col1 AS col1 FROM tab2
----
-19
-60
24
query I rowsort
SELECT tab1.col2 * + col2 AS col2 FROM tab1
----
2916
3249
9216
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col2 + - col0 )
----
query I rowsort
SELECT col1 * + col1 + tab1.col0 + col0 FROM tab1
----
228
329
682
query I rowsort
SELECT 95 AS col0 FROM tab0 cor0
----
95
95
95
query I rowsort
SELECT 19 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT 2 + col2 AS col1 FROM tab1 cor0
----
56
59
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT ALL + - col0 * col1 * - 31 FROM tab1 AS cor0
----
19840
2418
32240
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 + + cor0.col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 AS cor0
----
83
query I rowsort
SELECT ALL - col1 * - col1 * 58 FROM tab1
----
39208
5800
9802
query I rowsort
SELECT - - 50 + col0 AS col1 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT - cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT DISTINCT col0 * col0 DIV + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
66
71
skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT col0 * col0 / + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
66
71
query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT 54 * col2 FROM tab2 AS cor0
----
1404
1458
2052
query I rowsort
SELECT DISTINCT - 92 + + col2 AS col0 FROM tab0 AS cor0
----
-10
-59
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT ALL - + 29 DIV - col0 - CAST( 41 AS SIGNED ) DIV + cor0.col0 col1 FROM tab1 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - + 29 / - col0 - CAST ( 41 AS INTEGER ) / + cor0.col0 col1 FROM tab1 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL - ( + col2 ) + + col2 - col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL col0 * 20 * col1 FROM tab1 AS cor0
----
12800
1560
20800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT ALL + col0 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + col0 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT ( - col1 ) * 8 DIV - col1 FROM tab1
----
8
8
8
skipif mysql # not compatible
query I rowsort label-412
SELECT ( - col1 ) * 8 / - col1 FROM tab1
----
8
8
8
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab2 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT col2 * col2 - ( - 3 ) FROM tab0
----
1092
4
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 81 * col0 + + col2 col2 FROM tab1 cor0
----
297
5241
6576
query I rowsort
SELECT DISTINCT 69 FROM tab2, tab1 AS cor0
----
69
query I rowsort
SELECT + 72 + 94 FROM tab0 AS cor0
----
166
166
166
query I rowsort
SELECT ALL + 98 * + col2 FROM tab2 AS cor0
----
2548
2646
3724
onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT + - col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-420
SELECT + - col1 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 57 + + col2 AS col0 FROM tab0 AS cor0
----
139
58
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT ALL + tab0.col0 DIV - col0 col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + tab0.col0 / - col0 col2 FROM tab0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 * + 15 col0 FROM tab0 AS cor0
----
-990
-990
-990
query I rowsort
SELECT ALL 1 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-426
SELECT ALL - col1 DIV 34 AS col2 FROM tab0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-426
SELECT ALL - col1 / 34 AS col2 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT + col0 + tab1.col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT col0 * 41 AS col0 FROM tab2
----
287
3198
3239
query I rowsort
SELECT - 4 + col1 AS col0 FROM tab1
----
22
6
9
query I rowsort
SELECT - col0 * col2 + - col1 * col2 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT - - col2 * + col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL + col2 - + col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + - col1 * + col0 * col0 FROM tab2 AS cor0
----
-112338
-1568
-365040
onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT col1 + + tab2.col2 DIV col1 AS col0 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-435
SELECT col1 + + tab2.col2 / col1 AS col0 FROM tab2
----
19
31
59
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - - col1 - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - + col0 * col1 - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col0 * + col1 - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT tab1.col1 * - ( + tab1.col2 ) AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - 22 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - ( 13 ) * - col2 FROM tab2
----
338
351
494
query I rowsort
SELECT cor1.col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT 42 * + 68 * col1 + col1 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
110760
34260
53352
query I rowsort
SELECT + - ( + col2 ) * col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - + 62 * - cor0.col2 + + col1 * col1 + - col2 * - col0 FROM tab0 AS cor0
----
10234
20663
9506
query I rowsort
SELECT DISTINCT col1 * - ( col2 + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT + 44 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL + + col1 + col0 + cor0.col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT ALL cor0.col2 * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col0 + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + 48 - + col0 AS col2 FROM tab2 AS cor0
----
-30
-31
41
query I rowsort
SELECT 6 * col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + - 72 * - cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
169
2462
5995
query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab2 AS cor0
----
24
query I rowsort
SELECT ALL - - 19 * col2 + - col1 FROM tab2 AS cor0
----
435
482
705
query I rowsort
SELECT - + 23 AS col1 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) AS col1 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-464
SELECT CAST( + 16 * + col2 AS SIGNED ) + - col2 * col2 AS col2 FROM tab1
----
-2052
-2337
-7680
skipif mysql # not compatible
query I rowsort label-464
SELECT CAST ( + 16 * + col2 AS INTEGER ) + - col2 * col2 AS col2 FROM tab1
----
-2052
-2337
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * + col1 col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + ( col0 * + col0 + - col2 ) AS col2 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - col2 * + col0 * col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - col2 * col1 * col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT ALL + col1 / col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1 * col0
----
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col0 IN ( - col2 / - col0 + + col1 )
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col2 + col0 * col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT col1 - col1 * + col1 FROM tab0
----
-7310
-8190
-9312
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 + col0 * col1 * col2 FROM tab2
----
119678
51072
5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col2 col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col2 * col2 - - col1 AS col0 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT + cor0.col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT col1 + - col2 + col2 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT + col0 DIV tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-480
SELECT + col0 / tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT - col0 + col0 * + col1 + + col0 * tab1.col0 AS col0 FROM tab1
----
4672
7360
84
query I rowsort
SELECT col1 + tab1.col1 + + tab1.col1 * - col0 AS col1 FROM tab1
----
-1014
-26
-620
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 AS col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT col1 * - col1 + - col0 AS col1 FROM tab1
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT - col2 DIV - col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-485
SELECT - col2 / - col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT - col0 * - col0 * + col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + col2 + col1 + col1 AS col2 FROM tab2
----
144
72
89
query I rowsort
SELECT DISTINCT col1 + col1 * - tab0.col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT + tab0.col1 * col1 AS col1 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT col2 * col0 * col1 + + col2 DIV - col0 + col1 FROM tab0 AS cor0
----
3492
664209
68197
skipif mysql # not compatible
query I rowsort label-492
SELECT col2 * col0 * col1 + + col2 / - col0 + col1 FROM tab0 AS cor0
----
3492
664209
68197
query I rowsort
SELECT - cor0.col1 + - col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2165
-227
-3098
onlyif mysql # use DIV operator for integer division
query I rowsort label-494
SELECT - col1 DIV col2 + cor0.col0 + + cor0.col1 FROM tab0 cor0
----
108
179
35
skipif mysql # not compatible
query I rowsort label-494
SELECT - col1 / col2 + cor0.col0 + + cor0.col1 FROM tab0 cor0
----
108
179
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT ALL + col2 * - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + col2 * - col1 / col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 * - col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - 42 * cor0.col1 * + col0 FROM tab0 AS cor0
----
-142590
-340158
-86688
query I rowsort
SELECT ALL - ( 67 ) AS col0 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT + - col0 * + 74 AS col0 FROM tab2 AS cor0
----
-518
-5772
-5846
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT cor0.col0 * ( 89 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
2136
3115
7921
query I rowsort
SELECT - 2 * + 62 + + col2 AS col0 FROM tab0 AS cor0
----
-123
-42
-91
query I rowsort
SELECT - col0 * + col1 * - col1 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT 27 + col2 * col0 FROM tab2 AS cor0
----
2055
216
3029
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - + col0 + 2 AS col1 FROM tab2 AS cor0
----
-5
-76
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT CAST( NULL AS DECIMAL ) / - col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-509
SELECT CAST ( NULL AS REAL ) / - col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2 cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 * col2 * - 8 + - col0 AS col1 FROM tab2 AS cor0
----
-1519
-16302
-24095
query I rowsort
SELECT ALL + col2 * + col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * - col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 71 + + col2 AS col1 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT DISTINCT + col2 * + col2 - col1 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT - + 55 - + col0 FROM tab1 AS cor0
----
-119
-135
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT ALL ( - col0 ) - col0 DIV + ( + tab1.col1 ) AS col2 FROM tab1
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-518
SELECT ALL ( - col0 ) - col0 / + ( + tab1.col1 ) AS col2 FROM tab1
----
-3
-70
-86
query I rowsort
SELECT ALL ( + col2 ) - tab2.col2 * col2 * col0 AS col2 FROM tab2
----
-114038
-5076
-52702
query I rowsort
SELECT DISTINCT tab0.col1 - 80 * col0 AS col2 FROM tab0
----
-1834
-2703
-7029
onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT ALL - col0 + - 75 DIV + col2 - - 73 * - col0 AS col0 FROM tab1
----
-223
-4737
-5920
skipif mysql # not compatible
query I rowsort label-521
SELECT ALL - col0 + - 75 / + col2 - - 73 * - col0 AS col0 FROM tab1
----
-223
-4737
-5920
query I rowsort
SELECT ALL tab2.col2 - + 94 AS col0 FROM tab2
----
-56
-67
-68
query I rowsort
SELECT DISTINCT + + col0 * ( - 56 ) + - cor0.col1 FROM tab0 AS cor0
----
-1430
-2057
-5075
query I rowsort
SELECT ALL - + col2 + - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 40 * ( + col0 ) col0 FROM tab0 AS cor0
----
-1303
-3469
-874
query I rowsort
SELECT - col0 + 33 AS col1 FROM tab1 AS cor0
----
-31
-47
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + ( col2 + col2 ) * + col2 col2 FROM tab2 AS cor0
----
10206
105456
228152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
2
query I rowsort
SELECT ALL - 31 + col1 AS col1 FROM tab0
----
55
60
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT - ( col1 ) - col2 DIV + 77 FROM tab1
----
-10
-14
-26
skipif mysql # not compatible
query I rowsort label-531
SELECT - ( col1 ) - col2 / + 77 FROM tab1
----
-10
-14
-26
query I rowsort
SELECT ALL - col2 * - 29 FROM tab1
----
1566
1653
2784
query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT DISTINCT col1 * col1 * 69 AS col0 FROM tab1
----
11661
46644
6900
query I rowsort
SELECT DISTINCT col0 * - col0 * - col0 AS col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT + + col2 * + col2 * + col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col0 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col2 * 36 AS col0 FROM tab1 AS cor0
----
1944
2052
3456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 * - 22 col2 FROM tab1 AS cor0
----
-2002
-2002
-2002
query I rowsort
SELECT ALL col2 * + 18 AS col0 FROM tab1
----
1026
1728
972
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT 15 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT 58 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT + tab0.col2 * col2 + + col0 DIV + 11 FROM tab0
----
1091
4
6732
skipif mysql # not compatible
query I rowsort label-544
SELECT + tab0.col2 * col2 + + col0 / + 11 FROM tab0
----
1091
4
6732
query I rowsort
SELECT ALL + 5 AS col0 FROM tab2
----
5
5
5
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - 92 * col0 FROM tab0 cor0
----
-2208
-3220
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-548
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - cor0.col0 * col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - - 38 AS col0 FROM tab0 AS cor0
----
38
query I rowsort
SELECT + cor0.col1 * + 30 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col1 + col2 ) AS col0 FROM tab2 AS cor0
----
-1798
-5015
-935
query I rowsort
SELECT ALL - ( - col2 ) FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT ALL col2 + - col1 DIV + col2 FROM tab0 cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-554
SELECT ALL col2 + - col1 / + col2 FROM tab0 cor0
----
-96
31
81
query I rowsort
SELECT DISTINCT - + 14 FROM tab0 AS cor0
----
-14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-556
SELECT + CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-556
SELECT + CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + ( 18 ) + col1 FROM tab1 AS cor0
----
28
31
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT ALL + - CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + - CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + + ( + 43 ) + col2 FROM tab1 AS cor0
----
100
139
97
query I rowsort
SELECT DISTINCT - - 8 AS col2 FROM tab0 AS cor0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col2 + + col1 col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + tab1.col0 * 7 AS col0 FROM tab1, tab0 AS cor0
----
21
448
560
query I rowsort
SELECT ALL + col0 * cor0.col1 + - ( + col0 ) AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + - 39 + - col0 AS col2 FROM tab2 AS cor0
----
-117
-118
-46
query I rowsort
SELECT col2 * - col1 + col0 * 52 FROM tab1 cor0
----
-1248
2758
2912
query I rowsort
SELECT ALL - + ( - col1 ) - 91 FROM tab2 AS cor0
----
-32
-60
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT DISTINCT - 57 + - col0 DIV - col0 FROM tab0 AS cor0
----
-56
skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - 57 + - col0 / - col0 FROM tab0 AS cor0
----
-56
query I rowsort
SELECT - + 20 * + col0 - col1 AS col2 FROM tab2 AS cor0
----
-1597
-1619
-171
onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT ALL + cor0.col1 DIV + col1 + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + cor0.col1 / + col1 + col0 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT ( col2 ) + col2 DIV + 22 - + col1 FROM tab1 AS cor0
----
30
49
87
skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT ( col2 ) + col2 / + 22 - + col1 FROM tab1 AS cor0
----
30
49
87
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL - 84 FROM tab0 cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT - + col2 - - col2 DIV col1 FROM tab2 AS cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-574
SELECT - + col2 - - col2 / col1 FROM tab2 AS cor0
----
-26
-27
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col1 + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col1 + ( col0 ) FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 + + ( + col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - 96 + - tab2.col0 + + 7 FROM tab2
----
-167
-168
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 * + 21 col2 FROM tab1
----
-1287
-1584
-9
query I rowsort
SELECT ALL - col0 - 65 FROM tab2 AS cor0
----
-143
-144
-72
query I rowsort
SELECT + 50 FROM tab2 cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-586
SELECT col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + ( + col2 ) + - col1 col0 FROM tab1 AS cor0
----
-134
-3601
-7597
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT - 5 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-588
SELECT - 5 / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 24 * col1 + + col0 FROM tab0 AS cor0
----
2088
2273
2363
query I rowsort
SELECT + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 34 + col1 AS col2 FROM tab2 AS cor0
----
-17
-3
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col2 FROM tab1
----
28
28
28
query I rowsort
SELECT col0 + tab2.col1 * col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT + col2 + + col2 + - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2772
-7298
-95
query I rowsort
SELECT col1 + col2 * 75 AS col1 FROM tab1 AS cor0
----
4076
4285
7213
onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT + 35 + 97 DIV + tab1.col0 AS col0 FROM tab1
----
36
36
67
skipif mysql # not compatible
query I rowsort label-596
SELECT + 35 + 97 / + tab1.col0 AS col0 FROM tab1
----
36
36
67
query I rowsort
SELECT ( + tab2.col0 ) + - 72 AS col2 FROM tab2
----
-65
6
7
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL + + 6 DIV - col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + + 6 / - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + + col2 + col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col1 * + col2 + tab0.col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + col0 * + 16 AS col2 FROM tab1
----
1024
1280
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT + col2 * 74 + + col2 DIV ( col1 ) + col0 FROM tab0 cor0
----
109
2466
6157
skipif mysql # not compatible
query I rowsort label-603
SELECT + col2 * 74 + + col2 / ( col1 ) + col0 FROM tab0 cor0
----
109
2466
6157
query I rowsort
SELECT DISTINCT 59 * - 54 FROM tab1 cor0
----
-3186
query I rowsort
SELECT + + 25 + - col0 FROM tab0 AS cor0
----
-10
-64
1
query I rowsort
SELECT ALL - - 69 AS col2 FROM tab0 AS cor0
----
69
69
69
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-608
SELECT - - ( + ( col1 ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-608
SELECT - - ( + ( col1 ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * col0 - cor0.col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-611
SELECT CAST( NULL AS SIGNED ) - + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( NULL AS INTEGER ) - + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 27 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - - col1 col1 FROM tab0
----
139
144
150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-614
SELECT ALL ( + tab1.col0 ) + - CAST( + col0 AS SIGNED ) * - col0 * ( - tab1.col1 ) + col1 * - CAST( col2 + col1 AS SIGNED ) * + col0 FROM tab1
----
-196480
-6471
-83776
skipif mysql # not compatible
query I rowsort label-614
SELECT ALL ( + tab1.col0 ) + - CAST ( + col0 AS INTEGER ) * - col0 * ( - tab1.col1 ) + col1 * - CAST ( col2 + col1 AS INTEGER ) * + col0 FROM tab1
----
-196480
-6471
-83776
query I rowsort
SELECT - 12 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT ALL - col0 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - 32 FROM tab1 cor0
----
-32
-32
-32
query I rowsort
SELECT ALL + 86 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT col1 + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - 63 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-621
SELECT - CAST( col0 AS DECIMAL ) * col0 + CAST( NULL AS SIGNED ) * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-621
SELECT - CAST ( col0 AS REAL ) * col0 + CAST ( NULL AS INTEGER ) * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 29 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT col2 DIV 35 AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-623
SELECT col2 / 35 AS col0 FROM tab2
----
0
0
1
query I rowsort
SELECT - col1 * 58 AS col2 FROM tab2
----
-1798
-3422
-986
query I rowsort
SELECT col1 * ( tab1.col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT ALL + col1 * col0 * + col2 + col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
3397
664119
68115
skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + col1 * col0 * + col2 + col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
3397
664119
68115
query I rowsort
SELECT - - col2 + - col2 * ( - col2 ) FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col2 - + col1 * + col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 + ( - col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * - 27 FROM tab2 cor0
----
-189
-2106
-2133
query I rowsort
SELECT ALL + col1 * col1 - 60 AS col2 FROM tab1 AS cor0
----
109
40
616
query I rowsort
SELECT DISTINCT + col0 * - ( - ( col2 ) ) FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 + - col1 + + col2 * + ( 60 ) col0 FROM tab2 cor0
----
2426
2909
3035
query I rowsort
SELECT cor0.col0 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 * + col0 + + 38 FROM tab2 AS cor0
----
1381
255
4640
query I rowsort
SELECT ALL - + cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT 21 - - col1 AS col1 FROM tab2
----
38
52
80
query I rowsort
SELECT ALL col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + - col1 * ( - col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 * 15 + + col0 + - col1 FROM tab1 AS cor0
----
1507
787
909
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + - col2 + - col0 col2 FROM tab1 AS cor0
----
-1216
-135
-761
query I rowsort
SELECT - ( + col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
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-645
SELECT 51 + cor0.col1 DIV - col1 + + col1 FROM tab1 AS cor0
----
60
63
76
skipif mysql # not compatible
query I rowsort label-645
SELECT 51 + cor0.col1 / - col1 + + col1 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT DISTINCT - 4 + col1 FROM tab1 AS cor0
----
22
6
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-647
SELECT - CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-647
SELECT - CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - 30 FROM tab1 AS cor0
----
-30
query I rowsort
SELECT DISTINCT - col1 * - col0 * + col0 AS col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col1 * - col0 + - col2 * + ( col2 + - col2 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 64 * - col2 * + tab2.col1 FROM tab2
----
-41344
-53568
-98176
query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 AS cor0
----
-60
-60
-60
query I rowsort
SELECT + - 48 + + col1 AS col0 FROM tab1 AS cor0
----
-22
-35
-38
query I rowsort
SELECT DISTINCT ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 0 * cor0.col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT ALL + - ( col2 ) * CAST( NULL AS SIGNED ) * - 64 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + - ( col2 ) * CAST ( NULL AS INTEGER ) * - 64 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col0 * col2 ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT ALL - col0 * cor0.col1 + - CAST( + cor0.col1 AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
skipif mysql # not compatible
query I rowsort label-658
SELECT ALL - col0 * cor0.col1 + - CAST ( + cor0.col1 AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT ALL col0 + col1 * col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL - 69 * col0 FROM tab1 cor0
----
-207
-4416
-5520
query I rowsort
SELECT ALL - 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + 52 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-12
-28
49
query I rowsort
SELECT DISTINCT + 66 * - cor0.col0 + - ( - col2 ) FROM tab0 AS cor0
----
-1551
-2309
-5792
query I rowsort
SELECT ALL cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 33 + tab2.col2 FROM tab2
----
59
60
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-666
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( col0 ) + ( - col2 ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col0 ) + ( - col2 ) * - col2 FROM tab1
----
NULL
query I rowsort
SELECT - col2 * + col1 * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT 88 + - tab0.col1 * - col0 FROM tab0
----
2152
3483
8187
query I rowsort
SELECT + tab0.col1 * + col2 + col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + - 59 * col2 AS col2 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT + + col1 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 56 * + col2 AS col0 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL - + 86 AS col1 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col1 + col1 * 30 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT ALL tab0.col2 DIV col2 - + ( col0 ) * - 39 FROM tab0
----
1366
3472
937
skipif mysql # not compatible
query I rowsort label-678
SELECT ALL tab0.col2 / col2 - + ( col0 ) * - 39 FROM tab0
----
1366
3472
937
onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT DISTINCT col1 - col1 DIV 63 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT col1 - col1 / 63 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + tab0.col1 + - col2 * col2 + col2 AS col2 FROM tab0
----
-6551
-970
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT col2 * + 47 + ( - tab0.col0 ) FROM tab0
----
12
1527
3765
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab1 AS cor0
----
31
query I rowsort
SELECT - - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab0 AS cor0
----
76
query I rowsort
SELECT DISTINCT col0 * - col1 + col2 + col0 FROM tab1
----
-21
-519
-864
query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab1 cor0
----
87
query I rowsort
SELECT 88 * cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - 72 - col0 * col1 * + 12 FROM tab1 AS cor0
----
-1008
-12552
-7752
query I rowsort
SELECT ALL 37 + col2 FROM tab0 cor0
----
119
38
70
query I rowsort
SELECT ALL + + col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - 83 AS col1 FROM tab2 AS cor0
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-693
SELECT + col0 + 70 DIV - 68 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-693
SELECT + col0 + 70 / - 68 AS col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT - - col2 * + 18 AS col2 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT ALL + - col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-696
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + 82 FROM tab0 AS cor0
----
-7
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT ALL - col1 DIV + ( - col1 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - col1 / + ( - col1 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + cor0.col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-701
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-701
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-702
SELECT - + cor0.col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-702
SELECT - + cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 22 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT - col0 + - col2 * - col2 * ( col1 ) FROM tab0 AS cor0
----
611795
62
93630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - 43 + cor1.col0 * - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dc114556b1b227f18292236fc3c80a54
query I rowsort
SELECT col2 * 5 AS col2 FROM tab2
----
130
135
190
onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT - col2 DIV - col0 + + 2 - + col2 * + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-119805
-32488
-75796
skipif mysql # not compatible
query I rowsort label-708
SELECT - col2 / - col0 + + 2 - + col2 * + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-119805
-32488
-75796
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 67 col1 FROM tab1 cor0
----
67
query I rowsort
SELECT + col0 + + col0 * + 78 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT ALL - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - col2 / - col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT 89 FROM tab2, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT ( col0 ) DIV 44 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-714
SELECT ( col0 ) / 44 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 * ( + cor0.col1 ) FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 + - 46 AS col2 FROM tab0
----
-13
-45
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT + col1 DIV col2 + - tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-717
SELECT + col1 / col2 + - tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 + - ( col0 ) col0 FROM tab1
----
-64
-71
48
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 AS col2 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab0.col0 ) + + ( ( - col0 ) ) col1 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT 28 * + col1 + tab1.col1 + col1 FROM tab1
----
300
390
780
query I rowsort
SELECT + - col2 * + cor0.col1 + + col1 * col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT ALL 7 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-57
-73
4
query I rowsort
SELECT ALL - + col2 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT + - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col1 + - col0 * - cor0.col1 * - cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
-36433
-4184
-99757
query I rowsort
SELECT 5 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT col1 DIV col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-729
SELECT col1 / col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col0 - - 1 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT - + col1 * + col2 - + 81 FROM tab2 AS cor0
----
-1615
-727
-918
query I rowsort
SELECT 91 FROM tab0, tab0 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT + col0 * col1 + 91 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2241
3583
8281
query I rowsort
SELECT DISTINCT - 59 FROM tab0, tab2 cor0
----
-59
query I rowsort
SELECT - ( col1 + + col0 ) FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab0.col2 * col0 col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + 20 + col2 FROM tab2
----
46
47
58
query I rowsort
SELECT - + cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + 10 * col2 FROM tab2 cor0
----
260
270
380
query I rowsort
SELECT + col2 * col1 + col2 * col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + tab2.col2 * + col1 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT ALL col0 + - col1 - - col0 DIV + col1 FROM tab1
----
-23
60
73
skipif mysql # not compatible
query I rowsort label-743
SELECT ALL col0 + - col1 - - col0 / + col1 FROM tab1
----
-23
60
73
query I rowsort
SELECT DISTINCT col1 + + col0 + col2 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT + cor1.col0 * 42 FROM tab1, tab0 cor0, tab2 AS cor1
----
294
3276
3318
query I rowsort
SELECT col0 + + col1 + 83 FROM tab0 AS cor0
----
193
215
263
query I rowsort
SELECT DISTINCT - + 77 FROM tab2 AS cor0
----
-77
query I rowsort
SELECT - col0 + col1 * col0 FROM tab2 WHERE - col1 IN ( tab2.col1 / - col0 )
----
query I rowsort
SELECT ALL + tab2.col1 * - col2 - col0 AS col0 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT col0 + - col1 * - col1 + - col2 FROM tab0
----
7387
8288
9443
query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL IN ( tab0.col2 )
----
query I rowsort
SELECT ALL + tab1.col2 FROM tab1 WHERE NULL IN ( + col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT - tab2.col0 * col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col0 * - tab0.col1 - col0 AS col2 FROM tab0
----
-2088
-3430
-8188
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT col2 * col0 * + col0 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL - 25 * - col2 AS col1 FROM tab0
----
2050
25
825
query I rowsort
SELECT + tab1.col0 * - col2 + col1 * + col2 FROM tab1
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT ALL col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-760
SELECT ALL col0 / - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 * - col0 + col0 col1 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT ALL + 16 * col0 + - col0 FROM tab2 AS cor0
----
105
1170
1185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * 4 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b68f4dbe73d977ccbdea7630fec2628e
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT DISTINCT tab0.col1 * col0 DIV - col2 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT tab0.col1 * col0 / - col2 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT col2 + + col0 + + col0 AS col1 FROM tab1
----
185
256
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col2 + col2 col2 FROM tab2
----
1499
761
787
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col1 - - col1 NOT IN ( - col0 )
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT ALL - col0 * col1 + col1 DIV col2 FROM tab1 WHERE - col0 - - col1 <> col1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - col0 * col1 + col1 / col2 FROM tab1 WHERE - col0 - - col1 <> col1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT DISTINCT col0 * col0 DIV + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT col0 * col0 / + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col0 + - col0 FROM tab2 WHERE NULL <> col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT tab0.col1 * col0 DIV + col0 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-771
SELECT tab0.col1 * col0 / + col0 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 * col1 + col2 + col0 FROM tab2
----
1460
251
4706
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - col2 / col0 AS col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT col2 * col2 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT + col2 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col2 * col0 + col2 * - col0 FROM tab2
----
0
0
0
query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT tab1.col2 * col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col1 * col1 - + col2 AS col1 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT ALL - 32 FROM tab0 cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT col1 + - col2 * col2 * col2 AS col2 FROM tab1
----
-157438
-185183
-884723
query I rowsort
SELECT 94 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
query I rowsort
SELECT ALL + + col1 * + 80 AS col0 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT + 7 + - 44 - + col0 AS col1 FROM tab2 AS cor0
----
-115
-116
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-791
SELECT DISTINCT + CAST( - 7 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-7
skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + CAST ( - 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-7
query I rowsort
SELECT - + cor0.col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-793
SELECT - 25 * + col1 + + col1 DIV + cor0.col0 FROM tab1 AS cor0
----
-250
-325
-642
skipif mysql # not compatible
query I rowsort label-793
SELECT - 25 * + col1 + + col1 / + cor0.col0 FROM tab1 AS cor0
----
-250
-325
-642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col0 * - col2 + cor0.col0 * + 56 FROM tab2 AS cor0
----
1422
203
2340
query I rowsort
SELECT ALL + col2 + - col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + + col0 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT DISTINCT + tab2.col1 DIV - 66 + + col0 * 57 AS col2 FROM tab2
----
399
4446
4503
skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + tab2.col1 / - 66 + + col0 * 57 AS col2 FROM tab2
----
399
4446
4503
query I rowsort
SELECT ALL - tab0.col0 * + tab0.col1 + - col1 * col1 FROM tab0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 14 + + col1 FROM tab2
----
31
45
73
query I rowsort
SELECT - col0 * - col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - col2 + 23 * + col1 AS col2 FROM tab2 AS cor0
----
1331
353
686
query I rowsort
SELECT ALL - col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL col2 DIV 27 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-806
SELECT ALL col2 / 27 FROM tab2 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-807
SELECT - col0 * + CAST( col0 * col1 + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-396
-44608
-90880
skipif mysql # not compatible
query I rowsort label-807
SELECT - col0 * + CAST ( col0 * col1 + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-396
-44608
-90880
query I rowsort
SELECT DISTINCT + col0 * - 82 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT col1 + - ( - col2 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-810
SELECT ALL cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-810
SELECT ALL cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT DISTINCT - col0 DIV - 51 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - col0 / - 51 FROM tab0 cor0
----
0
1
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - col0 * - col2 - + col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + col0 * 94 AS col1 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + 87 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT tab0.col1 + 85 AS col0 FROM tab0
----
171
176
182
query I rowsort
SELECT DISTINCT col1 - - col1 * col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT 2 * tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL - ( - col2 ) + tab1.col1 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 * tab1.col1 * - col2 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-823
SELECT ALL - 46 + + col1 DIV col0 FROM tab0 cor0
----
-43
-44
-45
skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - 46 + + col1 / col0 FROM tab0 cor0
----
-43
-44
-45
query I rowsort
SELECT ALL + - col1 * col2 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-825
SELECT - CAST( - 11 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
11
11
11
skipif mysql # not compatible
query I rowsort label-825
SELECT - CAST ( - 11 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2, tab2 AS cor0
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-827
SELECT - CAST( NULL AS SIGNED ) * 39 * + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-827
SELECT - CAST ( NULL AS INTEGER ) * 39 * + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 73 - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1175
1331
497
query I rowsort
SELECT - col1 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT + col1 DIV col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-831
SELECT + col1 / col1 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1 cor0
----
-9
query I rowsort
SELECT + col2 + - col2 * - col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT + col2 - - col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + col0 * 84 FROM tab2 cor0
----
-588
-6552
-6636
query I rowsort
SELECT DISTINCT + col1 - - col1 FROM tab0 cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-837
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) - + col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - 69 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT 27 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + cor0.col0 * 81 FROM tab1 cor0
----
243
5184
6480
query I rowsort
SELECT cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 46 FROM tab2, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab2, tab1 AS cor0
----
37
query I rowsort
SELECT + col2 + + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col1 + - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 * cor0.col2 * col0 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT + col2 + cor0.col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + cor0.col1 + + col0 * + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT tab2.col2 - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - - col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + col1 * - tab0.col1 AS col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL col0 * tab2.col2 AS col0 FROM tab2
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = NULL AND NOT NULL NOT BETWEEN col2 AND NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT - + col2 * - col1 + + cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col2 - + col2 * col0 * - tab1.col0 AS col0 FROM tab1
----
233415
432
614304
query I rowsort
SELECT DISTINCT col2 * col1 + + tab1.col1 + tab1.col1 * + col1 AS col0 FROM tab1
----
1430
2106
680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + + col1 col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + cor0.col1 * col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-861
SELECT ALL - col1 + col0 DIV + 14 AS col1 FROM tab2 AS cor0
----
-12
-31
-54
skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - col1 + col0 / + 14 AS col1 FROM tab2 AS cor0
----
-12
-31
-54
query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - col1 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + col1 * 44 - col1 * col0 AS col1 FROM tab1
----
-190
-455
1092
onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT col1 DIV col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-866
SELECT col1 / col1 AS col2 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT DISTINCT + col1 + - col0 - + CAST( 21 AS SIGNED ) DIV col1 FROM tab2
----
-19
-63
24
skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + col1 + - col0 - + CAST ( 21 AS INTEGER ) / col1 FROM tab2
----
-19
-63
24
query I rowsort
SELECT DISTINCT - tab0.col2 - + col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT - col2 * + col1 + - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col1 + 33 AS col2 FROM tab2
----
50
64
92
query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT 20 FROM tab0, tab1 AS cor0
----
20
query I rowsort
SELECT - col2 * + col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + col2 + - 85 * cor0.col0 FROM tab2 AS cor0
----
-568
-6604
-6677
query I rowsort
SELECT - col1 * - 67 + - cor0.col1 * col2 FROM tab2 AS cor0
----
1240
2419
493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 99 col0 FROM tab1 cor0
----
1287
2574
990
query I rowsort
SELECT - col1 + + 14 FROM tab0
----
-72
-77
-83
query I rowsort
SELECT + + col1 * ( ( - col1 ) + 26 ) * + col1 AS col1 FROM tab2 AS cor0
----
-114873
-4805
2601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-880
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-881
SELECT DISTINCT ( + cor0.col0 ) DIV - ( tab1.col0 ) FROM tab1, tab2 AS cor0
----
-1
-2
-26
0
skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT ( + cor0.col0 ) / - ( tab1.col0 ) FROM tab1, tab2 AS cor0
----
-1
-2
-26
0
query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab1
----
7
query I rowsort
SELECT DISTINCT + ( col2 * col2 ) AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL col1 * tab1.col2 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-885
SELECT ( col1 ) * + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-885
SELECT ( col1 ) * + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-886
SELECT - CAST( + col0 AS SIGNED ) * col1 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-886
SELECT - CAST ( + col0 AS INTEGER ) * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 * + col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - col0 * cor0.col0 - - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT col2 * + tab1.col1 + + col1 * - col1 - col1 AS col2 FROM tab1
----
1066
460
702
query I rowsort
SELECT col0 + + col1 + + col0 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 * 88 - col2 AS col1 FROM tab0
----
249678
656492
8534
onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT ALL - col0 DIV col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - col0 / col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT DISTINCT col1 * - col2 + + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT col1 * - col2 + + col2 / - cor0.col2 FROM tab0 AS cor0
----
-2839
-7463
-98
query I rowsort
SELECT 70 * col2 AS col0 FROM tab1 AS cor0
----
3780
3990
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - col1 * col0 + - col0 * + 8 FROM tab1 AS cor0
----
128
400
54
query I rowsort
SELECT ALL - 68 + col1 AS col1 FROM tab2 AS cor0
----
-37
-51
-9
query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1
----
35
query I rowsort
SELECT - col2 + col0 * - col1 * ( - col1 ) FROM tab0
----
177471
329314
736927
query I rowsort
SELECT 40 * - col1 AS col2 FROM tab0 cor0
----
-3440
-3640
-3880
query I rowsort
SELECT DISTINCT ( + col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 93 * col1 - + 92 AS col1 FROM tab0 AS cor0
----
7906
8371
8929
query I rowsort
SELECT - col2 * + col0 + - 58 * - cor0.col1 FROM tab0 AS cor0
----
-2020
4196
5591
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
69
query I rowsort
SELECT DISTINCT col0 + + col1 * col1 FROM tab1 AS cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col2 * - col2 col1 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT ALL - col2 * - col1 + col1 DIV col2 FROM tab0 AS cor0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - col2 * - col1 + col1 / col2 FROM tab0 AS cor0
----
194
2840
7463
query I rowsort
SELECT DISTINCT + col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT + col1 * - col2 - 18 DIV cor0.col2 FROM tab0 AS cor0
----
-115
-2838
-7462
skipif mysql # not compatible
query I rowsort label-909
SELECT + col1 * - col2 - 18 / cor0.col2 FROM tab0 AS cor0
----
-115
-2838
-7462
onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT DISTINCT + col2 DIV col0 - 78 FROM tab2 AS cor0
----
-75
-78
skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + col2 / col0 - 78 FROM tab2 AS cor0
----
-75
-78
query I rowsort
SELECT + - col1 * - col2 + col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * ( - ( cor0.col1 ) ) FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT ALL - col2 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - col2 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT cor0.col2 + - 85 AS col0 FROM tab0 AS cor0
----
-3
-52
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT ALL - + col1 + ( + col1 ) DIV - col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - + col1 + ( + col1 ) / - col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col2 + 75 FROM tab1 AS cor0
----
-21
18
21
query I rowsort
SELECT ALL col0 * 85 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT + cor0.col0 - - 85 FROM tab0 AS cor0
----
109
120
174
query I rowsort
SELECT + col0 * + 86 + 76 FROM tab1 cor0
----
334
5580
6956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col1 + + 55 col1 FROM tab0 AS cor0
----
-2009
-3340
-8044
query I rowsort
SELECT ALL - + ( col0 ) * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * + 15 AS col0 FROM tab2 AS cor0
----
1196
1223
132
query I rowsort
SELECT DISTINCT + col0 * + 43 + col1 AS col1 FROM tab1 cor0
----
155
2762
3453
query I rowsort
SELECT col2 * col2 * + col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col0 ) col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT cor0.col0 * col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL 57 * - ( col2 ) + col1 FROM tab0 AS cor0
----
-1795
-4583
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col0 FROM tab2 AS cor0
----
-42
-42
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-932
SELECT ALL - + CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 + + col2 col2 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT - - 56 * col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT DISTINCT + col0 + + 10 * - col2 FROM tab0 AS cor0
----
-306
-731
25
query I rowsort
SELECT DISTINCT 92 * ( - cor0.col0 * - 95 ) AS col2 FROM tab0 cor0
----
209760
305900
777860
query I rowsort
SELECT DISTINCT - 9 + col1 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT ALL + 9 + col1 AS col1 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT + ( cor0.col0 ) * + cor0.col1 * ( + col0 ) + col2 + ( - col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
-2628
37768
74080
query I rowsort
SELECT - 73 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
query I rowsort
SELECT col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + 74 * + col2 + col1 FROM tab1 cor0
----
4022
4228
7117
query I rowsort
SELECT - + ( + col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * - cor0.col0 - - 18 AS col1 FROM tab0 AS cor0
----
-17
-7280
-774
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 - 61 * 72 AS col0 FROM tab2 AS cor0
----
-2948
-3663
-3716
query I rowsort
SELECT 81 * col0 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT + 82 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-558
-958
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT - cor0.col2 + + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-948
SELECT - cor0.col2 + + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-949
SELECT + + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-949
SELECT + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL ( + col2 ) + - col2 + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col0 * col0 + col0 * 66 FROM tab0
----
13795
2160
3535
query I rowsort
SELECT - + 92 + cor0.col2 * + 44 * + col2 AS col0 FROM tab0 AS cor0
----
-48
295764
47824
query I rowsort
SELECT ALL + + col0 + col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT ALL cor0.col0 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-955
SELECT ALL cor0.col0 + col0 / col2 AS col1 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT DISTINCT + 41 - - col2 * 75 * - col1 AS col0 FROM tab1 AS cor0
----
-105259
-42709
-93559
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 + - 3 FROM tab0 cor0
----
2061
3392
8096
query I rowsort
SELECT + 51 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT + col0 * 3 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 * - ( 1 ) * + col2 AS col1 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT + col2 DIV 57 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-962
SELECT + col2 / 57 AS col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL - + col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 + + 63 + col2 FROM tab0 AS cor0
----
7443
888
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 39 col0 FROM tab0 AS cor0
----
1365
3471
936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col0 col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - col2 + ( 25 * col0 ) AS col0 FROM tab2
----
148
1924
1937
onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT ALL - col2 * ( 30 ) + + tab0.col2 DIV col0 FROM tab0
----
-2460
-30
-989
skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - col2 * ( 30 ) + + tab0.col2 / col0 FROM tab0
----
-2460
-30
-989
query I rowsort
SELECT - col1 * - ( - col1 ) * col2 + + 48 AS col1 FROM tab0 AS cor0
----
-244020
-678994
-9361
query I rowsort
SELECT - col2 * 35 + col1 FROM tab0 AS cor0
----
-1069
-2779
62
query I rowsort
SELECT + cor0.col1 * - ( + col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col2 + 52 FROM tab2 AS cor0
----
14
25
26
query I rowsort
SELECT ALL + - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT ALL - - col1 DIV - col1 - col1 FROM tab0 cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - - col1 / - col1 - col1 FROM tab0 cor0
----
-87
-92
-98
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929
query I rowsort
SELECT 17 * 31 FROM tab0, tab2 AS cor0
----
9 values hashing to cb6f2e6af5bf2769f293ad9105ecc79b
query I rowsort
SELECT col1 + - cor0.col2 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT + + 59 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT - + 26 - + cor0.col1 FROM tab1 AS cor0
----
-36
-39
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-981
SELECT ALL tab2.col1 DIV ( 51 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-981
SELECT ALL tab2.col1 / ( 51 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT + + col2 * ( col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - + col2 + + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT ALL + + col1 DIV ( - 28 ) - + col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + + col1 / ( - 28 ) - + col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL col1 + - col0 * col0 AS col1 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT 54 - + 16 FROM tab0 AS cor0
----
38
query I rowsort
SELECT ( + 76 ) FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - - col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-990
SELECT DISTINCT col1 DIV + col2 + + col1 * ( col2 ) FROM tab0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT col1 / + col2 + + col1 * ( col2 ) FROM tab0
----
194
2840
7463
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT ALL 27 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 092918b9163061e291041d594b1a402a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-994
SELECT + CAST( + 11 AS SIGNED ) FROM tab0 AS cor0
----
11
11
11
skipif mysql # not compatible
query I rowsort label-994
SELECT + CAST ( + 11 AS INTEGER ) FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT - 65 + + col0 * + col2 FROM tab2 AS cor0
----
124
1963
2937
query I rowsort
SELECT ALL - + col1 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * 74 * + col0 FROM tab2 AS cor0
----
16058
340548
99382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-999
SELECT DISTINCT CAST( - 9 AS SIGNED ) FROM tab0 cor0
----
-9
skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT CAST ( - 9 AS INTEGER ) FROM tab0 cor0
----
-9
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 25 * + col0 FROM tab2 AS cor0
----
175
1950
1975
skipif mysql # not compatible
query I rowsort
SELECT - ( 76 ) * - col2 + + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT ALL + col1 + - col1 * col0 + - col2 AS col1 FROM tab0 cor0
----
-2011
-3299
-8090
onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT DISTINCT + + 86 + ( cor0.col1 ) DIV + col0 FROM tab1 AS cor0
----
86
94
skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + + 86 + ( cor0.col1 ) / + col0 FROM tab1 AS cor0
----
86
94
query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT ALL + col0 DIV - cor0.col0 + - ( col1 + + col2 ) FROM tab0 AS cor0
----
-120
-174
-99
skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + col0 / - cor0.col0 + - ( col1 + + col2 ) FROM tab0 AS cor0
----
-120
-174
-99
query I rowsort
SELECT + 9 AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab1, tab1 cor0
----
41
query I rowsort
SELECT ALL + 45 AS col2 FROM tab1 AS cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1010
SELECT ( - col1 ) DIV col1 + - 76 - + col0 AS col2 FROM tab2
----
-155
-156
-84
skipif mysql # not compatible
query I rowsort label-1010
SELECT ( - col1 ) / col1 + - 76 - + col0 AS col2 FROM tab2
----
-155
-156
-84
query I rowsort
SELECT - 22 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT DISTINCT col0 * 77 FROM tab2 AS cor0
----
539
6006
6083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + ( - 59 ) col0 FROM tab0 AS cor0
----
-148
-83
-94
query I rowsort
SELECT DISTINCT - col2 + 39 FROM tab0 cor0
----
-43
38
6
query I rowsort
SELECT ALL col0 * cor0.col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT ( col1 ) DIV 61 + 97 * - tab2.col0 AS col0 FROM tab2
----
-679
-7566
-7663
skipif mysql # not compatible
query I rowsort label-1016
SELECT ( col1 ) / 61 + 97 * - tab2.col0 AS col0 FROM tab2
----
-679
-7566
-7663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1017
SELECT - - col2 + + CAST( + col1 AS SIGNED ) * - col2 * 7 + - 84 FROM tab1 AS cor0
----
-4017
-8724
-9858
skipif mysql # not compatible
query I rowsort label-1017
SELECT - - col2 + + CAST ( + col1 AS INTEGER ) * - col2 * 7 + - 84 FROM tab1 AS cor0
----
-4017
-8724
-9858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + + col2 col2 FROM tab1 AS cor0
----
117
120
159
query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col2 - - col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT 90 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ( + 78 ) FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 48366b93fe9110d617672483a489e89c
query I rowsort
SELECT col2 + tab2.col1 * + tab2.col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT DISTINCT + col2 * - col2 * tab1.col0 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - 83 FROM tab0
----
-83
-83
-83
query I rowsort
SELECT + 8 + + col2 FROM tab2 AS cor0
----
34
35
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1029
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT ( - 69 ) * col1 DIV cor0.col2 FROM tab0 AS cor0
----
-179
-6693
-76
skipif mysql # not compatible
query I rowsort label-1030
SELECT ( - 69 ) * col1 / cor0.col2 FROM tab0 AS cor0
----
-179
-6693
-76
query I rowsort
SELECT col2 + + 89 AS col1 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT ALL - col1 * + 44 + col1 FROM tab2 AS cor0
----
-1333
-2537
-731
query I rowsort
SELECT ALL 44 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + col0 + col2 * 87 + + tab2.col1 FROM tab2
----
2387
2399
3402
query I rowsort
SELECT + col2 * tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col1 + + col0 * - col1 AS col0 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + 27 + + col0 AS col0 FROM tab2
----
105
106
34
query I rowsort
SELECT - ( - col2 * - col0 ) + + 94 AS col1 FROM tab2
----
-1934
-2908
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT - 19 DIV - col1 + col1 col1 FROM tab1 AS cor0
----
11
14
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1039
SELECT - 19 / - col1 + col1 col1 FROM tab1 AS cor0
----
11
14
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1040
SELECT ALL + col1 + col1 * CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + col1 + col1 * CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT 58 DIV col0 AS col1 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-1042
SELECT 58 / col0 AS col1 FROM tab1
----
0
0
19
query I rowsort
SELECT DISTINCT + col2 * - tab2.col2 + ( col1 ) FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL col0 + + 26 * col2 FROM tab2 AS cor0
----
1067
709
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT ALL - col0 DIV col0 + + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - col0 / col0 + + col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT DISTINCT col2 * 20 AS col0 FROM tab2 cor0
----
520
540
760
query I rowsort
SELECT + col1 * ( - col2 ) + - col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 + col2 FROM tab2 AS cor0
----
111
85
93
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + - cor0.col0 + col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * - 75 * + col1 + col0 FROM tab2 AS cor0
----
21754
261153
72082
query I rowsort
SELECT ALL - - cor0.col1 * - 68 FROM tab2 cor0
----
-1156
-2108
-4012
query I rowsort
SELECT col2 + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT col2 + col1 + - 81 AS col1 FROM tab1 AS cor0
----
-1
-14
28
query I rowsort
SELECT - cor0.col1 + + 57 * col0 FROM tab2 AS cor0
----
368
4387
4486
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + 78 AS col0 FROM tab0 AS cor0
----
175
2916
7540
query I rowsort
SELECT DISTINCT cor0.col0 - + cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
9 values hashing to b24ecd0e424d2b21b31092e4a9b94f1c
query I rowsort
SELECT + 46 FROM tab1
----
46
46
46
query I rowsort
SELECT DISTINCT - 74 FROM tab2
----
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab1
----
76
76
76
query I rowsort
SELECT - col2 * - col0 * ( + col0 ) AS col1 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT ALL + + col1 * cor0.col2 + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT + col2 * col1 + - col2 AS col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT ALL col0 + + cor0.col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - - col1 * col1 + + col1 - col0 AS col1 FROM tab2 AS cor0
----
227
3462
985
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + + ( col2 ) * col1 + + 63 + - col2 * + col2 FROM tab2 AS cor0
----
-735
171
921
query I rowsort
SELECT col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 67 FROM tab1, tab1 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - 69 FROM tab2, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT tab2.col2 * + 8 FROM tab2
----
208
216
304
query I rowsort
SELECT col0 * + col0 * + tab0.col1 AS col0 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 93 col1 FROM tab1
----
279
5952
7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT ALL + 23 + + col1 * col2 DIV - col1 FROM tab0 AS cor0
----
-10
-59
22
skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + 23 + + col1 * col2 / - col1 FROM tab0 AS cor0
----
-10
-59
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT ALL + CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT ( - cor0.col0 ) DIV col1 + 3 * + col0 col1 FROM tab0 cor0
----
105
267
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1079
SELECT ( - cor0.col0 ) / col1 + 3 * + col0 col1 FROM tab0 cor0
----
105
267
72
query I rowsort
SELECT + col0 * + 71 AS col1 FROM tab0 AS cor0
----
1704
2485
6319
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col2 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT - col1 + 73 * cor0.col1 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT ( + col0 ) * + col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - + 86 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 15 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT DISTINCT col0 DIV + cor0.col2 col0 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT col0 / + cor0.col2 col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + 73 AS col0 FROM tab0 cor0
----
73
73
73
query I rowsort
SELECT - - 77 AS col2 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT + + col2 + + col2 * 97 FROM tab0 AS cor0
----
3234
8036
98
query I rowsort
SELECT DISTINCT - 23 + - col2 FROM tab2 AS cor0
----
-49
-50
-61
query I rowsort
SELECT ALL + 25 * + col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + 48 FROM tab1 AS cor0
----
48
query I rowsort
SELECT ALL - 45 - ( col1 * - ( tab1.col2 ) + - col0 ) FROM tab1
----
1283
1362
589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + col1 * ( ( - col0 ) * col1 ) - + 18 * - col0 col1 FROM tab2
----
-21392
-270055
-6570
query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab1
----
86
query I rowsort
SELECT col0 * + col2 - 46 FROM tab1
----
116
3602
7634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT - cor0.col1 * col2 + col0 DIV - col1 + col0 * - ( 86 ) * + col0 FROM tab2 AS cor0
----
-5051
-524759
-537376
skipif mysql # not compatible
query I rowsort label-1099
SELECT - cor0.col1 * col2 + col0 / - col1 + col0 * - ( 86 ) * + col0 FROM tab2 AS cor0
----
-5051
-524759
-537376
query I rowsort
SELECT ALL + 77 + cor0.col2 * + 91 + + ( - col0 ) * + col2 FROM tab2 AS cor0
----
2345
415
533
query I rowsort
SELECT ALL + col0 * - col0 + - col2 * col1 * col1 FROM tab2 AS cor0
----
-17223
-25996
-96590
query I rowsort
SELECT DISTINCT - - 20 + col1 AS col2 FROM tab2 AS cor0
----
37
51
79
query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT + col2 + + col1 / + ( + 24 ) + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1104
SELECT + col2 + + col1 / + ( + 24 ) + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + ( col2 ) AS col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1106
SELECT - + ( cor0.col1 ) - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1106
SELECT - + ( cor0.col1 ) - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + ( - col0 ) * - col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab0, tab2 cor0
----
-21
query I rowsort
SELECT DISTINCT - col0 * 8 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT + 54 + col2 FROM tab1 AS cor0
----
108
111
150
query I rowsort
SELECT col1 * + 37 FROM tab0
----
3182
3367
3589
query I rowsort
SELECT DISTINCT col2 * + 76 * + col0 AS col0 FROM tab0
----
2660
554648
60192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 30 * 23 FROM tab1 AS cor0
----
690
query I rowsort
SELECT ALL - - col0 * col0 - cor0.col1 AS col2 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT ALL - col1 * cor0.col1 * 64 + col1 * cor0.col1 FROM tab0 AS cor0
----
-465948
-521703
-592767
query I rowsort
SELECT + + col0 + col2 * - ( col2 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab1 AS cor0
----
60
query I rowsort
SELECT DISTINCT col0 * - col1 + - ( - col2 ) * - col0 FROM tab1 cor0
----
-240
-4288
-8720
query I rowsort
SELECT ALL - 87 + cor0.col2 FROM tab1 AS cor0
----
-30
-33
9
query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT - col1 DIV ( col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1124
SELECT - col1 / ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * col1 + + 67 * + col2 AS col2 FROM tab2 cor0
----
2646
3192
3276
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1126
SELECT + cor0.col2 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-1126
SELECT + cor0.col2 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT + col2 + - ( - 94 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
161
174
203
query I rowsort
SELECT ALL col0 * 89 AS col2 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT + 79 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL - col2 + ( 38 ) * + cor0.col1 - col1 * col0 * - col1 FROM tab1 AS cor0
----
13918
2962
6723
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * 61 AS col1 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT ALL - col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + cor0.col0 * + 52 + cor0.col2 AS col2 FROM tab1 cor0
----
210
3385
4256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - col1 * + 35 * + col2 FROM tab0 AS cor0
----
-261170
-3395
-99330
query I rowsort
SELECT DISTINCT - 84 + + col0 FROM tab1
----
-20
-4
-81
query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + ( + col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + 94 * 94 FROM tab0 AS cor0
----
8836
8836
8836
query I rowsort
SELECT + 39 * col0 AS col0 FROM tab0 AS cor0
----
1365
3471
936
query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 * col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + cor0.col1 * cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT DISTINCT - ( - col2 ) + ( 61 ) DIV col1 + - col0 FROM tab1 AS cor0
----
-1
20
53
skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - ( - col2 ) + ( 61 ) / col1 + - col0 FROM tab1 AS cor0
----
-1
20
53
query I rowsort
SELECT ALL - - col0 + - cor0.col2 + + col0 * col1 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT DISTINCT col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col0 + col1 + + ( - col0 ) * col0 FROM tab2 AS cor0
----
-11
-5947
-6145
query I rowsort
SELECT ALL + 96 + - col2 * - 65 FROM tab1 AS cor0
----
3606
3801
6336
query I rowsort
SELECT DISTINCT + 91 * - col1 FROM tab0 cor0
----
-7826
-8281
-8827
onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT ALL + + col1 + col2 DIV ( - col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + + col1 + col2 / ( - col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - col1 * + col1 + + col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT col1 * - 35 AS col2 FROM tab0
----
-3010
-3185
-3395
query I rowsort
SELECT col2 * + 60 * - tab2.col0 - 17 FROM tab2
----
-11357
-121697
-180137
query I rowsort
SELECT 72 * 66 + col1 + col1 * col1 AS col1 FROM tab2
----
5058
5744
8292
query I rowsort
SELECT col0 * col2 - col2 * tab0.col2 AS col2 FROM tab0
----
-297
34
574
onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT DISTINCT col2 * 64 + col2 DIV + col1 AS col0 FROM tab1
----
3458
3653
6151
skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT col2 * 64 + col2 / + col1 AS col0 FROM tab1
----
3458
3653
6151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - - col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 74 * col1 AS col2 FROM tab2 AS cor0
----
-1258
-2294
-4366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + - col2 * col2 col1 FROM tab2 AS cor0
----
-1417
-649
-702
query I rowsort
SELECT DISTINCT + + ( - col1 ) + 58 * - ( - col2 ) AS col1 FROM tab0 cor0
----
-39
1828
4665
query I rowsort
SELECT + cor0.col0 * + cor0.col2 + + col0 + 6 FROM tab0 AS cor0
----
7393
76
822
query I rowsort
SELECT col0 * + 2 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT 64 * col0 AS col2 FROM tab1
----
192
4096
5120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col2 * col0 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1171
SELECT col0 * col1 DIV + 94 - - 82 AS col1 FROM tab0
----
103
118
168
skipif mysql # not compatible
query I rowsort label-1171
SELECT col0 * col1 / + 94 - - 82 AS col1 FROM tab0
----
103
118
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT tab1.col1 + - col2 DIV - 70 AS col0 FROM tab1
----
10
14
26
skipif mysql # not compatible
query I rowsort label-1172
SELECT tab1.col1 + - col2 / - 70 AS col0 FROM tab1
----
10
14
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT - 64 + col1 DIV + col1 FROM tab0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-1173
SELECT - 64 + col1 / + col1 FROM tab0
----
-63
-63
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * - col1 col2 FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT - col2 * 3 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT DISTINCT col0 + + tab1.col0 - + 35 AS col2 FROM tab1
----
-29
125
93
query I rowsort
SELECT - col2 * + col1 + + col1 + col0 * 61 AS col1 FROM tab0
----
-1288
-1942
2135
query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT col2 + - 35 FROM tab1 AS cor0
----
19
22
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 74 col1 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT ALL - 7 AS col0 FROM tab1 cor0
----
-7
-7
-7
query I rowsort
SELECT 10 * + col2 AS col1 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT ALL + 19 + + 27 * col2 AS col1 FROM tab2 AS cor0
----
1045
721
748
query I rowsort
SELECT col2 - col0 AS col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1185
SELECT col0 + - CAST( 46 + col2 AS SIGNED ) FROM tab1
----
-39
-62
-97
skipif mysql # not compatible
query I rowsort label-1185
SELECT col0 + - CAST ( 46 + col2 AS INTEGER ) FROM tab1
----
-39
-62
-97
query I rowsort
SELECT 84 - tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 00216f426644cf8c125929a548871168
query I rowsort
SELECT ALL col0 + - col1 * col0 + tab0.col1 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT DISTINCT col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-1189
SELECT ALL + 68 DIV + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-80
skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + 68 / + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT 78 + 79 * col1 + + 3 DIV - col1 col2 FROM tab2 cor0
----
1421
2527
4739
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1190
SELECT 78 + 79 * col1 + + 3 / - col1 col2 FROM tab2 cor0
----
1421
2527
4739
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + - col0 * col0 * + cor0.col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + 30 + col1 AS col0 FROM tab2 AS cor0
----
47
61
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 32 ) * cor0.col1 col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT DISTINCT 31 * - col2 FROM tab2 cor0
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT DISTINCT cor0.col2 DIV 79 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT cor0.col2 / 79 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + - 16 * - cor0.col2 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + col0 * + cor0.col2 + - col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + 15 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
15
query I rowsort
SELECT ALL - col1 + col2 * 84 - + col1 AS col1 FROM tab1 AS cor0
----
4484
4768
8038
query I rowsort
SELECT col1 * ( + 99 ) AS col2 FROM tab0 AS cor0
----
8514
9009
9603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 60 + - col1 FROM tab1 AS cor0
----
34
47
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 + col0 col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1208
SELECT ALL + cor0.col1 * - col0 + + CAST( 12 AS SIGNED ) * col1 + 5 * + ( cor0.col1 ) FROM tab0 cor0
----
-1746
-602
-6552
skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + cor0.col1 * - col0 + + CAST ( 12 AS INTEGER ) * col1 + 5 * + ( cor0.col1 ) FROM tab0 cor0
----
-1746
-602
-6552
onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT + col0 - + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1209
SELECT + col0 - + col0 / col0 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL - col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - col1 * col0 + col0 AS col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT ALL + - 35 * + col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT + col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ( col0 ) * + col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + ( ( + col2 ) ) FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 + col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL tab0.col0 * + tab0.col0 * + 63 AS col1 FROM tab0
----
36288
499023
77175
onlyif mysql # use DIV operator for integer division
query I rowsort label-1220
SELECT - 37 DIV + col0 FROM tab2
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-1220
SELECT - 37 / + col0 FROM tab2
----
-5
0
0
query I rowsort
SELECT - col1 + 79 FROM tab0 AS cor0
----
-12
-18
-7
query I rowsort
SELECT DISTINCT + - col1 * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + col1 * - ( 62 ) FROM tab2 cor0
----
-1054
-1922
-3658
query I rowsort
SELECT - col1 * 90 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-120791
-19523
-414102
query I rowsort
SELECT + col0 * ( + col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + - col2 - + 14 AS col2 FROM tab2 AS cor0
----
-40
-41
-52
query I rowsort
SELECT - + col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT ( col1 + - 3 ) FROM tab0
----
83
88
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1229
SELECT DISTINCT + 41 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + 41 / col1 FROM tab0
----
0
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 9ce4d25118357f178272b04062362156
query I rowsort
SELECT - col1 - + 44 FROM tab1 AS cor0
----
-54
-57
-70
query I rowsort
SELECT + - cor0.col0 + 38 - + 37 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT - + col1 + + ( cor0.col0 ) * cor0.col1 AS col0 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT 59 FROM tab1, tab2 cor0, tab1 AS cor1
----
59
query I rowsort
SELECT - 80 FROM tab1, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1236
SELECT DISTINCT + col2 + col1 DIV 33 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + col2 + col1 / 33 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 95 FROM tab0, tab0 cor0
----
95
query I rowsort
SELECT - cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 90 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col1 + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + ( + col2 ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - 88 * col0 * + col2 FROM tab0
----
-3080
-642224
-69696
onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT ALL col1 DIV - col1 col1 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL col1 / - col1 col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - + 77 + col0 * 74 * - col2 AS col1 FROM tab0 AS cor0
----
-2667
-540129
-58685
query I rowsort
SELECT + 86 + tab0.col2 * + 52 * - cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 675b4ae57349dc52c730121fc619aa4a
query I rowsort
SELECT + ( + col1 ) * col0 + 67 * + col2 FROM tab0
----
13593
3462
4275
query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + - col0 + cor0.col1 * + cor0.col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL + 78 AS col1 FROM tab0 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT + cor0.col2 + col2 DIV + 22 + col2 * - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-244034
-678957
-9408
skipif mysql # not compatible
query I rowsort label-1251
SELECT + cor0.col2 + col2 / + 22 + col2 * - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-244034
-678957
-9408
query I rowsort
SELECT ALL + + ( + cor0.col1 ) * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + 7 + col1 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
1242
1385
567
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + 61 FROM tab1 AS cor0
----
-1187
-1343
-509
query I rowsort
SELECT ALL + + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col1 * + col0 + + col0 * + col1 - - cor0.col2 FROM tab0 AS cor0
----
16280
4161
6791
query I rowsort
SELECT DISTINCT col0 + - col2 * tab1.col2 + + col2 * + 90 FROM tab1
----
-496
1945
1947
query I rowsort
SELECT - col1 + 57 FROM tab2
----
-2
26
40
query I rowsort
SELECT ALL + - 17 + + 27 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1260
SELECT + CAST( NULL AS SIGNED ) * - 94 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1260
SELECT + CAST ( NULL AS INTEGER ) * - 94 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + ( col1 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 86 AS col2 FROM tab1 cor0
----
86
86
86
query I rowsort
SELECT + + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ( - col1 ) + cor0.col0 * - col2 + col0 FROM tab0 cor0
----
-7300
-854
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab0
----
-71
-71
-71
query I rowsort
SELECT + 21 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT ALL + + col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT col1 DIV ( + 28 ) FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1269
SELECT col1 / ( + 28 ) FROM tab2
----
0
1
2
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col2 * 82 AS col2 FROM tab0 cor0
----
2706
6724
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col2 col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + 57 * ( - cor0.col0 * ( 0 ) ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13
query I rowsort
SELECT ALL + col2 * 43 AS col2 FROM tab2 cor0
----
1118
1161
1634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1277
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL + ( - col1 ) + + col2 AS col2 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT 8 DIV - col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1279
SELECT 8 / - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - ( + col2 * col0 ) FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT col2 DIV 75 + - col2 AS col0 FROM tab0 cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-1281
SELECT col2 / 75 + - col2 AS col0 FROM tab0 cor0
----
-1
-33
-81
query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab2 AS cor0
----
54
query I rowsort
SELECT + 50 AS col1 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT 84 + col1 * + col1 FROM tab0 AS cor0
----
7480
8365
9493
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT DISTINCT col2 DIV 16 AS col0 FROM tab0 AS cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT col2 / 16 AS col0 FROM tab0 AS cor0
----
0
2
5
query I rowsort
SELECT ALL - 55 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL - col1 * + cor0.col2 - + cor0.col1 * 29 FROM tab1 cor0
----
-1625
-2158
-860
query I rowsort
SELECT + + ( + col2 ) * col2 + col1 AS col1 FROM tab0 cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1289
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 11 / + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 11 / + col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT ( - 21 ) + - col2 FROM tab1 AS cor0
----
-117
-75
-78
query I rowsort
SELECT ALL - 17 AS col0 FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT - ( - 85 ) - col2 * - col2 AS col2 FROM tab0 cor0
----
1174
6809
86
query I rowsort
SELECT DISTINCT - 3 + col1 * cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
22828
271515
6724
query I rowsort
SELECT + + col0 + + 12 FROM tab1 AS cor0
----
15
76
92
query I rowsort
SELECT DISTINCT 72 + 44 AS col2 FROM tab1
----
116
query I rowsort
SELECT ALL + cor0.col0 - 60 FROM tab2 cor0
----
-53
18
19
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT cor0.col2 - - 98 AS col1 FROM tab2 AS cor0
----
124
125
136
query I rowsort
SELECT + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL + + col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - - col0 + + 60 FROM tab2 AS cor0
----
138
139
67
query I rowsort
SELECT col1 * ( - col1 ) + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - - col1 - ( - col1 ) * + col2 AS col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col2 * 87 + + col0 AS col1 FROM tab2 AS cor0
----
-2184
-2342
-3227
query I rowsort
SELECT + - col1 + ( + 30 ) * - col2 FROM tab1 AS cor0
----
-1646
-1720
-2893
query I rowsort
SELECT col2 * + 51 + col1 * - 75 AS col1 FROM tab1 cor0
----
2157
3921
804
query I rowsort
SELECT col1 + 40 FROM tab2
----
57
71
99
query I rowsort
SELECT - 9 + ( - col0 * col2 ) AS col1 FROM tab2 AS cor0
----
-198
-2037
-3011
query I rowsort
SELECT + - 19 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-10
4077
6381
query I rowsort
SELECT ALL - cor1.col2 - + tab2.col0 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 0c69694face67a84b4daa71b790a350e
query I rowsort
SELECT ALL + col1 * + 47 AS col2 FROM tab2
----
1457
2773
799
query I rowsort
SELECT 6 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT + ( col2 ) * col2 AS col2 FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 98 col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT DISTINCT + - cor0.col0 * + 2 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1318
SELECT ALL col1 DIV 85 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL col1 / 85 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1319
SELECT - - CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif mysql # not compatible
query I rowsort label-1319
SELECT - - CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT 67 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL - col2 - + ( + col2 ) FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab1, tab1 AS cor0
----
75
query I rowsort
SELECT col2 + - ( - col1 ) * cor0.col2 * ( + 41 ) FROM tab0 cor0
----
116391
306024
3978
query I rowsort
SELECT col1 + - col2 * + 85 AS col2 FROM tab0 cor0
----
-2719
-6879
12
query I rowsort
SELECT + - cor0.col0 * col0 * 68 AS col0 FROM tab1 AS cor0
----
-278528
-435200
-612
query I rowsort
SELECT DISTINCT tab2.col0 + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 218174566e316faf7def1869e4f9f1b6
query I rowsort
SELECT ALL + tab2.col1 * 44 FROM tab2
----
1364
2596
748
query I rowsort
SELECT - 99 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT ALL - col1 * col2 * col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT 33 AS col1 FROM tab2 AS cor0
----
33
33
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1331
SELECT DISTINCT + CAST( 50 AS SIGNED ) FROM tab1
----
50
skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + CAST ( 50 AS INTEGER ) FROM tab1
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1332
SELECT + 49 * + col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14161
170569
47089
skipif mysql # not compatible
query I rowsort label-1332
SELECT + 49 * + col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14161
170569
47089
query I rowsort
SELECT - 4 * - col1 AS col0 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT - 83 + + col2 * col1 AS col1 FROM tab0 cor0
----
14
2755
7379
query I rowsort
SELECT 34 * + col1 AS col0 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT 86 AS col2 FROM tab0 cor0
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT + col2 DIV col0 + - col0 * - col1 FROM tab0
----
2065
3395
8099
skipif mysql # not compatible
query I rowsort label-1337
SELECT + col2 / col0 + - col0 * - col1 FROM tab0
----
2065
3395
8099
query I rowsort
SELECT ALL cor0.col2 * col2 - + col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT + 40 * - col0 * + 64 AS col0 FROM tab2 cor0
----
-17920
-199680
-202240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - + 52 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b78f2e4335cb8d9b07c1c4a6e29f2a53
query I rowsort
SELECT ALL cor0.col1 - col0 * + ( col2 ) AS col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col0 + col0 * + col1 + col2 FROM tab1 AS cor0
----
1216
135
761
onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT - col0 DIV 61 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1343
SELECT - col0 / 61 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 * - col0 AS col0 FROM tab2 cor0
----
2686
434
9204
query I rowsort
SELECT - - cor0.col1 * - col2 + - col1 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL col2 + + col2 * ( col2 ) AS col0 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1349
SELECT ALL cor0.col1 * - CAST( 67 AS SIGNED ) FROM tab2 AS cor0
----
-1139
-2077
-3953
skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL cor0.col1 * - CAST ( 67 AS INTEGER ) FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT + col2 + - 49 * - col0 FROM tab2 AS cor0
----
370
3848
3909
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ( col0 + - col0 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 * - ( + cor0.col1 ) + + 3 FROM tab1 AS cor0
----
-1245
-1401
-567
query I rowsort
SELECT + - col1 + + cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col1 * ( + col1 ) + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - col2 * + col0 * + 92 FROM tab2
----
-17388
-186576
-276184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + - col2 * + 16 FROM tab1 AS cor0
----
-1536
-864
-912
query I rowsort
SELECT - col2 + col2 + col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( 32 ) * - col2 AS col2 FROM tab1 AS cor0
----
1728
1824
3072
onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT DISTINCT + ( col2 ) DIV - col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT + ( col2 ) / - col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT + 16 * - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 071d213a88b6ab247957e3e122c9d7a2
query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
43
query I rowsort
SELECT - 6 + col2 + 4 AS col0 FROM tab1 AS cor0
----
52
55
94
query I rowsort
SELECT ALL - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT 24 DIV col2 + + col2 + - 53 FROM tab1 AS cor0
----
1
4
43
skipif mysql # not compatible
query I rowsort label-1367
SELECT 24 / col2 + + col2 + - 53 FROM tab1 AS cor0
----
1
4
43
query I rowsort
SELECT 23 * + 91 - col0 AS col1 FROM tab2
----
2014
2015
2086
query I rowsort
SELECT ALL 95 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * 93 + col1 FROM tab0 AS cor0
----
3352
678805
73742
onlyif mysql # use DIV operator for integer division
query I rowsort label-1372
SELECT + col0 * - 63 + - col2 * col2 DIV 17 FROM tab0 AS cor0
----
-1576
-2205
-6002
skipif mysql # not compatible
query I rowsort label-1372
SELECT + col0 * - 63 + - col2 * col2 / 17 FROM tab0 AS cor0
----
-1576
-2205
-6002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT ALL col0 DIV - 3 FROM tab1 AS cor0
----
-1
-21
-26
skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL col0 / - 3 FROM tab1 AS cor0
----
-1
-21
-26
query I rowsort
SELECT DISTINCT - col2 * + 5 + - col0 FROM tab2 AS cor0
----
-142
-208
-269
query I rowsort
SELECT ALL + col0 * - 80 - - ( - col1 * 3 ) AS col2 FROM tab1 AS cor0
----
-318
-5150
-6439
query I rowsort
SELECT + col0 * - 14 + + col2 * - col2 FROM tab1 AS cor0
----
-10336
-2958
-4145
query I rowsort
SELECT ALL - col0 * 37 + - cor0.col1 FROM tab1 AS cor0
----
-137
-2378
-2973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT ALL - + col0 DIV col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - + col0 / col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col2 * ( 54 ) AS col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT ALL + col0 * ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col1 * 40 - col2 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-122012
-51714
-7099
query I rowsort
SELECT + - col1 + 69 * col0 AS col1 FROM tab0 AS cor0
----
1570
2318
6050
onlyif mysql # use DIV operator for integer division
query I rowsort label-1385
SELECT - col0 DIV + ( cor0.col2 * - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
24
36
89
skipif mysql # not compatible
query I rowsort label-1385
SELECT - col0 / + ( cor0.col2 * - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
24
36
89
query I rowsort
SELECT DISTINCT + col1 * col1 * - col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1388
SELECT DISTINCT - col2 DIV cor0.col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT - col2 / cor0.col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL - - cor0.col1 + + ( + col2 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col1 * + ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT + - col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col0 - tab2.col1 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT ALL - cor0.col2 * - col0 * col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + ( - col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col2 + 45 FROM tab2
----
71
72
83
query I rowsort
SELECT ALL + 63 AS col1 FROM tab1 AS cor0
----
63
63
63
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT + col2 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + + 99 FROM tab2 cor0
----
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT cor0.col1 DIV 27 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
skipif mysql # not compatible
query I rowsort label-1402
SELECT cor0.col1 / 27 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL + 51 AS col0 FROM tab2
----
51
51
51
query I rowsort
SELECT 6 FROM tab2, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT 46 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT - col0 + col0 * 84 AS col1 FROM tab2
----
581
6474
6557
query I rowsort
SELECT ALL col2 * col2 - tab1.col0 AS col1 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT + ( - tab0.col1 ) + col1 * 46 AS col1 FROM tab0
----
3870
4095
4365
query I rowsort
SELECT ALL 49 * + col1 - + col2 * + col2 AS col1 FROM tab0
----
-2265
3125
4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT - col2 + - col0 DIV col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-1410
SELECT - col2 + - col0 / col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT DISTINCT + + col0 + + col1 + - 31 * - 48 FROM tab1 AS cor0
----
1517
1562
1581
query I rowsort
SELECT - 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 17 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
1495
1629
1650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 col2 FROM tab1 AS cor0
----
80
80
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col1 col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + cor0.col1 * + col0 - - col0 * col2 AS col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2, tab1 AS cor0
----
-85
query I rowsort
SELECT - ( - 47 * cor0.col1 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to a2d92791da4ec24a091aacfb7b519042
query I rowsort
SELECT DISTINCT - col2 * 64 AS col0 FROM tab1
----
-3456
-3648
-6144
query I rowsort
SELECT col2 * - ( - col1 ) FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) * tab2.col1 col0 FROM tab2
----
119652
51034
5859
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT + col2 DIV - col0 - - 62 * col2 * - col1 FROM tab2 AS cor0
----
-40052
-51897
-95108
skipif mysql # not compatible
query I rowsort label-1424
SELECT + col2 / - col0 - - 62 * col2 * - col1 FROM tab2 AS cor0
----
-40052
-51897
-95108
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT + col2 DIV CAST( 83 AS SIGNED ) col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1425
SELECT + col2 / CAST ( 83 AS INTEGER ) col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col2 * - 89 + tab2.col1 AS col2 FROM tab2
----
-2255
-2372
-3365
onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT ALL 68 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 68 / col2 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + - 71 * + col1 col2 FROM tab1
----
-1753
-617
-830
query I rowsort
SELECT + cor0.col1 + - 82 FROM tab0 cor0
----
15
4
9
query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col0 FROM tab0 cor0
----
31
query I rowsort
SELECT - + 35 AS col2 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT ALL + col0 + 89 * col2 FROM tab1 AS cor0
----
4809
5137
8624
query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL 17 FROM tab0, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL - col2 + - 37 + col0 FROM tab0 AS cor0
----
-3
-30
-46
query I rowsort
SELECT DISTINCT - col2 + col2 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-1
-2785
-7453
query I rowsort
SELECT + cor0.col1 * cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + 72 FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab2 cor0
----
85
query I rowsort
SELECT col2 + + col0 * - ( 21 * col2 ) AS col2 FROM tab1 AS cor0
----
-161184
-3348
-76551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT DISTINCT - - ( - col0 ) * CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - - ( - col0 ) * CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0
----
68
query I rowsort
SELECT DISTINCT + 70 FROM tab0
----
70
query I rowsort
SELECT DISTINCT - col0 * ( + col2 * ( + col0 ) ) FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col2 + - 15 AS col2 FROM tab1
----
39
42
81
query I rowsort
SELECT + - 64 * - cor0.col1 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT tab1.col1 + 68 FROM tab1
----
78
81
94
query I rowsort
SELECT + 24 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1453
SELECT - CAST( - col1 AS SIGNED ) col2 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1453
SELECT - CAST ( - col1 AS INTEGER ) col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + cor0.col0 * + col2 - col0 * + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 56 AS col2 FROM tab1
----
56
56
56
query I rowsort
SELECT + 94 * + ( + col1 * - col1 ) AS col1 FROM tab1
----
-15886
-63544
-9400
query I rowsort
SELECT 53 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + ( - col0 * - tab0.col2 + col2 ) FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT + col1 * tab2.col0 + ( - 89 ) DIV - col1 AS col1 FROM tab2
----
1348
219
4603
skipif mysql # not compatible
query I rowsort label-1460
SELECT + col1 * tab2.col0 + ( - 89 ) / - col1 AS col1 FROM tab2
----
1348
219
4603
onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT - col1 + ( col2 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-1461
SELECT - col1 + ( col2 ) / col2 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - col1 * 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT - 88 * - col2 + ( - 17 ) AS col0 FROM tab0
----
2887
71
7199
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ( col2 * tab1.col2 ) AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 60 * - col0 FROM tab0
----
-1440
-2100
-5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1468
SELECT - cor0.col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - - col1 * col0 * - 32 AS col0 FROM tab0 AS cor0
----
-108640
-259168
-66048
query I rowsort
SELECT - col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL tab2.col1 + + col0 + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + tab2.col1 * col0 + - 7 AS col2 FROM tab2
----
1336
210
4595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 08d17e3a3b2a1d6f17471092ee2b5093
query I rowsort
SELECT ALL - 34 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f15b10bad40db20faa5588ba4eecc7f1
query I rowsort
SELECT - + col1 + 70 FROM tab2 AS cor0
----
11
39
53
query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT DISTINCT col1 DIV - 60 + col1 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT col1 / - 60 + col1 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT col2 - - col0 AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT + 88 + - col1 * - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
101
114
98
skipif mysql # not compatible
query I rowsort label-1479
SELECT + 88 + - col1 * - col2 / col2 AS col2 FROM tab1 AS cor0
----
101
114
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1480
SELECT - + 17 + - 27 DIV + col2 FROM tab1 cor0
----
-17
-17
-17
skipif mysql # not compatible
query I rowsort label-1480
SELECT - + 17 + - 27 / + col2 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - ( - col1 ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 57 AS col2 FROM tab1 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT - + col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ( - col0 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 83 + col2 FROM tab0 cor0
----
116
165
84
query I rowsort
SELECT ALL + + col0 + ( - col0 + - ( cor0.col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 35 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1308
182
4567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - + col0 + col1 * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + 27 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1561
673
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 col1 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT ALL 40 * col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT DISTINCT 27 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
213
255
648
query I rowsort
SELECT + col2 * col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + - 49 FROM tab2 AS cor0
----
-49
-49
-49
query I rowsort
SELECT 16 + + col2 FROM tab2 AS cor0
----
42
43
54
query I rowsort
SELECT + 37 * col0 * col1 - col1 FROM tab1 AS cor0
----
23670
2860
38467
query I rowsort
SELECT ALL 27 * - col1 AS col2 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT + - col0 + col1 * 42 - - col0 * col2 FROM tab2 AS cor0
----
1484
3637
4428
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 18 col1 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT - - col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col2 * - 77 + col1 AS col0 FROM tab1 AS cor0
----
-4132
-4379
-7379
query I rowsort
SELECT ALL + col1 * - col2 * col2 + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT ALL + col1 DIV col0 col1 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + col1 / col0 col1 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL + ( 72 ) FROM tab1
----
72
72
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1509
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL + 0 + 30 AS col2 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1512
SELECT DISTINCT - CAST( - 51 AS SIGNED ) + col2 * col2 FROM tab2 AS cor0
----
1495
727
780
skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) + col2 * col2 FROM tab2 AS cor0
----
1495
727
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL ( - col2 ) * - cor0.col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col2 * col0 * 7 AS col1 FROM tab0 AS cor0
----
-245
-51086
-5544
query I rowsort
SELECT ALL - + 86 * - col2 + - 86 AS col1 FROM tab0 AS cor0
----
0
2752
6966
query I rowsort
SELECT DISTINCT - 97 * col2 FROM tab0 AS cor0
----
-3201
-7954
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT + + col0 - + cor0.col0 * col2 DIV + 24 AS col2 FROM tab1 AS cor0
----
-240
-3
-88
skipif mysql # not compatible
query I rowsort label-1518
SELECT + + col0 - + cor0.col0 * col2 / + 24 AS col2 FROM tab1 AS cor0
----
-240
-3
-88
query I rowsort
SELECT DISTINCT + col2 * + col1 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col0 * col1 + ( - col2 ) * - cor0.col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT - col2 * cor0.col1 - + ( + col2 * - col1 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT ALL + 35 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + 35 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1525
SELECT DISTINCT col1 - - col0 * - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT col1 - - col0 * - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * ( + col1 ) + - col0 * 71 col2 FROM tab1 AS cor0
----
-161
-3914
-4653
query I rowsort
SELECT - col0 - + col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT + ( col2 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1528
SELECT + ( col2 ) / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT + col0 + - cor0.col0 DIV cor0.col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1529
SELECT + col0 + - cor0.col0 / cor0.col0 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT DISTINCT + col0 * 2 + ( cor0.col0 ) + CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-2766
-7195
8
skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT + col0 * 2 + ( cor0.col0 ) + CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-2766
-7195
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT ALL - col0 + - col1 + col1 * - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL - col0 + - col1 + col1 * - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - 32 ) * + col2 col2 FROM tab2 AS cor0
----
-1233
-891
-895
query I rowsort
SELECT - col2 * col1 + ( col0 ) FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col0 * col0 + - ( cor0.col1 ) FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - col0 * - col2 + 39 + - col1 AS col0 FROM tab0 cor0
----
-23
7246
745
query I rowsort
SELECT ALL - - col0 + 76 * + col1 + col0 * col1 AS col0 FROM tab2 cor0
----
2580
2714
9164
query I rowsort
SELECT ALL - + col1 + - 8 * + col0 + col2 FROM tab0 AS cor0
----
-245
-376
-721
query I rowsort
SELECT ALL cor0.col1 - - col2 * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col2 * col2 + 97 AS col0 FROM tab0 AS cor0
----
1186
6821
98
query I rowsort
SELECT ALL + col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT 50 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL - - cor0.col2 * col1 + 25 * + col0 - 73 AS col2 FROM tab2 AS cor0
----
2548
3411
939
query I rowsort
SELECT DISTINCT col2 * + ( 37 ) + col0 FROM tab0 AS cor0
----
1245
3123
72
query I rowsort
SELECT ALL + col2 * ( + col2 ) + + col2 * ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - col0 + col1 * + col2 * col0 AS col2 FROM tab0 cor0
----
3360
664029
68088
query I rowsort
SELECT DISTINCT - 59 + col0 AS col0 FROM tab0 AS cor0
----
-24
-35
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT + col2 DIV - 27 FROM tab0 cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-1548
SELECT + col2 / - 27 FROM tab0 cor0
----
-1
-3
0
query I rowsort
SELECT + col0 + 89 FROM tab2 cor0
----
167
168
96
query I rowsort
SELECT + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1551
SELECT + CAST( - 95 AS SIGNED ) * - col1 FROM tab2 cor0
----
1615
2945
5605
skipif mysql # not compatible
query I rowsort label-1551
SELECT + CAST ( - 95 AS INTEGER ) * - col1 FROM tab2 cor0
----
1615
2945
5605
query I rowsort
SELECT 86 * col0 AS col1 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT + + 95 AS col0 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT DISTINCT ( 2 ) FROM tab1, tab1 cor0
----
2
query I rowsort
SELECT DISTINCT + col2 * col2 * 43 AS col2 FROM tab2
----
29068
31347
62092
query I rowsort
SELECT col1 * ( + col2 ) + + col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT 78 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-3570
-7602
-84
query I rowsort
SELECT - cor0.col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1559
SELECT + col1 + - col0 * + CAST( 6 AS SIGNED ) FROM tab2 AS cor0
----
-11
-409
-457
skipif mysql # not compatible
query I rowsort label-1559
SELECT + col1 + - col0 * + CAST ( 6 AS INTEGER ) FROM tab2 AS cor0
----
-11
-409
-457
query I rowsort
SELECT ALL - + 21 * + 76 FROM tab2 AS cor0
----
-1596
-1596
-1596
query I rowsort
SELECT + - 21 * - 51 AS col1 FROM tab1 AS cor0
----
1071
1071
1071
query I rowsort
SELECT + ( 87 ) * - col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT ALL cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - - cor0.col1 * + 40 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
1240
2360
680
query I rowsort
SELECT - ( tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 67 * - col1 + - ( tab2.col0 + + col2 * + col0 ) FROM tab2
----
-2273
-4220
-6059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1567
SELECT DISTINCT col1 + + col0 + + CAST( NULL AS SIGNED ) * col1 col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT col1 + + col0 + + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab2
----
NULL
query I rowsort
SELECT - - col2 + 23 + col2 AS col1 FROM tab0 AS cor0
----
187
25
89
query I rowsort
SELECT ALL ( + tab0.col1 ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - col2 * ( - 66 ) * col2 FROM tab0
----
443784
66
71874
query I rowsort
SELECT ALL 60 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT DISTINCT col1 * + col1 DIV ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT col1 * + col1 / ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 * - col2 * + ( - col0 ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col2 * 79 + - 49 FROM tab1 AS cor0
----
4217
4454
7535
query I rowsort
SELECT + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + ( col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 36 AS col1 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT 23 + - col0 FROM tab2 cor0
----
-55
-56
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT - col0 + + col1 DIV ( + col2 + - 50 ) AS col0 FROM tab1 AS cor0
----
-63
-80
3
skipif mysql # not compatible
query I rowsort label-1580
SELECT - col0 + + col1 / ( + col2 + - 50 ) AS col0 FROM tab1 AS cor0
----
-63
-80
3
query I rowsort
SELECT + 25 * - 97 FROM tab0, tab1 AS cor0
----
9 values hashing to 1ce6e90dfc6473316e68c89370674691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1582
SELECT DISTINCT + + col0 * - CAST( - col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT + + col0 * - CAST ( - col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + + col2 * ( col2 ) + col0 * cor0.col2 + + col1 FROM tab2 AS cor0
----
2763
4463
949
query I rowsort
SELECT + cor0.col0 + - 65 AS col2 FROM tab2 cor0
----
-58
13
14
query I rowsort
SELECT ALL + col0 * col1 * + ( - col0 ) + - cor0.col2 FROM tab0 AS cor0
----
-118826
-49569
-720893
query I rowsort
SELECT DISTINCT + 92 FROM tab0, tab2 AS cor0, tab1 cor1
----
92
query I rowsort
SELECT - + cor0.col1 - cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to 076bba756c9b7eaa94a11ec2f6f251f8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + col1 col2 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col2 FROM tab2 AS cor0
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col1 ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 * - 79 * col1 FROM tab1 AS cor0
----
50560
6162
82160
query I rowsort
SELECT + 1 + + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 436848f13fd07aa7d19559af73d30508
query I rowsort
SELECT - 84 * + 93 AS col2 FROM tab2
----
-7812
-7812
-7812
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1594
SELECT + CAST( NULL AS DECIMAL ) * + 31 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1594
SELECT + CAST ( NULL AS REAL ) * + 31 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 * + col2 + - 94 col1 FROM tab1 AS cor0
----
4118
4352
7394
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - 46 * col0 * col2 + ( col2 ) FROM tab0 AS cor0
----
1611
335790
36465
query I rowsort
SELECT ALL - 47 + - col1 AS col0 FROM tab2 AS cor0
----
-106
-64
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col1 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 19 * 89 - col0 FROM tab1
----
1611
1627
1688
query I rowsort
SELECT ALL ( - col2 ) - col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col0 * col1 + 85 AS col0 FROM tab0 AS cor0
----
2149
3480
8184
query I rowsort
SELECT - col1 * + cor0.col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT ALL + - col2 + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - col1 + + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT ALL CAST( NULL AS SIGNED ) + ( col2 ) - col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL CAST ( NULL AS INTEGER ) + ( col2 ) - col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 3fb27a91711469131edbffaad90e6035
query I rowsort
SELECT ALL 2 + - col0 AS col2 FROM tab2
----
-5
-76
-77
query I rowsort
SELECT + + 0 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 27 * - col0 + CAST ( - col0 AS REAL ) * col1 AS col0 FROM tab2 AS cor0
----
-3476
-406
-6708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1612
SELECT ALL + 99 * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + 99 * col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 59 * + cor0.col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT DISTINCT col1 * tab0.col1 + tab0.col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT - 63 + col2 * col2 FROM tab2
----
1381
613
666
query I rowsort
SELECT DISTINCT col1 * ( + col0 * col2 ) FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT - 34 + + 32 AS col0 FROM tab1 AS cor0
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT + CAST( - cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1619
SELECT + CAST ( - cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 96 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT + 56 - 16 * col1 AS col1 FROM tab0 AS cor0
----
-1320
-1400
-1496
query I rowsort
SELECT - col1 * - col2 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 + 4 FROM tab0
----
39
7302
796
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1624
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + col0 * - col0 + + col2 - - col0 AS col1 FROM tab1 AS cor0
----
4217
6576
66
query I rowsort
SELECT - col1 + + 41 - col2 * - 56 * 90 FROM tab2 AS cor0
----
131022
136090
191544
query I rowsort
SELECT ALL + 53 * - 33 * + cor0.col2 FROM tab1 AS cor0
----
-167904
-94446
-99693
query I rowsort
SELECT - ( cor0.col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ( - col2 ) + - col2 * 33 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT DISTINCT + col0 * - col1 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + cor0.col2 + 87 * - cor0.col1 FROM tab0 cor0
----
-7449
-7835
-8438
query I rowsort
SELECT ALL + + 96 + col2 * + col0 * + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
3491
664214
68208
query I rowsort
SELECT ALL - col1 * + 59 AS col0 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT ALL - - col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT col0 DIV - tab1.col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1635
SELECT col0 / - tab1.col0 FROM tab1
----
-1
-1
-1
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) <= NULL
----
query I rowsort
SELECT DISTINCT - col1 - - col1 AS col0 FROM tab1
----
0
query I rowsort
SELECT + tab0.col2 * col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab2.col0 col0 FROM tab2 WHERE NULL BETWEEN col1 + col2 AND - col2 * col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 + + col0 * + col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col2 + + col1 * col2 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col2 + tab0.col0 / tab0.col2 + + tab0.col2 FROM tab0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col1 + - col2 * col2 FROM tab2
----
-1427
-617
-698
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col1 AND ( col0 / + tab1.col2 )
----
query I rowsort
SELECT col2 + + col1 AS col0 FROM tab0
----
119
173
98
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND ( + col0 * col2 + - col1 * - col1 - + col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE col2 <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - col2
----
query I rowsort
SELECT col0 + - col0 * - col0 AS col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT col0 + - col1 * + col0 * col0 FROM tab0
----
-118790
-49512
-720722
query I rowsort
SELECT col1 - tab0.col1 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / col2 NOT BETWEEN ( NULL ) AND ( - col1 )
----
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL col1 + + tab0.col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT tab1.col2 + + col0 * - col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT col2 * col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
26160
598525
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 + col2 * col0 col2 FROM tab2 cor0
----
-648
2356
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT DISTINCT - col1 DIV - col1 + - col0 FROM tab0 cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - col1 / - col1 + - col0 FROM tab0 cor0
----
-23
-34
-88
query I rowsort
SELECT ALL - + col0 - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + col0 * cor0.col1 + col0 * cor0.col1 FROM tab2 AS cor0
----
2686
434
9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT DISTINCT + col0 * - col0 DIV col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + col0 * - col0 / col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT DISTINCT col0 + - col0 DIV + col1 FROM tab1 cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT col0 + - col0 / + col1 FROM tab1 cor0
----
3
58
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT DISTINCT + col0 * + col0 + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1322
578
7922
skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + col0 * + col0 + col1 / col2 AS col2 FROM tab0 AS cor0
----
1322
578
7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT DISTINCT + cor0.col1 DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT + cor0.col1 / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT col2 DIV + col0 AS col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1668
SELECT col2 / + col0 AS col0 FROM tab0 cor0
----
0
0
1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT DISTINCT col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT col1 / - cor0.col1 FROM tab2 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT - col0 - col0 DIV - tab0.col2 AS col2 FROM tab0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-1671
SELECT - col0 - col0 / - tab0.col2 AS col2 FROM tab0
----
-24
-88
0
query I rowsort
SELECT col0 + + col2 * tab2.col0 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col0 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 * col1 + + 33 AS col0 FROM tab2 cor0
----
322
3514
994
onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT DISTINCT - col0 * + ( col2 ) DIV + col2 + + col2 FROM tab1 cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - col0 * + ( col2 ) / + col2 + + col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 * + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - col0 * - col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT cor0.col1 + - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1680
SELECT ALL + + col1 + CAST( col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
6143
6258
80
skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + + col1 + CAST ( col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1681
SELECT col2 * col0 + + col0 DIV + col0 FROM tab2 AS cor0
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-1681
SELECT col2 * col0 + + col0 / + col0 FROM tab2 AS cor0
----
190
2029
3003
onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT + col1 DIV - col2 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1682
SELECT + col1 / - col2 + + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1683
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1683
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1684
SELECT CAST( + 2 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
skipif mysql # not compatible
query I rowsort label-1684
SELECT CAST ( + 2 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT - ( cor0.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + 35 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
35
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT - + col2 * - cor0.col1 + - ( col2 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97
skipif mysql # not compatible
query I rowsort label-1688
SELECT - + col2 * - cor0.col1 + - ( col2 ) / - col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97
query I rowsort
SELECT ALL ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col1 + - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT tab2.col0 * - col1 * + col0 AS col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab2 WHERE NOT ( col0 - + col1 * + col0 ) <> col0
----
query I rowsort
SELECT - col0 * col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL 16 * col2 + 24 AS col2 FROM tab2
----
440
456
632
query I rowsort
SELECT ( - col1 ) + - col1 AS col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL ( col0 ) + - tab1.col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT - 25 * col1 DIV 34 AS col0 FROM tab0
----
-63
-66
-71
skipif mysql # not compatible
query I rowsort label-1697
SELECT - 25 * col1 / 34 AS col0 FROM tab0
----
-63
-66
-71
query I rowsort
SELECT DISTINCT - 65 + col0 * col1 FROM tab2
----
1278
152
4537
query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1700
SELECT col2 * col1 + CAST( NULL AS SIGNED ) * col0 + - tab2.col0 * - 99 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1700
SELECT col2 * col1 + CAST ( NULL AS INTEGER ) * col0 + - tab2.col0 * - 99 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 96 + col1 AS col2 FROM tab1
----
106
109
122
query I rowsort
SELECT - col2 * - col0 + - 35 FROM tab2 cor0
----
154
1993
2967
query I rowsort
SELECT - col0 - col1 * - 1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT + col0 DIV - ( ( tab0.col0 ) ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1704
SELECT + col0 / - ( ( tab0.col0 ) ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + + 7 * - col1 + - col1 FROM tab1 AS cor0
----
-104
-208
-80
query I rowsort
SELECT 70 + 77 AS col2 FROM tab0 AS cor0
----
147
147
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT ALL - col2 + ( tab1.col1 ) * col0 DIV + tab1.col1 + - col2 col1 FROM tab1
----
-105
-112
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - col2 + ( tab1.col1 ) * col0 / + tab1.col1 + - col2 col1 FROM tab1
----
-105
-112
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1708
SELECT - CAST( NULL AS DECIMAL ) + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1708
SELECT - CAST ( NULL AS REAL ) + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT CAST( NULL AS SIGNED ) * + col1 + col1 * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1709
SELECT CAST ( NULL AS INTEGER ) * + col1 + col1 * - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 48 + col2 AS col2 FROM tab2
----
74
75
86
query I rowsort
SELECT col1 * col2 + col2 FROM tab0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1712
SELECT DISTINCT CAST( - 87 AS SIGNED ) + col2 AS col0 FROM tab2
----
-49
-60
-61
skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT CAST ( - 87 AS INTEGER ) + col2 AS col0 FROM tab2
----
-49
-60
-61
query I rowsort
SELECT + 90 FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT - col1 * col0 + - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT 74 + - cor0.col1 FROM tab1, tab0 AS cor0
----
-12
-17
-23
query I rowsort
SELECT - - col0 + - 12 AS col0 FROM tab1 AS cor0
----
-9
52
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1717
SELECT CAST( - col1 AS SIGNED ) + col2 + col1 * col2 col2 FROM tab0 cor0
----
1
2785
7453
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1717
SELECT CAST ( - col1 AS INTEGER ) + col2 + col1 * col2 col2 FROM tab0 cor0
----
1
2785
7453
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1718
SELECT + ( - col1 ) * - CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1718
SELECT + ( - col1 ) * - CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT - - col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col2 * + col1 - 11 FROM tab1 AS cor0
----
-1259
-1415
-581
query I rowsort
SELECT + col0 + - col1 * 87 FROM tab2 AS cor0
----
-1400
-2690
-5055
query I rowsort
SELECT - + cor0.col1 * col0 - - 25 FROM tab0 AS cor0
----
-2039
-3370
-8074
query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0, tab0 AS cor0
----
19
query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab1
----
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1726
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT + col2 DIV - col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1727
SELECT + col2 / - col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT 25 * col1 FROM tab1
----
250
325
650
query I rowsort
SELECT DISTINCT col2 * col1 + - col1 AS col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT 35 * + col1 AS col1 FROM tab2
----
1085
2065
595
query I rowsort
SELECT ALL + col1 + cor0.col2 * col1 + col1 AS col1 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT cor0.col2 * + col0 + + col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT DISTINCT - col2 * col0 DIV col1 + col0 * + tab2.col0 AS col1 FROM tab2
----
43
6050
6065
skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - col2 * col0 / col1 + col0 * + tab2.col0 AS col1 FROM tab2
----
43
6050
6065
query I rowsort
SELECT + - cor0.col1 - col0 * col0 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col1 * col2 - - tab1.col0 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 AS col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT cor0.col0 * col2 * cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - - col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col1 * + cor0.col2 + col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT DISTINCT col0 * + col1 + col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT col0 * + col1 + col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT col1 * col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL - - col0 + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col2 * + col1 + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT ALL - col2 + tab0.col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col2 * col1 col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - col2 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 * cor0.col0 AS col1 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + - 11 * + cor0.col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT ALL + col1 * - col0 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT DISTINCT + - col2 * - col1 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + - col2 * - col1 + cor0.col1 / col0 FROM tab0 AS cor0
----
2841
7463
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col1 - + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col2 + + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 7 * col2 + cor0.col2 * col1 + col1 FROM tab1 AS cor0
----
1808
1933
979
query I rowsort
SELECT - 72 FROM tab2, tab1 cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT ALL - tab0.col1 + + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 0a02f956e9d986d821ef3ce8f468b243
query I rowsort
SELECT + col0 + + col0 * col0 * - col0 FROM tab1
----
-24
-262080
-511920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1766
SELECT ALL - CAST( + col0 AS SIGNED ) + + col0 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - CAST ( + col0 AS INTEGER ) + + col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT 93 FROM tab2, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL tab0.col0 * tab0.col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT DISTINCT 36 DIV + tab1.col2 FROM tab1, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT 36 / + tab1.col2 FROM tab1, tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT + ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1770
SELECT + ( col1 ) / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - cor0.col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - col2 * col2 DIV col0 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-1772
SELECT - col2 * col2 / col0 FROM tab2 AS cor0
----
-104
-18
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 * cor0.col1 + col0 col0 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT - ( + col2 ) * + ( col2 ) + + col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + - 79 * - col0 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT DISTINCT col0 * col0 DIV + 56 AS col0 FROM tab2 AS cor0
----
0
108
111
skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT col0 * col0 / + 56 AS col0 FROM tab2 AS cor0
----
0
108
111
query I rowsort
SELECT + cor1.col1 + - 2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6982920074ad348f50c857cb8ca48614
query I rowsort
SELECT + - 64 * cor0.col2 + col1 AS col0 FROM tab2 cor0
----
-1605
-1697
-2415
query I rowsort
SELECT ALL 15 AS col0 FROM tab2
----
15
15
15
query I rowsort
SELECT 51 + 98 FROM tab2 cor0
----
149
149
149
onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT + col2 DIV - CAST( - col0 * col0 AS SIGNED ) + col2 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1781
SELECT + col2 / - CAST ( - col0 * col0 AS INTEGER ) + col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col0 * + ( 80 ) * col1 + ( + 22 ) - + col2 FROM tab2
----
107424
17355
368156
query I rowsort
SELECT ALL - col0 * 11 - - 68 FROM tab2
----
-790
-801
-9
query I rowsort
SELECT ALL + ( - col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + cor0.col2 + - ( col0 + + 83 ) FROM tab2 AS cor0
----
-124
-135
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT ALL - col1 + + cor0.col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - col1 + + cor0.col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT DISTINCT + col0 * + ( cor0.col2 ) AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col2 * - col2 + col0 * col1 AS col0 FROM tab1 cor0
----
-2609
-2838
-8176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT - CAST( NULL AS SIGNED ) / col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1789
SELECT - CAST ( NULL AS INTEGER ) / col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + 7 + - tab1.col2 FROM tab1
----
-5
128
13
query I rowsort
SELECT 7 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT col2 DIV 36 AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1792
SELECT col2 / 36 AS col0 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT + col1 * tab1.col0 + col2 + 97 DIV - tab1.col2 AS col2 FROM tab1
----
1135
131
696
skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + col1 * tab1.col0 + col2 + 97 / - tab1.col2 AS col2 FROM tab1
----
1135
131
696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1794
SELECT + CAST( NULL AS DECIMAL ) * 74 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1794
SELECT + CAST ( NULL AS REAL ) * 74 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 * - 63 + cor0.col2 * + col2 FROM tab2 AS cor0
----
2314
2430
3838
query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 9 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 9 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col1 * col0 * + col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + 91 - + 38 * cor0.col0 AS col2 FROM tab1 cor0
----
-23
-2341
-2949
query I rowsort
SELECT DISTINCT + - 80 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT + - cor0.col0 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT ALL cor0.col2 * - col1 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - ( - col1 ) + - col2 * ( + col0 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + - col0 * - cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT - col2 + + col2 * + cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col0 * 65 * col2 FROM tab1
----
10530
237120
499200
query I rowsort
SELECT 50 * + tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 471280131e0a9a3f690f954384ad6cf9
query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab0, tab2 AS cor0
----
22
query I rowsort
SELECT ALL col1 + + col0 + - col2 * tab1.col2 FROM tab1
----
-2887
-3175
-9123
query I rowsort
SELECT ALL - 62 + - 91 * col2 * - 0 AS col1 FROM tab2
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - col2 + tab2.col1 * - col1 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL - ( 7 ) FROM tab0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT + + col0 * + 82 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT - + col1 * 70 * col1 AS col0 FROM tab1 cor0
----
-11830
-47320
-7000
onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT ALL - col0 DIV ( + cor0.col1 * + 12 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - col0 / ( + cor0.col1 * + 12 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab0, tab1 cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT CAST( + col0 AS SIGNED ) DIV col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1817
SELECT CAST ( + col0 AS INTEGER ) / col2 FROM tab1
----
0
0
1
query I rowsort
SELECT - col2 * + cor0.col0 + - col1 FROM tab2 cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT - + 65 DIV + col0 + + ( col2 ) FROM tab2 cor0
----
18
26
38
skipif mysql # not compatible
query I rowsort label-1819
SELECT - + 65 / + col0 + + ( col2 ) FROM tab2 cor0
----
18
26
38
query I rowsort
SELECT 64 + - col2 + + ( col2 ) FROM tab2 AS cor0
----
64
64
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1821
SELECT + col0 * + col0 + + CAST( NULL AS SIGNED ) * + col1 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1821
SELECT + col0 * + col0 + + CAST ( NULL AS INTEGER ) * + col1 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) * 91 AS col2 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT - ( - col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT - col0 * col1 DIV ( cor0.col1 ) + - col0 + - ( col1 ) FROM tab2 cor0
----
-175
-215
-45
skipif mysql # not compatible
query I rowsort label-1824
SELECT - col0 * col1 / ( cor0.col1 ) + - col0 + - ( col1 ) FROM tab2 cor0
----
-175
-215
-45
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) * col1 + col1 AS col1 FROM tab0 AS cor0
----
159
2900
7464
query I rowsort
SELECT + cor0.col2 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + 64 AS col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT + col0 + - 96 * - col1 FROM tab1 AS cor0
----
1024
1328
2499
onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT + - 58 - cor0.col1 DIV + col1 AS col2 FROM tab1 cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-1831
SELECT + - 58 - cor0.col1 / + col1 AS col2 FROM tab1 cor0
----
-59
-59
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT ALL + col1 + col1 DIV 47 + + cor0.col0 FROM tab0 cor0
----
111
134
181
skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + col1 + col1 / 47 + + cor0.col0 FROM tab0 cor0
----
111
134
181
query I rowsort
SELECT ALL + col1 * - col2 - cor0.col0 * + col0 FROM tab2 AS cor0
----
-6887
-7618
-886
query I rowsort
SELECT - cor0.col2 + - 66 FROM tab1 cor0
----
-120
-123
-162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + + col1 col0 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT - cor0.col0 * 70 + 36 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-4162
-4524
482
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT - + col2 * ( 29 ) DIV - cor0.col1 + - col1 FROM tab2 AS cor0
----
-47
-6
47
skipif mysql # not compatible
query I rowsort label-1837
SELECT - + col2 * ( 29 ) / - cor0.col1 + - col1 FROM tab2 AS cor0
----
-47
-6
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT DISTINCT col2 + col2 DIV 66 AS col2 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT col2 + col2 / 66 AS col2 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT ALL - col1 + 19 FROM tab1 AS cor0
----
-7
6
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT CAST( - cor0.col1 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif mysql # not compatible
query I rowsort label-1840
SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + col0 + ( - col2 ) * col0 - - 87 AS col2 FROM tab2
----
-1863
-2836
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1842
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1842
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col2 ) + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + cor0.col1 * - col1 + + col0 * - col0 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT + + col0 + - ( 99 + col1 ) FROM tab2 AS cor0
----
-123
-37
-80
query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col2 + 73 FROM tab0 AS cor0
----
106
155
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab2, tab1 AS cor0
----
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT col1 * 38 DIV + 55 + - col2 AS col2 FROM tab2
----
-27
-6
14
skipif mysql # not compatible
query I rowsort label-1849
SELECT col1 * 38 / + 55 + - col2 AS col2 FROM tab2
----
-27
-6
14
query I rowsort
SELECT DISTINCT - - col1 * col2 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT ( tab0.col0 + 30 ) FROM tab0
----
119
54
65
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
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 ALL + 25 col1 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT - 64 * + col0 + - cor0.col2 FROM tab1 AS cor0
----
-246
-4153
-5216
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT DISTINCT 93 DIV 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT 93 / 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1858
SELECT - col1 + + CAST( col2 AS SIGNED ) * col1 * - col2 AS col1 FROM tab2 cor0
----
-22630
-24565
-39943
skipif mysql # not compatible
query I rowsort label-1858
SELECT - col1 + + CAST ( col2 AS INTEGER ) * col1 * - col2 AS col1 FROM tab2 cor0
----
-22630
-24565
-39943
query I rowsort
SELECT ALL - col1 * 39 AS col0 FROM tab2
----
-1209
-2301
-663
query I rowsort
SELECT + cor0.col2 * 59 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT ALL 90 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT 71 * + col2 AS col2 FROM tab1 cor0
----
3834
4047
6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT DISTINCT CAST( + cor0.col0 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT CAST ( + cor0.col0 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT 49 DIV col2 + - tab0.col0 DIV tab0.col0 col1 FROM tab0
----
-1
0
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1864
SELECT 49 / col2 + - tab0.col0 / tab0.col0 col1 FROM tab0
----
-1
0
48
query I rowsort
SELECT DISTINCT + - 63 + - col0 FROM tab0 cor0
----
-152
-87
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1866
SELECT + 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-1866
SELECT + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - col1 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + col0 * cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 52 * col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT - - 67 + col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT DISTINCT + 56 * col1 AS col0 FROM tab1 AS cor0
----
1456
560
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1872
SELECT 82 DIV col2 FROM tab0 cor0
----
1
2
82
skipif mysql # not compatible
query I rowsort label-1872
SELECT 82 / col2 FROM tab0 cor0
----
1
2
82
query I rowsort
SELECT ALL + 18 AS col2 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0, tab2 cor0
----
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * ( - col0 ) col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - col1 * + col2 * col2 + - ( col1 ) * col0 FROM tab0 AS cor0
----
-3492
-619983
-95718
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + ( 44 ) + + col1 AS col0 FROM tab1 AS cor0
----
232
3702
7737
query I rowsort
SELECT ALL - cor0.col1 + - cor0.col1 AS col0 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT 57 AS col1 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT DISTINCT - 27 DIV + 27 + + col0 AS col2 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - 27 / + 27 + + col0 AS col2 FROM tab1
----
2
63
79
query I rowsort
SELECT ALL - ( col2 + - col1 * + 81 ) AS col1 FROM tab0
----
6933
7289
7856
query I rowsort
SELECT ALL col1 + ( + col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT ALL col0 * 53 AS col2 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT + col0 + - ( + col1 ) AS col2 FROM tab0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT tab2.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1886
SELECT tab2.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + tab2.col1 AS col0 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1888
SELECT + col1 + - 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-1888
SELECT + col1 + - 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 + col2 - 43 * + col2 col1 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT DISTINCT col1 - + col2 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT + col1 DIV 26 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1891
SELECT + col1 / 26 AS col2 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - 6 + col0 FROM tab0 AS cor0
----
18
29
83
query I rowsort
SELECT ALL + + cor0.col1 + col1 * col2 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1894
SELECT DISTINCT - ( - 5 ) + col1 * + ( + col2 + + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - ( - 5 ) + col1 * + ( + col2 + + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT - CAST( 15 AS SIGNED ) FROM tab0 AS cor0
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-1895
SELECT - CAST ( 15 AS INTEGER ) FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT - 52 + col0 FROM tab0 cor0
----
-17
-28
37
query I rowsort
SELECT ALL - col2 + 11 AS col0 FROM tab0
----
-22
-71
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col2 * - 99 col2 FROM tab2 AS cor0
----
2515
2642
3745
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 * col0 + - ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT ALL + col0 * col0 - + ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + + col0 + col0 * 77 AS col1 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT 93 * col2 FROM tab2 AS cor0
----
2418
2511
3534
onlyif mysql # use DIV operator for integer division
query I rowsort label-1906
SELECT DISTINCT + col2 * - col1 + 45 DIV - col0 col1 FROM tab0 AS cor0
----
-2839
-7462
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + col2 * - col1 + 45 / - col0 col1 FROM tab0 AS cor0
----
-2839
-7462
-98
query I rowsort
SELECT ( - ( + col2 ) ) * + ( + 1 ) + - col2 AS col0 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT + ( col2 ) + col2 * 39 FROM tab1
----
2160
2280
3840
query I rowsort
SELECT + ( col2 ) * - col2 - + 71 AS col2 FROM tab1
----
-2987
-3320
-9287
query I rowsort
SELECT ALL 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + col2 col0 FROM tab0 AS cor0
----
-1
31
80
query I rowsort
SELECT DISTINCT - - 15 * col1 AS col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT ALL + - 87 AS col2 FROM tab0 AS cor0
----
-87
-87
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col1 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT DISTINCT - col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - col1 / cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( col1 ) * - 23 FROM tab1
----
-230
-299
-598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - col0 * + ( - col0 ) * + cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT col2 * - col1 * + col0 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - tab0.col2 * + col0 AS col2 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab0, tab0 cor0
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT - col1 DIV 20 FROM tab2 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-1922
SELECT - col1 / 20 FROM tab2 cor0
----
-1
-2
0
query I rowsort
SELECT cor0.col0 + cor0.col2 * ( + col1 ) FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1924
SELECT ALL + CAST( + 94 * - col1 AS SIGNED ) FROM tab1
----
-1222
-2444
-940
skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL + CAST ( + 94 * - col1 AS INTEGER ) FROM tab1
----
-1222
-2444
-940
query I rowsort
SELECT ALL ( 44 ) + col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1387
261
4646
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + col0 AS REAL ) + col0 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * 33 * + col0 AS col0 FROM tab0 AS cor0
----
112036
267349
68145
query I rowsort
SELECT col1 + 18 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT ALL + ( - col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + ( - col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + 4 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT - 25 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1
13
2
query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab0
----
85
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - + 99 + - col1 * 18 AS col0 FROM tab1 AS cor0
----
-279
-333
-567
query I rowsort
SELECT + + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col1 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL ( + tab0.col0 ) AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT 12 * - col2 AS col1 FROM tab1 cor0
----
-1152
-648
-684
query I rowsort
SELECT ALL + + col2 + col2 - cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + 51 FROM tab2 AS cor0
----
77
78
89
query I rowsort
SELECT ALL 48 * + col1 - col2 AS col2 FROM tab2 AS cor0
----
1461
2806
778
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 96 ) col0 FROM tab2, tab2 AS cor0
----
96
query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT ALL + col2 - + cor0.col1 * col1 DIV 49 AS col1 FROM tab2 AS cor0
----
-45
33
8
skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + col2 - + cor0.col1 * col1 / 49 AS col1 FROM tab2 AS cor0
----
-45
33
8
query I rowsort
SELECT ALL - + col0 * 79 FROM tab2 AS cor0
----
-553
-6162
-6241
query I rowsort
SELECT DISTINCT 82 * 13 + col2 FROM tab0 AS cor0
----
1067
1099
1148
query I rowsort
SELECT DISTINCT + - 99 + + col1 AS col0 FROM tab2 AS cor0
----
-40
-68
-82
query I rowsort
SELECT DISTINCT + + 73 * + col2 * col0 FROM tab0 AS cor0
----
2555
532754
57816
query I rowsort
SELECT - col1 * - col2 - ( ( col1 ) ) FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - 3 AS col1 FROM tab1 cor0
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col0 FROM tab0 AS cor0
----
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT ALL + col1 * cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + col1 * cor0.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-1955
SELECT - CAST( NULL AS SIGNED ) + col1 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1955
SELECT - CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab2, tab0 AS cor0
----
7
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) + col0 - + 29 FROM tab1 AS cor0
----
-188
-3613
-7629
query I rowsort
SELECT - + col1 * cor0.col2 + 52 * col2 AS col1 FROM tab2 AS cor0
----
-182
1330
567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 73 * - col1 col1 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT col1 * col2 + ( col1 ) + + ( col0 ) AS col0 FROM tab2 AS cor0
----
1671
742
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + ( 64 + - col1 ) * - col2 col0 FROM tab1 cor0
----
110808
175446
470016
query I rowsort
SELECT ALL 46 AS col0 FROM tab2
----
46
46
46
query I rowsort
SELECT ALL tab0.col2 * - ( + col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + col2 * ( + col0 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col0 + + col2 * + col2 AS col0 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT - tab0.col0 * - 74 + tab0.col2 - col2 DIV ( + col0 ) AS col2 FROM tab0
----
1808
2591
6668
skipif mysql # not compatible
query I rowsort label-1966
SELECT - tab0.col0 * - 74 + tab0.col2 - col2 / ( + col0 ) AS col2 FROM tab0
----
1808
2591
6668
query I rowsort
SELECT ALL ( + col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT + cor0.col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1968
SELECT + cor0.col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + 39 * ( col2 ) AS col1 FROM tab0 cor0
----
1287
3198
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT DISTINCT + CAST( + 45 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
45
skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + CAST ( + 45 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT ALL + tab1.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + tab1.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col1 ) col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL - - col1 * 52 + col0 FROM tab2 AS cor0
----
1619
3146
963
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2
----
42
query I rowsort
SELECT DISTINCT - 85 * col2 FROM tab0
----
-2805
-6970
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT CAST( NULL AS DECIMAL ) / col2 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1976
SELECT CAST ( NULL AS REAL ) / col2 + - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 16 * col0 FROM tab0 AS cor0
----
-1424
-384
-560
query I rowsort
SELECT ALL + 17 + + col0 * + col0 AS col1 FROM tab1 cor0
----
26
4113
6417
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2 AS cor0
----
72
query I rowsort
SELECT 70 + + col0 AS col0 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT - - col0 + - col0 * col2 * col1 AS col2 FROM tab2 AS cor0
----
-119574
-50955
-5852
onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT + 76 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1982
SELECT + 76 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * + col1 + + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - col2 * + col0 + 20 + ( col1 ) AS col0 FROM tab1
----
-116
-3618
-7647
query I rowsort
SELECT ALL col0 + - col1 - + 23 * col1 FROM tab0
----
-2040
-2095
-2293
query I rowsort
SELECT ALL cor0.col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 + col2 * 25 col2 FROM tab2 AS cor0
----
643
668
943
query I rowsort
SELECT - 74 - col0 FROM tab0 AS cor0
----
-109
-163
-98
query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + col2 * 71 AS col2 FROM tab2 cor0
----
-1846
-1917
-2698
query I rowsort
SELECT - - col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col1 * - cor0.col0 + + col2 + - col0 FROM tab0 AS cor0
----
-2055
-3429
-8106
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT col2 DIV - ( - cor0.col1 * cor0.col2 + - 34 ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1993
SELECT col2 / - ( - cor0.col1 * cor0.col2 + - 34 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col0 * 51 + col2 * - col2 FROM tab1 AS cor0
----
-13296
-3069
-6513
query I rowsort
SELECT 97 * - tab1.col0 AS col0 FROM tab1
----
-291
-6208
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab1, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1998
SELECT - col0 + + 87 DIV col1 + col1 AS col0 FROM tab1 AS cor0
----
-46
-61
26
skipif mysql # not compatible
query I rowsort label-1998
SELECT - col0 + + 87 / col1 + col1 AS col0 FROM tab1 AS cor0
----
-46
-61
26
query I rowsort
SELECT + - cor0.col0 + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-138
-173
-32
query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 + - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
100
139
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col2 + + col0 + - col1 * - col1 AS col2 FROM tab0 cor0
----
7387
8288
9443
query I rowsort
SELECT + col0 + cor0.col2 + + 68 AS col1 FROM tab1 AS cor0
----
125
189
244
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2 + col1 * col1 * col2 )
----
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 * col1 * + col1 FROM tab2 AS cor0
----
205379
29791
4913
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * col0 ) OR - col2 * col2 + col2 NOT BETWEEN cor0.col1 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT col1 + col1 DIV cor0.col0 AS col2 FROM tab0 cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-2009
SELECT col1 + col1 / cor0.col0 AS col2 FROM tab0 cor0
----
89
92
99
query I rowsort
SELECT DISTINCT + + col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 col1 FROM tab1
----
-207936
-737280
-8748
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 * + col0 + col2 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT tab0.col2 * + col0 + + col1 DIV + col1 AS col2 FROM tab0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-2014
SELECT tab0.col2 * + col0 + + col1 / + col1 AS col2 FROM tab0
----
36
7299
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + tab1.col1 * col2 col1 FROM tab1
----
-3078
-6432
1242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT + col0 * tab1.col0 - col0 * col0 * + col2 FROM tab1
----
-229376
-477
-608000
query I rowsort
SELECT col1 - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col1 * - tab1.col1 + - col2 FROM tab1
----
43
622
73
query I rowsort
SELECT - col2 + + col2 * col2 * + col1 FROM tab1
----
119712
32433
75762
query I rowsort
SELECT - col0 + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT - col1 + - col2 DIV + cor0.col1 AS col2 FROM tab1 cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-2023
SELECT - col1 + - col2 / + cor0.col1 AS col2 FROM tab1 cor0
----
-15
-20
-28
query I rowsort
SELECT DISTINCT - - col2 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL cor0.col2 + - col1 * col0 + col0 * col0 * + cor0.col2 FROM tab1 AS cor0
----
232889
462
613456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL col0 + col2 * + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
119730
51113
5866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col1 * + col2 + + tab1.col0 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT col2 * + col1 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT tab1.col1 + - col0 AS col2 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT col2 DIV - col1 + + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2033
SELECT col2 / - col1 + + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT col0 + col1 DIV + 84 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2034
SELECT col0 + col1 / + 84 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2035
SELECT - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - ( - cor0.col2 ) * + col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * cor0.col1 col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT - cor0.col1 DIV 67 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2038
SELECT - cor0.col1 / 67 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 + + ( 52 ) AS col0 FROM tab2 AS cor0
----
-26
-27
45
query I rowsort
SELECT ALL + col0 * col2 * col2 + + col1 AS col1 FROM tab1 cor0
----
207946
737293
8774
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT ALL tab1.col1 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL tab1.col1 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * - col1 + - tab1.col2 AS col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT ALL - tab2.col2 * col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab2 WHERE NULL IN ( col2 / - tab2.col1 )
----
query I rowsort
SELECT DISTINCT col2 * col0 * + col1 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1 WHERE NOT + col2 + - col2 / - col1 < NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col0 + col2 )
----
query I rowsort
SELECT col1 + + col2 + col1 * + tab0.col0 * - col0 AS col1 FROM tab0
----
-118727
-49417
-720638
query I rowsort
SELECT ALL - col1 * + tab1.col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT - col2 DIV col1 col0 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2050
SELECT - col2 / col1 col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL col1 * + col0 + - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT + col0 + col1 * col1 FROM tab2
----
3559
368
968
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT tab2.col1 + col1 < - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col0 * tab0.col1 * - col2 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + col0 * + col2 - - col0 AS col1 FROM tab1
----
165
3712
7760
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 > ( NULL )
----
query I rowsort
SELECT ALL col2 * + col1 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 + + col1 * tab0.col0 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT + col2 * col2 * col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT DISTINCT tab0.col0 + col1 - + tab0.col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab1.col1 * - col2 * - col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( col1 ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT ALL col0 * tab0.col2 + col0 + col0 DIV + col2 FROM tab0
----
105
7388
816
skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL col0 * tab0.col2 + col0 + col0 / + col2 FROM tab0
----
105
7388
816
query I rowsort
SELECT DISTINCT - col0 * - col2 + - 89 FROM tab2
----
100
1939
2913
query I rowsort
SELECT ALL 91 + + col2 AS col2 FROM tab2
----
117
118
129
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2066
SELECT - 52 * col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2066
SELECT - 52 * col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col0 * - col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL + + col2 + + col1 * 21 AS col1 FROM tab0 AS cor0
----
1839
1993
2038
query I rowsort
SELECT DISTINCT - col1 + - 23 * + cor0.col2 * + col1 + + col1 FROM tab0 AS cor0
----
-171626
-2231
-65274
query I rowsort
SELECT ALL cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col2 * 85 * col0 FROM tab1 AS cor0
----
-13770
-310080
-652800
query I rowsort
SELECT - 7 FROM tab2, tab0 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT - + cor0.col0 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT DISTINCT col2 DIV + 12 AS col1 FROM tab1 AS cor0
----
4
8
skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT col2 / + 12 AS col1 FROM tab1 AS cor0
----
4
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT - + col2 DIV 77 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2077
SELECT - + col2 / 77 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * - ( - 17 * + col2 ) AS col2 FROM tab0 AS cor0
----
-126854
-1649
-48246
query I rowsort
SELECT ALL 50 * col2 FROM tab0
----
1650
4100
50
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * + 80 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT DISTINCT + cor0.col1 * 13 AS col0 FROM tab2 AS cor0
----
221
403
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT ALL + - col1 DIV - col0 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL + - col1 / - col0 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT ALL cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - 36 FROM tab2
----
-62
-63
-74
query I rowsort
SELECT - col0 - 97 FROM tab2 AS cor0
----
-104
-175
-176
query I rowsort
SELECT - 73 - cor0.col0 FROM tab2 AS cor0
----
-151
-152
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2088
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2088
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 49 * col1 + cor0.col1 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 cor0
----
79
query I rowsort
SELECT cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + 26 FROM tab1 AS cor0
----
122
80
83
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 + col2 * col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT + + col0 * - col0 + cor0.col1 - - cor0.col0 FROM tab2 AS cor0
----
-11
-5947
-6145
query I rowsort
SELECT + col1 + + 9 * + col0 * ( 11 * cor0.col0 + col0 ) AS col1 FROM tab1 cor0
----
442378
691213
998
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - 97 AS col2 FROM tab2 AS cor0
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 47 * col2 col1 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT ALL + 87 * - col1 AS col0 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT ALL + + col1 + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - 20 * + cor0.col0 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT ALL - col1 * - col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 3 + + col1 * + col0 AS col0 FROM tab1 cor0
----
1043
643
81
query I rowsort
SELECT DISTINCT - - 61 + + col1 AS col1 FROM tab2 AS cor0
----
120
78
92
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 72 * - col0 - col2 FROM tab0 AS cor0
----
-1761
-2521
-6490
onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT DISTINCT - + col2 DIV + col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - + col2 / + col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - cor0.col1 + col0 * col1 * - cor0.col1 FROM tab1 cor0
----
-13533
-2054
-6410
query I rowsort
SELECT ALL 54 * col0 - cor0.col2 FROM tab0 AS cor0
----
1263
1889
4724
query I rowsort
SELECT - cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT 42 - + col2 AS col1 FROM tab1
----
-12
-15
-54
query I rowsort
SELECT ( col2 ) + + col1 + - tab0.col0 * col0 FROM tab0
----
-1127
-457
-7748
query I rowsort
SELECT col1 + - col1 + + col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 + + ( col2 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT ( + col2 * col1 ) - col1 AS col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT + + col1 * col0 * + col0 - - col2 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT DISTINCT col0 * + col0 + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT DISTINCT + 79 FROM tab0 cor0
----
79
query I rowsort
SELECT ALL - + 77 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL - col1 * cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * col1 col0 FROM tab0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT + + col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + 5 + - col0 FROM tab1
----
-59
-75
2
query I rowsort
SELECT - col1 * col1 + + tab0.col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 * col1 + tab2.col1 AS col0 FROM tab2
----
-119593
-51017
-5828
query I rowsort
SELECT DISTINCT + 30 FROM tab2 cor0
----
30
query I rowsort
SELECT + - col1 * 10 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2 cor0
----
61
query I rowsort
SELECT - + cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - 82 * col0 * + col1 FROM tab2 AS cor0
----
-110126
-17794
-377364
query I rowsort
SELECT col1 - - col0 * + tab0.col2 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL ( col0 ) + + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 * - 5 - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1519
-486
-7179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT ALL - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT ALL + col1 * col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + col1 * col2 / + col0 AS col0 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT col2 * ( col2 ) - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT + + CAST( col0 AS SIGNED ) - - col1 FROM tab0 cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-2141
SELECT + + CAST ( col0 AS INTEGER ) - - col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col2 * col1 + col1 * - col2 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
15072
35154
5187
query I rowsort
SELECT - + 97 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd
query I rowsort
SELECT ( + col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 26 * col0 * col2 FROM tab0 AS cor0
----
-189748
-20592
-910
query I rowsort
SELECT + - ( col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab0
----
54
54
54
query I rowsort
SELECT ALL + 61 AS col0 FROM tab2
----
61
61
61
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - 88 AS col2 FROM tab2
----
-88
-88
-88
query I rowsort
SELECT 27 + - 68 FROM tab1
----
-41
-41
-41
query I rowsort
SELECT 89 + + cor0.col1 - ( 63 ) FROM tab0, tab1 cor0
----
9 values hashing to 7d6c19fff09e23265e5fe339b627c07a
query I rowsort
SELECT ALL - 44 FROM tab2 cor0
----
-44
-44
-44
query I rowsort
SELECT - 53 AS col2 FROM tab2
----
-53
-53
-53
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + ( 19 ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
19
query I rowsort
SELECT - 96 AS col2 FROM tab0
----
-96
-96
-96
query I rowsort
SELECT + col1 * col0 * + col0 + - 21 AS col2 FROM tab2
----
106076
1498
358935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + 98 col2 FROM tab1
----
-2818
-3151
-9118
query I rowsort
SELECT ALL col2 + - col0 * + col1 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT ALL + ( col1 ) DIV col1 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + ( col1 ) / col1 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 * - col1 * col0 col0 FROM tab0 AS cor0
----
-152736
-251230
-599326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT + col1 * + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2163
SELECT + col1 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * cor0.col1 + 66 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-560
-689
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col2 * - col1 + col1 col1 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col2 FROM tab0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2167
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col2 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 26 * ( + col1 ) FROM tab0 AS cor0
----
194012
2522
73788
query I rowsort
SELECT + col1 * - col2 * - col0 + col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT - col2 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT + col1 DIV col1 + 85 FROM tab2 AS cor0
----
86
86
86
skipif mysql # not compatible
query I rowsort label-2171
SELECT + col1 / col1 + 85 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT - col1 * - 96 FROM tab1 cor0
----
1248
2496
960
query I rowsort
SELECT - - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + cor0.col0 * - ( 84 ) FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT col1 + 43 FROM tab1 cor0
----
53
56
69
query I rowsort
SELECT DISTINCT + cor0.col0 * 29 AS col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT + col2 + + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + + col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + tab1.col0 * - col1 AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2181
SELECT DISTINCT - 24 - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - 24 - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col0 + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT - col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2183
SELECT - col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 35 + col1 FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT - 95 * col0 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT - - 66 + 41 * - col1 FROM tab1 AS cor0
----
-1000
-344
-467
onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT tab0.col0 DIV 35 + - col2 FROM tab0
----
-33
-80
0
skipif mysql # not compatible
query I rowsort label-2187
SELECT tab0.col0 / 35 + - col2 FROM tab0
----
-33
-80
0
query I rowsort
SELECT ALL 95 FROM tab0, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT 24 * 68 * - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5913fa9cbae00c41e30a92e986240c69
query I rowsort
SELECT - 57 * + col0 * col2 + - cor0.col0 FROM tab0 AS cor0
----
-2030
-416075
-45168
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT col2 + + col1 DIV col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-2191
SELECT col2 + + col1 / col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT ALL 91 * - col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT - + cor0.col2 + col1 * + col2 AS col0 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT - + col0 * + col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + col2 + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + cor0.col2 * + col1 + - 35 + col2 FROM tab0 AS cor0
----
2836
63
7509
query I rowsort
SELECT DISTINCT col0 * - col0 - col1 * 0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - col1 - - col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - + 55 + col1 AS col0 FROM tab2 cor0
----
-24
-38
4
query I rowsort
SELECT - + tab0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col1 * - col2 + 86 AS col0 FROM tab2 AS cor0
----
-1448
-560
-751
query I rowsort
SELECT DISTINCT col2 + + col2 + 58 FROM tab2
----
110
112
134
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT 17 * col2 FROM tab2 cor0
----
442
459
646
query I rowsort
SELECT - 77 * - 70 FROM tab2
----
5390
5390
5390
query I rowsort
SELECT + col0 * + col0 * + tab2.col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ( + col2 ) * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - 14 FROM tab2, tab0, tab0 AS cor0
----
-14
query I rowsort
SELECT DISTINCT - ( + 37 ) AS col0 FROM tab1
----
-37
query I rowsort
SELECT + 30 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - - 79 * col0 + + col2 FROM tab0 AS cor0
----
1929
2766
7113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT cor0.col0 + col0 + 70 FROM tab2 AS cor0
----
226
228
84
query I rowsort
SELECT - - cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col2 * col1 - + col1 AS col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL + col2 + + col2 - tab0.col0 FROM tab0
----
-33
42
75
query I rowsort
SELECT ALL - col1 * + col0 - col1 * tab1.col1 AS col2 FROM tab1
----
-1209
-740
-754
query I rowsort
SELECT - tab2.col1 + + col0 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT ALL 75 DIV col2 FROM tab0 AS cor0
----
0
2
75
skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 75 / col2 FROM tab0 AS cor0
----
0
2
75
query I rowsort
SELECT + - 34 AS col0 FROM tab0 cor0
----
-34
-34
-34
query I rowsort
SELECT - col2 * - col0 + 18 * - col2 FROM tab1 AS cor0
----
-810
2622
5952
query I rowsort
SELECT ( col2 ) + - cor0.col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + 91 + - col2 * 55 AS col1 FROM tab1 AS cor0
----
-2879
-3044
-5189
query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
90
query I rowsort
SELECT cor0.col1 + + ( - col2 ) * col2 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT + col1 DIV + 36 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2229
SELECT + col1 / + 36 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 * + 1 col1 FROM tab1 AS cor0
----
29
74
93
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 cor2, tab0 AS cor3
----
13122 values hashing to 396c6a58d1487fdf3109f812e43a2826
query I rowsort
SELECT - - col0 * col0 + + cor0.col0 * + col2 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT + col0 * col0 + col1 FROM tab2 cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 19 col0 FROM tab2 cor0
----
494
513
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT + 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-2236
SELECT + col0 / col0 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 62 * - col1 AS col0 FROM tab2 AS cor0
----
-1054
-1922
-3658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2239
SELECT - + col0 + col1 * cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2239
SELECT - + col0 + col1 * cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 23 * + col0 FROM tab1 cor0
----
1472
1840
69
query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 55 + - col2 * + col1 AS col2 FROM tab2
----
-1589
-701
-892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 58 * tab0.col0 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 58 * tab0.col0 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL - 60 + col2 AS col2 FROM tab1 AS cor0
----
-3
-6
36
query I rowsort
SELECT DISTINCT - + col0 * - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT ALL CAST( NULL AS SIGNED ) + - 93 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL CAST ( NULL AS INTEGER ) + - 93 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 84 * + 36 + col1 AS col1 FROM tab2 cor0
----
3041
3055
3083
query I rowsort
SELECT DISTINCT + ( + 47 ) * col2 AS col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT - + 35 * col1 + - col2 FROM tab2 AS cor0
----
-1112
-2091
-633
query I rowsort
SELECT ALL - 53 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-63
-66
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col1 + cor0.col2 col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ( - 41 ) FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT - - ( - col0 ) + - 94 AS col0 FROM tab0 AS cor0
----
-118
-129
-183
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 + col2 * - tab0.col0 * + ( - col2 ) + col0 FROM tab0
----
26193
598607
71
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
query I rowsort
SELECT ALL + - col2 * cor0.col2 + ( + col1 ) * col2 AS col0 FROM tab0 AS cor0
----
1749
738
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT DISTINCT + col2 * + ( col2 ) + + cor0.col0 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
1113
6814
71
skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT + col2 * + ( col2 ) + + cor0.col0 + cor0.col0 / col2 FROM tab0 AS cor0
----
1113
6814
71
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 * ( - tab0.col2 ) FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT DISTINCT col2 * col0 + + 17 DIV + col1 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT col2 * col0 + + 17 / + col1 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL cor0.col1 * col2 + col0 - - col0 FROM tab2 AS cor0
----
1690
804
851
query I rowsort
SELECT DISTINCT col0 * - 61 AS col0 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT + col1 - - 50 FROM tab0
----
136
141
147
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( + 32 ) * col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT - ( - 48 ) * - col2 FROM tab1 cor0
----
-2592
-2736
-4608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT + col1 + CAST( NULL AS SIGNED ) * + ( col2 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2270
SELECT + col1 + CAST ( NULL AS INTEGER ) * + ( col2 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 46 AS col0 FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2272
SELECT ALL + col2 DIV cor0.col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + col2 / cor0.col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL + + col0 DIV + col2 + col2 DIV 37 FROM tab1 AS cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + + col0 / + col2 + col2 / 37 FROM tab1 AS cor0
----
1
2
2
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * col1 * col2 AS col2 FROM tab1 cor0
----
36537
4266
99936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * - col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 7 * col0 * col2 + col1 * - col0 FROM tab2 AS cor0
----
1106
19671
9594
onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT col1 + - col0 DIV cor0.col2 AS col2 FROM tab0 cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-2279
SELECT col1 + - col0 / cor0.col2 AS col2 FROM tab0 cor0
----
62
86
90
query I rowsort
SELECT DISTINCT + cor0.col1 + 41 FROM tab2, tab0 AS cor0
----
127
132
138
query I rowsort
SELECT - 70 * cor0.col0 + + col0 FROM tab1 AS cor0
----
-207
-4416
-5520
query I rowsort
SELECT + col2 * - cor0.col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2283
SELECT + col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - 99 * + col0 + + ( col1 ) FROM tab1 AS cor0
----
-271
-6326
-7907
query I rowsort
SELECT + cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - 58 AS col2 FROM tab2 cor0
----
-58
-58
-58
query I rowsort
SELECT - col0 * + col1 * + col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT - ( ( + col1 ) ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 - + 45 AS col1 FROM tab2
----
-18
-19
-7
query I rowsort
SELECT ALL 42 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT col2 DIV 82 + - col2 AS col1 FROM tab1
----
-54
-57
-95
skipif mysql # not compatible
query I rowsort label-2291
SELECT col2 / 82 + - col2 AS col1 FROM tab1
----
-54
-57
-95
query I rowsort
SELECT ALL col2 * col0 + col1 * - 97 FROM tab0
----
-1529
-7550
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT + col1 + col0 DIV + 56 AS col1 FROM tab1 AS cor0
----
11
14
26
skipif mysql # not compatible
query I rowsort label-2293
SELECT + col1 + col0 / + 56 AS col1 FROM tab1 AS cor0
----
11
14
26
query I rowsort
SELECT - tab1.col0 + - col1 * tab1.col1 * col1 + col0 AS col0 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT 59 + col0 AS col1 FROM tab1 AS cor0
----
123
139
62
query I rowsort
SELECT ALL 22 AS col1 FROM tab1 cor0
----
22
22
22
query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 AS cor0
----
57
query I rowsort
SELECT ALL + - cor0.col0 - - col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ( 13 ) * + col1 FROM tab1
----
130
169
338
query I rowsort
SELECT + + 58 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - ( col0 ) * + 51 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT + 93 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT 70 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL - 76 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ALL col1 + col1 * - ( col1 ) * - col1 - + col0 AS col0 FROM tab1
----
17599
2130
946
query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT - col1 DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2309
SELECT - col1 / col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT 34 + cor1.col1 * cor1.col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
323
3515
995
query I rowsort
SELECT + 74 AS col2 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT col1 + + 74 AS col0 FROM tab2 AS cor0
----
105
133
91
query I rowsort
SELECT ALL col0 * + 8 AS col2 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT - 29 * col2 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT - 88 + 48 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT + col0 * + 87 AS col1 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT DISTINCT + + col0 + ( + 47 + + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
175
207
53
query I rowsort
SELECT ALL - col0 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col0 + + col1 * - col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 - - ( 29 ) * col2 AS col1 FROM tab2 AS cor0
----
1181
790
832
query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col0 * ( col2 + col0 ) FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT DISTINCT - col1 * - 91 * + col1 AS col2 FROM tab1 AS cor0
----
15379
61516
9100
query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + - 93 * + 47 FROM tab1 AS cor0
----
-4291
-4307
-4368
query I rowsort
SELECT - col1 * col2 + cor0.col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT + col2 * 70 - - col2 AS col2 FROM tab2
----
1846
1917
2698
onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT col0 - + tab1.col0 DIV col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2328
SELECT col0 - + tab1.col0 / col0 FROM tab1
----
2
63
79
query I rowsort
SELECT + tab2.col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL ( ( - col0 ) ) + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - ( - 90 ) AS col0 FROM tab2 AS cor0
----
90
query I rowsort
SELECT + col1 * + 65 + col1 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT ( - col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - ( col2 ) * - col1 + col2 + + col2 AS col2 FROM tab1 cor0
----
1440
1512
684
query I rowsort
SELECT DISTINCT - 80 * - col1 + col0 FROM tab2 AS cor0
----
1439
2487
4798
query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - 14 - - col2 * + col2 FROM tab0 AS cor0
----
1103
15
6738
query I rowsort
SELECT ALL col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT ALL col2 DIV - CAST( - col0 AS SIGNED ) + col2 * CAST( 31 AS SIGNED ) FROM tab2
----
1178
806
840
skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL col2 / - CAST ( - col0 AS INTEGER ) + col2 * CAST ( 31 AS INTEGER ) FROM tab2
----
1178
806
840
query I rowsort
SELECT DISTINCT - tab0.col1 - col2 * - col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT ALL - col1 + - ( col1 ) * col1 - 9 * + 39 AS col0 FROM tab1
----
-1053
-461
-533
query I rowsort
SELECT col1 + + tab2.col1 + + 93 FROM tab2
----
127
155
211
query I rowsort
SELECT ALL col0 * - 93 - tab1.col0 * col0 FROM tab1
----
-10048
-13840
-288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + + 18 col1 FROM tab1 AS cor0
----
180
3666
7698
query I rowsort
SELECT - col1 + col0 * - ( col0 ) AS col2 FROM tab2 cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - col1 * cor0.col2 - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + 32 FROM tab1 cor0
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2348
SELECT DISTINCT + ( col1 ) - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + ( col1 ) - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - - ( col0 ) * - col2 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - col1 + + col0 * 33 AS col0 FROM tab1 AS cor0
----
2102
2627
73
query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 21 * col0 AS col1 FROM tab1 cor0
----
-1344
-1680
-63
query I rowsort
SELECT ( + col1 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col1 + 53 AS col2 FROM tab0
----
139
144
150
query I rowsort
SELECT 22 + - col2 AS col0 FROM tab1
----
-32
-35
-74
query I rowsort
SELECT + 53 AS col0 FROM tab1
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + tab1.col1 col1 FROM tab1, tab0, tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 53 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT col0 DIV tab1.col1 + + col1 DIV 98 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2359
SELECT col0 / tab1.col1 + + col1 / 98 FROM tab1
----
0
6
6
query I rowsort
SELECT col1 * col1 * 34 + col1 AS col0 FROM tab0
----
251550
281645
320003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT DISTINCT + 0 * tab2.col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + 0 * tab2.col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT DISTINCT 61 * + tab1.col1 FROM tab1
----
1586
610
793
query I rowsort
SELECT ALL 62 AS col0 FROM tab0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT cor0.col2 DIV 12 FROM tab0, tab1 AS cor0
----
9 values hashing to 3b94809fafcacaa60a55ada57460797c
skipif mysql # not compatible
query I rowsort label-2365
SELECT cor0.col2 / 12 FROM tab0, tab1 AS cor0
----
9 values hashing to 3b94809fafcacaa60a55ada57460797c
query I rowsort
SELECT + col0 * tab1.col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + - 32 FROM tab2, tab1, tab1 AS cor0
----
-32
query I rowsort
SELECT DISTINCT - + 50 FROM tab2, tab1, tab1 cor0
----
-50
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + cor0.col2 - 32 AS col1 FROM tab2 AS cor0
----
-5
-6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) * 11 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + col2 + CAST ( NULL AS REAL ) * 11 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 * + col0 + + col1 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT col2 * 33 + - col1 FROM tab1
----
1756
1871
3155
query I rowsort
SELECT ALL - 19 FROM tab1, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL + + col0 * + col1 + + col0 + + col0 AS col1 FROM tab1 AS cor0
----
1200
768
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( + col2 ) * cor0.col2 * col2 col0 FROM tab1 AS cor0
----
157461
185129
884656
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 - - 44 AS col0 FROM tab2 cor0
----
2072
233
3046
query I rowsort
SELECT - col2 + + ( - col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT col2 * + 63 * - ( + col1 ) FROM tab0 cor0
----
-178794
-470106
-6111
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 + CAST ( cor0.col0 AS REAL ) * col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + + col1 + - ( - 91 ) FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT ALL - + col0 * - 87 + col1 FROM tab1 AS cor0
----
287
5578
6973
query I rowsort
SELECT - col1 * + 31 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-19840
-2418
-32240
query I rowsort
SELECT ALL - + col1 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 * 87 AS col2 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT ALL - 94 AS col2 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT cor0.col0 + + 88 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1510
312
4768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 19 + + cor0.col1 * + col0 + cor0.col0 FROM tab2 AS cor0
----
1403
205
4661
query I rowsort
SELECT - - cor0.col2 + + cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL col0 * + 4 FROM tab1 cor0
----
12
256
320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT DISTINCT + + col1 DIV - 27 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + + col1 / - 27 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT ALL 73 AS col2 FROM tab1 AS cor0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT - CAST( NULL AS DECIMAL ) / - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2394
SELECT - CAST ( NULL AS REAL ) / - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 29 + - cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
344
444
731
query I rowsort
SELECT DISTINCT + + 44 * - col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT + col0 + + col0 + + 57 * + col2 AS col0 FROM tab2 cor0
----
1553
1638
2324
query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 FROM tab1
----
-48
64
71
query I rowsort
SELECT 70 * - col2 - col1 FROM tab0
----
-167
-2396
-5831
query I rowsort
SELECT + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + col0 * col0 + col1 + - col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT 99 + + 31 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT + - col0 * CAST( - 48 AS SIGNED ) FROM tab1 cor0
----
144
3072
3840
skipif mysql # not compatible
query I rowsort label-2405
SELECT + - col0 * CAST ( - 48 AS INTEGER ) FROM tab1 cor0
----
144
3072
3840
query I rowsort
SELECT DISTINCT - + cor0.col2 + - cor0.col2 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
-207993
-737376
-8802
query I rowsort
SELECT - col2 * - 88 FROM tab1 AS cor0
----
4752
5016
8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2408
SELECT col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT col2 * 29 AS col0 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT ALL + + col0 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * - 89 + 41 FROM tab2 AS cor0
----
-582
-6901
-6990
query I rowsort
SELECT - + col0 + - 79 + - col2 FROM tab0 cor0
----
-115
-136
-250
query I rowsort
SELECT - - col1 * + col2 + - col2 * 75 + - col1 FROM tab1 AS cor0
----
-2672
-3715
-5965
query I rowsort
SELECT ALL - col1 + 93 AS col0 FROM tab1 AS cor0
----
67
80
83
query I rowsort
SELECT - col1 * 98 AS col0 FROM tab0 cor0
----
-8428
-8918
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT col0 + + col2 + + col1 * col0 DIV CAST( + col0 AS SIGNED ) FROM tab2
----
134
163
65
skipif mysql # not compatible
query I rowsort label-2416
SELECT col0 + + col2 + + col1 * col0 / CAST ( + col0 AS INTEGER ) FROM tab2
----
134
163
65
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT + ( + col2 ) + + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT 22 + - cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT DISTINCT + col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT + col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + cor0.col0 * - 45 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-28725
-363825
-55221
query I rowsort
SELECT ALL - 78 AS col1 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT - 24 AS col0 FROM tab2 cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT + col0 * + col2 + + ( - col0 ) FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT col2 - - cor0.col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2426
SELECT + cor0.col2 * CAST( + 13 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
1344
756
798
skipif mysql # not compatible
query I rowsort label-2426
SELECT + cor0.col2 * CAST ( + 13 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
1344
756
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 - + col1 * - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * + col2 - 4 AS col0 FROM tab2 AS cor0
----
-1538
-650
-841
query I rowsort
SELECT - col1 + + 14 FROM tab2 AS cor0
----
-17
-3
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT ALL 58 DIV + col0 AS col1 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL 58 / + col0 AS col1 FROM tab1
----
0
0
19
query I rowsort
SELECT + 91 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT + + 26 * - 46 + cor1.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2434
SELECT + + 26 * - 46 + cor1.col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 76 col1 FROM tab1
----
-4104
-4332
-7296
query I rowsort
SELECT - + col2 * + col1 - col0 * 99 FROM tab1 AS cor0
----
-1701
-6906
-9168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * 39 col1 FROM tab0
----
110682
291018
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT - tab0.col2 DIV - col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2438
SELECT - tab0.col2 / - col1 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 31 col2 FROM tab1
----
-18
-21
-5
query I rowsort
SELECT + col1 * ( - col0 + col2 ) * + col2 FROM tab1
----
-3990
19968
71604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - tab1.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d284d1258b19317bf154a81be437d0f7
query I rowsort
SELECT + col2 - + ( - col0 ) AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - col1 * - ( + col1 ) * col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - 40 AS col2 FROM tab0
----
-40
-40
-40
query I rowsort
SELECT + + 34 + col2 + + 44 FROM tab0 AS cor0
----
111
160
79
query I rowsort
SELECT ALL 67 * col0 FROM tab0
----
1608
2345
5963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - 34 - + 83 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1ee1a666911d399d986285568cdfc879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - 20 col2 FROM tab1
----
-840
-840
-840
query I rowsort
SELECT + 43 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + 4 * + col1 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT - 58 + - col2 FROM tab2
----
-84
-85
-96
query I rowsort
SELECT DISTINCT + + col2 + col0 + col0 * - ( - col1 + + col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
24291
276224
6978
query I rowsort
SELECT - 17 * cor0.col2 * ( cor0.col0 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d97225c3e91acf841d6889fbbc2f38f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + ( + cor0.col2 * + col2 ) + + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + ( + cor0.col2 * + col2 ) + + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( 36 ) * + col1 AS col1 FROM tab2 AS cor0
----
1116
2124
612
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * col2 + col1 + col1 col0 FROM tab2 AS cor0
----
1034
1054
1402
query I rowsort
SELECT ALL - col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL - ( col2 ) * col1 * col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - - ( + col0 ) * - col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + 85 * + col2 AS col2 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT - 99 * col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab0 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col0 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 45 + col0 * cor0.col0 FROM tab2 AS cor0
----
6129
6286
94
query I rowsort
SELECT DISTINCT ( col1 ) * 79 + col0 AS col0 FROM tab0 AS cor0
----
6818
7278
7698
query I rowsort
SELECT ALL - col0 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col1 * tab0.col0 * col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT 29 + + col1 FROM tab1
----
39
42
55
query I rowsort
SELECT + + col0 * 29 + ( + col2 * col1 + 24 ) AS col2 FROM tab1 cor0
----
1515
2450
3592
query I rowsort
SELECT ALL + col2 + - 48 * ( col2 ) FROM tab2 cor0
----
-1222
-1269
-1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT DISTINCT - col0 DIV + col2 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8280
9374
skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - col0 / + col2 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8280
9374
query I rowsort
SELECT + col1 * + 40 FROM tab1 AS cor0
----
1040
400
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT - col0 + - 9 DIV col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2478
SELECT - col0 + - 9 / col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-14
query I rowsort
SELECT 60 AS col2 FROM tab0
----
60
60
60
query I rowsort
SELECT ALL - col2 * - col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1210
1482
2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 97 col1 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT ALL col2 + + 19 FROM tab0 AS cor0
----
101
20
52
query I rowsort
SELECT + col0 * - 12 AS col2 FROM tab0 cor0
----
-1068
-288
-420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2485
SELECT DISTINCT col0 + + CAST( 10 AS SIGNED ) * col1 FROM tab1 AS cor0
----
164
210
263
skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT col0 + + CAST ( 10 AS INTEGER ) * col1 FROM tab1 AS cor0
----
164
210
263
onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT col1 DIV 55 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-2486
SELECT col1 / 55 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2839
7463
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT ALL - - col0 * CAST( ( col1 ) AS SIGNED ) + col2 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - - col0 * CAST ( ( col1 ) AS INTEGER ) + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + + 49 + col0 + col0 FROM tab1 AS cor0
----
177
209
55
query I rowsort
SELECT DISTINCT - cor0.col0 - 2 * + 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
-147
-218
-219
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT - col2 - ( + 77 ) FROM tab1
----
-131
-134
-173
query I rowsort
SELECT ALL + col0 + + tab0.col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 AS cor0
----
58
query I rowsort
SELECT + col1 * + col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + col2 + 18 * col2 AS col0 FROM tab0
----
1558
19
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2497
SELECT + + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2497
SELECT + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - ( 83 ) FROM tab1 cor0
----
-83
-83
-83
query I rowsort
SELECT + ( + col0 ) * - cor0.col2 + 2 * col0 FROM tab0 AS cor0
----
-7120
-744
35
query I rowsort
SELECT DISTINCT 19 + - col0 AS col1 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT col2 + 61 AS col1 FROM tab2 AS cor0
----
87
88
99
query I rowsort
SELECT ALL + + cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT - col0 DIV col0 + cor0.col2 DIV 3 FROM tab1 AS cor0
----
17
18
31
skipif mysql # not compatible
query I rowsort label-2503
SELECT - col0 / col0 + cor0.col2 / 3 FROM tab1 AS cor0
----
17
18
31
query I rowsort
SELECT ALL 44 * col2 + col2 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT DISTINCT + 35 * col2 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT - 54 * - 45 FROM tab2 AS cor0
----
2430
2430
2430
query I rowsort
SELECT DISTINCT - col0 + 66 AS col0 FROM tab2
----
-12
-13
59
query I rowsort
SELECT ALL col1 * ( col1 ) + col0 * + 67 FROM tab0
----
11754
14244
9004
query I rowsort
SELECT ALL - col1 + + ( 90 ) AS col2 FROM tab1
----
64
77
80
query I rowsort
SELECT col2 * + 51 - tab0.col2 * + col1 FROM tab0
----
-1155
-3280
-46
query I rowsort
SELECT ALL 72 AS col1 FROM tab0
----
72
72
72
query I rowsort
SELECT DISTINCT - + 78 FROM tab2 AS cor0
----
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2513
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2513
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + 14 AS col2 FROM tab0 AS cor0
----
103
38
49
query I rowsort
SELECT - - 85 AS col0 FROM tab1 AS cor0
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col2 + - col0 col2 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + ( - col1 ) - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT ALL + - col0 * + col1 + col0 DIV 61 + + ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + - col0 * + col1 + col0 / 61 + + ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT DISTINCT - cor0.col0 DIV + cor0.col2 + col1 * ( 36 ) - col0 FROM tab0 AS cor0
----
3072
3186
3422
skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT - cor0.col0 / + cor0.col2 + col1 * ( 36 ) - col0 FROM tab0 AS cor0
----
3072
3186
3422
query I rowsort
SELECT + ( 79 ) * + col1 + col0 AS col1 FROM tab1 AS cor0
----
1107
2057
854
query I rowsort
SELECT ALL + - col2 * + 44 + + col1 - - col0 FROM tab1 cor0
----
-2347
-2434
-4131
query I rowsort
SELECT DISTINCT col0 + ( col1 ) * + 30 + col0 AS col1 FROM tab1 AS cor0
----
428
550
786
query I rowsort
SELECT + 92 * + col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT 13 * - cor0.col2 FROM tab2 AS cor0
----
-338
-351
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT + - col0 DIV + cor0.col1 - ( + cor0.col2 * col1 + 91 ) FROM tab0 AS cor0
----
-188
-2929
-7553
skipif mysql # not compatible
query I rowsort label-2525
SELECT + - col0 / + cor0.col1 - ( + cor0.col2 * col1 + 91 ) FROM tab0 AS cor0
----
-188
-2929
-7553
query I rowsort
SELECT ALL + + ( col2 ) + ( 12 ) AS col2 FROM tab2 cor0
----
38
39
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + col2 * col2 col0 FROM tab2 AS cor0
----
1458
690
743
query I rowsort
SELECT ALL 53 * - col0 * - 15 FROM tab2 AS cor0
----
5565
62010
62805
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT DISTINCT tab0.col2 + col0 DIV + col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT tab0.col2 + col0 / + col2 FROM tab0
----
33
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT 41 DIV col0 AS col2 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-2530
SELECT 41 / col0 AS col2 FROM tab2
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2531
SELECT DISTINCT - ( col1 ) + - CAST( NULL AS SIGNED ) + ( col1 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - ( col1 ) + - CAST ( NULL AS INTEGER ) + ( col1 ) FROM tab1
----
NULL
query I rowsort
SELECT - col2 * col1 * col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + - col1 + col2 * 35 FROM tab0 AS cor0
----
-62
1069
2779
query I rowsort
SELECT + col1 * + ( col1 ) * col2 FROM tab2
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * + col2 * - col0 + col0 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * + col2 * - col0 + col0 col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - col0 * - 86 * + col2 AS col2 FROM tab0
----
3010
627628
68112
query I rowsort
SELECT + col1 + + tab2.col2 AS col0 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT col1 * - CAST( 7 AS SIGNED ) AS col2 FROM tab2
----
-119
-217
-413
skipif mysql # not compatible
query I rowsort label-2538
SELECT col1 * - CAST ( 7 AS INTEGER ) AS col2 FROM tab2
----
-119
-217
-413
onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT ALL col0 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL col0 / ( col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col0 + ( + col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 + 11 * - 34 + - col1 FROM tab1 AS cor0
----
-291
-327
-346
query I rowsort
SELECT DISTINCT - col0 + 34 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
34
query I rowsort
SELECT + cor0.col2 * - col2 + - cor0.col2 * col2 * + cor0.col1 AS col0 FROM tab0 cor0
----
-618608
-94743
-98
query I rowsort
SELECT DISTINCT cor0.col1 * 23 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT + col2 + + col2 * + 7 * col0 FROM tab1 AS cor0
----
1188
25593
53856
query I rowsort
SELECT + col2 + ( col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 + + 25 AS col1 FROM tab1 AS cor0
----
35
38
51
query I rowsort
SELECT ALL - 41 * tab1.col0 AS col0 FROM tab1
----
-123
-2624
-3280
query I rowsort
SELECT ALL 28 * 40 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b69c2ebd0488c1524b2531b45ba94929
query I rowsort
SELECT - ( tab1.col1 ) * 63 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a561681fe36d1c15248c0325566a6c37
query I rowsort
SELECT + - col2 * + cor0.col0 + - 77 AS col1 FROM tab0 cor0
----
-112
-7375
-869
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT - col1 - CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-2554
SELECT - col1 - CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT col2 * + col0 + + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col1 + + 0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 74 * 56 AS col1 FROM tab2
----
-4144
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT - 85 AS col1 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col2 * + 8 + + col0 FROM tab0 AS cor0
----
288
43
745
query I rowsort
SELECT DISTINCT 44 + col2 FROM tab1 cor0
----
101
140
98
query I rowsort
SELECT ALL ( + 93 ) FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT - - 46 * col1 AS col0 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col2 FROM tab1 AS cor0
----
17
query I rowsort
SELECT + 74 * col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT 11 * col1 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif mysql # not compatible
query I rowsort label-2569
SELECT CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
query I rowsort
SELECT ALL 43 FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d
query I rowsort
SELECT - col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + 30 * col2 + + col1 AS col0 FROM tab0
----
1076
127
2551
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - - cor0.col0 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - - 74 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT + 9 + - col2 * 48 AS col1 FROM tab1 AS cor0
----
-2583
-2727
-4599
query I rowsort
SELECT + + cor0.col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 + - col0 * - 75 AS col2 FROM tab0 AS cor0
----
1833
2626
6757
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + - col1 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + + col2 * + 21 + col0 AS col2 FROM tab1 AS cor0
----
1137
1261
2096
query I rowsort
SELECT ALL cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + + 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT DISTINCT + tab0.col0 * CAST( NULL AS SIGNED ) + - 69 AS col2 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT + tab0.col0 * CAST ( NULL AS INTEGER ) + - 69 AS col2 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + col0 * 48 FROM tab0 cor0
----
1176
1715
4361
query I rowsort
SELECT ALL 94 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT DISTINCT + - col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + - col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT + col0 * CAST( + col2 AS SIGNED ) FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-2589
SELECT + col0 * CAST ( + col2 AS INTEGER ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 94 + + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a412d4cdc5f64216c881ab15ffa4b274
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 14 col1 FROM tab2
----
1092
1106
98
query I rowsort
SELECT ALL 53 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 63949b5362442f48bd29195397a57dad
query I rowsort
SELECT - 74 + col2 AS col1 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT DISTINCT - 68 FROM tab1
----
-68
query I rowsort
SELECT + 10 * - tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c9c7368a966a6fc06b4c9015d350e9d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT + CAST( - 60 AS SIGNED ) FROM tab0
----
-60
-60
-60
skipif mysql # not compatible
query I rowsort label-2597
SELECT + CAST ( - 60 AS INTEGER ) FROM tab0
----
-60
-60
-60
query I rowsort
SELECT ALL + 78 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT ALL - - col2 + col2 * col1 AS col0 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + - 13 * cor0.col1 * col0 FROM tab0 AS cor0
----
-105287
-26832
-44135
onlyif mysql # use DIV operator for integer division
query I rowsort label-2601
SELECT DISTINCT + col2 DIV col1 col2 FROM tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT + col2 / col1 col2 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL - col1 + col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - ( col2 ) + 71 AS col0 FROM tab0 AS cor0
----
-11
38
70
query I rowsort
SELECT DISTINCT col0 + + tab2.col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2605
SELECT ALL - ( + col2 ) DIV col2 + ( 15 ) FROM tab1
----
14
14
14
skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - ( + col2 ) / col2 + ( 15 ) FROM tab1
----
14
14
14
query I rowsort
SELECT ( - col1 + col2 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL + ( 53 + + tab2.col0 ) AS col2 FROM tab2
----
131
132
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT DISTINCT - col2 * - col1 + col1 DIV col1 + - col2 AS col2 FROM tab0
----
2806
7381
97
skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - col2 * - col1 + col1 / col1 + - col2 AS col2 FROM tab0
----
2806
7381
97
query I rowsort
SELECT ALL col2 + 55 AS col1 FROM tab0
----
137
56
88
query I rowsort
SELECT + ( col2 ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 73 * - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-490852
-73
-79497
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2612
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) * col1 - + col0 * 65 FROM tab1 AS cor0
----
-3590
-3952
1209
skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) * col1 - + col0 * 65 FROM tab1 AS cor0
----
-3590
-3952
1209
query I rowsort
SELECT ALL cor0.col0 * 58 AS col0 FROM tab2 AS cor0
----
406
4524
4582
onlyif mysql # use DIV operator for integer division
query I rowsort label-2614
SELECT ALL tab0.col1 + 51 DIV - tab0.col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL tab0.col1 + 51 / - tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - tab1.col0 + + 15 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 54f4ee6a83895e6a98eb326198c19c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab2
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 * + col2 + col1 col1 FROM tab1 cor0
----
36490
4238
99853
query I rowsort
SELECT ALL - 83 + cor0.col1 FROM tab0 AS cor0
----
14
3
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2619
SELECT DISTINCT + + col2 + col1 * col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT + + col2 + col1 * col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 55 * col2 - cor0.col0 FROM tab1 AS cor0
----
-2973
-3199
-5360
query I rowsort
SELECT ALL - - col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 67 + cor0.col0 AS col2 FROM tab2 AS cor0
----
145
146
74
query I rowsort
SELECT ALL - + 22 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1876
-495
-769
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 86 col2 FROM tab2 AS cor0
----
602
6708
6794
query I rowsort
SELECT ALL col0 * - col2 + col1 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL 39 + + col0 * + col1 * tab1.col1 + - col2 FROM tab1
----
13463
2013
6382
query I rowsort
SELECT + col2 * col2 * + 49 FROM tab0
----
329476
49
53361
query I rowsort
SELECT ALL + 95 + - col1 * col1 AS col2 FROM tab1
----
-5
-581
-74
query I rowsort
SELECT ALL 27 * col0 - + tab0.col0 * + col2 AS col2 FROM tab0
----
-144
-4895
910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2631
SELECT DISTINCT 97 * + col0 + CAST( + ( col0 ) AS SIGNED ) * - 84 - - tab2.col0 * col2 FROM tab2
----
280
3042
4029
skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT 97 * + col0 + CAST ( + ( col0 ) AS INTEGER ) * - 84 - - tab2.col0 * col2 FROM tab2
----
280
3042
4029
query I rowsort
SELECT ALL + 2 * col0 - ( tab0.col0 ) * - col2 * col0 AS col2 FROM tab0
----
1295
19056
649700
query I rowsort
SELECT + col2 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - ( + col2 ) * - 42 * + col1 FROM tab1 AS cor0
----
23940
52416
58968
query I rowsort
SELECT ALL col1 + - tab0.col0 AS col1 FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2636
SELECT ALL + 34 * + col1 + + CAST( NULL AS SIGNED ) * col1 * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + 34 * + col1 + + CAST ( NULL AS INTEGER ) * col1 * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT - col1 + - col2 DIV + col2 + col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2637
SELECT - col1 + - col2 / + col2 + col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + col1 * 56 FROM tab1 AS cor0
----
1456
560
728
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + CAST ( - col1 AS REAL ) * col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT + cor0.col2 * - col0 + + col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-185
-2028
-3002
skipif mysql # not compatible
query I rowsort label-2640
SELECT + cor0.col2 * - col0 + + col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-185
-2028
-3002
query I rowsort
SELECT + col1 + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT ALL + + col1 * - 14 AS col0 FROM tab1 AS cor0
----
-140
-182
-364
onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT DISTINCT + - col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT + - col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - col2 DIV - 31 + - col2 * - col1 FROM tab2 AS cor0
----
1534
647
837
skipif mysql # not compatible
query I rowsort label-2644
SELECT - col2 / - 31 + - col2 * - col1 FROM tab2 AS cor0
----
1534
647
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT ALL - + col2 DIV + cor0.col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - + col2 / + cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col2 * 29 * - col0 FROM tab2 AS cor0
----
-5481
-58812
-87058
onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT DISTINCT - - col1 + ( col1 ) DIV + col2 + + CAST( col0 AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
229
7390
880
skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - - col1 + ( col1 ) / + col2 + + CAST ( col0 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
229
7390
880
query I rowsort
SELECT ALL - col1 - - 10 FROM tab1 AS cor0
----
-16
-3
0
query I rowsort
SELECT ALL - - cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + ( + 76 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + col0 * - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - col2 + 99 * col2 * + col1 AS col0 FROM tab0 cor0
----
280995
738820
9604
onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT + ( + ( cor0.col0 - ( + 17 ) ) ) * + col0 + 23 DIV col1 + - col0 DIV 11 FROM tab1 AS cor0
----
-42
3005
5034
skipif mysql # not compatible
query I rowsort label-2655
SELECT + ( + ( cor0.col0 - ( + 17 ) ) ) * + col0 + 23 / col1 + - col0 / 11 FROM tab1 AS cor0
----
-42
3005
5034
query I rowsort
SELECT col2 + col2 + col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + 52 + 29 AS col0 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT ALL ( cor0.col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL col1 * 75 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT - + col1 + + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT 71 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2
-71
0
skipif mysql # not compatible
query I rowsort label-2661
SELECT 71 / - col2 AS col0 FROM tab0 AS cor0
----
-2
-71
0
query I rowsort
SELECT + col0 + ( col1 ) + - col1 * 60 AS col2 FROM tab0
----
-5050
-5280
-5688
query I rowsort
SELECT ALL 40 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT - 75 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-75
query I rowsort
SELECT ALL col2 + - 69 AS col0 FROM tab0
----
-36
-68
13
query I rowsort
SELECT DISTINCT - 62 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-62
query I rowsort
SELECT DISTINCT col1 * - col0 - - 82 FROM tab2 AS cor0
----
-1261
-135
-4520
query I rowsort
SELECT ALL - 30 * + col0 AS col0 FROM tab1 cor0
----
-1920
-2400
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT DISTINCT - - col2 DIV - col1 - - 49 AS col1 FROM tab2 AS cor0
----
47
49
skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - - col2 / - col1 - - 49 AS col1 FROM tab2 AS cor0
----
47
49
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab1 AS cor0
----
-20
query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col0 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL col2 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT ALL - - col2 + - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL - - col2 + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT - col1 * - col2 - col2 AS col2 FROM tab0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 + cor0.col0 col0 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT + + 23 + col1 * 22 * - col1 AS col2 FROM tab2 cor0
----
-21119
-6335
-76559
query I rowsort
SELECT 45 - 56 FROM tab2
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + col1 DIV + tab1.col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2679
SELECT + col1 / + tab1.col1 AS col0 FROM tab1
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT ALL - + CAST( NULL AS SIGNED ) + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - + CAST ( NULL AS INTEGER ) + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 * 97 AS col0 FROM tab2 AS cor0
----
-130271
-21049
-446394
query I rowsort
SELECT DISTINCT - col0 + - col0 * + ( + 88 ) AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT ALL + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - 89 * col0 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ( 31 ) AS col2 FROM tab1 AS cor0
----
31
31
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2686
SELECT - CAST( NULL AS SIGNED ) * - col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2686
SELECT - CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( - col0 ) * col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT 13 AS col2 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT ALL 59 * + 45 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 38513d27408cecf105f83ec5a04ac779
query I rowsort
SELECT ALL + 13 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT - - cor0.col2 * - col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 97 AS col0 FROM tab2
----
97
97
97
query I rowsort
SELECT ( tab1.col2 ) + + 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 041e0bee482cca8881998543c80ebe08
query I rowsort
SELECT ALL - - col2 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT tab2.col1 * + tab2.col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col0 * - cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + - col0 + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col0 + col2 * - col1 + col2 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT ALL 31 * 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 94fc7aab8daa387741082b6c19ca72e3
query I rowsort
SELECT DISTINCT - col2 * - tab1.col2 AS col1 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT DISTINCT - col1 DIV 41 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - col1 / 41 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col0 + ( + col2 ) + + col1 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT + tab0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2704
SELECT + tab0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 90 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - 73 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT col1 * - cor0.col1 * + col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT 4 AS col1 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT ( - cor0.col0 ) * + 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 28fcdf35d3ccbfa5d8b94ab94827a753
query I rowsort
SELECT ALL ( col0 ) + col0 * col0 * + tab1.col2 AS col1 FROM tab1
----
233536
489
614480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2711
SELECT CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + + col2 * + col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT cor2.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT - 72 AS col0 FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT ALL - + ( - 25 ) - - col0 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT - col0 - col1 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT cor0.col1 + tab0.col1 AS col0 FROM tab0, tab1, tab0 AS cor0
----
172
177
182
183
188
194
query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0, tab1, tab2 cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT + 36 DIV col1 AS col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2719
SELECT + 36 / col1 AS col1 FROM tab2
----
0
1
2
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
skipif mysql # not compatible
query I rowsort
SELECT col0 - CAST ( 44 * + col1 + - col0 AS REAL ) FROM tab0 AS cor0
----
-3736
-3826
-4198
query I rowsort
SELECT - + col2 + 47 FROM tab2 AS cor0
----
20
21
9
query I rowsort
SELECT - + col2 * cor0.col1 - + 81 FROM tab0 cor0
----
-178
-2919
-7543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 60 + col1 col1 FROM tab0 AS cor0
----
157
2066
5011
query I rowsort
SELECT + col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT col0 + 96 + - col1 AS col0 FROM tab0 AS cor0
----
34
34
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT ALL - ( col1 ) DIV col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - ( col1 ) / col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL + 77 * + col0 * col2 AS col1 FROM tab0
----
2695
561946
60984
query I rowsort
SELECT - - col1 * - col0 + 56 + col2 * - 62 AS col1 FROM tab1 AS cor0
----
-3370
-4118
-6936
query I rowsort
SELECT ALL + col2 * cor0.col2 * - col1 + ( - col2 ) FROM tab1 AS cor0
----
-119904
-32547
-75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT DISTINCT - cor0.col2 * cor0.col0 + + 28 DIV + 93 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - cor0.col2 * cor0.col0 + + 28 / + 93 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col2 * col0 * - 4 + - cor0.col0 FROM tab0 AS cor0
----
105
29103
3144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 + col2 + col1 AS col0 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT 37 + + col0 AS col2 FROM tab1 AS cor0
----
101
117
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2738
SELECT ALL col2 + + col1 * CAST( + col2 AS SIGNED ) FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL col2 + + col1 * CAST ( + col2 AS INTEGER ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT 4 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT ALL 72 * col1 DIV 39 + col1 DIV tab0.col2 AS col1 FROM tab0
----
160
169
276
skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL 72 * col1 / 39 + col1 / tab0.col2 AS col1 FROM tab0
----
160
169
276
query I rowsort
SELECT + 23 + col1 + col2 * - ( tab2.col0 + - 61 ) FROM tab2
----
-360
-644
1512
query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 * + col1 * - 52 AS col0 FROM tab2 cor0
----
-15028
-181012
-49972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT ALL tab1.col2 + + col0 DIV + ( col2 ) FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL tab1.col2 + + col0 / + ( col2 ) FROM tab1
----
54
58
96
query I rowsort
SELECT + tab2.col0 + tab2.col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - 37 + col2 FROM tab2
----
-10
-11
1
query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab1 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col2 * 5 * + tab2.col2 AS col0 FROM tab2
----
3380
3645
7220
query I rowsort
SELECT + 72 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab2 AS cor0
----
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2751
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2753
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT col0 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2754
SELECT col0 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - tab0.col1 * col1 * + tab0.col2 + - col0 FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + 71 AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356
query I rowsort
SELECT - tab1.col2 - + col0 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT 17 * + col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT - 25 - col2 FROM tab1 AS cor0
----
-121
-79
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT + + CAST( NULL AS SIGNED ) * col2 / - col1 + 26 - + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2762
SELECT + + CAST ( NULL AS INTEGER ) * col2 / - col1 + 26 - + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 79 + col0 FROM tab1 AS cor0
----
-15
-76
1
query I rowsort
SELECT DISTINCT + col0 - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 62 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-18
-2
59
query I rowsort
SELECT - col0 - + col0 * col2 * - ( 66 ) FROM tab1 AS cor0
----
10689
240704
506800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col2 * - col0 col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + 84 - cor0.col1 FROM tab1 cor0
----
58
71
74
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-2770
SELECT col1 DIV col0 - - col2 * col0 FROM tab0 AS cor0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-2770
SELECT col1 / col0 - - col2 * col0 FROM tab0 AS cor0
----
37
7299
795
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col2 + col2 * + col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1267
1536
2384
query I rowsort
SELECT + 21 + + col0 AS col0 FROM tab2 cor0
----
100
28
99
query I rowsort
SELECT ALL + 75 + - col1 FROM tab2 AS cor0
----
16
44
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT ALL + col2 DIV col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1345
217
4602
skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + col2 / col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1345
217
4602
query I rowsort
SELECT ALL + + ( 50 ) * col0 * + 53 + col0 AS col0 FROM tab1 AS cor0
----
169664
212080
7953
query I rowsort
SELECT ( - 16 ) * col1 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT 6 FROM tab0, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col2 FROM tab1, tab0 cor0
----
83
query I rowsort
SELECT DISTINCT + tab2.col1 AS col0 FROM tab2, tab0 cor0
----
17
31
59
query I rowsort
SELECT + - col0 + + ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2782
SELECT DISTINCT + + col1 DIV ( col0 + + col2 ) AS col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT + + col1 / ( col0 + + col2 ) AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT - cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb
query I rowsort
SELECT ALL 90 * + col0 AS col1 FROM tab0
----
2160
3150
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT DISTINCT cor1.col0 DIV - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
0
skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT cor1.col0 / - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
0
query I rowsort
SELECT ALL - + 21 + - 36 AS col0 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT - + col2 * col1 + ( + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + - 38 AS col0 FROM tab2 AS cor0
----
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT + col0 + cor0.col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2789
SELECT + col0 + cor0.col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 7 * + col0 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT - 92 * col2 FROM tab1 AS cor0
----
-4968
-5244
-8832
query I rowsort
SELECT ALL cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) * 66 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT DISTINCT col0 * 19 - - col1 FROM tab0
----
1782
542
762
query I rowsort
SELECT cor0.col1 - - col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col0 + col1 * col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 + col2 col1 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT - + col0 * + 83 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT ALL + + col0 + - col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT col0 * 89 AS col0 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * 47 + col2 col2 FROM tab2 AS cor0
----
1248
1296
1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT - col0 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2805
SELECT - col0 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 50 + - 33 FROM tab2 AS cor0
----
317
3867
3917
query I rowsort
SELECT ALL col2 * 23 FROM tab1 cor0
----
1242
1311
2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT DISTINCT col2 DIV 37 + 5 * - col1 FROM tab2 AS cor0
----
-155
-295
-84
skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT col2 / 37 + 5 * - col1 FROM tab2 AS cor0
----
-155
-295
-84
query I rowsort
SELECT ALL - col2 * 53 FROM tab1 AS cor0
----
-2862
-3021
-5088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + col2 * + col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - col0 * + 9 + col1 * - col2 FROM tab2 AS cor0
----
-1357
-2236
-900
query I rowsort
SELECT DISTINCT - - col2 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + - col0 * col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT ALL col0 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL col0 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + - 41 * col0 AS col2 FROM tab1 cor0
----
-123
-2624
-3280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2819
SELECT ALL - col0 + - ( + col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - col0 + - ( + col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT + - ( - col0 ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL tab0.col2 + col0 + + col1 * - col1 AS col0 FROM tab0
----
-7339
-8110
-9373
query I rowsort
SELECT col2 * - col1 + + col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT col0 * 27 FROM tab1 cor0
----
1728
2160
81
query I rowsort
SELECT + col0 + ( col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - col0 * tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 29 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT col0 DIV 30 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-2831
SELECT col0 / 30 FROM tab2 AS cor0
----
0
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2832
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) + + 69 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2832
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) + + 69 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * + col0 + ( + col0 + 54 ) FROM tab0 AS cor0
----
-714
-7155
54
query I rowsort
SELECT DISTINCT - - col0 * 14 + + 31 * + col2 AS col2 FROM tab0 AS cor0
----
1359
3788
521
query I rowsort
SELECT cor0.col0 + 80 AS col2 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT - - col1 + col2 * col2 * 51 AS col2 FROM tab1 AS cor0
----
148742
165709
470029
query I rowsort
SELECT - 79 * + 16 - cor0.col1 FROM tab2 AS cor0
----
-1281
-1295
-1323
query I rowsort
SELECT + ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 9 - + cor0.col2 FROM tab2 AS cor0
----
-17
-18
-29
query I rowsort
SELECT ALL - - col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col2 * - cor0.col0 + + ( col2 ) FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT - 46 * col2 AS col2 FROM tab2 AS cor0
----
-1196
-1242
-1748
query I rowsort
SELECT - + col1 + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2844
SELECT + col1 + ( + col1 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2844
SELECT + col1 + ( + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 73 + + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
1924
2749
6679
query I rowsort
SELECT - 36 - - ( - cor0.col2 ) * + cor0.col1 FROM tab0 AS cor0
----
-133
-2874
-7498
query I rowsort
SELECT ALL - 31 FROM tab2, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT DISTINCT + col0 * - col1 + col1 AS col2 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT 41 * - col2 FROM tab0
----
-1353
-3362
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT CAST( + col0 AS SIGNED ) DIV col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2851
SELECT CAST ( + col0 AS INTEGER ) / col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT - - 42 FROM tab0 AS cor0
----
42
query I rowsort
SELECT - + col1 * + col1 * col2 - cor0.col1 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT ALL + - col0 * col1 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT DISTINCT col2 DIV col0 - - 23 DIV + col0 FROM tab1 AS cor0
----
0
1
25
skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT col2 / col0 - - 23 / + col0 FROM tab1 AS cor0
----
0
1
25
query I rowsort
SELECT + 58 + col0 * col1 FROM tab0 AS cor0
----
2122
3453
8157
query I rowsort
SELECT - cor0.col1 - - col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * + col2 + - cor0.col0 + + col1 FROM tab2 cor0
----
2009
213
2940
query I rowsort
SELECT ALL 3 * col1 AS col0 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT 63 - - col0 * - col2 FROM tab2 AS cor0
----
-126
-1965
-2939
query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + col0 * 39 AS col1 FROM tab2
----
273
3042
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT + 51 DIV col0 + 75 AS col1 FROM tab0 AS cor0
----
75
76
77
skipif mysql # not compatible
query I rowsort label-2864
SELECT + 51 / col0 + 75 AS col1 FROM tab0 AS cor0
----
75
76
77
query I rowsort
SELECT ALL - col1 + - col2 * ( - col2 ) AS col0 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT - 71 AS col1 FROM tab2
----
-71
-71
-71
query I rowsort
SELECT DISTINCT - 13 * col0 - + col0 AS col1 FROM tab1
----
-1120
-42
-896
query I rowsort
SELECT ALL 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 32 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 50979d93e65eb2e0eb8da5d863ba5138
query I rowsort
SELECT - tab0.col1 + - col1 * - col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - 71 * + col0 + 28 AS col2 FROM tab0
----
-1676
-2457
-6291
onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT + 25 - + tab0.col0 DIV - ( - col2 ) FROM tab0
----
-10
24
25
skipif mysql # not compatible
query I rowsort label-2873
SELECT + 25 - + tab0.col0 / - ( - col2 ) FROM tab0
----
-10
24
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 col1 FROM tab0, tab1 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2875
SELECT ( - col2 ) * col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2875
SELECT ( - col2 ) * col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + 11 FROM tab2 AS cor0
----
37
38
49
query I rowsort
SELECT DISTINCT + col1 * col0 - - cor0.col1 * - col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT tab0.col1 * 96 AS col2 FROM tab0
----
8256
8736
9312
query I rowsort
SELECT + 1 + + col0 FROM tab2
----
79
8
80
query I rowsort
SELECT - 94 AS col2 FROM tab2 AS cor0
----
-94
-94
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT + col2 - + 43 DIV + col1 FROM tab1
----
53
53
93
skipif mysql # not compatible
query I rowsort label-2883
SELECT + col2 - + 43 / + col1 FROM tab1
----
53
53
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT CAST( NULL AS SIGNED ) - - 4 * col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2884
SELECT CAST ( NULL AS INTEGER ) - - 4 * col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( 96 ) * col2 + col2 AS col1 FROM tab0
----
3201
7954
97
query I rowsort
SELECT ALL + ( col2 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col2 + + ( 90 ) AS col0 FROM tab1, tab0 AS cor0
----
123
172
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2888
SELECT col2 * CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2888
SELECT col2 * CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT + + col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2889
SELECT + + col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - + col1 * - col1 + + col2 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + + col1 + + 21 * - col1 FROM tab0 AS cor0
----
-1720
-1820
-1940
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2894
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT + col0 DIV 56 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2895
SELECT + col0 / 56 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 22 col0 FROM tab1 cor0
----
1188
1254
2112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT DISTINCT - col2 DIV - col2 + col0 * + col1 * + col1 FROM tab0 AS cor0
----
177505
329316
737010
skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - col2 / - col2 + col0 * + col1 * + col1 FROM tab0 AS cor0
----
177505
329316
737010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT DISTINCT col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL + col0 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 * - cor0.col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT DISTINCT + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col0 * + col2 + + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT DISTINCT + + ( 6 ) DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + + ( 6 ) / + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
2
query I rowsort
SELECT - col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL - - ( - ( + col1 ) ) DIV + col0 AS col1 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - - ( - ( + col1 ) ) / + col0 AS col1 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT ALL - + col2 * + 50 AS col0 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT 87 * col0 FROM tab1 AS cor0
----
261
5568
6960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2908
SELECT ALL - CAST( NULL AS SIGNED ) + ( col0 ) * + col1 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - CAST ( NULL AS INTEGER ) + ( col0 ) * + col1 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + + 10 AS col1 FROM tab0
----
11
43
92
query I rowsort
SELECT - 52 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 + - col1 * + col1 col2 FROM tab1
----
-33
-596
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT - + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2912
SELECT - + col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 99 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL - - cor0.col1 * - cor0.col1 + - 55 * + col2 AS col2 FROM tab0 AS cor0
----
-12791
-9211
-9464
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT ALL - col0 + col1 + + col0 DIV ( + cor0.col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
-55
-68
23
skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - col0 + col1 + + col0 / ( + cor0.col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
-55
-68
23
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2918
SELECT DISTINCT col2 * + col2 + CAST( + col0 + - cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT col2 * + col2 + CAST ( + col0 + - cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 + ( - col2 * ( col2 ) + - col2 ) AS col0 FROM tab0 cor0
----
-2
-354
403
query I rowsort
SELECT ALL 59 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT DISTINCT col0 + - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT col0 + - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2923
SELECT + CAST( ( - col2 ) * + col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-2923
SELECT + CAST ( ( - col2 ) * + col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT DISTINCT - col0 * col0 + 94 - ( - col1 ) DIV + ( col0 ) FROM tab2 cor0
----
-5990
-6147
49
skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - col0 * col0 + 94 - ( - col1 ) / + ( col0 ) FROM tab2 cor0
----
-5990
-6147
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT - cor0.col0 + cor0.col0 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
576
75
960
skipif mysql # not compatible
query I rowsort label-2925
SELECT - cor0.col0 + cor0.col0 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
576
75
960
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
query I rowsort
SELECT DISTINCT - - cor0.col1 - - col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 * col2 * 40 + - 55 FROM tab1
----
-22855
-49975
-56215
onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT + - ( + col2 ) DIV - 21 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2930
SELECT + - ( + col2 ) / - 21 FROM tab2 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * col1 - + col0 col1 FROM tab0
----
3330
3460
3748
query I rowsort
SELECT - 61 AS col2 FROM tab1
----
-61
-61
-61
query I rowsort
SELECT DISTINCT + 45 * tab1.col1 AS col2 FROM tab1
----
1170
450
585
query I rowsort
SELECT DISTINCT + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
66
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1
----
50
query I rowsort
SELECT - + ( cor1.col1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT col2 + col2 DIV col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-2938
SELECT col2 + col2 / col0 FROM tab0
----
1
34
82
query I rowsort
SELECT - col1 + ( - col2 * col2 + - col1 ) AS col2 FROM tab1
----
-2968
-3269
-9242
query I rowsort
SELECT + 8 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL - col1 + - ( + col0 ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT ALL - col2 + col1 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-36
-47
-83
skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - col2 + col1 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-36
-47
-83
query I rowsort
SELECT ALL + tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2944
SELECT DISTINCT - CAST( + 51 AS SIGNED ) FROM tab1, tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) FROM tab1, tab2 AS cor0
----
-51
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - + col0 + - col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT + 75 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT - ( 78 ) FROM tab1
----
-78
-78
-78
query I rowsort
SELECT - 31 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT ALL 0 DIV - 3 + col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL 0 / - 3 + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + tab2.col1 + tab2.col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + 71 + tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0f1f6fd189df70e4819da6e2ae0e4036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab1.col0 ) * + col0 * + 89 col0 FROM tab1
----
364544
569600
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 9 * col2 - - col2 col0 FROM tab2 AS cor0
----
-208
-216
-304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * - col1 col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT cor0.col0 * - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + + col0 * - col2 * 34 AS col2 FROM tab2 AS cor0
----
-102068
-6426
-68952
query I rowsort
SELECT DISTINCT 31 * - col2 AS col2 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT DISTINCT 81 + + col2 FROM tab2 cor0
----
107
108
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT DISTINCT cor0.col1 DIV col2 - - ( 30 ) col0 FROM tab1 AS cor0
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT cor0.col1 / col2 - - ( 30 ) col0 FROM tab1 AS cor0
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col2 FROM tab2
----
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT col0 + - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2963
SELECT col0 + - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col1 col2 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT ALL + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT + col1 DIV + col2 + + cor0.col2 + + col2 * col2 FROM tab1 cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-2966
SELECT + col1 / + col2 + + cor0.col2 + + col2 * col2 FROM tab1 cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT DISTINCT + - col0 + cor0.col0 DIV + ( + 61 ) AS col2 FROM tab2 cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + - col0 + cor0.col0 / + ( + 61 ) AS col2 FROM tab2 cor0
----
-7
-77
-78
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( NULL ) AND - col1 BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT + col2 DIV - col0 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2969
SELECT + col2 / - col0 AS col1 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + + tab0.col2 * col0 col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT ALL + col1 DIV col2 + col1 DIV - tab1.col1 + - col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + col1 / col2 + col1 / - tab1.col1 + - col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT + col0 - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab1.col0 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + tab1.col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col1 * col2 - + col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 FROM tab0 AS cor0 WHERE ( col0 + + col0 ) IN ( col0 * col1 ) OR NOT NULL > - col1
----
query I rowsort
SELECT ALL - + col2 * col0 * col2 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + + col0 + col2 * - col2 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1509
-2615
-7888
query I rowsort
SELECT DISTINCT - 97 * + col0 FROM tab2
----
-679
-7566
-7663
query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + + col1 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT col0 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2983
SELECT col0 / - col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab2 WHERE ( NULL ) NOT IN ( - col2 * - col0 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT + col1 DIV - col0 col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2986
SELECT + col1 / - col0 col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col2 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT col1 DIV col1 col2 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2988
SELECT col1 / col1 col2 FROM tab1
----
1
1
1
query I rowsort
SELECT tab0.col0 * + col0 AS col1 FROM tab0 WHERE NOT col0 IN ( col2 * col2 + + tab0.col1 * - col1 )
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT + col0 + col0 DIV col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2990
SELECT + col0 + col0 / col2 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - tab2.col1 col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT tab0.col0 * col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col1 FROM tab0 WHERE ( col1 * col1 ) NOT BETWEEN NULL AND col2
----
86
91
97
query I rowsort
SELECT DISTINCT - tab1.col0 - col1 FROM tab1
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2995
SELECT ALL - CAST( NULL AS SIGNED ) - cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - CAST ( NULL AS INTEGER ) - cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 19 * - col2 AS col1 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + - ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
-110
-132
-180
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 / - col1 )
----
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 * - tab0.col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / col2 NOT BETWEEN - col0 AND NULL
----
query I rowsort
SELECT tab1.col0 + - col2 + - col2 AS col2 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT - col0 * col0 FROM tab1 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT ALL col1 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT ALL col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col1
----
query I rowsort
SELECT + tab0.col0 FROM tab0 WHERE + col1 * col1 * + col2 + - col2 IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT + tab1.col0 + - tab1.col2 DIV col1 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-3010
SELECT + tab1.col0 + - tab1.col2 / col1 FROM tab1
----
1
59
73
query I rowsort
SELECT ALL col0 * col1 * col1 + + col0 FROM tab1
----
13600
2031
6464
query I rowsort
SELECT ALL - col2 + tab2.col2 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT ALL col2 * col1 DIV - col0 - - col2 col0 FROM tab1
----
-414
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL col2 * col1 / - col0 - - col2 col0 FROM tab1
----
-414
49
81
query I rowsort
SELECT + col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( cor0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL - cor0.col0 DIV + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - cor0.col0 / + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT DISTINCT tab2.col1 + + tab2.col2 DIV col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT tab2.col1 + + tab2.col2 / col1 FROM tab2
----
19
31
59
query I rowsort
SELECT ALL - - cor0.col0 * col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL - + col1 + - 58 * col2 DIV + 24 col0 FROM tab1 AS cor0
----
-147
-156
-245
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - + col1 + - 58 * col2 / + 24 col0 FROM tab1 AS cor0
----
-147
-156
-245
query I rowsort
SELECT + + ( col0 ) * - cor0.col0 * - col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - ( cor0.col2 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL ( col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col0 + col1 * + col2 * + ( col1 + col0 ) FROM tab1 AS cor0
----
116144
40719
42244
query I rowsort
SELECT col2 + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - ( tab0.col0 ) + - col0 * 93 + col2 AS col0 FROM tab0
----
-2223
-3289
-8284
query I rowsort
SELECT - col2 * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + col1 * - tab1.col1 + - col2 AS col0 FROM tab1
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 * + col2 - 78 col1 FROM tab2 AS cor0
----
-1404
-1455
-2016
query I rowsort
SELECT - + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL col1 + + 26 + - col0 AS col2 FROM tab0
----
28
88
88
query I rowsort
SELECT ALL + col1 * - ( + col2 ) FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT DISTINCT col0 DIV 63 col0 FROM tab2
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT col0 / 63 col0 FROM tab2
----
0
1
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + cor0.col0 + 24 AS col2 FROM tab1 AS cor0
----
104
27
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col2 ) col1 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3038
SELECT + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT - col1 * + col1 + + 76 * + col0 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-176
-245
-752
skipif mysql # not compatible
query I rowsort label-3039
SELECT - col1 * + col1 + + 76 * + col0 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-176
-245
-752
query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + + col2 * - col0 FROM tab1 AS cor0
----
-237120
-622080
-648
query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 + - 73 AS col1 FROM tab0 AS cor0
----
-40
-72
9
query I rowsort
SELECT DISTINCT - + ( col1 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT ALL + - col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + - col0 / + cor0.col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT CAST( NULL AS SIGNED ) + + cor0.col0 / - col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3045
SELECT CAST ( NULL AS INTEGER ) + + cor0.col0 / - col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 92 * - 25 + col2 FROM tab0 AS cor0
----
-2218
-2267
-2299
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT ALL CAST( - col1 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL CAST ( - col1 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 99 * cor0.col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT ALL - + ( col0 ) + + cor0.col0 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
1190
18984
649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT DISTINCT - - col0 DIV + col0 col0 FROM tab0 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT - - col0 / + col0 col0 FROM tab0 cor0
----
1
query I rowsort
SELECT - + 2 * col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + 53 * col0 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT 5 * + col0 * col1 AS col0 FROM tab1 cor0
----
3200
390
5200
query I rowsort
SELECT DISTINCT - + col0 + + col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT + 56 * + col2 FROM tab0 cor0
----
1848
4592
56
query I rowsort
SELECT ALL col2 * col0 + ( tab1.col2 ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL - col2 * + col1 + - col2 + col0 FROM tab0
----
-2847
-63
-7455
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL 3 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT ALL + col1 + + 10 FROM tab1
----
20
23
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 - + 68 col2 FROM tab1
----
-4
-65
12
query I rowsort
SELECT ALL + 98 * + col0 + col0 * col1 * col0 FROM tab2 AS cor0
----
113839
2205
366600
query I rowsort
SELECT DISTINCT + col0 * - 45 AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT - col1 * - col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab1.col2 + col1 col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT 87 * 14 + + col2 FROM tab2 cor0
----
1244
1245
1256
query I rowsort
SELECT - 89 + + col1 AS col2 FROM tab0 AS cor0
----
-3
2
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - - tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT - + 86 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-86
skipif mysql # not compatible
query I rowsort label-3070
SELECT - + 86 / + col2 FROM tab0 AS cor0
----
-1
-2
-86
query I rowsort
SELECT 84 + + col1 AS col2 FROM tab0
----
170
175
181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3072
SELECT + CAST( NULL AS SIGNED ) + 90 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3072
SELECT + CAST ( NULL AS INTEGER ) + 90 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col1 FROM tab2
----
44
query I rowsort
SELECT ALL + col1 * 84 * col2 AS col2 FROM tab0
----
238392
626808
8148
query I rowsort
SELECT ( 75 ) AS col2 FROM tab1
----
75
75
75
query I rowsort
SELECT ALL col2 * ( col1 ) * + col0 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL ( + tab0.col0 + - col2 ) * + col1 AS col0 FROM tab0
----
-774
3298
637
query I rowsort
SELECT DISTINCT - col1 - - col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col1 - + col1 * tab0.col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL + + col1 + col2 - col1 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3081
SELECT + - col2 * + col0 + + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681
skipif mysql # not compatible
query I rowsort label-3081
SELECT + - col2 * + col0 + + col1 / - col1 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT DISTINCT - col2 DIV + ( cor0.col2 ) + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - col2 / + ( cor0.col2 ) + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT - + col1 * 31 AS col2 FROM tab0 AS cor0
----
-2666
-2821
-3007
query I rowsort
SELECT ALL col1 * col1 + - col2 FROM tab1
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT ALL + col0 DIV + col0 + + col2 DIV col2 col1 FROM tab1
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + col0 / + col0 + + col2 / col2 col1 FROM tab1
----
2
2
2
query I rowsort
SELECT ALL - 9 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT DISTINCT 53 FROM tab2, tab1, tab2 AS cor0
----
53
query I rowsort
SELECT + col2 - + col0 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT 64 + col2 * col1 FROM tab1
----
1312
1468
634
query I rowsort
SELECT ALL + col0 + - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col2 + col2 * - col2 AS col2 FROM tab0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT + col2 + 81 DIV - 95 + col1 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-3092
SELECT + col2 + 81 / - 95 + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 * - col2 + - tab2.col0 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col0 * ( 22 ) + col0 AS col1 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT ALL col0 * 17 AS col1 FROM tab1 cor0
----
1088
1360
51
query I rowsort
SELECT col1 - + col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL col2 + + col2 * ( - col1 ) FROM tab0 cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT + cor0.col0 + - 90 DIV - col2 AS col2 FROM tab0 AS cor0
----
125
26
90
skipif mysql # not compatible
query I rowsort label-3099
SELECT + cor0.col0 + - 90 / - col2 AS col2 FROM tab0 AS cor0
----
125
26
90
query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 * - col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL cor0.col2 + ( - 46 ) * + cor0.col2 * + col2 FROM tab2 AS cor0
----
-31070
-33507
-66386
query I rowsort
SELECT + col0 + + ( - 1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT + col1 DIV 81 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3104
SELECT + col1 / 81 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * ( cor0.col0 ) * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col2 * 45 FROM tab0 AS cor0
----
-1485
-3690
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT - col2 DIV - 70 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3107
SELECT - col2 / - 70 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT col0 * 66 * 21 AS col2 FROM tab0
----
123354
33264
48510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3109
SELECT DISTINCT + + CAST( + 40 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
40
skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + + CAST ( + 40 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
40
query I rowsort
SELECT col1 * + cor0.col2 - + col2 * + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 24 * 8 FROM tab1 AS cor0
----
192
192
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * + cor0.col1 col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + col0 + - ( + col0 ) - col2 AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT col2 + + CAST( + 48 AS SIGNED ) + - tab1.col2 AS col0 FROM tab1
----
48
48
48
skipif mysql # not compatible
query I rowsort label-3114
SELECT col2 + + CAST ( + 48 AS INTEGER ) + - tab1.col2 AS col0 FROM tab1
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT + col0 DIV + ( + tab1.col2 ) FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3115
SELECT + col0 / + ( + tab1.col2 ) FROM tab1
----
0
0
1
query I rowsort
SELECT col2 + tab2.col2 * 42 FROM tab2
----
1118
1161
1634
query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3118
SELECT - col0 + CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3118
SELECT - col0 + CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - 36 AS col1 FROM tab0
----
-1
-12
53
query I rowsort
SELECT 51 * - col2 FROM tab0
----
-1683
-4182
-51
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + 96 + col0 AS col0 FROM tab2 AS cor0
----
103
174
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT ALL - CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + 96 FROM tab1
----
96
96
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3125
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - ( + col1 + ( - col1 ) ) FROM tab0
----
0
0
0
query I rowsort
SELECT 4 * col1 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT + col2 + col1 * 70 FROM tab0 AS cor0
----
6053
6452
6791
query I rowsort
SELECT ALL col1 * col0 + - 7 AS col0 FROM tab1
----
1033
633
71
query I rowsort
SELECT + + 1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col2 + col1 + + 60 FROM tab0
----
158
179
233
query I rowsort
SELECT ALL + col2 + col1 * + 15 * col0 AS col2 FROM tab0
----
121567
30993
50926
query I rowsort
SELECT - col1 * col0 + col0 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT 45 + tab1.col2 AS col0 FROM tab1
----
102
141
99
query I rowsort
SELECT ALL - col0 * + ( - ( col1 ) ) + 64 * col1 + col0 AS col2 FROM tab0 AS cor0
----
14012
7592
9638
query I rowsort
SELECT ALL + cor0.col0 + 50 * 49 FROM tab2 AS cor0
----
2457
2528
2529
query I rowsort
SELECT + - col1 * 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * ( - col2 ) FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL col0 DIV - 53 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL col0 / - 53 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + + col2 - + 30 AS col0 FROM tab0 AS cor0
----
-29
3
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT cor0.col2 * CAST( NULL AS SIGNED ) + + 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3141
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) + + 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - 31 FROM tab2 AS cor0
----
-217
-2418
-2449
query I rowsort
SELECT - cor0.col1 * - 18 AS col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL + col0 + + 58 * col2 FROM tab0 AS cor0
----
1938
4845
93
query I rowsort
SELECT DISTINCT + col2 + + 86 * + 76 AS col2 FROM tab0 AS cor0
----
6537
6569
6618
query I rowsort
SELECT - - cor0.col2 * + 94 * col1 AS col2 FROM tab2 AS cor0
----
144196
60724
78678
query I rowsort
SELECT ALL - col1 + col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - - col2 * + 61 AS col2 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT ALL + col2 * - 86 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT ALL col2 * - ( ( col0 ) ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT - CAST( NULL AS SIGNED ) * 75 + col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3151
SELECT - CAST ( NULL AS INTEGER ) * 75 + col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * col0 * col0 + 54 + + col1 FROM tab2 AS cor0
----
428
474665
493110
query I rowsort
SELECT cor0.col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT 28 + col2 FROM tab1
----
124
82
85
query I rowsort
SELECT col1 * + 6 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL ( + 85 ) FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT + col1 * - 65 * + col2 AS col0 FROM tab2 cor0
----
-41990
-54405
-99710
query I rowsort
SELECT - 22 + + col0 AS col2 FROM tab2 AS cor0
----
-15
56
57
query I rowsort
SELECT + ( - col0 ) * + col0 + 8 * col0 FROM tab2 AS cor0
----
-5460
-5609
7
query I rowsort
SELECT + - ( 60 ) - - col1 AS col2 FROM tab1 AS cor0
----
-34
-47
-50
query I rowsort
SELECT - + 32 FROM tab1 AS cor0
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 * 64 col2 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT + - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL ( + col2 ) * col2 * - col0 FROM tab1
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT ALL - col1 + + col2 DIV col0 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - col1 + + col2 / col0 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT DISTINCT + 91 * - 63 FROM tab1 AS cor0
----
-5733
query I rowsort
SELECT ALL - + 42 * + 1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-39
22
38
query I rowsort
SELECT - - 10 FROM tab0 cor0
----
10
10
10
query I rowsort
SELECT + - 88 FROM tab0 cor0
----
-88
-88
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 1 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT - col0 DIV cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3172
SELECT - col0 / cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3173
SELECT ALL + CAST( - cor0.col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + CAST ( - cor0.col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col0 + - col2 * + col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT + col0 + + col1 DIV + ( col0 * + tab2.col0 ) + col1 AS col2 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-3175
SELECT + col0 + + col1 / + ( col0 * + tab2.col0 ) + col1 AS col2 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3177
SELECT CAST ( NULL AS REAL ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + + col1 - - 19 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT + col1 * - col0 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + 75 * - 82 FROM tab0 AS cor0
----
-6150
-6150
-6150
onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT DISTINCT + + 66 * 41 DIV cor0.col2 FROM tab0 AS cor0
----
2706
33
82
skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + + 66 * 41 / cor0.col2 FROM tab0 AS cor0
----
2706
33
82
query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT 7 FROM tab1, tab2 AS cor0
----
7
query I rowsort
SELECT DISTINCT + - 28 + col2 + + col0 * - 19 AS col1 FROM tab2 AS cor0
----
-134
-1484
-1491
query I rowsort
SELECT ALL - + ( cor1.col0 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT 76 * col2 + + col2 - + col1 AS col1 FROM tab0
----
-20
2455
6223
query I rowsort
SELECT ALL - col0 - col2 * 49 FROM tab1
----
-2649
-2857
-4784
query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-64
query I rowsort
SELECT DISTINCT 76 + + col1 * + col0 - + col2 AS col2 FROM tab0 AS cor0
----
2107
3470
8093
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + cor0.col2 - - 1 col2 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT DISTINCT - 34 + col1 AS col2 FROM tab0 AS cor0
----
52
57
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT DISTINCT - - col1 DIV + col0 + col2 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
-3
-77
-78
skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - - col1 / + col0 + col2 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
-3
-77
-78
query I rowsort
SELECT col2 * col0 + 6 FROM tab0
----
41
7304
798
query I rowsort
SELECT DISTINCT 46 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
46
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 * CAST ( - col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col2 * + 20 FROM tab0 AS cor0
----
145960
15840
700
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 + col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT + col1 * col2 + 24 AS col1 FROM tab1 cor0
----
1272
1428
594
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to e3826bc27970dd1a441a9cd4c13b096d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col1 * col1 col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 22 * + col2 * + col1 FROM tab2 AS cor0
----
-14133
-18407
-33670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - 25 * cor0.col2 + + col0 col2 FROM tab0 AS cor0
----
-182361
-19776
-840
query I rowsort
SELECT ALL col1 + + 36 FROM tab0 AS cor0
----
122
127
133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * 57 col0 FROM tab0 AS cor0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT ALL - + col1 + 99 DIV col1 AS col2 FROM tab2 AS cor0
----
-12
-28
-58
skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - + col1 + 99 / col1 AS col2 FROM tab2 AS cor0
----
-12
-28
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3206
SELECT + + cor0.col0 * CAST( NULL AS SIGNED ) + col2 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3206
SELECT + + cor0.col0 * CAST ( NULL AS INTEGER ) + col2 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 41 AS col2 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT col1 * + tab2.col1 AS col0 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT ALL + col2 DIV cor0.col0 + - col2 FROM tab2 cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + col2 / cor0.col0 + - col2 FROM tab2 cor0
----
-24
-26
-38
query I rowsort
SELECT - - col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col0 * + col1 - - 40 * + cor0.col0 * col2 AS col0 FROM tab2 cor0
----
121423
7777
85722
query I rowsort
SELECT + col2 - 21 FROM tab1 AS cor0
----
33
36
75
query I rowsort
SELECT + col1 * + col1 * + 62 AS col2 FROM tab0 AS cor0
----
458552
513422
583358
query I rowsort
SELECT ALL - col1 * 88 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT col1 * + cor0.col1 * + col2 + col0 FROM tab0 cor0
----
244092
679131
9444
query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) * col0 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT ALL + - col1 DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + - col1 / col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * col0 + + col2 col0 FROM tab2 AS cor0
----
1040
1065
118
query I rowsort
SELECT + col0 + col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + 20 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + - col2 + col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3224
SELECT col2 + CAST( NULL AS SIGNED ) + + 81 * col1 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3224
SELECT col2 + CAST ( NULL AS INTEGER ) + + 81 * col1 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 21 + + 56 AS col1 FROM tab0
----
110
159
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT - col2 DIV 49 col1 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3226
SELECT - col2 / 49 col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT + + col2 + 53 FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT ALL - cor0.col2 + col1 + col0 * 29 AS col0 FROM tab2 AS cor0
----
207
2270
2295
query I rowsort
SELECT DISTINCT + 22 * - col1 AS col0 FROM tab1 AS cor0
----
-220
-286
-572
query I rowsort
SELECT ALL 36 + col2 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab0
----
66
query I rowsort
SELECT ALL col2 + col1 * 57 AS col0 FROM tab1 AS cor0
----
1536
627
837
query I rowsort
SELECT ALL 50 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT col2 * col1 * + 85 AS col0 FROM tab0 AS cor0
----
241230
634270
8245
onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT + - col1 DIV col0 AS col1 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3235
SELECT + - col1 / col0 AS col1 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT + col0 + 93 FROM tab1
----
157
173
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT tab1.col2 DIV tab1.col1 col2 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3237
SELECT tab1.col2 / tab1.col1 col2 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT col1 DIV - col1 col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3238
SELECT col1 / - col1 col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - 65 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT col2 * - ( 13 ) - col0 * col1 FROM tab2 AS cor0
----
-1837
-4940
-568
query I rowsort
SELECT - + col0 + - col0 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-13600
-2031
-6464
query I rowsort
SELECT + col2 * + 77 + + col0 FROM tab2 AS cor0
----
2080
2086
3005
query I rowsort
SELECT + - cor0.col2 * ( col0 ) - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + tab1.col0 * col0 + + col0 * - col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 18 AS col1 FROM tab1
----
18
18
18
query I rowsort
SELECT + ( - 60 ) AS col2 FROM tab0
----
-60
-60
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3247
SELECT + + ( - 39 ) + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3247
SELECT + + ( - 39 ) + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 50 + col1 * + col2 FROM tab2 AS cor0
----
1584
696
887
query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - col1 + 62 AS col0 FROM tab2 AS cor0
----
3
31
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT ALL - 46 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - 46 / col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
query I rowsort
SELECT DISTINCT + 45 * cor0.col1 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT + 6 + cor0.col1 * + 6 FROM tab2 AS cor0
----
108
192
360
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - col0 AS col0 FROM tab2 cor0
----
-56
-6162
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT DISTINCT col1 * col1 DIV - col2 AS col1 FROM tab0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT col1 * col1 / - col2 AS col1 FROM tab0
----
-100
-224
-9409
query I rowsort
SELECT + ( - col1 + col0 ) AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT col0 * - cor0.col2 * - col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - cor0.col0 * + col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col0 * + cor0.col1 + - 83 AS col1 FROM tab0 AS cor0
----
-2147
-3478
-8182
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT + col0 * - col1 + ( col1 + - col2 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-1046
-644
-79
skipif mysql # not compatible
query I rowsort label-3261
SELECT + col0 * - col1 + ( col1 + - col2 ) / + col1 AS col1 FROM tab1 AS cor0
----
-1046
-644
-79
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + ( col2 ) * + col1 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3264
SELECT ALL + tab0.col0 * + col0 + - CAST( 64 AS SIGNED ) FROM tab0
----
1161
512
7857
skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + tab0.col0 * + col0 + - CAST ( 64 AS INTEGER ) FROM tab0
----
1161
512
7857
query I rowsort
SELECT ALL - col1 + - col1 AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT cor1.col0 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8d0df4d65adbb98f9e0075a02971add2
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 + + 73 FROM tab2 AS cor0
----
151
152
80
query I rowsort
SELECT + - col0 + + 76 FROM tab0 AS cor0
----
-13
41
52
query I rowsort
SELECT col0 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + ( - 64 ) - col2 AS col0 FROM tab2 AS cor0
----
-102
-90
-91
query I rowsort
SELECT + + col1 * col0 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - 14 FROM tab2 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3276
SELECT DISTINCT col1 + col2 * - col0 + CAST( + ( col0 ) AS SIGNED ) * ( col1 * + cor0.col1 ) FROM tab1 AS cor0
----
1892
2762
5853
skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT col1 + col2 * - col0 + CAST ( + ( col0 ) AS INTEGER ) * ( col1 * + cor0.col1 ) FROM tab1 AS cor0
----
1892
2762
5853
query I rowsort
SELECT DISTINCT - 85 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-50
-61
4
query I rowsort
SELECT ALL + 85 * - col2 FROM tab0 AS cor0
----
-2805
-6970
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT ALL col2 + col1 DIV - 4 FROM tab0
----
-23
12
60
skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL col2 + col1 / - 4 FROM tab0
----
-23
12
60
query I rowsort
SELECT ALL + 92 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT col1 * 73 * + col2 - col0 * col2 * + col2 AS col1 FROM tab0
----
-53710
181038
7046
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - tab1.col1 * + col1 col2 FROM tab1
----
1079
470
728
query I rowsort
SELECT ALL + 73 * - col1 * - col0 + + 20 AS col2 FROM tab2 AS cor0
----
15861
335966
98059
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3286
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 DIV col0 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 / col0 FROM tab0 AS cor0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 9 col1 FROM tab0 cor0
----
9
9
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT ALL + + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 78 + - col2 * col2 * 94 FROM tab1 AS cor0
----
-274026
-305328
-866226
query I rowsort
SELECT - 28 + - ( - col1 + + 86 ) * col0 AS col2 FROM tab2 AS cor0
----
-2134
-413
-5479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 - col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT 82 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-3293
SELECT 82 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT 86 * col1 FROM tab2 AS cor0
----
1462
2666
5074
onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT ALL col2 DIV 14 + + col2 FROM tab2
----
27
28
40
skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL col2 / 14 + + col2 FROM tab2
----
27
28
40
query I rowsort
SELECT + cor0.col1 * ( + col2 + col0 ) FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT DISTINCT - col2 * + 20 FROM tab0 AS cor0
----
-1640
-20
-660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3298
SELECT col1 + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3298
SELECT col1 + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT DISTINCT - col0 * ( col1 ) + - col0 DIV + col0 FROM tab2 AS cor0
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - col0 * ( col1 ) + - col0 / + col0 FROM tab2 AS cor0
----
-1344
-218
-4603
query I rowsort
SELECT DISTINCT + col1 * + col2 + + 10 + - cor0.col0 FROM tab0 cor0
----
2824
72
7383
query I rowsort
SELECT ALL 54 AS col1 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT + - col0 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + cor0.col0 + + col1 * col2 AS col2 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT + 9 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3304
SELECT + 9 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 12 + col1 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT DISTINCT + - 94 FROM tab1 AS cor0
----
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col2 + + 88 col0 FROM tab0 AS cor0
----
-35849
-551280
87
query I rowsort
SELECT 41 + tab1.col1 FROM tab1
----
51
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3309
SELECT + 25 DIV + col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3309
SELECT + 25 / + col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 * - col1 + + 1 FROM tab1 AS cor0
----
36481
4213
99841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 * + cor0.col0 + + 39 col0 FROM tab1 AS cor0
----
300
5607
6999
query I rowsort
SELECT - 76 * cor0.col2 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2035
-2083
-2905
query I rowsort
SELECT - col1 * col0 + + col0 + + col0 * + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 + tab0.col1 * - ( - col2 ) AS col0 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT - col2 + - col0 * + 0 + col2 DIV - 26 FROM tab1 AS cor0
----
-56
-59
-99
skipif mysql # not compatible
query I rowsort label-3315
SELECT - col2 + - col0 * + 0 + col2 / - 26 FROM tab1 AS cor0
----
-56
-59
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3316
SELECT + cor0.col2 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-3316
SELECT + cor0.col2 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - 53 FROM tab2
----
-53
query I rowsort
SELECT + 9 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL + col2 + + col2 * - 89 FROM tab0
----
-2904
-7216
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + + col1 col1 FROM tab0
----
15
4
9
query I rowsort
SELECT ALL - + ( + col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 71 * + col1 + - col0 FROM tab0 AS cor0
----
-6130
-6550
-6922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * 47 col0 FROM tab1 AS cor0
----
282
282
282
query I rowsort
SELECT DISTINCT + col2 * 68 * + col2 FROM tab0 AS cor0
----
457232
68
74052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3325
SELECT ALL + + CAST( + ( + col0 ) AS SIGNED ) * col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + + CAST ( + ( + col0 ) AS INTEGER ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 26 AS col0 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL + 74 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT col1 * ( + col2 ) + - col1 AS col2 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL - ( + 52 ) * + tab0.col2 + + tab0.col0 * ( + col1 + - tab0.col1 ) AS col0 FROM tab0
----
-1716
-4264
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3330
SELECT ALL col2 * 59 + col0 DIV + col1 AS col0 FROM tab2
----
1535
1593
2246
skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL col2 * 59 + col0 / + col1 AS col0 FROM tab2
----
1535
1593
2246
query I rowsort
SELECT col1 + tab0.col2 + col2 FROM tab0
----
152
255
99
query I rowsort
SELECT - ( 65 ) AS col1 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT DISTINCT 21 * + cor0.col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col0 * 47 FROM tab0 AS cor0
----
-1128
-1645
-4183
query I rowsort
SELECT ALL 75 - + 97 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
12
query I rowsort
SELECT ALL - ( col2 + - tab0.col1 * - col0 ) AS col1 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT - + 71 FROM tab1 cor0
----
-71
-71
-71
query I rowsort
SELECT - col2 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT 82 + + ( + col2 ) * - 42 AS col2 FROM tab2 AS cor0
----
-1010
-1052
-1514
query I rowsort
SELECT - 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 80 ) + - col0 + col0 col0 FROM tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT tab2.col2 * 23 * col2 FROM tab2
----
15548
16767
33212
query I rowsort
SELECT + tab0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 41 * + tab0.col0 FROM tab0
----
1435
3649
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3347
SELECT col0 * col0 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3347
SELECT col0 * col0 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + col2 - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-61
7289
739
query I rowsort
SELECT + - 66 + col0 * - col0 FROM tab0 cor0
----
-1291
-642
-7987
query I rowsort
SELECT - ( col2 ) * + ( + tab2.col2 + col1 ) FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT + col0 * 53 AS col0 FROM tab2
----
371
4134
4187
query I rowsort
SELECT DISTINCT + 80 * - 25 FROM tab2, tab1 AS cor0
----
-2000
query I rowsort
SELECT - 40 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT + col2 * - 5 FROM tab2 AS cor0
----
-130
-135
-190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3355
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 64 col1 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT - col1 + - 6 AS col2 FROM tab2 AS cor0
----
-23
-37
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3359
SELECT + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT ALL + + cor0.col1 DIV + cor0.col0 - - col0 DIV - 39 AS col0 FROM tab2 AS cor0
----
-2
-2
4
skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + + cor0.col1 / + cor0.col0 - - col0 / - 39 AS col0 FROM tab2 AS cor0
----
-2
-2
4
query I rowsort
SELECT ALL + + 68 AS col2 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT ALL + 58 + + ( + col2 ) * + col2 * ( col2 ) FROM tab2 AS cor0
----
17634
19741
54930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + 17 col1 FROM tab2 AS cor0
----
-10
-21
-9
query I rowsort
SELECT - col2 + - 59 * col1 FROM tab0 AS cor0
----
-5107
-5451
-5724
query I rowsort
SELECT DISTINCT - 64 FROM tab2 cor0
----
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT + col0 DIV 30 + col2 * col2 FROM tab2
----
1446
678
729
skipif mysql # not compatible
query I rowsort label-3367
SELECT + col0 / 30 + col2 * col2 FROM tab2
----
1446
678
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT col0 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3368
SELECT col0 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 82 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT + + col0 + 79 DIV + col1 AS col1 FROM tab1 cor0
----
6
71
86
skipif mysql # not compatible
query I rowsort label-3370
SELECT + + col0 + 79 / + col1 AS col1 FROM tab1 cor0
----
6
71
86
query I rowsort
SELECT + ( + col1 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT + - col2 + col1 DIV col1 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-3372
SELECT + - col2 + col1 / col1 FROM tab0 AS cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col1 * + col0 + - col2 + + col1 FROM tab1 AS cor0
----
13437
2000
6353
query I rowsort
SELECT - - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col0 * cor0.col1 * cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
-118790
-49512
-720722
onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT DISTINCT + 37 - + col0 DIV - col1 AS col0 FROM tab1
----
37
43
skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + 37 - + col0 / - col1 AS col0 FROM tab1
----
37
43
query I rowsort
SELECT ALL 27 FROM tab0, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) - col2 * col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ( + 14 ) + col1 - + col1 * col2 AS col1 FROM tab2
----
-1461
-615
-792
query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col2 - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col0 ) * + col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ( - col1 + col2 ) AS col0 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT col0 DIV - ( tab0.col0 ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3385
SELECT col0 / - ( tab0.col0 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ( 9 ) * col1 AS col0 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT 96 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3388
SELECT + - CAST( NULL AS SIGNED ) * - col0 * + col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3388
SELECT + - CAST ( NULL AS INTEGER ) * - col0 * + col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - ( + col1 ) AS REAL ) + - col0 * col2 / cor0.col1 FROM tab0 AS cor0
----
-171
-95
-97
query I rowsort
SELECT + 74 * + col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT - col2 * col2 + - col0 FROM tab0 cor0
----
-1113
-36
-6813
query I rowsort
SELECT + 52 * col1 * col2 AS col1 FROM tab2 AS cor0
----
33592
43524
79768
query I rowsort
SELECT - + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT + ( + col1 ) * + col1 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-3394
SELECT + ( + col1 ) * + col1 + col0 / col0 AS col0 FROM tab2 AS cor0
----
290
3482
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3395
SELECT + col2 * - cor0.col1 - + col0 * col1 DIV col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-3395
SELECT + col2 * - cor0.col1 - + col0 * col1 / col1 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT - + 47 DIV - col1 + col1 * col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3396
SELECT - + 47 / - col1 + col1 * col1 FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + col0 * cor0.col0 col0 FROM tab2 AS cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab0
----
75
75
75
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1, tab1 AS cor0
----
32
query I rowsort
SELECT ALL 33 AS col0 FROM tab0 cor0
----
33
33
33
query I rowsort
SELECT DISTINCT col1 * - 86 FROM tab1
----
-1118
-2236
-860
query I rowsort
SELECT ALL col0 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col0 + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL col1 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - col2 + col0 * + col2 + - col0 NOT IN ( col0 )
----
query I rowsort
SELECT - col1 + col1 + + col1 AS col0 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----
query I rowsort
SELECT ALL - tab1.col1 * col0 * - col2 AS col2 FROM tab1
----
36480
4212
99840
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col0 )
----
query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col1 * tab0.col0 + + col1 AS col0 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * col2 - col0 col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT col0 * - col0 + col2 DIV col0 AS col0 FROM tab0
----
-1225
-575
-7921
skipif mysql # not compatible
query I rowsort label-3413
SELECT col0 * - col0 + col2 / col0 AS col0 FROM tab0
----
-1225
-575
-7921
query I rowsort
SELECT DISTINCT col2 * + col0 * - col1 + col0 FROM tab1 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT + tab1.col1 * col2 + - tab1.col0 AS col1 FROM tab1
----
1168
1401
506
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * - col1 ) NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT tab1.col2 DIV - col0 - col2 AS col2 FROM tab1
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-3417
SELECT tab1.col2 / - col0 - col2 AS col2 FROM tab1
----
-57
-72
-97
query I rowsort
SELECT ALL - col0 * + tab2.col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT + col2 DIV - col2 - tab0.col1 AS col0 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3419
SELECT + col2 / - col2 - tab0.col1 AS col0 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT - col1 * tab1.col2 * col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col2 + col1 + col1 AS col2 FROM tab0
----
195
205
264
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT - tab1.col1 * col0 * col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab1 WHERE NOT NULL <> ( - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT tab1.col1 DIV tab1.col1 + col1 + col2 FROM tab1
----
110
68
81
skipif mysql # not compatible
query I rowsort label-3425
SELECT tab1.col1 / tab1.col1 + col1 + col2 FROM tab1
----
110
68
81
query I rowsort
SELECT ALL + col0 * - col1 * col1 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-1866
-2752
-5840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col2 + - col0 col2 FROM tab1 cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT ALL - - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - - col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + - col2 * col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT + - col2 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT col0 DIV + 45 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3434
SELECT col0 / + 45 col2 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL col2 * + col0 + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col1 + + 55 + ( tab1.col0 ) FROM tab1
----
129
148
84
query I rowsort
SELECT col2 * col1 + - 12 + col0 FROM tab0
----
120
2850
7539
query I rowsort
SELECT - 65 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col2 col1 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT DISTINCT - col0 DIV CAST( col0 AS SIGNED ) + - col2 * col2 FROM tab2
----
-1445
-677
-730
skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - col0 / CAST ( col0 AS INTEGER ) + - col2 * col2 FROM tab2
----
-1445
-677
-730
query I rowsort
SELECT ALL col0 + ( - col0 ) * - cor0.col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT ALL col2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 41 FROM tab1, tab0 cor0
----
-41
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - + col0 + + 36 FROM tab2 AS cor0
----
-42
-43
29
query I rowsort
SELECT ALL + - col0 * ( 7 ) FROM tab0 cor0
----
-168
-245
-623
query I rowsort
SELECT + col1 * + col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT ALL - 80 DIV 69 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - 80 / 69 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 0 ) + col2 - + 92 * - col0 col2 FROM tab0 AS cor0
----
2241
3221
8270
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT ALL - 36 + col1 DIV + col2 FROM tab1 AS cor0
----
-36
-36
-36
skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 36 + col1 / + col2 FROM tab1 AS cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + - 96 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-5181
-5408
-9136
query I rowsort
SELECT ALL + + ( + 79 ) + + col1 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT + - col0 * col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT 15 FROM tab1, tab2, tab2 AS cor0, tab0
----
15
query I rowsort
SELECT DISTINCT - col0 + - ( col2 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - col2 * + 44 AS col2 FROM tab0
----
-1452
-3608
-44
query I rowsort
SELECT + - cor0.col1 * - 41 + + col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT - col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - 69 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
510
5408
5489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + - 66 * - col0 * - 48 FROM tab2 AS cor0
----
-22176
-247104
-250272
query I rowsort
SELECT DISTINCT + - col1 * - col1 + + 67 AS col1 FROM tab1 AS cor0
----
167
236
743
query I rowsort
SELECT - 74 * - col0 AS col0 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT ALL 24 * - col0 FROM tab0 AS cor0
----
-2136
-576
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT + + col2 + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3470
SELECT + + col2 + col2 / + col1 AS col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT ALL + 39 FROM tab1 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT - - col2 DIV col0 AS col1 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3472
SELECT - - col2 / col0 AS col1 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT ALL + 25 + + col1 * - 30 AS col2 FROM tab2 AS cor0
----
-1745
-485
-905
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col2 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + + col2 * + 50 AS col0 FROM tab1
----
2697
2786
4720
query I rowsort
SELECT - 91 * + col0 + - tab2.col2 AS col1 FROM tab2
----
-664
-7124
-7227
query I rowsort
SELECT - col0 - col1 * col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL col2 * tab2.col1 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col2 * col1 + col0 * col2 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT ALL col0 * ( 28 + - col2 ) FROM tab2
----
-790
156
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT ALL ( + col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL ( + col1 ) / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab1 AS cor0
----
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 71 col0 FROM tab0
----
1704
2485
6319
query I rowsort
SELECT - col2 * - ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT + CAST( NULL AS SIGNED ) + + 76 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3486
SELECT + CAST ( NULL AS INTEGER ) + + 76 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 * + 47 + col1 + + ( col0 ) FROM tab0
----
4152
4457
4691
query I rowsort
SELECT 67 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT + + cor0.col1 * + col1 + col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL + ( - tab0.col1 ) AS col2 FROM tab0
----
-86
-91
-97
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 DISTINCT - col2 * + col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 * col0 * 43 FROM tab0
----
1505
313814
34056
query I rowsort
SELECT - 71 + - cor0.col1 FROM tab2 AS cor0
----
-102
-130
-88
query I rowsort
SELECT + ( - 55 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT 88 + - cor0.col1 FROM tab1 AS cor0
----
62
75
78
query I rowsort
SELECT ALL 55 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1705
3245
935
onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT DISTINCT + + col1 DIV + col0 + 58 AS col1 FROM tab0 AS cor0
----
59
60
61
skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + + col1 / + col0 + 58 AS col1 FROM tab0 AS cor0
----
59
60
61
query I rowsort
SELECT 13 * - tab0.col2 AS col0 FROM tab0
----
-1066
-13
-429
query I rowsort
SELECT col0 * + 77 AS col2 FROM tab0
----
1848
2695
6853
query I rowsort
SELECT col2 * + 85 * col1 AS col1 FROM tab0
----
241230
634270
8245
query I rowsort
SELECT ALL - col0 * col2 * ( col1 ) + col2 * - col2 FROM tab0 AS cor0
----
-3396
-670842
-69201
query I rowsort
SELECT ALL - + col1 + + col2 + - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT - col0 * ( col2 + + CAST( col1 AS SIGNED ) ) FROM tab1
----
-240
-4288
-8720
skipif mysql # not compatible
query I rowsort label-3504
SELECT - col0 * ( col2 + + CAST ( col1 AS INTEGER ) ) FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT ALL + tab2.col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 FROM tab0
----
2
62
query I rowsort
SELECT ALL ( col1 ) * - 84 + - col2 FROM tab1
----
-1188
-2238
-897
query I rowsort
SELECT DISTINCT + 33 * col2 FROM tab2
----
1254
858
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 75 * col1 FROM tab2
----
1275
2325
4425
query I rowsort
SELECT + 21 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3512
SELECT - CAST( 5 AS SIGNED ) * - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to de286ddac87441782c31e5bb785e1506
skipif mysql # not compatible
query I rowsort label-3512
SELECT - CAST ( 5 AS INTEGER ) * - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to de286ddac87441782c31e5bb785e1506
query I rowsort
SELECT 32 AS col0 FROM tab1 AS cor0
----
32
32
32
query I rowsort
SELECT - 10 + + col2 AS col1 FROM tab0 cor0
----
-9
23
72
query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
24
query I rowsort
SELECT col2 * 26 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT + - 14 + col0 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT - 6 * col1 AS col0 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT - + ( ( col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + 50 AS col2 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - ( 54 ) + col1 FROM tab2 cor0
----
-23
-37
5
query I rowsort
SELECT DISTINCT + 35 + col1 * - col2 FROM tab0 AS cor0
----
-2803
-62
-7427
query I rowsort
SELECT + + ( cor0.col2 ) FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3525
SELECT tab0.col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3525
SELECT tab0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - + col1 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - ( - tab1.col1 ) AS col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT - cor0.col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3529
SELECT - cor0.col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab0.col0 * ( col0 ) * - 35 FROM tab0
----
20160
277235
42875
query I rowsort
SELECT - col0 * tab2.col1 + + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab2 cor0
----
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT - ( + col1 ) * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3533
SELECT - ( + col1 ) * col0 / col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT - ( col2 ) DIV - cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3535
SELECT - ( col2 ) / - cor0.col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT - - ( + 57 ) DIV + cor0.col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-3536
SELECT - - ( + 57 ) / + cor0.col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 25 * col1 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
-114972
-33496
-5418
query I rowsort
SELECT DISTINCT - 48 + + col2 FROM tab1 AS cor0
----
48
6
9
query I rowsort
SELECT col0 * + col1 + + cor0.col0 * + col2 - col1 FROM tab2 AS cor0
----
375
4328
6571
query I rowsort
SELECT ( + col2 ) * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT 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-3542
SELECT cor0.col0 * col0 - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT ALL + col1 DIV col0 - - col0 col1 FROM tab0 AS cor0
----
27
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + col1 / col0 - - col0 col1 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2 AS cor0
----
21
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT tab2.col2 + col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT 10 * 86 AS col2 FROM tab0
----
860
query I rowsort
SELECT DISTINCT + + 55 * col0 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT + 55 * col2 FROM tab2 AS cor0
----
1430
1485
2090
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + - col0 + + 67 * col0 FROM tab0 cor0
----
1584
2310
5874
query I rowsort
SELECT DISTINCT + - col2 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - col0 * ( 12 ) + - cor0.col2 FROM tab2 cor0
----
-111
-962
-986
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) * col1 + col2 * col2 AS col1 FROM tab1 cor0
----
-37711
-73984
2682
onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT + + col1 DIV col0 col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3556
SELECT + + col1 / col0 col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL - col2 * - 82 + - col1 FROM tab2 AS cor0
----
2073
2183
3099
query I rowsort
SELECT col2 * + 7 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT DISTINCT col1 DIV + col1 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col1 / + col1 AS col1 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT ALL + - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + - col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT DISTINCT + col0 DIV + col1 + - col0 FROM tab1 cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + col0 / + col1 + - col0 FROM tab1 cor0
----
-3
-58
-74
query I rowsort
SELECT ALL + - col1 * 19 - - ( + col1 ) * 80 AS col2 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT DISTINCT + - col0 * + 55 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL + col0 + + 58 AS col1 FROM tab2 AS cor0
----
136
137
65
query I rowsort
SELECT ALL + col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT - + CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3569
SELECT - + CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT tab1.col2 * ( + tab1.col1 ) + + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + col1 * col0 + 71 FROM tab0
----
2135
3466
8170
query I rowsort
SELECT ALL - 14 * col1 FROM tab2
----
-238
-434
-826
query I rowsort
SELECT - - 31 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL - - col0 - + 90 FROM tab1 cor0
----
-10
-26
-87
query I rowsort
SELECT - - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT DISTINCT + + cor0.col1 * col0 + col2 DIV col0 FROM tab0 AS cor0
----
2065
3395
8099
skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + + cor0.col1 * col0 + col2 / col0 FROM tab0 AS cor0
----
2065
3395
8099
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2, tab0
----
13122 values hashing to 8a755372bcab229bcf693a4321822fbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-3579
SELECT DISTINCT + tab0.col0 DIV - cor0.col1 FROM tab0, tab2 AS cor0
----
-1
-2
-5
0
skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + tab0.col0 / - cor0.col1 FROM tab0, tab2 AS cor0
----
-1
-2
-5
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT - col2 DIV 64 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3580
SELECT - col2 / 64 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL - col2 * - ( + 36 ) + col2 AS col1 FROM tab1 AS cor0
----
1998
2109
3552
onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT ALL - - col2 DIV col1 + ( col2 + - ( ( cor0.col2 ) ) ) * + 15 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - - col2 / col1 + ( col2 + - ( ( cor0.col2 ) ) ) * + 15 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col1 + + col0 * - 67 AS col1 FROM tab0 cor0
----
-1522
-2248
-5872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3584
SELECT DISTINCT col0 + + CAST( col1 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT col0 + + CAST ( col1 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT DISTINCT + col1 * + cor0.col0 + - cor0.col1 + col2 DIV col1 FROM tab1 AS cor0
----
1034
54
635
skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT + col1 * + cor0.col0 + - cor0.col1 + col2 / col1 FROM tab1 AS cor0
----
1034
54
635
query I rowsort
SELECT ALL - + col0 - + ( col0 ) FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + + col1 * col2 - 92 FROM tab0 AS cor0
----
2746
5
7370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * ( cor0.col0 ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * ( cor0.col0 ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * + col1 * + col0 AS col0 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT ALL - col2 DIV - col1 + - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - col2 / - col1 + - col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * tab2.col2 col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - tab1.col0 + + col1 FROM tab1
----
-54
-67
23
query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + - col1 * col2 ) IN ( + col2 + - col1 * col1 )
----
query I rowsort
SELECT col2 - + col0 * col2 * col1 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT col1 * col1 AS col1 FROM tab0 WHERE col1 * col1 IN ( tab0.col1 + + col2 * - col2 * - col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE col0 * - col0 NOT BETWEEN NULL AND ( - col2 * + col1 + - col0 )
----
7
31
27
query I rowsort
SELECT ALL col1 - - col1 * col0 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT + tab1.col0 * col0 AS col1 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3599
SELECT DISTINCT - + 33 + col2 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - + 33 + col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT DISTINCT - col2 * - cor0.col1 - - col2 DIV col1 FROM tab1 AS cor0
----
1255
1406
575
skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - col2 * - cor0.col1 - - col2 / col1 FROM tab1 AS cor0
----
1255
1406
575
query I rowsort
SELECT ALL - 54 * - cor0.col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT + 52 AS col0 FROM tab2 AS cor0
----
52
52
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d
query I rowsort
SELECT ALL - col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL 25 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col0 + + col0 + + col2 FROM tab2
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT col2 DIV + col2 col1 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3609
SELECT col2 / + col2 col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL col0 * col0 * - col0 AS col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT col2 * + col1 * + col1 AS col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + col2 + - col2 + 38 AS col1 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT ALL - 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + 20 FROM tab1 cor0
----
20
query I rowsort
SELECT - col0 + col2 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
213
3641
7696
query I rowsort
SELECT + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - 99 AS col1 FROM tab2 cor0
----
-99
-99
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3619
SELECT + - ( col1 ) * 47 * col1 + col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3619
SELECT + - ( col1 ) * 47 * col1 + col2 * - 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-3620
SELECT - + col1 * col1 DIV 31 + col0 AS col2 FROM tab2 AS cor0
----
-24
-34
70
skipif mysql # not compatible
query I rowsort label-3620
SELECT - + col1 * col1 / 31 + col0 AS col2 FROM tab2 AS cor0
----
-24
-34
70
query I rowsort
SELECT ALL + 99 FROM tab2
----
99
99
99
query I rowsort
SELECT DISTINCT + cor0.col2 * 92 AS col0 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT + 38 * col1 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT DISTINCT + col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL 55 + - col1 * col2 FROM tab1 AS cor0
----
-1193
-1349
-515
query I rowsort
SELECT + ( 20 ) * cor0.col0 FROM tab1 cor0
----
1280
1600
60
query I rowsort
SELECT col0 * + col0 + tab0.col2 + col0 AS col2 FROM tab0
----
1261
633
8092
query I rowsort
SELECT DISTINCT col1 * - col0 + col1 * - col2 + 66 FROM tab1
----
-1144
-1416
-2222
onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT + col0 + col2 DIV + col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-3629
SELECT + col0 + col2 / + col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT + 18 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT ( col0 * tab2.col1 ) FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3633
SELECT ALL CAST( NULL AS SIGNED ) + + 91 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CAST ( NULL AS INTEGER ) + + 91 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col1 * - col1 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab1
----
71
71
71
query I rowsort
SELECT DISTINCT + cor0.col0 - 7 AS col2 FROM tab0, tab0 cor0
----
17
28
82
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + ( col1 ) * - col1 * + col1 FROM tab0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col2 FROM tab0
----
13
query I rowsort
SELECT + col1 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3641
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3641
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 + 47 AS col2 FROM tab0
----
133
138
144
query I rowsort
SELECT ALL tab1.col0 * 72 * + col0 AS col2 FROM tab1
----
294912
460800
648
query I rowsort
SELECT DISTINCT + - col0 + + col2 + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1232
-1353
-577
query I rowsort
SELECT - col1 * ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT - - col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3647
SELECT - - col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * col0 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT ALL col1 * 51 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT ALL - + col2 + + col0 * ( - col2 ) FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + col2 + col0 * ( + col1 ) FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT - col1 DIV + ( + col0 ) FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3652
SELECT - col1 / + ( + col0 ) FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT + col1 + col0 * 91 FROM tab1 AS cor0
----
299
5834
7293
query I rowsort
SELECT col1 * - 73 FROM tab0 AS cor0
----
-6278
-6643
-7081
query I rowsort
SELECT ALL col2 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col2 + - col0 * cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-370
-474578
-493077
query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + 90 + cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to 0e3c74fd4edf7f13800f09c38f957065
query I rowsort
SELECT + 96 * cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT ALL + - ( ( - col1 ) ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - + col1 * col1 * - col2 + 87 FROM tab0 AS cor0
----
244155
679129
9496
query I rowsort
SELECT - 64 * - 78 FROM tab0 AS cor0
----
4992
4992
4992
query I rowsort
SELECT ALL - ( - ( cor0.col1 ) ) * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 28 col0 FROM tab0
----
2492
672
980
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + - col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 * + col2 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - + col2 * cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 25 FROM tab2
----
25
25
25
query I rowsort
SELECT - tab0.col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + cor0.col0 * tab2.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to bd0f553652e91081616d79ec94aff1a5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab2
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT DISTINCT + - col1 DIV + col0 + - 53 FROM tab2 AS cor0
----
-53
-57
skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + - col1 / + col0 + - 53 FROM tab2 AS cor0
----
-53
-57
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT - + col2 * - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3678
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT col2 DIV col1 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3679
SELECT col2 / col1 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 + + 7 AS col1 FROM tab2
----
14
85
86
query I rowsort
SELECT - col2 + col0 * 50 FROM tab1
----
3143
3904
96
query I rowsort
SELECT 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3684
SELECT DISTINCT - col1 + - ( + ( + col2 ) * CAST( col0 AS SIGNED ) ) + cor0.col2 col2 FROM tab2 AS cor0
----
-193
-2061
-2981
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - col1 + - ( + ( + col2 ) * CAST ( col0 AS INTEGER ) ) + cor0.col2 col2 FROM tab2 AS cor0
----
-193
-2061
-2981
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT ALL - col2 * CAST( col2 AS SIGNED ) * - col1 + - 16 + col0 AS col0 FROM tab1 AS cor0
----
119872
32538
75803
skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) * - col1 + - 16 + col0 AS col0 FROM tab1 AS cor0
----
119872
32538
75803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT DISTINCT - + col1 * ( + col0 ) - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - + col1 * ( + col0 ) - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT tab1.col0 * tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ( + col1 * - tab2.col0 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 * 87 * col1 + + col0 + 91 FROM tab1
----
55835
6880
90651
query I rowsort
SELECT col1 + 4 * tab0.col2 AS col2 FROM tab0
----
101
218
419
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT DISTINCT + tab2.col2 * 7 + - col1 * + CAST( col1 * - col1 AS SIGNED ) FROM tab2
----
205561
29980
5179
skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + tab2.col2 * 7 + - col1 * + CAST ( col1 * - col1 AS INTEGER ) FROM tab2
----
205561
29980
5179
query I rowsort
SELECT - ( + col2 ) + - col1 AS col1 FROM tab1
----
-109
-67
-80
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + 26 - + 91 * col2 AS col2 FROM tab0 AS cor0
----
-2977
-65
-7436
query I rowsort
SELECT ALL - col1 + + col0 * + col0 AS col2 FROM tab0
----
1128
490
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT CAST( NULL AS SIGNED ) - 7 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3696
SELECT CAST ( NULL AS INTEGER ) - 7 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * col1 * col2 + cor0.col0 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT DISTINCT - - 8 + col0 + col2 FROM tab0 AS cor0
----
179
44
65
query I rowsort
SELECT - ( - col0 ) * + col2 + - col2 AS col0 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - ( - 93 ) * - col1 FROM tab1 cor0
----
-2580
-4578
-8889
query I rowsort
SELECT ALL + 35 + col0 * + ( - 88 ) FROM tab2 AS cor0
----
-581
-6829
-6917
onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT DISTINCT - col2 * col0 * + col2 + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-26135
-34
-598435
skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT - col2 * col0 * + col2 + + col2 / col2 AS col1 FROM tab0 AS cor0
----
-26135
-34
-598435
query I rowsort
SELECT ALL + 57 AS col0 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT - col2 * - 10 FROM tab1
----
540
570
960
query I rowsort
SELECT + 99 * - col1 FROM tab0
----
-8514
-9009
-9603
query I rowsort
SELECT ( + 64 ) - col0 FROM tab1
----
-16
0
61
query I rowsort
SELECT DISTINCT col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 28 * + col0 - col1 AS col1 FROM tab1 cor0
----
1782
2227
58
query I rowsort
SELECT + 8 FROM tab1 cor0
----
8
8
8
query I rowsort
SELECT 48 + - col0 AS col2 FROM tab0 AS cor0
----
-41
13
24
query I rowsort
SELECT ALL ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 + - col0 * ( 97 ) * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-15765
-353849
-744976
query I rowsort
SELECT - - col0 * col2 + - col2 FROM tab1 cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + 22 + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1067
-6702
21
query I rowsort
SELECT + 11 * col0 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT col0 * - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + ( col2 ) col2 FROM tab0 AS cor0
----
114
163
82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
query I rowsort
SELECT DISTINCT - ( + 29 ) * col1 AS col1 FROM tab1
----
-290
-377
-754
query I rowsort
SELECT DISTINCT col1 * tab1.col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT - 34 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 04947e895a04c00ea3cab9af228c0c43
query I rowsort
SELECT - 12 * cor0.col2 AS col0 FROM tab2 cor0
----
-312
-324
-456
query I rowsort
SELECT - 52 * col0 AS col0 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT ( - 6 + - tab2.col2 ) AS col2 FROM tab2
----
-32
-33
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT ALL tab0.col1 DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL tab0.col1 / + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col1 * col0 * - 26 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-113568
-28677
-5593
query I rowsort
SELECT DISTINCT col1 - - col2 * + col2 AS col0 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + 0 * tab1.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
0
query I rowsort
SELECT + col1 + + 59 - col2 AS col0 FROM tab0 AS cor0
----
112
155
68
query I rowsort
SELECT ALL ( + col2 ) + - 17 FROM tab1
----
37
40
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT 3 * + col0 + - 46 DIV + col1 FROM tab0
----
105
267
72
skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT 3 * + col0 + - 46 / + col1 FROM tab0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT DISTINCT tab0.col1 DIV col0 + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT tab0.col1 / col0 + col0 FROM tab0
----
27
37
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3736
SELECT 51 * col1 + CAST( NULL AS SIGNED ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3736
SELECT 51 * col1 + CAST ( NULL AS INTEGER ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 81 + + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
159
160
88
query I rowsort
SELECT - 11 FROM tab0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT col1 * col0 * col1 + + col0 DIV + col0 FROM tab2
----
22832
271519
6728
skipif mysql # not compatible
query I rowsort label-3739
SELECT col1 * col0 * col1 + + col0 / + col0 FROM tab2
----
22832
271519
6728
query I rowsort
SELECT + tab0.col2 + 18 + - col2 * + col0 FROM tab0
----
-16
-7198
-741
query I rowsort
SELECT DISTINCT + col1 * 3 + 74 FROM tab2 AS cor0
----
125
167
251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + col2 * + 4 col1 FROM tab2 AS cor0
----
130
135
190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3743
SELECT ALL - 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-3743
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col0 + 6 AS col2 FROM tab1 AS cor0
----
70
86
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col2 - col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL col2 * 56 + col1 FROM tab2 cor0
----
1515
1543
2145
query I rowsort
SELECT DISTINCT col0 - col2 * col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT + - col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT DISTINCT - + col1 + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - + col1 + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - cor0.col0 + - col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 + 54 AS col0 FROM tab2 AS cor0
----
-24
-25
47
query I rowsort
SELECT ALL 0 AS col2 FROM tab1, tab0, tab2 cor0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT + 42 * cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab0 AS cor0
----
75
query I rowsort
SELECT + col0 + + 85 * 23 AS col0 FROM tab1 cor0
----
1958
2019
2035
query I rowsort
SELECT col2 * + 16 * col2 + ( col0 ) AS col2 FROM tab2 cor0
----
10894
11671
23183
query I rowsort
SELECT + + 27 * + 1 AS col2 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT + col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ( + col2 + + col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + col0 * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT DISTINCT + 64 * 71 + + cor1.col1 DIV 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4546
skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + 64 * 71 + + cor1.col1 / 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4546
query I rowsort
SELECT col2 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + 54 FROM tab1 AS cor0
----
54
query I rowsort
SELECT 97 + cor0.col0 * - col0 * + col2 FROM tab0 AS cor0
----
-1128
-18911
-649425
query I rowsort
SELECT - 76 * + cor0.col2 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT + 37 AS col1 FROM tab2 cor0
----
37
37
37
query I rowsort
SELECT ( + col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col1 - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + col2 + col1 * cor0.col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + + ( - 78 ) * col0 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT 52 AS col0 FROM tab1
----
52
52
52
query I rowsort
SELECT - - ( col1 ) * - col1 * - 17 AS col2 FROM tab0 AS cor0
----
125732
140777
159953
query I rowsort
SELECT + - cor0.col0 + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - 40 FROM tab2 AS cor0
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT - cor0.col0 DIV 56 AS col2 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3777
SELECT - cor0.col0 / 56 AS col2 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + 56 + + col2 AS col1 FROM tab1 AS cor0
----
110
113
152
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL cor0.col1 * + col2 * - col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 27 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27
query I rowsort
SELECT + cor0.col0 + + 55 + + col2 FROM tab2 cor0
----
159
172
89
query I rowsort
SELECT ALL - col2 + col0 + + col0 * col0 FROM tab0 AS cor0
----
1259
567
7928
query I rowsort
SELECT + ( col0 ) * + tab0.col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 22 * col1 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT col1 * + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 73 col1 FROM tab2 cor0
----
104
132
90
skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( + col2 AS REAL ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 26 AS col2 FROM tab0 cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 57 * col0 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT - col0 + + 92 FROM tab0 AS cor0
----
3
57
68
query I rowsort
SELECT ALL - 7 * 51 AS col0 FROM tab2 AS cor0
----
-357
-357
-357
query I rowsort
SELECT ALL col2 * - 54 AS col2 FROM tab1
----
-2916
-3078
-5184
query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab2
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3796
SELECT + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3796
SELECT + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + 18 AS col1 FROM tab0
----
-15
-64
17
query I rowsort
SELECT DISTINCT col1 * - 34 AS col0 FROM tab0
----
-2924
-3094
-3298
query I rowsort
SELECT 47 FROM tab0, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3800
SELECT + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3800
SELECT + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 * - col0 * ( col1 ) FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT - - col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 72 * cor0.col2 AS col0 FROM tab1 AS cor0
----
3888
4104
6912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3804
SELECT CAST( + 53 AS SIGNED ) * col1 FROM tab0 cor0
----
4558
4823
5141
skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( + 53 AS INTEGER ) * col1 FROM tab0 cor0
----
4558
4823
5141
query I rowsort
SELECT DISTINCT - 13 FROM tab1 cor0
----
-13
query I rowsort
SELECT - 28 FROM tab0 cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col1 col1 FROM tab1 cor0
----
-1144
-440
-572
onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT col1 + + col1 DIV 56 + + col1 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-3808
SELECT col1 + + col1 / 56 + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + tab1.col0 + col1 + col1 AS col0 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + 61 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 + - col2 * - col2 FROM tab2
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT ALL + ( 81 ) * - col1 * - CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + ( 81 ) * - col1 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT - + ( + 29 ) FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT 1 - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + 73 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3819
SELECT + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - 85 - + tab0.col1 AS col0 FROM tab0
----
-171
-176
-182
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT DISTINCT - 59 * + col0 * 46 FROM tab0
----
-241546
-65136
-94990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
40
query I rowsort
SELECT + + col2 + 11 AS col0 FROM tab2 cor0
----
37
38
49
query I rowsort
SELECT col2 * ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * + col1 * + col0 AS col2 FROM tab0
----
-177471
-329314
-736927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + - col1 col0 FROM tab2
----
-17
141
97
query I rowsort
SELECT ALL + col2 - + 7 AS col1 FROM tab2 AS cor0
----
19
20
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT ALL + col0 DIV col1 col0 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + col0 / col1 col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - col0 - + 92 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
4965
5180
8752
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT ALL - col2 * + col1 + 80 * col0 + col0 DIV + 73 AS col1 FROM tab0 AS cor0
----
-341
-918
2703
skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - col2 * + col1 + 80 * col0 + col0 / + 73 AS col1 FROM tab0 AS cor0
----
-341
-918
2703
onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT DISTINCT - col0 DIV 36 + col2 col0 FROM tab0 AS cor0
----
1
33
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - col0 / 36 + col2 col0 FROM tab0 AS cor0
----
1
33
80
query I rowsort
SELECT + cor0.col1 + - ( col0 ) * col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - - col1 * + ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + col0 * ( col1 ) + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - - col0 * col0 + cor0.col2 + col2 FROM tab1 AS cor0
----
117
4210
6592
query I rowsort
SELECT ALL cor0.col2 + - ( + cor0.col0 ) - col2 * + col1 FROM tab1 AS cor0
----
-1232
-1353
-577
skipif mysql # not compatible
query I rowsort
SELECT - - col1 + + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 47 * - col2 col2 FROM tab0 AS cor0
----
-144
-1637
-3945
query I rowsort
SELECT ALL - col2 * - 32 - col2 * col0 * 11 FROM tab1 AS cor0
----
-38304
-54
-81408
query I rowsort
SELECT - cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 col2 FROM tab2 cor0
----
308
3432
3476
query I rowsort
SELECT 67 * + cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8f88efb904c37fdad5311df871ee423e
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT 12 * col0 AS col0 FROM tab1
----
36
768
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 + - col2 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 29 + - col0 FROM tab1 AS cor0
----
-35
-51
26
query I rowsort
SELECT cor0.col2 * - col2 * 84 AS col2 FROM tab0 AS cor0
----
-564816
-84
-91476
query I rowsort
SELECT ALL - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + cor0.col2 + + 6 * + 44 FROM tab1 AS cor0
----
168
207
210
query I rowsort
SELECT - col1 + - 13 FROM tab0 AS cor0
----
-104
-110
-99
query I rowsort
SELECT + col2 * cor0.col0 + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT + - cor0.col1 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT col2 + ( col0 ) AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col0 + col0 * - col0 * col2 AS col1 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT + 38 + col2 AS col1 FROM tab2
----
64
65
76
query I rowsort
SELECT ALL 97 + col2 FROM tab0
----
130
179
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3861
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + - CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3862
SELECT + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3862
SELECT + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT cor0.col2 + col1 * + cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT col0 * - 51 AS col0 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT ALL 95 * - col1 AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT ALL - 80 * + cor0.col1 FROM tab1 cor0
----
-1040
-2080
-800
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 17 * col2 FROM tab2 AS cor0
----
442
459
646
onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT + 6 DIV + col0 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3869
SELECT + 6 / + col0 AS col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT DISTINCT + cor1.col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT + cor1.col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT DISTINCT + ( - ( cor0.col0 ) ) * - col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + + col1 * ( col1 * + cor0.col0 ) FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - 27 * + col1 + cor0.col0 * ( col1 ) FROM tab2 AS cor0
----
-620
3009
884
query I rowsort
SELECT - + cor0.col0 * - ( col0 + + col2 ) * - col1 FROM tab0 AS cor0
----
-117648
-122220
-1384929
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 81 col2 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT ALL 53 + 53 + + col0 AS col1 FROM tab0
----
130
141
195
query I rowsort
SELECT - 61 + col2 + col2 AS col0 FROM tab1
----
131
47
53
query I rowsort
SELECT DISTINCT - 37 * - 63 + - col0 + + col0 FROM tab2
----
2331
onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT + CAST( - 36 AS SIGNED ) DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3881
SELECT + CAST ( - 36 AS INTEGER ) / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT 3 * - col0 AS col0 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT ALL + 76 AS col0 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL 50 AS col1 FROM tab1
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab0, tab2 AS cor0
----
54
query I rowsort
SELECT ALL 38 AS col1 FROM tab2
----
38
38
38
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT - 29 * + col1 * + CAST( + 45 AS SIGNED ) col0 FROM tab2
----
-22185
-40455
-76995
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3889
SELECT - 29 * + col1 * + CAST ( + 45 AS INTEGER ) col0 FROM tab2
----
-22185
-40455
-76995
query I rowsort
SELECT + ( col1 ) - - cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT 20 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT col0 + CAST( NULL AS SIGNED ) + + col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3893
SELECT col0 + CAST ( NULL AS INTEGER ) + + col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col0 + ( - 10 ) AS col0 FROM tab0 AS cor0
----
14
25
79
query I rowsort
SELECT ALL + + col2 + + col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + cor0.col1 col0 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT ALL + - col2 DIV + 67 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83
skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + - col2 / + 67 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83
query I rowsort
SELECT ALL + - col1 + ( ( col2 ) ) + - 97 AS col0 FROM tab0 AS cor0
----
-106
-150
-193
query I rowsort
SELECT - - 77 AS col1 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT 82 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-1356
-2515
-4812
query I rowsort
SELECT + 59 * col2 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL 67 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + + 7 * - col2 AS col2 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT DISTINCT + ( - 26 ) AS col0 FROM tab0 AS cor0
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + 97 * 40 - col1 FROM tab0 AS cor0
----
-3966
-3971
-3977
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3908
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - col0 + + ( col0 ) * + col1 * col2 FROM tab2 cor0
----
119730
51113
5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT + CAST( col1 AS SIGNED ) + + col1 DIV col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3910
SELECT + CAST ( col1 AS INTEGER ) + + col1 / col2 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT ALL + col0 + col0 * - col0 * - col1 FROM tab1
----
237
41024
83280
query I rowsort
SELECT ALL - 92 FROM tab2, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT col0 + ( col0 ) + col2 FROM tab0
----
260
71
81
query I rowsort
SELECT col2 + 60 FROM tab2
----
86
87
98
query I rowsort
SELECT - tab2.col2 + 93 AS col1 FROM tab2
----
55
66
67
query I rowsort
SELECT 46 * - col0 + col2 FROM tab1
----
-2887
-3584
-84
query I rowsort
SELECT + 42 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + col1 * 19 FROM tab0 AS cor0
----
10010
11252
9030
query I rowsort
SELECT ALL + + cor0.col1 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT + - 29 * 63 FROM tab0 cor0
----
-1827
-1827
-1827
query I rowsort
SELECT ALL col2 + cor0.col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 79 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT DISTINCT - col1 * + col2 * + cor0.col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT + - 88 + col0 * col0 FROM tab1 AS cor0
----
-79
4008
6312
query I rowsort
SELECT ALL cor1.col1 * 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aa672f99571022f49f1c373e5901fa03
query I rowsort
SELECT ALL + 81 * + tab1.col2 - - 75 FROM tab1
----
4449
4692
7851
query I rowsort
SELECT - - ( - col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + - 6 FROM tab2, tab1 AS cor0
----
-6
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
query I rowsort
SELECT ALL + - col1 * - 40 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT ALL + tab2.col1 + + ( + col0 ) FROM tab2
----
137
38
96
query I rowsort
SELECT col1 * 85 + 49 FROM tab2 AS cor0
----
1494
2684
5064
query I rowsort
SELECT DISTINCT col1 * + 5 FROM tab2 cor0
----
155
295
85
query I rowsort
SELECT + col1 + ( ( + col0 ) ) FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 + 19 FROM tab0 AS cor0
----
105
110
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT col0 DIV 59 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3940
SELECT col0 / 59 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT cor0.col0 * + 77 AS col1 FROM tab1 cor0
----
231
4928
6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT DISTINCT + + col1 DIV 88 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + + col1 / 88 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - col1 * - col0 * + cor0.col2 - + col1 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + col2 + 92 AS col2 FROM tab2
----
118
119
130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT ALL col1 + + CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
-2
-7
4
skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL col1 + + CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
-2
-7
4
query I rowsort
SELECT ALL + col1 + ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - cor0.col2 * 24 - col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT ALL + - col1 * - 25 * - col2 + col1 * + 57 + ( cor0.col2 ) * 59 AS col1 FROM tab2 AS cor0
----
-12939
-17565
-33453
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT ALL + - col0 * - CAST( 19 AS SIGNED ) FROM tab0 AS cor0
----
1691
456
665
skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + - col0 * - CAST ( 19 AS INTEGER ) FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - + cor0.col2 - 86 AS col2 FROM tab1 cor0
----
-140
-143
-182
onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT ALL - - cor0.col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - - cor0.col0 / col1 col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - col2 + 71 * cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
3452
431938
443073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + + 38 * ( cor0.col2 ) + - col1 FROM tab2 AS cor0
----
1427
929
995
query I rowsort
SELECT ALL + 48 FROM tab2, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + 16 + + col0 FROM tab1 AS cor0
----
19
80
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col1 FROM tab1 cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 25 * - col2 col1 FROM tab2 AS cor0
----
-591
-644
-933
query I rowsort
SELECT - 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * - col0 * 41 AS col1 FROM tab2 AS cor0
----
123003
7742
83070
query I rowsort
SELECT ALL - col2 * 34 AS col1 FROM tab2 AS cor0
----
-1292
-884
-918
query I rowsort
SELECT DISTINCT + 9 FROM tab2, tab1 AS cor0
----
9
query I rowsort
SELECT - col1 + - 10 AS col1 FROM tab2 cor0
----
-27
-41
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT DISTINCT 1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT 1 / col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3968
SELECT + col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + + col1 + + col0 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col1 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + ( + 87 ) + col0 * + ( - col1 ) AS col0 FROM tab2
----
-1256
-130
-4515
query I rowsort
SELECT DISTINCT + + 15 * - col2 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + + 21 + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2895
-3228
-9195
query I rowsort
SELECT ALL - ( - tab1.col1 ) * + col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + ( tab0.col0 ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - tab0.col2 * tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to cbc7ea781e219f4177126feeb59feb2d
query I rowsort
SELECT ALL - tab1.col1 * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE col1 / tab1.col1 + col0 / col1 IN ( col0 )
----
query I rowsort
SELECT ALL + tab1.col0 + + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col2 FROM tab2
----
-1444
-676
-729
query III rowsort
SELECT * FROM tab1 WHERE col1 + col2 + col0 IN ( col0 + + col0 )
----
query I rowsort
SELECT DISTINCT tab1.col1 * + col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 + + col0 ) AND - col2 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT DISTINCT + col0 DIV + col1 - col2 AS col2 FROM tab2
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + col0 / + col1 - col2 AS col2 FROM tab2
----
-25
-27
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT DISTINCT + col2 DIV - col1 - - tab1.col1 AS col2 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + col2 / - col1 - - tab1.col1 AS col2 FROM tab1
----
24
5
6
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT + tab1.col1 - - col0 AS col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + col0 + col1 * + col2 * col0 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT + tab0.col1 - col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT cor0.col2 * tab2.col2 + 79 - + 21 AS col2 FROM tab2, tab0, tab0 AS cor0
----
9 values hashing to ae6416ce61e03b66ebbebcad53c5cae0
query I rowsort
SELECT 23 * - col1 AS col0 FROM tab2
----
-1357
-391
-713
query I rowsort
SELECT + 43 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT DISTINCT + col2 * tab0.col2 * - col0 AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT 45 + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 838e3616eba570b6f893c5d3721f4665
query I rowsort
SELECT - + 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) = NULL
----
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col1 + col0 AS col1 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IN ( col0 * tab2.col1 + col2 )
----
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT col1 NOT IN ( col0 + tab2.col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > col0
----
35
97
1
89
91
82
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - col0 / col0
----
query I rowsort
SELECT col1 * col0 + col1 + tab1.col2 AS col2 FROM tab1
----
1149
158
707
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 + - col0
----
query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab2
----
52
54
76
query I rowsort
SELECT - 56 * - ( + col2 ) + + 47 AS col1 FROM tab1 AS cor0
----
3071
3239
5423
onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT ALL cor1.col2 DIV + ( - cor1.col2 ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL cor1.col2 / + ( - cor1.col2 ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT 98 * col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT DISTINCT + 10 + col1 FROM tab1 AS cor0
----
20
23
36
query I rowsort
SELECT - col2 + + 29 FROM tab0 AS cor0
----
-4
-53
28
query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 18 AS col1 FROM tab1 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + - col0 * col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - - cor0.col0 * + col0 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1395
3526
5152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT - + ( col0 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4018
SELECT - + ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + - col1 * - cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - 30 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT ALL 60 + - cor0.col2 + ( + cor0.col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1004
643
84
query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL col1 * col1 * 14 + - col1 + - col2 AS col2 FROM tab0 cor0
----
103425
115761
131628
query I rowsort
SELECT ALL col2 * - 87 AS col2 FROM tab0
----
-2871
-7134
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 59 * - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 59 * - col1 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT col0 DIV + 36 AS col2 FROM tab1 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4028
SELECT col0 / + 36 AS col2 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT - col1 * + col0 + cor0.col1 + col0 * + 39 * 55 FROM tab0 AS cor0
----
182897
49502
71777
query I rowsort
SELECT col2 * - 16 + + col2 + col1 * col2 FROM tab1 AS cor0
----
-192
-285
594
query I rowsort
SELECT + + col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col1 + + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT - col1 + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT ALL - - 17 + - tab2.col1 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to cbc2d59ecafd04b0855325793cbed5a6
query I rowsort
SELECT - col2 * + 51 + - col2 + + col2 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT + 3 * + 43 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 268daa691a375af771383ce93fc45c6a
query I rowsort
SELECT cor0.col2 + + 19 * 41 FROM tab1 AS cor0
----
833
836
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4039
SELECT - cor0.col0 + col1 + CAST( - ( - col1 ) AS SIGNED ) * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
227
3462
985
skipif mysql # not compatible
query I rowsort label-4039
SELECT - cor0.col0 + col1 + CAST ( - ( - col1 ) AS INTEGER ) * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
227
3462
985
query I rowsort
SELECT ALL + 74 + cor0.col0 AS col1 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT + col1 + - col2 * - col2 + - 41 AS col2 FROM tab0 AS cor0
----
1134
57
6774
query I rowsort
SELECT + 90 * col2 AS col1 FROM tab1 AS cor0
----
4860
5130
8640
onlyif mysql # use DIV operator for integer division
query I rowsort label-4043
SELECT col0 - col1 DIV + col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-4043
SELECT col0 - col1 / + col0 FROM tab0 AS cor0
----
21
33
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + 15 + col2 * cor0.col2 col0 FROM tab2 AS cor0
----
1367
1473
2903
query I rowsort
SELECT ALL - 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col1 + + col2 ) FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT + col0 DIV 76 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4048
SELECT + col0 / 76 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL col0 * + col2 + 48 AS col2 FROM tab0 cor0
----
7346
83
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + col0 + - col0 * + col0 col1 FROM tab2 AS cor0
----
-1404
-4819
175
query I rowsort
SELECT ALL + - ( col2 ) + + col1 * col0 * col2 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT ALL + 83 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT col1 + col2 * + 58 FROM tab2 AS cor0
----
1567
1597
2221
onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT cor0.col2 + 91 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-4054
SELECT cor0.col2 + 91 / col2 AS col2 FROM tab1 AS cor0
----
55
58
96
query I rowsort
SELECT DISTINCT cor1.col1 + + 17 FROM tab2, tab1 cor0, tab2 AS cor1
----
34
48
76
query I rowsort
SELECT - 76 + - col2 AS col1 FROM tab0
----
-109
-158
-77
query I rowsort
SELECT DISTINCT + col1 + col0 - - tab0.col2 FROM tab0
----
133
143
262
query I rowsort
SELECT + col1 - + col0 * + col2 AS col2 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 97 + col0 * + col1 FROM tab1 cor0
----
1137
175
737
query I rowsort
SELECT ALL 31 * col2 FROM tab1
----
1674
1767
2976
query I rowsort
SELECT - ( - col1 ) * + col1 - col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT 69 * col2 + col2 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
1026
1976
260
query I rowsort
SELECT ALL col2 * + col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL - - col1 * - col1 - - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT DISTINCT + col1 + col1 DIV + col2 + + tab1.col1 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + col1 + col1 / + col2 + + tab1.col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + cor0.col1 - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1 AS cor0
----
67
query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ( cor0.col0 ) * cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT DISTINCT tab1.col2 * - 94 * tab1.col0 FROM tab1
----
-15228
-342912
-721920
query I rowsort
SELECT col1 * ( + col2 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - tab1.col0 * - 69 AS col0 FROM tab1
----
207
4416
5520
query I rowsort
SELECT col1 + col2 + col0 AS col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT + + col1 * col2 * - col2 + + col1 + 14 FROM tab1 AS cor0
----
-119781
-32466
-75776
query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT cor2.col0 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT - + col1 + - 61 + + col1 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT - + col0 + - col1 * 86 * col1 FROM tab2 AS cor0
----
-24933
-299444
-82653
query I rowsort
SELECT DISTINCT - 19 * cor0.col2 FROM tab1, tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 12 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
12
23
77
query I rowsort
SELECT DISTINCT col0 * + col1 * - col2 + 44 * ( cor0.col0 + + ( 41 ) ) FROM tab2 AS cor0
----
-114416
-3747
-45754
query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - cor0.col0 + + 71 AS col0 FROM tab0 AS cor0
----
-18
36
47
query I rowsort
SELECT + ( 43 ) FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT - 42 FROM tab1 cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 43 * col2 + + col0 AS col2 FROM tab2 cor0
----
1168
1196
1713
query I rowsort
SELECT ALL cor0.col0 * + col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col0 * - ( - col1 ) - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + - 26 * col0 + col0 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - 14 + 98 AS col2 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT + col2 * + col0 - - cor0.col2 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT ALL + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + col0 / - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL 75 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT ALL + tab2.col0 * - col1 * - col1 + - col0 DIV tab2.col0 + col0 AS col1 FROM tab2
----
22909
271595
6733
skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + tab2.col0 * - col1 * - col1 + - col0 / tab2.col0 + col0 AS col1 FROM tab2
----
22909
271595
6733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4102
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
NULL
query I rowsort
SELECT + col1 - + tab1.col2 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4104
SELECT DISTINCT tab0.col1 * + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT tab0.col1 * + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT ALL col2 * CAST( - col2 AS SIGNED ) + + tab1.col2 * col1 FROM tab1
----
-1512
-2679
-7968
skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) + + tab1.col2 * col1 FROM tab1
----
-1512
-2679
-7968
query I rowsort
SELECT + col0 * - 87 + - 78 FROM tab2
----
-6864
-687
-6951
query I rowsort
SELECT DISTINCT + cor1.col1 * + cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
289
3481
961
query I rowsort
SELECT + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 55 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT + col1 * + 11 FROM tab2
----
187
341
649
query I rowsort
SELECT - col1 + - 57 FROM tab0
----
-143
-148
-154
query I rowsort
SELECT DISTINCT - - col1 + col2 * + 36 * col0 FROM tab0 AS cor0
----
1357
262819
28598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT DISTINCT + + col0 + CAST( - col1 AS SIGNED ) * - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + + col0 + CAST ( - col1 AS INTEGER ) * - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - tab1.col1 + col2 * - tab1.col2 AS col2 FROM tab1
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT ALL + 19 * ( col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + 19 * ( col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + 72 FROM tab2
----
110
98
99
query I rowsort
SELECT ALL + 3 + - col1 * col2 AS col2 FROM tab2
----
-1531
-643
-834
query I rowsort
SELECT col1 * + 29 AS col2 FROM tab2
----
1711
493
899
query I rowsort
SELECT + 40 * col1 AS col0 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT DISTINCT - - ( col2 ) * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 25 * col0 FROM tab1
----
-1600
-2000
-75
query I rowsort
SELECT ALL - ( 59 ) AS col0 FROM tab2
----
-59
-59
-59
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 * + 54 AS col2 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT + + 64 FROM tab1 AS cor0
----
64
query I rowsort
SELECT ALL + + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - + col2 + - cor0.col1 + 97 AS col2 FROM tab2 AS cor0
----
12
39
42
query I rowsort
SELECT DISTINCT col0 + col2 * 79 FROM tab0 AS cor0
----
114
2631
6567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + - ( col2 ) col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT DISTINCT col2 * col1 + + col0 DIV + col0 AS col2 FROM tab1
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT col2 * col1 + + col0 / + col0 AS col2 FROM tab1
----
1249
1405
571
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - col0 * - col1 * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL 80 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4134
SELECT col2 / col0 + - 64 * col2 + - cor0.col0 * - CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4134
SELECT col2 / col0 + - 64 * col2 + - cor0.col0 * - CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 33 * + col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT + cor0.col0 * 23 AS col0 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT + - col2 * 22 FROM tab1 cor0
----
-1188
-1254
-2112
query I rowsort
SELECT ALL + - col2 + - col2 - + col2 FROM tab0 cor0
----
-246
-3
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT DISTINCT col2 DIV - ( cor0.col0 ) col2 FROM tab2 cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT col2 / - ( cor0.col0 ) col2 FROM tab2 cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 * 99 + col1 col2 FROM tab0 AS cor0
----
-1190
-1196
-1201
query I rowsort
SELECT - 92 - col1 FROM tab0 AS cor0
----
-178
-183
-189
query I rowsort
SELECT - + col0 + cor0.col1 - + col2 * - 73 FROM tab0 AS cor0
----
135
2471
5988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4143
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 35 - col1 FROM tab1 cor0
----
22
25
9
query I rowsort
SELECT + col0 + 56 AS col2 FROM tab1
----
120
136
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT + - col1 * col0 DIV col2 FROM tab1 cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-4146
SELECT + - col1 * col0 / col2 FROM tab1 cor0
----
-1
-10
-11
query I rowsort
SELECT col0 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col2 * 52 - - col1 AS col0 FROM tab1 AS cor0
----
-2782
-2954
-4979
query I rowsort
SELECT + col2 * - cor0.col0 + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-3748
-7849
-838
query I rowsort
SELECT - 13 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-3
0
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4151
SELECT 99 + - col0 * CAST( 66 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1485
-2211
-5775
skipif mysql # not compatible
query I rowsort label-4151
SELECT 99 + - col0 * CAST ( 66 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1485
-2211
-5775
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT tab2.col0 + ( col1 ) AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT DISTINCT + 75 DIV + cor0.col1 col2 FROM tab2, tab1 cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 75 / + cor0.col1 col2 FROM tab2, tab1 cor0
----
2
5
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT DISTINCT + + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab0 cor0
----
38
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - 43 FROM tab2 cor0
----
-43
-43
-43
query I rowsort
SELECT - - 77 * - cor0.col1 - col2 * col0 AS col0 FROM tab0 AS cor0
----
-14305
-7414
-7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT ALL + col1 + col2 DIV cor0.col0 col2 FROM tab2 AS cor0
----
17
34
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + col1 + col2 / cor0.col0 col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT - 47 * + 55 + + col0 FROM tab2 AS cor0
----
-2506
-2507
-2578
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4163
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 12 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 12 * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 + col1 * col1 - col2 FROM tab0 AS cor0
----
7277
8108
9311
query I rowsort
SELECT + col2 * col1 - - col1 * col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL - ( col0 ) + col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * + col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col1 * 69 + - col1 + col1 * - col1 FROM tab1 AS cor0
----
1092
580
715
query I rowsort
SELECT 50 * - ( + cor0.col0 * 16 ) - + col0 * + col0 FROM tab0 AS cor0
----
-19776
-29225
-79121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col2 + col0 * ( cor0.col2 ) col0 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col1 + - ( tab2.col1 ) AS col1 FROM tab2
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 AS col2 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT - 89 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
-30
-58
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT ALL - + CAST( 39 AS SIGNED ) FROM tab0 AS cor0
----
-39
-39
-39
skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - + CAST ( 39 AS INTEGER ) FROM tab0 AS cor0
----
-39
-39
-39
query I rowsort
SELECT - 73 + col1 AS col0 FROM tab1 cor0
----
-47
-60
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT 13 DIV col0 + - ( 44 ) * col1 col2 FROM tab2 AS cor0
----
-1363
-2596
-748
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4178
SELECT 13 / col0 + - ( 44 ) * col1 col2 FROM tab2 AS cor0
----
-1363
-2596
-748
query I rowsort
SELECT - - 3 FROM tab0 AS cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col1 FROM tab2 AS cor0
----
-7
query I rowsort
SELECT - + col2 + - col2 * - 39 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT col0 + col1 * 52 + col0 AS col0 FROM tab2 cor0
----
1042
1626
3224
query I rowsort
SELECT - 42 * col0 FROM tab0
----
-1008
-1470
-3738
query I rowsort
SELECT - col1 * + col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL 95 AS col1 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28
query I rowsort
SELECT ALL + - col1 + - col2 * - ( + col2 ) AS col2 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT + col0 * - 30 AS col1 FROM tab2 cor0
----
-210
-2340
-2370
query I rowsort
SELECT ALL 93 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT - - col1 * 13 * + 40 FROM tab0 AS cor0
----
44720
47320
50440
query I rowsort
SELECT + col2 * - 38 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 * + 90 AS col0 FROM tab0 AS cor0
----
2970
7380
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT + + cor0.col2 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4195
SELECT + + cor0.col2 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 23 + + col1 FROM tab1
----
-10
-13
3
query I rowsort
SELECT - ( + col1 ) + + 79 FROM tab2
----
20
48
62
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0, tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT ALL + ( col2 ) + + 63 + - col1 DIV col0 FROM tab0
----
144
62
93
skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + ( col2 ) + + 63 + - col1 / col0 FROM tab0
----
144
62
93
query I rowsort
SELECT col2 * + col1 * 77 FROM tab1 AS cor0
----
108108
43890
96096
query I rowsort
SELECT DISTINCT + col0 + 84 * - col0 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT ALL - cor0.col0 * - 0 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - tab0.col1 + + col0 * - col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - ( + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL cor0.col2 * - col2 + col2 * - col0 AS col1 FROM tab1 cor0
----
-16896
-3078
-6897
query I rowsort
SELECT DISTINCT - ( + 84 ) * col0 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT - ( - col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * col1 + col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 51 * + col0 AS col0 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT ALL - + col0 * + col0 + 43 FROM tab0 AS cor0
----
-1182
-533
-7878
query I rowsort
SELECT ALL - col1 * col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2609
2838
8176
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 col1 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT - col2 + col0 * 31 AS col0 FROM tab2 AS cor0
----
190
2392
2411
onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT col0 * col2 + col2 DIV 63 FROM tab0 AS cor0
----
35
7299
792
skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT col0 * col2 + col2 / 63 FROM tab0 AS cor0
----
35
7299
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4219
SELECT DISTINCT - + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
query I rowsort
SELECT ALL + + col2 * 0 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col2 * 10 + - col0 AS col0 FROM tab2 AS cor0
----
182
263
301
query I rowsort
SELECT + 7 + + col2 * + col1 + - col1 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
23484
273059
7571
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4223
SELECT CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4223
SELECT CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4224
SELECT + CAST( NULL AS SIGNED ) + - col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4224
SELECT + CAST ( NULL AS INTEGER ) + - col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4225
SELECT - - 35 + - 48 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4225
SELECT - - 35 + - 48 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * 11 AS col2 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT + + ( - col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 16 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT cor0.col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - + col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col1 + + 44 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT col0 + col0 + - col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 49 + - col1 FROM tab1
----
-59
-62
-75
query I rowsort
SELECT - + col1 * 1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 83 + 98 * + col0 AS col1 FROM tab1 AS cor0
----
211
6189
7757
query I rowsort
SELECT ALL + col0 + - tab2.col1 + + col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + tab2.col0 + - tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT col1 * col2 * col0 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL - col1 * ( col0 ) * cor0.col1 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + - col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT ALL + col1 + cor0.col2 DIV col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + col1 + cor0.col2 / col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT DISTINCT - col0 * 4 AS col0 FROM tab1 AS cor0
----
-12
-256
-320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT - col1 + cor0.col0 DIV - col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-111
-133
-181
skipif mysql # not compatible
query I rowsort label-4245
SELECT - col1 + cor0.col0 / - col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-111
-133
-181
query I rowsort
SELECT + col1 * + col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT DISTINCT + + col1 DIV - col1 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
96
skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT + + col1 / - col1 + col1 / col2 AS col1 FROM tab0 AS cor0
----
0
1
96
query I rowsort
SELECT ALL - - 45 * - col1 + - col1 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT col2 * + 51 FROM tab0
----
1683
4182
51
query I rowsort
SELECT DISTINCT col0 + ( col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT - col0 + + col0 * + tab0.col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT col1 + + col1 * col2 * - col2 - col0 * col1 AS col2 FROM tab2
----
-22785
-25874
-44427
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT ALL CAST( NULL AS DECIMAL ) / - col1 + + col2 + ( 51 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL CAST ( NULL AS REAL ) / - col1 + + col2 + ( 51 ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT ( col2 + col1 ) * + CAST( col1 AS SIGNED ) col1 FROM tab2
----
1798
5015
935
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4254
SELECT ( col2 + col1 ) * + CAST ( col1 AS INTEGER ) col1 FROM tab2
----
1798
5015
935
query I rowsort
SELECT - 36 AS col1 FROM tab1
----
-36
-36
-36
query I rowsort
SELECT + col0 + - 0 - + col1 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + 43 * 4 AS col1 FROM tab0 AS cor0
----
172
172
172
query I rowsort
SELECT - 65 AS col2 FROM tab0
----
-65
-65
-65
query I rowsort
SELECT + tab1.col0 * - cor0.col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to dc69da44d5a43e91816c3670493ea5ac
query I rowsort
SELECT DISTINCT + 63 * col0 AS col0 FROM tab1
----
189
4032
5040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL + 45 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT - - cor0.col2 - + cor0.col0 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT - col1 - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + + col0 - + 78 AS col1 FROM tab2 AS cor0
----
-71
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 16 col1 FROM tab0 AS cor0
----
19
73
8
query I rowsort
SELECT DISTINCT - col0 * - 6 AS col0 FROM tab2 cor0
----
42
468
474
query I rowsort
SELECT col2 + - 60 AS col1 FROM tab0 AS cor0
----
-27
-59
22
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 + + CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col2 * - col1 + - 12 + col2 AS col0 FROM tab0 AS cor0
----
-108
-2817
-7392
onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT DISTINCT - + col2 - 70 DIV col2 AS col1 FROM tab0 AS cor0
----
-35
-71
-82
skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - + col2 - 70 / col2 AS col1 FROM tab0 AS cor0
----
-35
-71
-82
query I rowsort
SELECT ALL ( tab0.col0 ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - cor0.col1 + col1 * col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab1
----
3
query I rowsort
SELECT ALL + + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - ( cor0.col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - + 77 * col1 * cor0.col1 FROM tab2 cor0
----
-22253
-268037
-73997
onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT DISTINCT col0 DIV - col0 + + col1 - - col2 FROM tab1 AS cor0
----
108
66
79
skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT col0 / - col0 + + col1 - - col2 FROM tab1 AS cor0
----
108
66
79
query I rowsort
SELECT DISTINCT col0 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 41 * - cor0.col0 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col2 * col2 * cor0.col0 + col2 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT DISTINCT - 62 * + col0 - col0 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT + + 95 FROM tab0 AS cor0
----
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT DISTINCT + col0 DIV - col1 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + col0 / - col1 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - 46 + + col2 * + col2 FROM tab0 AS cor0
----
-45
1043
6678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 10 col1 FROM tab1 AS cor0
----
13
74
90
query I rowsort
SELECT + + col2 * 15 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT ALL - col0 + + 73 FROM tab2
----
-5
-6
66
query I rowsort
SELECT - col1 + ( 72 ) FROM tab1 AS cor0
----
46
59
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT col2 DIV - 32 + - 69 FROM tab0 cor0
----
-69
-70
-71
skipif mysql # not compatible
query I rowsort label-4292
SELECT col2 / - 32 + - 69 FROM tab0 cor0
----
-69
-70
-71
query I rowsort
SELECT DISTINCT - col2 * col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT - col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col1 + 24 AS col0 FROM tab1 AS cor0
----
34
37
50
query I rowsort
SELECT + cor0.col2 * col0 - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - 74 * + cor0.col0 FROM tab1, tab0 AS cor0
----
-1776
-2590
-6586
query I rowsort
SELECT + 49 * - cor0.col1 + + col0 FROM tab2 AS cor0
----
-1512
-2813
-754
query I rowsort
SELECT ALL 75 * col1 + cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
10671
15006
8547
query I rowsort
SELECT ALL - col0 - 87 * col1 FROM tab1 AS cor0
----
-1211
-2265
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 36 ) col1 FROM tab0 cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT ALL + + 13 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + + 13 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT DISTINCT + 95 * col2 + - col2 DIV - col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
5128
5352
9041
skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 95 * col2 + - col2 / - col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
5128
5352
9041
query I rowsort
SELECT + - ( - 48 ) AS col1 FROM tab1 cor0
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col0 AS REAL ) + + col0 + col0 * col1 col2 FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT 13 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT - col2 * col1 + - cor0.col0 * col1 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-3491
-671498
-70917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col2 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - col0 * + col1 + - col2 + col1 * - col1 FROM tab0 AS cor0
----
-12805
-16462
-9493
onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT + col0 * col2 * - col1 + - col0 DIV col0 FROM tab0
----
-3396
-664119
-68113
skipif mysql # not compatible
query I rowsort label-4313
SELECT + col0 * col2 * - col1 + - col0 / col0 FROM tab0
----
-3396
-664119
-68113
query I rowsort
SELECT DISTINCT + col1 * col0 * col2 - - col1 AS col2 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT col2 - col2 * - col0 DIV col0 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-4316
SELECT col2 - col2 * - col0 / col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) <> ( NULL )
----
query I rowsort
SELECT tab1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * tab2.col0 + col2 * + col0 FROM tab2
----
-323
2901
5954
query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT - tab1.col2 + + col0 DIV tab1.col1 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-4321
SELECT - tab1.col2 + + col0 / tab1.col1 FROM tab1
----
-51
-54
-90
query I rowsort
SELECT ( + tab0.col2 ) * + col0 - - col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col0 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 + col1 ) AND - col1 NOT BETWEEN ( NULL ) AND ( + col1 * col2 * + col1 ) OR NOT col0 <> NULL
----
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - - cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + tab2.col0 * - col2 * col2 + col1 FROM tab2
----
-114059
-5072
-52669
query I rowsort
SELECT DISTINCT + col1 * col1 + tab2.col1 + + col2 AS col1 FROM tab2
----
1019
344
3566
query I rowsort
SELECT ALL col2 + - col2 + + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT + col2 DIV + col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4330
SELECT + col2 / + col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT + col0 * + col1 * col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT - col0 + + tab2.col1 AS col0 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + + tab1.col1 col2 FROM tab1
----
20
26
52
query I rowsort
SELECT tab0.col1 * - col2 + - col0 + col2 FROM tab0
----
-131
-2829
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col2 - + col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT col2 * + tab0.col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - - col2 * col1 - - col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - - cor0.col2 + - col2 * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT + col0 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 33 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
33
query I rowsort
SELECT ALL ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 83 - - col1 FROM tab1 AS cor0
----
109
93
96
query I rowsort
SELECT ALL + col0 + col1 * ( 10 ) AS col1 FROM tab0 AS cor0
----
1005
884
999
query I rowsort
SELECT + - col2 * - col1 + cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
15561
3492
4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - 62 FROM tab1, tab2 AS cor0
----
-62
query I rowsort
SELECT - - col0 + + ( + 6 ) AS col0 FROM tab1 AS cor0
----
70
86
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT col1 DIV 86 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4353
SELECT col1 / 86 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - 9 + - ( col0 ) FROM tab0 AS cor0
----
-798
-908
-908
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT - tab0.col0 DIV 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-4356
SELECT - tab0.col0 / 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ( - col2 ) * - col1 AS col0 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT + - cor0.col1 * col2 DIV col0 + - col0 FROM tab2 AS cor0
----
-126
-87
-97
skipif mysql # not compatible
query I rowsort label-4358
SELECT + - cor0.col1 * col2 / col0 + - col0 FROM tab2 AS cor0
----
-126
-87
-97
query I rowsort
SELECT - col1 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT + col2 + 67 FROM tab1 AS cor0
----
121
124
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT ( + cor0.col2 ) DIV - 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4361
SELECT ( + cor0.col2 ) / - 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col1 FROM tab0 AS cor0
----
8
query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab1 AS cor0
----
-13
query I rowsort
SELECT - + col2 * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + - ( col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT 28 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT + + 28 * cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
2229
2243
227
query I rowsort
SELECT + ( + col0 ) * col1 AS col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT + col0 DIV + 96 + + col2 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4370
SELECT + col0 / + 96 + + col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT cor0.col0 + - col2 - col1 FROM tab1 AS cor0
----
-29
-3
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + tab1.col1 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT - col0 * 32 AS col1 FROM tab2
----
-224
-2496
-2528
query I rowsort
SELECT DISTINCT col1 + + col0 + tab0.col1 * col0 AS col0 FROM tab0
----
2174
3527
8279
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4376
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT col2 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-4377
SELECT col2 + col2 / col0 AS col1 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT - col1 * - col2 + + CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-4378
SELECT - col1 * - col2 + + CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT 3 * col0 * col0 AS col0 FROM tab1 cor0
----
12288
19200
27
query I rowsort
SELECT + 30 * - cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 80296c67957e3c21bd41368f745cb567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col0 FROM tab0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT DISTINCT + - 14 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + - 14 / col2 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4383
SELECT - col2 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - - cor0.col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 72 * col2 FROM tab1
----
3888
4104
6912
query I rowsort
SELECT DISTINCT + 32 * col2 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT + col0 DIV col0 + + col1 * - col2 * - tab1.col1 AS col1 FROM tab1
----
16225
36505
5701
skipif mysql # not compatible
query I rowsort label-4389
SELECT + col0 / col0 + + col1 * - col2 * - tab1.col1 AS col1 FROM tab1
----
16225
36505
5701
query I rowsort
SELECT DISTINCT 43 + - col0 - col2 FROM tab1
----
-133
-14
-78
query I rowsort
SELECT + cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( 55 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + 74 + col1 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT - ( - cor0.col2 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT - + 77 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-25
0
skipif mysql # not compatible
query I rowsort label-4396
SELECT - + 77 / cor0.col0 FROM tab1 AS cor0
----
-1
-25
0
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL 60 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + - 86 FROM tab0 cor0
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT - - 6 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4400
SELECT - - 6 / + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( 34 ) FROM tab2 cor0
----
-34
query I rowsort
SELECT - cor0.col1 + ( + col0 ) * + col1 * col1 FROM tab1 AS cor0
----
13507
2002
6390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + 76 col2 FROM tab1 AS cor0
----
36
query I rowsort
SELECT + + 91 + + col2 AS col0 FROM tab2 cor0
----
117
118
129
query I rowsort
SELECT + + col0 * + 46 + - col2 AS col1 FROM tab2 AS cor0
----
295
3562
3596
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 + col2 * - col1 col1 FROM tab2 cor0
----
-1449
-591
-779
onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT ALL + ( - cor0.col1 ) + + col0 DIV col0 AS col1 FROM tab1 cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + ( - cor0.col1 ) + + col0 / col0 AS col1 FROM tab1 cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 89 AS REAL ) FROM tab1, tab2 AS cor0
----
89
query I rowsort
SELECT - col1 + - 73 + col2 FROM tab0
----
-126
-169
-82
query I rowsort
SELECT ALL + 43 * col0 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT - + col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
query I rowsort
SELECT + col0 + - 47 AS col2 FROM tab1
----
-44
17
33
query I rowsort
SELECT ALL 24 AS col1 FROM tab2
----
24
24
24
query I rowsort
SELECT 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL 62 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT col0 * ( + col0 ) - + ( col0 ) * col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL ( - 2 ) AS col2 FROM tab0 cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT cor0.col2 * + 12 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
312
324
456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 * - 47 col0 FROM tab1
----
-171456
-360960
-7614
query I rowsort
SELECT 99 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT + col1 + + tab1.col1 * tab1.col0 - tab1.col0 AS col2 FROM tab1
----
101
586
973
query I rowsort
SELECT DISTINCT - col1 + 65 + 45 FROM tab2 AS cor0
----
51
79
93
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col2 * 50 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT ALL - col0 - col0 * - 42 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT col1 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - 43 * - col1 AS col0 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT DISTINCT 55 * col1 - + col1 FROM tab2
----
1674
3186
918
query I rowsort
SELECT + 59 - + col1 AS col2 FROM tab1
----
33
46
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT + col0 + ( col2 ) DIV col0 AS col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-4432
SELECT + col0 + ( col2 ) / col0 AS col0 FROM tab1
----
21
64
81
query I rowsort
SELECT + col1 * - col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT cor0.col2 + + ( col2 ) - col0 AS col0 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 * + 21 AS col2 FROM tab1 AS cor0
----
-210
-273
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT col2 - ( + col0 ) DIV + col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4437
SELECT col2 - ( + col0 ) / + col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL - + col1 + 96 FROM tab2 AS cor0
----
37
65
79
query I rowsort
SELECT DISTINCT + col2 * + col1 + + 72 FROM tab1 AS cor0
----
1320
1476
642
query I rowsort
SELECT + cor0.col2 - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + cor0.col1 + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + ( col1 ) * - col0 col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + + col2 * - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 + col1 * - col1 * col1 + + 39 FROM tab2 AS cor0
----
-205281
-29721
-4857
query I rowsort
SELECT + col2 + ( 48 ) * col2 + 60 FROM tab1 AS cor0
----
2706
2853
4764
query I rowsort
SELECT ALL + + col1 * ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + + col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * col2 * + col0 col0 FROM tab2
----
1292
158125
237141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 63 col2 FROM tab0
----
149
154
160
query I rowsort
SELECT - tab1.col1 + - 50 FROM tab1
----
-60
-63
-76
query I rowsort
SELECT DISTINCT col0 * - 12 + col2 FROM tab2
----
-57
-910
query I rowsort
SELECT ALL - - col1 - 49 FROM tab0 AS cor0
----
37
42
48
query I rowsort
SELECT DISTINCT + - col0 * + 67 - - col0 FROM tab1 cor0
----
-198
-4224
-5280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT - + col1 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-4455
SELECT - + col1 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT ALL - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( 30 ) AS col1 FROM tab0, tab0 AS cor0
----
30
query I rowsort
SELECT 55 + + col0 + col0 FROM tab1 AS cor0
----
183
215
61
query I rowsort
SELECT ALL ( + col1 ) + - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( col1 ) + col2 - - 2 AS col2 FROM tab0 cor0
----
-51
-7
-94
query I rowsort
SELECT DISTINCT + col1 * 82 + - col2 AS col0 FROM tab2 AS cor0
----
1356
2515
4812
query I rowsort
SELECT DISTINCT - 99 * + 67 - + col0 AS col2 FROM tab1 cor0
----
-6636
-6697
-6713
query I rowsort
SELECT - 94 + + col0 FROM tab0 AS cor0
----
-5
-59
-70
query I rowsort
SELECT DISTINCT + 70 * 46 + + col0 FROM tab0 AS cor0
----
3244
3255
3309
query I rowsort
SELECT DISTINCT + 21 * - col1 + - col0 FROM tab2 AS cor0
----
-1317
-436
-658
query I rowsort
SELECT col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT - col1 + col1 DIV + col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-4468
SELECT - col1 + col1 / + col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - 21 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-12
4075
6379
query I rowsort
SELECT DISTINCT + + 70 * + cor0.col1 + col1 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + col1 + - col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col1 - + col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + + 96 FROM tab1 cor0
----
96
96
96
query I rowsort
SELECT ALL + ( - col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col0 * + col1 * - 93 AS col0 FROM tab0 AS cor0
----
-191952
-315735
-753207
query I rowsort
SELECT - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - + 37 * + col1 FROM tab0 AS cor0
----
-3182
-3367
-3589
query I rowsort
SELECT ALL + col0 * - col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + - 5 + col0 * - col0 FROM tab2 cor0
----
-54
-6089
-6246
query I rowsort
SELECT ALL + + 0 * col0 * + col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT DISTINCT col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT col0 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + col1 + 89 FROM tab0 AS cor0
----
175
180
186
query I rowsort
SELECT DISTINCT 91 FROM tab2
----
91
query I rowsort
SELECT + col0 * + tab0.col2 - 67 FROM tab0
----
-32
7231
725
query I rowsort
SELECT - - col2 * + col2 + + ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-847
2816
2907
onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT + ( + col0 ) + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4489
SELECT + ( + col0 ) + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT DISTINCT + col0 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( col0 ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab0
----
NULL
query I rowsort
SELECT - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT tab2.col0 + col0 AS col1 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT col1 DIV + tab1.col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4496
SELECT col1 / + tab1.col0 AS col2 FROM tab1
----
0
0
8
query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + - 6 - col0 * - col0 AS col2 FROM tab1 AS cor0
----
3
4090
6394
query I rowsort
SELECT - col2 + - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-130
-155
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT + cor0.col0 * + col1 + - col0 DIV ( + col0 * 28 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4500
SELECT + cor0.col0 * + col1 + - col0 / ( + col0 * 28 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL - - col1 + ( col1 ) * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col1 * - col0 + + col0 + - col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT 60 * col2 * + col0 FROM tab0 cor0
----
2100
437880
47520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT - - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4505
SELECT - - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 76 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - ( + 39 ) FROM tab0 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ALL - + 20 - + col0 FROM tab1 AS cor0
----
-100
-23
-84
query I rowsort
SELECT ALL 74 * + col1 FROM tab1 cor0
----
1924
740
962
query I rowsort
SELECT + cor0.col1 * + 75 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 591d58ec249ef092a80b24db3c0a3f82
query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col2 * - col2 * col1 FROM tab2 cor0
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( 62 ) + + col1 col0 FROM tab2 cor0
----
0
43
86
query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + + col1 * 94 * col1 AS col0 FROM tab1 AS cor0
----
15886
63544
9400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( 7 ) * + col0 AS col0 FROM tab0 AS cor0
----
168
245
623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + + 73 - col0 col2 FROM tab2 AS cor0
----
12
13
84
query I rowsort
SELECT - col0 * + ( + ( col0 ) ) * + col2 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT ALL - + col1 DIV - cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - + col1 / - cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT + col2 * 64 AS col0 FROM tab2 cor0
----
1664
1728
2432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + + col2 * col0 col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL - + 14 + col2 FROM tab2 cor0
----
12
13
24
query I rowsort
SELECT ALL - col2 * + col0 - 10 FROM tab0 AS cor0
----
-45
-7308
-802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL - col2 + + col1 * ( ( + col0 ) ) AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT 58 * col1 * col1 AS col0 FROM tab0 AS cor0
----
428968
480298
545722
query I rowsort
SELECT - + col1 + col1 * - cor0.col2 FROM tab2 cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 + + col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col2 * - col1 * col0 - 49 AS col2 FROM tab1
----
-36529
-4261
-99889
query I rowsort
SELECT - ( tab2.col1 ) * col2 + col1 AS col0 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col2 * - 75 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT - col0 + ( col0 * + col1 ) AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + col0 + + ( + 39 + col2 ) * - 34 AS col2 FROM tab1 AS cor0
----
-3159
-3200
-4510
query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT 83 + + col0 * ( 99 ) AS col0 FROM tab2
----
776
7805
7904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * col2 + col2 col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT - 62 * - tab0.col0 + col0 + col0 AS col0 FROM tab0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT + 65 + col1 FROM tab1
----
75
78
91
query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 34 * col0 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT + col2 * + 91 AS col1 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - tab0.col2 * tab0.col2 * + ( - tab0.col2 ) FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + - 31 * 15 + col0 FROM tab1 AS cor0
----
-385
-401
-462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT - CAST( cor0.col0 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4550
SELECT - CAST ( cor0.col0 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 81 * - col2 + + col0 * 83 FROM tab2 AS cor0
----
-1606
3479
4368
query I rowsort
SELECT DISTINCT + + 81 AS col1 FROM tab0 AS cor0
----
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT ALL - + col0 * - ( col1 * col1 ) + - col1 DIV col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
13533
2046
6410
skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - + col0 * - ( col1 * col1 ) + - col1 / col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
13533
2046
6410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4554
SELECT + col1 * + col1 * 82 + - col2 * + CAST( 94 AS SIGNED ) AS col1 FROM tab2
----
20126
282998
76264
skipif mysql # not compatible
query I rowsort label-4554
SELECT + col1 * + col1 * 82 + - col2 * + CAST ( 94 AS INTEGER ) AS col1 FROM tab2
----
20126
282998
76264
query I rowsort
SELECT DISTINCT - ( - 29 ) AS col1 FROM tab1, tab0 AS cor0
----
29
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 - + tab2.col1 * col1 AS col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT col1 + + ( - col0 ) * + col1 + tab2.col1 * - col2 FROM tab2
----
-1023
-1972
-6077
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT - + col0 * 66 DIV + col2 col1 FROM tab1 AS cor0
----
-3
-55
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4559
SELECT - + col0 * 66 / + col2 col1 FROM tab1 AS cor0
----
-3
-55
-74
query I rowsort
SELECT - - col2 + - 92 * col1 FROM tab2 cor0
----
-1526
-2825
-5402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT ALL - + CAST( NULL AS SIGNED ) * - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 71 * col2 AS col2 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT ALL 49 * + col2 FROM tab1
----
2646
2793
4704
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + - ( + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + ( - 97 ) FROM tab2
----
-97
-97
-97
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab2
----
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 21 * + col0 col0 FROM tab2
----
154
1716
1738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT ALL + col0 + - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + col0 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 + col1 col0 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT - + ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + + 77 FROM tab1 AS cor0
----
77
query I rowsort
SELECT ( col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT + ( col2 ) + CAST( - col1 AS SIGNED ) DIV col2 FROM tab0 cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-4574
SELECT + ( col2 ) + CAST ( - col1 AS INTEGER ) / col2 FROM tab0 cor0
----
-96
31
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT DISTINCT ( col1 ) * + col0 DIV col0 + + col2 AS col1 FROM tab1 cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT ( col1 ) * + col0 / col0 + + col2 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + 48 + col2 FROM tab0 AS cor0
----
130
49
81
query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 + ( - col2 ) * col1 FROM tab2
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + 18 AS col2 FROM tab0 AS cor0
----
-17
-6
-71
skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + + CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT cor0.col1 * 37 + + col0 FROM tab2 AS cor0
----
1154
2261
708
query I rowsort
SELECT - col1 * + 17 * cor0.col2 FROM tab2 AS cor0
----
-10982
-14229
-26078
query I rowsort
SELECT - 24 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL 49 + 2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - - col2 + cor0.col2 + col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL + - col1 * 3 * 96 + col0 FROM tab2 AS cor0
----
-16914
-4817
-8921
query I rowsort
SELECT DISTINCT + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 * cor0.col1 + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + - col2 + - 42 AS col2 FROM tab0 AS cor0
----
-124
-43
-75
query I rowsort
SELECT ALL - + col2 + 34 AS col1 FROM tab0 AS cor0
----
-48
1
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT DISTINCT - + 63 * cor0.col2 * - col0 + - col2 DIV + col2 FROM tab0 AS cor0
----
2204
459773
49895
skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - + 63 * cor0.col2 * - col0 + - col2 / + col2 FROM tab0 AS cor0
----
2204
459773
49895
query I rowsort
SELECT ALL + col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col2 + + col0 * col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - - col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT col0 + - col1 DIV tab0.col1 AS col0 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4597
SELECT col0 + - col1 / tab0.col1 AS col0 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL + col1 + - col0 * + col2 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT + ( - cor0.col2 ) * + col0 * col0 + - 53 AS col2 FROM tab0 AS cor0
----
-1278
-19061
-649575
query I rowsort
SELECT col1 * - 97 + - cor0.col0 * + col1 FROM tab0 AS cor0
----
-10406
-12804
-16926
query I rowsort
SELECT DISTINCT ( + col2 ) * 5 FROM tab2
----
130
135
190
onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT + col1 DIV - col0 + ( col1 ) FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-4602
SELECT + col1 / - col0 + ( col1 ) FROM tab1
----
10
13
18
query I rowsort
SELECT 94 + + col2 AS col1 FROM tab2
----
120
121
132
query I rowsort
SELECT + + col2 + 30 * + col1 AS col1 FROM tab2 AS cor0
----
1796
548
957
query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 47 col0 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT DISTINCT col0 * 73 AS col2 FROM tab0
----
1752
2555
6497
query I rowsort
SELECT - + cor0.col2 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT col2 + + 9 + - col2 AS col2 FROM tab2
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 * - col1 ) + - col1 + + col0 col0 FROM tab1
----
-101
-586
-973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4612
SELECT + - cor0.col1 * - col2 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-4612
SELECT + - cor0.col1 * - col2 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1261
1430
580
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT + tab2.col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab1.col2 * col0 col1 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + 54 * col0 AS col2 FROM tab0
----
1296
1890
4806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col0 FROM tab0
----
-74
-74
-74
query I rowsort
SELECT - tab1.col1 + + tab1.col1 * col0 FROM tab1
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + - col1 ) col2 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT - - cor0.col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4620
SELECT - - cor0.col0 / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - 37 FROM tab0
----
-37
-37
-37
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + col0 * - col0 + col2 AS col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - 95 + col0 FROM tab2
----
-16
-17
-88
query I rowsort
SELECT DISTINCT 8 + - cor1.col2 * 93 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-5014
-5293
-8920
query I rowsort
SELECT + + col1 + - ( ( + col0 ) ) * ( + col2 ) FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + - col1 * col2 + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + - col1 + col0 + col1 AS col0 FROM tab1 AS cor0
----
3
64
80
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-4631
SELECT DISTINCT cor0.col2 * CAST( - col0 AS SIGNED ) * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
26160
598525
70
skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT cor0.col2 * CAST ( - col0 AS INTEGER ) * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
26160
598525
70
query I rowsort
SELECT + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4633
SELECT + + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4633
SELECT + + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 76 * col1 col2 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT - tab2.col2 * cor0.col0 + tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a80ad2ed727e8f79921db9c3ac9fd762
query I rowsort
SELECT col1 + col1 + col0 FROM tab1
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT col0 * 61 * col2 - + cor0.col1 FROM tab2 AS cor0
----
11498
123649
183105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4639
SELECT col2 * ( - col1 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4639
SELECT col2 * ( - col1 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) * col0 AS col1 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT + col0 DIV col0 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4641
SELECT + col0 / col0 col0 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL + col1 * - tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT 3 * + col0 AS col0 FROM tab2 cor0
----
21
234
237
query I rowsort
SELECT - 88 * col0 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT ALL + + 21 * + col1 + + 48 FROM tab0 AS cor0
----
1854
1959
2085
onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT DISTINCT + 96 DIV col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + 96 / col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + - col2 + col2 * col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT + - col0 * - col1 * cor0.col1 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
14768
3432
6970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * cor0.col0 col1 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + - col1 * col0 + + col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - - col1 * - col0 - - ( col0 ) FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * + 58 + col2 FROM tab1 AS cor0
----
-1454
-523
-658
query I rowsort
SELECT DISTINCT - - col0 * + col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + col2 + 93 * + 67 AS col2 FROM tab0 cor0
----
6232
6264
6313
query I rowsort
SELECT ALL - col0 + 10 * col2 AS col1 FROM tab2 AS cor0
----
182
263
301
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + ( + 55 ) AS col2 FROM tab1 AS cor0
----
2970
3135
5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 8 col1 FROM tab0 AS cor0
----
41
9
90
query I rowsort
SELECT DISTINCT + + 1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL 87 + + col1 * + col2 FROM tab2 AS cor0
----
1621
733
924
query I rowsort
SELECT ALL + ( + col2 ) + tab2.col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL - ( - col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT - + ( 84 ) * col2 + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-180
-2825
-6897
query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1 cor0
----
28
query I rowsort
SELECT - 93 * - 85 FROM tab0 AS cor0
----
7905
7905
7905
query I rowsort
SELECT - - col1 * cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 * col0 + + ( + col1 ) FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT - + 21 + - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-21
-22
-39
skipif mysql # not compatible
query I rowsort label-4674
SELECT - + 21 + - col2 / + col0 AS col1 FROM tab1 AS cor0
----
-21
-22
-39
query I rowsort
SELECT DISTINCT - 76 + cor0.col0 - + 42 * col0 * cor0.col1 FROM tab0 AS cor0
----
-142631
-340145
-86740
query I rowsort
SELECT + col0 * col0 + 22 * + 51 AS col2 FROM tab1 AS cor0
----
1131
5218
7522
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - + 87 + + col1 FROM tab1 cor0
----
-61
-74
-77
query I rowsort
SELECT + 41 + 6 FROM tab1, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL + + 19 + + col0 * 58 * col1 + col1 FROM tab0 cor0
----
119817
197026
469852
query I rowsort
SELECT DISTINCT - col1 * col1 * 63 + - cor0.col1 FROM tab1 AS cor0
----
-10660
-42614
-6310
query I rowsort
SELECT - col1 * + 6 AS col2 FROM tab1 cor0
----
-156
-60
-78
query I rowsort
SELECT ALL col0 * col1 - + col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + - cor0.col2 * + 55 + col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4685
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) + - 16 - - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) + - 16 - - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + col1 + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + col1 + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT DISTINCT + col0 DIV - 21 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1245
1404
567
skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + col0 / - 21 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1245
1404
567
query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 * col0 AS col2 FROM tab0 cor0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * 23 AS col1 FROM tab1 AS cor0
----
1536
1920
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 * 38 col2 FROM tab1 AS cor0
----
-168
-2489
-3136
query I rowsort
SELECT ALL - col2 * + 13 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT - ( - col1 * + col1 ) + + ( + col2 + + col2 ) FROM tab2
----
1015
3533
365
query I rowsort
SELECT tab1.col1 + + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + 83 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT cor0.col0 + - col1 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - 57 * col2 FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT - + col1 + col2 + + col0 AS col0 FROM tab2 cor0
----
100
3
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL - CAST( NULL AS SIGNED ) * - 0 * + col1 + col1 * col1 * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - CAST ( NULL AS INTEGER ) * - 0 * + col1 + col1 * col1 * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col0 + + cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1288
-159
-4517
onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT ALL + col1 DIV + col1 + col1 * col2 + - col2 * - col2 col0 FROM tab1
----
10465
3820
4321
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + col1 / + col1 + col1 * col2 + - col2 * - col2 col0 FROM tab1
----
10465
3820
4321
query I rowsort
SELECT col1 * + 80 + - col0 AS col1 FROM tab2
----
1281
2473
4642
query I rowsort
SELECT ALL col0 + col0 * col2 * col0 + - col2 * + col0 FROM tab2
----
1141
156234
234235
query I rowsort
SELECT ALL - 77 * col0 + col2 + - col1 FROM tab2
----
-543
-6039
-6062
query I rowsort
SELECT + col0 + - col0 * + col1 + col2 FROM tab2
----
-1226
-183
-4498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 3 ) + tab2.col0 col0 FROM tab2
----
10
81
82
query I rowsort
SELECT - ( - 14 ) AS col0 FROM tab1
----
14
14
14
query I rowsort
SELECT - - ( - cor0.col2 ) * col2 + + col1 + col2 * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
154574
181954
875533
onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT DISTINCT - col1 + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - col1 + col1 / + col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - - ( - col1 ) + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 37 * col0 AS col2 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT ALL - + 70 FROM tab0 cor0
----
-70
-70
-70
query I rowsort
SELECT + ( col0 ) * + col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - 84 AS col0 FROM tab1
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4715
SELECT + col0 + col1 * + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4715
SELECT + col0 + col1 * + col1 / col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col2 + ( col2 ) FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT - 86 + - col1 FROM tab2 AS cor0
----
-103
-117
-145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * col2 col2 FROM tab2 cor0
----
208
216
304
query I rowsort
SELECT - ( + col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - 1 + col0 * - col0 FROM tab1 AS cor0
----
-4095
-6399
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 * + col0 col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - + col2 * col0 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 82 col2 FROM tab1 AS cor0
----
1066
2132
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT - col1 DIV + cor0.col1 - col1 * - cor0.col2 col2 FROM tab1 AS cor0
----
1247
1403
569
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4727
SELECT - col1 / + cor0.col1 - col1 * - cor0.col2 col2 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT + col1 + + 81 AS col0 FROM tab1 cor0
----
107
91
94
query I rowsort
SELECT + + col0 * col0 - + 60 FROM tab0 AS cor0
----
1165
516
7861
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4730
SELECT - col0 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-4730
SELECT - col0 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + + col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col1 + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - 48 * 49 + + col1 FROM tab0 AS cor0
----
-2255
-2261
-2266
query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - + cor0.col0 * cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 99e52647357b835698a6730896ff820d
query I rowsort
SELECT ALL col1 * + col1 * - ( col1 * - 17 + + col1 ) FROM tab0
----
10176896
12057136
14602768
query I rowsort
SELECT - col1 * col2 - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - 33 + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-130
-2871
-7495
query I rowsort
SELECT - col2 * + ( + col2 * - cor0.col0 ) FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - col2 + + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + col0 - 75 FROM tab0 AS cor0
----
-40
-51
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT - - cor0.col1 DIV - 56 + + col2 AS col0 FROM tab2 AS cor0
----
25
27
38
skipif mysql # not compatible
query I rowsort label-4742
SELECT - - cor0.col1 / - 56 + + col2 AS col0 FROM tab2 AS cor0
----
25
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4743
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 * - col1 * ( cor0.col2 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 * - col1 * ( cor0.col2 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 61 * - 67 AS col2 FROM tab0 AS cor0
----
-4087
-4087
-4087
query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 + - 61 + - col0 AS col2 FROM tab0 AS cor0
----
-118
-232
-97
query I rowsort
SELECT ALL - col2 + 0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - - col1 * + 82 AS col2 FROM tab0 AS cor0
----
7052
7462
7954
query I rowsort
SELECT ALL - + 74 AS col2 FROM tab2 AS cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab1, tab0 cor0
----
66
query I rowsort
SELECT + 38 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - - col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 56 FROM tab0 cor0
----
-56
query I rowsort
SELECT ALL col1 * 79 AS col1 FROM tab2 AS cor0
----
1343
2449
4661
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - cor1.col1 * tab1.col0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 5353a988753c2a3d5236085229cfe510
query I rowsort
SELECT - + col2 * + col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col1 * col1 + + col2 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-340
155
2006
query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-6
query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * - 62 AS col2 FROM tab1 cor0
----
186
3968
4960
query I rowsort
SELECT - ( - cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT - col1 + - col1 DIV 98 + + col0 AS col0 FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-4763
SELECT - col1 + - col1 / 98 + + col0 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col1 * - 23 AS col2 FROM tab0
----
-1978
-2093
-2231
query I rowsort
SELECT ALL tab0.col2 - col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT - CAST( cor0.col1 AS SIGNED ) col1 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4766
SELECT - CAST ( cor0.col1 AS INTEGER ) col1 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT col1 * 65 * 14 FROM tab1 AS cor0
----
11830
23660
9100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT 1 * cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6
query I rowsort
SELECT cor0.col2 * - 23 AS col0 FROM tab2 AS cor0
----
-598
-621
-874
query I rowsort
SELECT col1 + - col0 * 56 FROM tab2 AS cor0
----
-361
-4309
-4407
query I rowsort
SELECT DISTINCT col0 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL tab0.col0 * - 59 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a47085dafbcf8d5419de0228741dd28d
query I rowsort
SELECT DISTINCT col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + col0 * - ( + tab0.col2 ) + col0 * ( col0 ) AS col2 FROM tab0
----
-216
1190
623
query I rowsort
SELECT col1 * - col2 + - col2 * col1 * col0 AS col0 FROM tab2
----
-121186
-51680
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 25 ) col1 FROM tab2, tab2 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT col0 DIV - 14 + + col0 AS col2 FROM tab1
----
3
60
75
skipif mysql # not compatible
query I rowsort label-4778
SELECT col0 / - 14 + + col0 AS col2 FROM tab1
----
3
60
75
query I rowsort
SELECT DISTINCT + col0 * + 74 FROM tab1 cor0
----
222
4736
5920
query I rowsort
SELECT ALL col0 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - 65 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT ALL col2 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT cor2.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
24
35
89
query I rowsort
SELECT DISTINCT + 38 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
38
query I rowsort
SELECT + + cor0.col1 * 21 AS col1 FROM tab2 AS cor0
----
1239
357
651
onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT - col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4786
SELECT - col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT col2 * + 50 FROM tab2 AS cor0
----
1300
1350
1900
onlyif mysql # use DIV operator for integer division
query I rowsort label-4788
SELECT DISTINCT + + col2 DIV col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + + col2 / col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT - col1 + - 23 * - 74 AS col1 FROM tab2 cor0
----
1643
1671
1685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT + - cor0.col0 * + CAST( - col2 + - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
14080
171
7744
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4790
SELECT + - cor0.col0 * + CAST ( - col2 + - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
14080
171
7744
onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT col1 - + col1 DIV col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-4791
SELECT col1 - + col1 / col2 FROM tab0
----
0
84
90
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT + col0 DIV - tab2.col0 + + col1 * - col2 AS col2 FROM tab2
----
-1535
-647
-838
skipif mysql # not compatible
query I rowsort label-4793
SELECT + col0 / - tab2.col0 + + col1 * - col2 AS col2 FROM tab2
----
-1535
-647
-838
query I rowsort
SELECT - 38 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT ALL CAST( 50 AS SIGNED ) + col0 AS col2 FROM tab0
----
139
74
85
skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL CAST ( 50 AS INTEGER ) + col0 AS col2 FROM tab0
----
139
74
85
query I rowsort
SELECT + 91 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-701
-7207
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT DISTINCT + 69 + col1 DIV - col1 col1 FROM tab2 AS cor0
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + 69 + col1 / - col1 col1 FROM tab2 AS cor0
----
68
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - 51 + + col2 FROM tab1 AS cor0
----
3
45
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT DISTINCT + col2 * + col2 + - CAST( NULL AS DECIMAL ) * col0 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + col2 * + col2 + - CAST ( NULL AS REAL ) * col0 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT - + ( + col0 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4802
SELECT - + ( + col0 ) / - col0 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + ( col1 ) + - 78 AS col0 FROM tab0 AS cor0
----
13
19
8
query I rowsort
SELECT + 0 * + col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col1 + col0 * ( - col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4806
SELECT ALL + - 31 DIV - col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
19
4096
6400
skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + - 31 / - col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
19
4096
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT ALL - col0 + - col2 + + 40 DIV 76 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - col0 + - col2 + + 40 / 76 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col2 ) * ( + col1 ) + + cor0.col2 col0 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT + 25 + - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4809
SELECT + 25 + - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 96 * col1 - + col0 FROM tab0
----
8232
8647
9277
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT + - 35 DIV col2 + + col2 col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + - 35 / col2 + + col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 + col2 * 48 * + col0 AS col1 FROM tab1 cor0
----
175114
368653
7802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * 0 col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT ALL + 4 DIV col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + 4 / col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 66 * col0 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT ALL - col1 * + col1 + col2 FROM tab1 cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4818
SELECT ALL - + ( - col2 ) DIV + col0 + ( + col1 ) FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL - + ( - col2 ) / + col0 + ( + col1 ) FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT + tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT 60 * + col2 AS col2 FROM tab0
----
1980
4920
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT + cor0.col0 DIV - cor0.col2 + + 52 FROM tab0 AS cor0
----
17
51
52
skipif mysql # not compatible
query I rowsort label-4821
SELECT + cor0.col0 / - cor0.col2 + + 52 FROM tab0 AS cor0
----
17
51
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT - - col0 + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-4822
SELECT - - col0 + - col2 / col1 AS col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT + 65 * col2 * col1 FROM tab0 AS cor0
----
184470
485030
6305
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * + 40 col0 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT - ( + 52 ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL 96 + 34 FROM tab2, tab2 AS cor0
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b
query I rowsort
SELECT ALL cor0.col2 + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col0 * col2 + 95 * col2 AS col1 FROM tab1 AS cor0
----
16800
5292
9063
query I rowsort
SELECT - - col2 + + col2 AS col2 FROM tab1 cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * col2 col1 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT + 9 DIV 53 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4831
SELECT + 9 / 53 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col0 + - col1 * col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col0 + - col1 * col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT col0 * - 86 AS col2 FROM tab2 cor0
----
-602
-6708
-6794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4834
SELECT ALL - ( 73 ) - cor0.col1 * + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - ( 73 ) - cor0.col1 * + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 29 * - col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT - 39 * col0 AS col1 FROM tab2 AS cor0
----
-273
-3042
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 13 * + col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT - - col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT DISTINCT CAST( ( + col1 ) AS SIGNED ) DIV + col0 AS col2 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT CAST ( ( + col1 ) AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT - col2 DIV 14 + col2 * ( - col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
-1594
-665
-869
skipif mysql # not compatible
query I rowsort label-4841
SELECT - col2 / 14 + col2 * ( - col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
-1594
-665
-869
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4842
SELECT ALL - - CAST( 58 AS SIGNED ) FROM tab1 cor0
----
58
58
58
skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - - CAST ( 58 AS INTEGER ) FROM tab1 cor0
----
58
58
58
query I rowsort
SELECT ALL col0 * - 36 FROM tab2
----
-252
-2808
-2844
query I rowsort
SELECT col2 + 97 FROM tab2
----
123
124
135
query I rowsort
SELECT - ( - cor0.col2 ) * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col0 + 48 FROM tab2 AS cor0
----
-30
-31
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT - + cor0.col1 DIV - col0 + 85 AS col1 FROM tab2 AS cor0
----
85
85
89
skipif mysql # not compatible
query I rowsort label-4847
SELECT - + cor0.col1 / - col0 + 85 AS col1 FROM tab2 AS cor0
----
85
85
89
query I rowsort
SELECT DISTINCT col0 + 19 AS col2 FROM tab1
----
22
83
99
query I rowsort
SELECT + ( ( - cor0.col1 ) ) * - 37 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT ALL + + 3 AS col0 FROM tab0 cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT + - col0 * col0 DIV cor0.col1 col1 FROM tab1 AS cor0
----
-409
-492
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4851
SELECT + - col0 * col0 / cor0.col1 col1 FROM tab1 AS cor0
----
-409
-492
0
query I rowsort
SELECT tab2.col0 * - col0 * col1 + + col0 FROM tab2
----
-106018
-1512
-358878
query I rowsort
SELECT + col0 * + tab1.col0 + col1 * - tab1.col1 FROM tab1
----
-667
3996
6231
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * col0 / + col0 BETWEEN col0 * col1 AND ( col0 + - col2 )
----
query I rowsort
SELECT - col2 / col2 + col0 FROM tab2 WHERE NOT NULL = - col1 + + col1 * + col1
----
query I rowsort
SELECT ALL col2 * + col2 * col0 - col0 AS col0 FROM tab0
----
0
26112
598347
query I rowsort
SELECT - col1 - col1 * + col2 FROM tab2
----
-1593
-663
-868
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 / - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + tab0.col1 col2 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT tab1.col1 + + col0 + - col0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT col1 * col2 * col2 FROM tab0
----
611884
93654
97
query III rowsort
SELECT * FROM tab2 WHERE - col0 + + col0 * col2 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - col2 FROM tab1 WHERE NULL BETWEEN NULL AND col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( + col1 + col1 )
----
query I rowsort
SELECT tab0.col0 + - col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL + col1 * col0 + col2 - col1 * - col2 FROM tab1
----
1267
1536
2384
onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT col1 DIV - col1 AS col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4868
SELECT col1 / - col1 AS col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL IN ( col2 * col1 )
----
query I rowsort
SELECT DISTINCT - col2 * col0 * col1 AS col2 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT DISTINCT col0 * - col2 - - col0 DIV col1 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT col0 * - col2 - - col0 / col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - tab1.col1 * + tab1.col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT col1 * col2 - - col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + col2 + + col2 * col2 NOT BETWEEN col0 AND - tab1.col1
----
3
64
80
query I rowsort
SELECT - col1 * - col2 + col2 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL IN ( - tab0.col1 / tab0.col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * tab1.col1 * col2 col1 FROM tab1
----
-119808
-32490
-75816
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN ( col0 * col1 + col0 ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT DISTINCT + cor0.col2 DIV - cor0.col0 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
171
182
194
skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + cor0.col2 / - cor0.col0 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
171
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT ALL + col2 + col2 * cor0.col0 DIV + col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + col2 + col2 * cor0.col0 / + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * col0 * tab1.col2 + - tab1.col2 AS col2 FROM tab1
----
-36537
-4266
-99936
query I rowsort
SELECT + - col0 + 0 AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - tab2.col0 * 98 * col0 FROM tab2
----
-4802
-596232
-611618
query I rowsort
SELECT + col0 * - 66 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL cor0.col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * + col0 col0 FROM tab2 cor0
----
343
474552
493039
query I rowsort
SELECT ALL - + col0 + 10 AS col2 FROM tab2 AS cor0
----
-68
-69
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * ( + col1 ) col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - col1 * - 46 + col1 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 + col2 FROM tab1 cor0
----
106
1123
687
query I rowsort
SELECT ALL + col0 - ( - col1 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col1 * 26 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT ALL - - col0 * - 75 AS col2 FROM tab2 AS cor0
----
-525
-5850
-5925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( cor0.col0 ) * - col1 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT DISTINCT - col2 DIV - col1 col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - col2 / - col1 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL - tab2.col0 * - col1 - + tab2.col1 * + col2 FROM tab2
----
-620
3068
697
query I rowsort
SELECT DISTINCT + 0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
0
query I rowsort
SELECT - col2 * 54 AS col2 FROM tab0
----
-1782
-4428
-54
query I rowsort
SELECT DISTINCT - + ( - col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT + + cor0.col2 + col2 DIV - 81 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4905
SELECT + + cor0.col2 + col2 / - 81 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 72 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4908
SELECT - + cor0.col1 * + col2 + + CAST( NULL AS SIGNED ) * 85 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4908
SELECT - + cor0.col1 * + col2 + + CAST ( NULL AS INTEGER ) * 85 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 8 * col2 AS col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT col1 + + col2 * col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 * tab1.col0 - + col0 AS col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT tab0.col1 + + col0 AS col0 FROM tab0
----
110
132
180
query III rowsort
SELECT * FROM tab2 WHERE - col1 <> NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4914
SELECT CAST( NULL AS SIGNED ) + tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4914
SELECT CAST ( NULL AS INTEGER ) + tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab0 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 0 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT col2 + col2 DIV - 54 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4917
SELECT col2 + col2 / - 54 FROM tab1
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT - col0 + col2 DIV col1 FROM tab1
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-4918
SELECT - col0 + col2 / col1 FROM tab1
----
-1
-59
-73
query I rowsort
SELECT col0 + + ( + col0 * cor0.col2 ) FROM tab1 cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT ALL + + ( col2 ) + - col1 * col0 DIV + col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + + ( col2 ) + - col1 * col0 / + col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 32 + + cor0.col0 * cor0.col1 * 23 FROM tab2 AS cor0
----
105814
30857
4959
query I rowsort
SELECT DISTINCT ( col0 ) + + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 81 + col2 FROM tab1 cor0
----
135
138
177
query I rowsort
SELECT DISTINCT - - 48 + + col1 AS col0 FROM tab1 AS cor0
----
58
61
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT - ( col2 ) + col2 DIV - 42 col0 FROM tab1 AS cor0
----
-55
-58
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4925
SELECT - ( col2 ) + col2 / - 42 col0 FROM tab1 AS cor0
----
-55
-58
-98
query I rowsort
SELECT ALL - col1 * col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab0 cor0
----
56
query I rowsort
SELECT ALL + ( cor0.col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT - col0 DIV - 59 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-4930
SELECT - col0 / - 59 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT - col2 DIV + col2 col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4931
SELECT - col2 / + col2 col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col1 * 99 + + 12 FROM tab1
----
1002
1299
2586
query I rowsort
SELECT col1 + + 2 AS col1 FROM tab0
----
88
93
99
query I rowsort
SELECT - col2 + col0 + col0 FROM tab1
----
-48
64
71
query I rowsort
SELECT + + cor0.col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT ALL - col0 - - 67 DIV - col2 col1 FROM tab0 cor0
----
-102
-26
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - col0 - - 67 / - col2 col1 FROM tab0 cor0
----
-102
-26
-89
query I rowsort
SELECT cor0.col2 + + 96 AS col1 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT col2 + col0 * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + col2 * + 70 * tab2.col2 FROM tab2
----
101080
47320
51030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT 28 + 25 AS col0 FROM tab0
----
53
53
53
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor1.col2 FROM tab0, tab2 AS cor0, tab2, tab0 cor1
----
9 values hashing to a3b44b1349b97a64e1970dbe00e8d983
onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT + ( - col1 ) + col0 DIV - col2 FROM tab0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-4944
SELECT + ( - col1 ) + col0 / - col2 FROM tab0
----
-132
-86
-92
query I rowsort
SELECT DISTINCT - - col1 * col1 * + col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - cor0.col2 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT col2 * - ( col0 + - col1 ) FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT + cor0.col0 * 92 FROM tab1 AS cor0
----
276
5888
7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4949
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT - 98 DIV cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1
skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - 98 / cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1
query I rowsort
SELECT DISTINCT - ( - tab1.col0 ) * - col0 AS col0 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT DISTINCT + col2 + ( - 63 * - col2 ) + 31 DIV col1 FROM tab0
----
2112
5248
64
skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + col2 + ( - 63 * - col2 ) + 31 / col1 FROM tab0
----
2112
5248
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT col2 + - 56 FROM tab0
----
-23
-55
26
query I rowsort
SELECT DISTINCT col2 + - col0 * col1 + col1 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 * - col0 + col2 FROM tab0
----
-1224
-543
-7839
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 col0 * cor0.col2 - 79 FROM tab2 AS cor0
----
110
1949
2923
query I rowsort
SELECT - - 39 + col0 * + cor0.col1 + col0 * col0 AS col0 FROM tab0 AS cor0
----
16059
2679
4659
query I rowsort
SELECT ALL ( ( + cor0.col2 ) + ( + 52 ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to 456912d9bce847716cf381dc2f17a508
query I rowsort
SELECT - 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL 5 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT DISTINCT + col2 * + col2 + + cor0.col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + col2 * + col2 + + cor0.col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
2917
3250
9217
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT + col0 DIV - tab1.col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4966
SELECT + col0 / - tab1.col2 AS col1 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT col1 + 66 AS col1 FROM tab0 AS cor0
----
152
157
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT DISTINCT col2 DIV + tab0.col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT col2 / + tab0.col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT - ( 40 ) * + tab0.col1 AS col0 FROM tab0
----
-3440
-3640
-3880
query I rowsort
SELECT + + 74 * - col2 + - col1 * + 25 + col1 AS col2 FROM tab0 AS cor0
----
-2402
-4506
-8252
query I rowsort
SELECT - - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 cor0 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT - col1 + col0 * 74 AS col1 FROM tab1
----
196
4726
5907
query I rowsort
SELECT + 91 AS col0 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT DISTINCT - col0 * - col0 + - 64 * 17 + - cor0.col2 * col1 AS col0 FROM tab2 cor0
----
-1876
3462
4507
query I rowsort
SELECT 42 AS col0 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT 41 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL 6 + col0 * 66 FROM tab2 AS cor0
----
468
5154
5220
query I rowsort
SELECT DISTINCT - + 56 + + col0 AS col1 FROM tab1 AS cor0
----
-53
24
8
query I rowsort
SELECT ALL 95 * col0 + 41 FROM tab1 AS cor0
----
326
6121
7641
query I rowsort
SELECT - - cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + col1 * + col2 * ( + col0 * col1 ) AS col2 FROM tab2 AS cor0
----
182466
7061002
868224
onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT ALL + - col0 + - col0 * cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-3
-473
-572
skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + - col0 + - col0 * cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
-3
-473
-572
query I rowsort
SELECT ALL + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - cor0.col1 + + 13 FROM tab2 AS cor0
----
-18
-4
-46
query I rowsort
SELECT DISTINCT - + col2 * - 71 FROM tab0 AS cor0
----
2343
5822
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT - col0 + + col2 DIV - col1 FROM tab2
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-4989
SELECT - col0 + + col2 / - col1 FROM tab2
----
-7
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4990
SELECT + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4990
SELECT + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT col1 DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4991
SELECT col1 / - cor0.col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT col0 + col1 - col1 * 83 DIV col1 FROM tab0 AS cor0
----
27
49
97
skipif mysql # not compatible
query I rowsort label-4992
SELECT col0 + col1 - col1 * 83 / col1 FROM tab0 AS cor0
----
27
49
97
query I rowsort
SELECT ALL + 22 + cor0.col1 AS col1 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT ALL + cor0.col1 * col0 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT 32 + col1 FROM tab0 cor0
----
118
123
129
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 24 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - col2 + - 84 * + col2 AS col2 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT DISTINCT - + cor0.col1 * ( - col1 * - col0 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL - - col2 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT cor0.col1 * 94 AS col0 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT ALL - + col1 * col1 - 13 AS col2 FROM tab0 AS cor0
----
-7409
-8294
-9422
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT 59 - + tab1.col2 AS col2 FROM tab1
----
-37
2
5
query I rowsort
SELECT - col2 + + col2 * 75 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT ALL + col2 * - tab2.col1 - col1 * 99 AS col2 FROM tab2
----
-2329
-3906
-7375
query I rowsort
SELECT DISTINCT col0 - + tab1.col1 * col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL - ( + col1 ) + col0 * 45 FROM tab2 AS cor0
----
284
3451
3538
query I rowsort
SELECT tab0.col1 * - 70 FROM tab0, tab2 AS cor0
----
9 values hashing to 62074cb8738b78c3f90db7ff986a6624
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + 33 col2 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT DISTINCT + - 68 * col2 + - col1 * + 98 FROM tab0 AS cor0
----
-10672
-14494
-9574
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT col2 DIV ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5013
SELECT col2 / ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL 13 * col1 AS col0 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT - ( col0 ) * - col2 + CAST( NULL AS DECIMAL ) * 16 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5016
SELECT - ( col0 ) * - col2 + CAST ( NULL AS REAL ) * 16 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( 40 ) AS col0 FROM tab1 cor0
----
40
40
40
query I rowsort
SELECT - col0 * - 82 AS col0 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT 27 * col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT + ( - col2 ) * tab0.col0 - ( col1 ) AS col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 FROM tab1, tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + 39 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
47
52
58
query I rowsort
SELECT 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT - tab2.col2 * - tab2.col0 * col2 FROM tab2
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT ALL + col0 DIV col1 + - 89 col2 FROM tab1 cor0
----
-83
-83
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + col0 / col1 + - 89 col2 FROM tab1 cor0
----
-83
-83
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 + + col0 col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab1 AS cor0
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT DISTINCT col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT col2 / cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + - 55 + - col0 AS col2 FROM tab0 AS cor0
----
-144
-79
-90
query I rowsort
SELECT + - col0 * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + - 60 * col2 + col0 FROM tab0 AS cor0
----
-1956
-25
-4831
query I rowsort
SELECT - 55 * + col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + 46 + - col1 * 93 AS col0 FROM tab2 AS cor0
----
-1535
-2837
-5441
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 9 + + cor0.col2 * - ( - col2 ) FROM tab2 AS cor0
----
1453
685
738
query I rowsort
SELECT - col1 + ( + col1 ) * - col2 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT DISTINCT 33 DIV cor0.col1 col2 FROM tab2, tab1 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT 33 / cor0.col1 col2 FROM tab2, tab1 AS cor0
----
1
2
3
query I rowsort
SELECT ALL - - col2 * + ( col2 ) FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - col2 + ( - 95 ) FROM tab2 AS cor0
----
-121
-122
-133
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT ALL + cor0.col2 * + col0 + - col0 DIV col2 FROM tab1 AS cor0
----
162
3647
7680
skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + cor0.col2 * + col0 + - col0 / col2 FROM tab1 AS cor0
----
162
3647
7680
query I rowsort
SELECT + col1 + + col1 * - col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 + col2 col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5047
SELECT - + col2 + CAST( col0 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4153
-63
-6496
skipif mysql # not compatible
query I rowsort label-5047
SELECT - + col2 + CAST ( col0 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT - col1 * ( col2 ) + col1 * - col2 * col1 FROM tab1 AS cor0
----
-17472
-37908
-6270
query I rowsort
SELECT DISTINCT - 6 + cor0.col2 AS col0 FROM tab1 AS cor0
----
48
51
90
query I rowsort
SELECT DISTINCT + ( 67 ) - col1 FROM tab0 AS cor0
----
-19
-24
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5051
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * cor0.col1 + col0 col0 FROM tab1 cor0
----
1537
654
847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + 81 - col2 col1 FROM tab0 AS cor0
----
2640
6560
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col1 + col1 * - col0 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - cor0.col1 + 4 AS col1 FROM tab1 cor0
----
-22
-6
-9
query I rowsort
SELECT ALL + - col0 * ( + col0 ) + + col1 + - col2 FROM tab2 AS cor0
----
-45
-6051
-6262
query I rowsort
SELECT ALL + tab1.col1 * - col0 + - 31 AS col1 FROM tab1
----
-1071
-109
-671
onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT - col0 DIV col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-5060
SELECT - col0 / col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 * - col0 col1 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT DISTINCT - + col2 * + col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - - col2 * col0 - col0 * - col2 AS col0 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT ALL col0 + - col0 DIV - col1 AS col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL col0 + - col0 / - col1 AS col0 FROM tab2
----
7
79
83
query I rowsort
SELECT ALL - col1 * col1 * 14 + - cor0.col0 * col2 * + col0 - - col0 * - col2 FROM tab2 AS cor0
----
-14966
-208946
-244206
query I rowsort
SELECT DISTINCT - 6 FROM tab0 cor0
----
-6
query I rowsort
SELECT DISTINCT + + 34 + col0 AS col1 FROM tab0 AS cor0
----
123
58
69
query I rowsort
SELECT 10 + cor0.col2 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT ALL - 75 - col0 * + col1 FROM tab1 AS cor0
----
-1115
-153
-715
query I rowsort
SELECT ALL + + cor0.col2 + + col2 AS col0 FROM tab2 cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5071
SELECT DISTINCT + col1 * + col0 + CAST( - 42 AS SIGNED ) + col1 FROM tab1 AS cor0
----
1011
608
62
skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + col1 * + col0 + CAST ( - 42 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1011
608
62
query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT + ( - col0 ) - ( + col0 + col0 ) * col1 FROM tab0 AS cor0
----
-16287
-4152
-6825
query I rowsort
SELECT col0 * col1 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 70 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-44
-57
-60
query I rowsort
SELECT - + col1 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT DISTINCT - col2 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-52
-89
skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - col2 + col2 / col1 AS col0 FROM tab1 AS cor0
----
-52
-89
query I rowsort
SELECT col2 * - col2 * - 33 + col0 AS col0 FROM tab0 AS cor0
----
221981
35961
68
query I rowsort
SELECT ALL - + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * 94 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT ALL + col2 * 14 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-2850
-6336
594
query I rowsort
SELECT ALL + col1 * - 66 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT ALL col2 * + tab2.col1 + + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT col1 + + col2 + + col0 AS col1 FROM tab0
----
133
143
262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT - col2 / CAST( NULL AS SIGNED ) + - cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5086
SELECT - col2 / CAST ( NULL AS INTEGER ) + - cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 63 AS col1 FROM tab0 AS cor0
----
-26
28
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5088
SELECT ALL CAST( NULL AS SIGNED ) * + 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL CAST ( NULL AS INTEGER ) * + 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 77 AS col2 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT col0 + 10 * col0 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT DISTINCT cor0.col0 + 74 AS col2 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT - + cor0.col1 * + 14 * - col0 AS col2 FROM tab1 AS cor0
----
1092
14560
8960
query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - - 9 * + 43 AS col2 FROM tab1 AS cor0
----
387
query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col1 FROM tab0, tab2 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 96 * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a66cea73e403a1e95a3602c057e1424
query I rowsort
SELECT ALL ( - col1 ) * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + + col2 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + col2 * col1 + cor0.col0 - col2 AS col0 FROM tab1 AS cor0
----
1232
1353
577
query I rowsort
SELECT tab1.col1 + + 29 FROM tab1
----
39
42
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + 46 * - col0 FROM tab1
----
-138
-2944
-3680
query I rowsort
SELECT - ( 48 ) * - tab1.col2 * ( col2 ) + + col2 * col2 AS col1 FROM tab1
----
142884
159201
451584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - CAST( NULL AS SIGNED ) * - col1 + col1 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5105
SELECT - CAST ( NULL AS INTEGER ) * - col1 + col1 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + - 66 * + col1 FROM tab1
----
-1662
-603
-762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5107
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + 66 FROM tab0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT - - cor0.col1 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-5109
SELECT - - cor0.col1 + col1 / - cor0.col0 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT ALL ( ( col1 ) ) * + ( tab1.col0 ) * col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col1 + ( + tab2.col1 ) AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL 73 * tab2.col1 * - tab2.col0 AS col2 FROM tab2
----
-15841
-335946
-98039
query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 + + col0 FROM tab1
----
-36416
-4209
-99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT DISTINCT tab1.col2 * col1 + 80 + col1 * col0 DIV + ( col0 + + col2 ) FROM tab1
----
1333
1485
655
skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT tab1.col2 * col1 + 80 + col1 * col0 / + ( col0 + + col2 ) FROM tab1
----
1333
1485
655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col1 col1 FROM tab0
----
5676
6006
6402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab2.col2 col2 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 * - col1 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col1 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * - 42 FROM tab1
----
-2268
-2394
-4032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT DISTINCT - + cor0.col0 + ( col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - + cor0.col0 + ( col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 * 97 AS col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT DISTINCT 48 * col0 FROM tab2 AS cor0
----
336
3744
3792
query I rowsort
SELECT - - col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5128
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + + 63 * col0 AS col1 FROM tab1 AS cor0
----
189
4032
5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT - 24 DIV + 67 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5130
SELECT - 24 / + 67 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 98 ) + + cor0.col2 * 84 AS col2 FROM tab1 AS cor0
----
4634
4886
8162
query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0
----
33
33
33
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 59 AS REAL ) * - col0 FROM tab2 AS cor0
----
-413
-4602
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT ALL + col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + col0 / + col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL ( 58 ) * cor0.col0 FROM tab2 AS cor0
----
406
4524
4582
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT - - 60 DIV col0 col0 FROM tab2 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5136
SELECT - - 60 / col0 col0 FROM tab2 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - - col2 * col0 * cor0.col1 - - col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT ALL - col1 + - cor0.col0 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + + col1 + + 33 * col0 AS col0 FROM tab1 AS cor0
----
1482
1613
47
query I rowsort
SELECT 6 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ALL + col0 * col1 - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 7 + col1 AS col1 FROM tab2 AS cor0
----
10
24
52
query I rowsort
SELECT ALL + col1 * col2 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + - 58 * col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT DISTINCT + 60 + col0 FROM tab2 AS cor0
----
138
139
67
query I rowsort
SELECT + ( 96 ) + - cor0.col1 FROM tab1 AS cor0
----
70
83
86
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-5150
SELECT ALL - col1 DIV + col1 - col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - col1 / + col1 - col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT ( col1 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
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-5153
SELECT - - col1 DIV cor0.col1 + + col1 * 26 AS col0 FROM tab0 AS cor0
----
2237
2367
2523
skipif mysql # not compatible
query I rowsort label-5153
SELECT - - col1 / cor0.col1 + + col1 * 26 AS col0 FROM tab0 AS cor0
----
2237
2367
2523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - col2 * - col1 col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT ALL + ( 55 ) * - col2 FROM tab0
----
-1815
-4510
-55
query I rowsort
SELECT - tab0.col0 * ( 58 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4bf87bce71cedcb6ace45c48d5d2e576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5157
SELECT col0 * + col1 * - CAST( col2 * col0 AS SIGNED ) + ( col0 ) FROM tab1 AS cor0
----
-12633
-2334656
-7987120
skipif mysql # not compatible
query I rowsort label-5157
SELECT col0 * + col1 * - CAST ( col2 * col0 AS INTEGER ) + ( col0 ) FROM tab1 AS cor0
----
-12633
-2334656
-7987120
query I rowsort
SELECT DISTINCT + + 51 FROM tab1 AS cor0
----
51
query I rowsort
SELECT ALL + col0 * - 82 * col2 AS col2 FROM tab0
----
-2870
-598436
-64944
query I rowsort
SELECT + + 76 + + 26 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343
query I rowsort
SELECT DISTINCT - 13 FROM tab2
----
-13
query I rowsort
SELECT + + 23 * col2 + ( col1 ) * + col1 FROM tab0 AS cor0
----
10167
8155
9432
query I rowsort
SELECT - - cor0.col2 * col2 + col1 + col0 * col2 FROM tab2 AS cor0
----
2763
4463
949
query I rowsort
SELECT ( - tab1.col1 + + col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - - cor0.col1 * + 58 + + col2 AS col1 FROM tab1 AS cor0
----
1562
637
850
query I rowsort
SELECT col0 * ( - 33 ) + col1 AS col0 FROM tab1 AS cor0
----
-2102
-2627
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT ALL + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + + col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 2 + cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f494d417c41d4cf140dc04c2f8a0cbc0
query I rowsort
SELECT DISTINCT - 27 + col1 * + col0 * col2 + - col1 * + ( 9 ) AS col2 FROM tab1
----
36363
3951
99696
query I rowsort
SELECT 1 + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT 12 * + col2 AS col1 FROM tab1
----
1152
648
684
query I rowsort
SELECT ( + col1 ) + + col2 - - 56 AS col1 FROM tab2
----
111
114
141
query I rowsort
SELECT DISTINCT 56 FROM tab2, tab0 AS cor0
----
56
query I rowsort
SELECT + + col0 * + col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT DISTINCT - col2 DIV 51 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - col2 / 51 FROM tab1 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT ALL col1 DIV + cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL col1 / + cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - + col1 + 48 * + col1 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT ( + 25 ) - - col2 AS col0 FROM tab0
----
107
26
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - + 36 + - 93 * + col0 FROM tab2 AS cor0
----
-687
-7290
-7383
query I rowsort
SELECT - col1 * col1 * col1 - + col2 AS col2 FROM tab1 AS cor0
----
-1057
-17630
-2293
query I rowsort
SELECT + col0 - + 90 * col1 FROM tab2 AS cor0
----
-1451
-2783
-5232
onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT + - 39 + col1 * 75 DIV col1 AS col1 FROM tab2 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-5184
SELECT + - 39 + col1 * 75 / col1 AS col1 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT ALL + ( + col1 ) FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - col0 + col1 * col0 col2 FROM tab1 AS cor0
----
294
4345
8816
query I rowsort
SELECT DISTINCT + 45 * + col0 * + col0 FROM tab2 AS cor0
----
2205
273780
280845
query I rowsort
SELECT ( col0 ) + + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - + cor0.col2 * + 47 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dbf50f11f26c29d6a6c421417bfe170f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT - cor0.col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5190
SELECT - cor0.col0 / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT + + col0 DIV col0 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5191
SELECT + + col0 / col0 AS col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - 75 * + col1 FROM tab0
----
-6450
-6825
-7275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT CAST( 94 AS SIGNED ) AS col1 FROM tab2
----
94
94
94
skipif mysql # not compatible
query I rowsort label-5193
SELECT CAST ( 94 AS INTEGER ) AS col1 FROM tab2
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT DISTINCT col2 DIV - ( - col0 * - col2 ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT col2 / - ( - col0 * - col2 ) AS col2 FROM tab1
----
0
query I rowsort
SELECT + ( + 66 ) FROM tab0
----
66
66
66
query I rowsort
SELECT DISTINCT - 69 * + col1 FROM tab2
----
-1173
-2139
-4071
query I rowsort
SELECT ALL + 31 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 54f12f2a4c0a7bf7577521bd8fd4845b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT - CAST( col0 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-5198
SELECT - CAST ( col0 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 76 + - 90 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-346
-5836
-7276
query I rowsort
SELECT DISTINCT col0 + col2 * - col1 + - 78 FROM tab2
----
-1534
-645
-908
query I rowsort
SELECT ALL - 2 AS col1 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT col1 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + 45 * col0 AS col0 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT ALL - + 79 * cor0.col2 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT + - 96 - - col0 FROM tab1 AS cor0
----
-16
-32
-93
query I rowsort
SELECT ALL ( col0 ) * + 3 + - cor0.col1 * - col2 AS col2 FROM tab0 cor0
----
202
2910
7729
query I rowsort
SELECT DISTINCT 21 * + col0 AS col1 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT DISTINCT 61 * + col2 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT + - cor0.col0 + + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 + - 5 * col0 FROM tab2 cor0
----
1144
251
802
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT + + col1 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5213
SELECT + + col1 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL col2 * ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - + col0 * col1 + 98 FROM tab2 cor0
----
-119
-1245
-4504
query I rowsort
SELECT + + col1 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * + cor0.col0 col2 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + + col2 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col1 + 78 + cor0.col0 AS col2 FROM tab1 AS cor0
----
107
152
171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 + col0 col2 FROM tab0 AS cor0
----
10
21
75
query I rowsort
SELECT DISTINCT - col2 * 84 + + col1 * col0 FROM tab0 AS cor0
----
-708
1211
3311
query I rowsort
SELECT ALL - + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col2 + 24 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT ALL - - col1 * - col1 + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT - cor0.col1 + - ( + col0 ) DIV + 71 AS col0 FROM tab0 AS cor0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-5227
SELECT - cor0.col1 + - ( + col0 ) / + 71 AS col0 FROM tab0 AS cor0
----
-86
-92
-97
query I rowsort
SELECT ( - 2 ) * col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - + 14 * + col1 + col2 FROM tab0 AS cor0
----
-1171
-1192
-1357
query I rowsort
SELECT col2 + 89 * col1 AS col1 FROM tab2 AS cor0
----
1551
2786
5277
query I rowsort
SELECT ( col2 ) + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + ( col1 ) * - col1 * col2 + + 18 FROM tab1 cor0
----
-16206
-36486
-5682
query I rowsort
SELECT + ( - cor0.col0 ) * col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - 83 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e
query I rowsort
SELECT + 87 AS col0 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT + cor0.col0 * 98 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 753de708ba8e1269d416f3cc04b85e0c
query I rowsort
SELECT - cor0.col1 * + cor0.col2 + 90 FROM tab0 AS cor0
----
-2748
-7
-7372
query I rowsort
SELECT DISTINCT - + col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - col1 + - cor0.col2 * 31 AS col1 FROM tab2 AS cor0
----
-1195
-865
-868
query I rowsort
SELECT - col0 + 14 FROM tab2 AS cor0
----
-64
-65
7
query I rowsort
SELECT + col0 * - col2 + + 3 FROM tab2 AS cor0
----
-186
-2025
-2999
query I rowsort
SELECT - col0 * col1 * + cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + 16 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT - col0 + col2 * col0 * - col0 FROM tab1 cor0
----
-233536
-489
-614480
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
89
query I rowsort
SELECT + col2 * 74 AS col1 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT - 22 + - 14 FROM tab1 cor0
----
-36
-36
-36
query I rowsort
SELECT - col2 * 1 AS col1 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0, tab2 AS cor0
----
24
query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT - col2 DIV - col2 + - col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT - col2 / - col2 + - col0 FROM tab0
----
-23
-34
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT - col1 + - col2 DIV - col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-5253
SELECT - col1 + - col2 / - col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT - + col2 + col1 * col2 + col1 AS col1 FROM tab0 cor0
----
193
2891
7471
onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT - col1 * col0 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5255
SELECT - col1 * col0 / + col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col1 - col1 * col0 AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - tab1.col0 - col1 * tab1.col0 AS col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + col1 * - col1 + + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL col0 * + cor0.col2 + - col1 + col2 FROM tab1 AS cor0
----
190
3695
7763
onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT DISTINCT - - cor0.col0 + col0 DIV col0 col1 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - - cor0.col0 + col0 / col0 col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT - - col0 + - col2 * - col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT - col2 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - - col1 col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT ALL - col1 * tab0.col1 DIV - col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - col1 * tab0.col1 / - col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - - 28 * - 89 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5ebc610514ff24d4f6e81fff243c7d97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT ALL + + 44 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + + 44 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 94 + col2 FROM tab2 cor0
----
-56
-67
-68
query I rowsort
SELECT ALL + 27 + col1 FROM tab1 AS cor0
----
37
40
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT - - col0 + + 54 * + col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT - col2 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + 27 * - col2 AS col0 FROM tab2
----
-1026
-702
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL + col2 + 97 DIV col0 FROM tab0 AS cor0
----
3
37
83
skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + col2 + 97 / col0 FROM tab0 AS cor0
----
3
37
83
query I rowsort
SELECT ALL - + col1 * col1 + + col1 * - col1 FROM tab2 AS cor0
----
-1922
-578
-6962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + cor0.col1 + 32 * col2 FROM tab2 cor0
----
1233
891
895
query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1, tab2 cor0, tab0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5286
SELECT - col2 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5286
SELECT - col2 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - tab1.col1 + + ( - col1 ) AS col2 FROM tab1
----
-110
-182
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - - col2 col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col1 - col0 * - col0 FROM tab1
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col0 col1 FROM tab2
----
-41
-52
20
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > + col0 * + col2
----
query I rowsort
SELECT + col0 - tab2.col1 FROM tab2 WHERE col0 * - col1 NOT BETWEEN NULL AND ( tab2.col1 )
----
query I rowsort
SELECT tab0.col1 - col1 * col1 AS col0 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT - col1 + - col1 + - col0 * tab2.col1 FROM tab2
----
-1377
-279
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT ALL - col1 DIV + col0 AS col2 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - col1 / + col0 AS col2 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL col1 + col1 - + col0 AS col1 FROM tab2
----
-45
40
55
query I rowsort
SELECT col2 + col1 * - col0 AS col2 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT ALL - col2 + + col0 + + col1 DIV col0 FROM tab2
----
-16
41
52
skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - col2 + + col0 + + col1 / col0 FROM tab2
----
-16
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT ALL + col1 DIV col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + col1 / col1 AS col1 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT DISTINCT + tab1.col0 DIV tab1.col0 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + tab1.col0 / tab1.col0 AS col1 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT DISTINCT - col2 DIV - col2 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - col2 / - col2 AS col1 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT - tab0.col1 DIV + tab0.col2 col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5303
SELECT - tab0.col1 / + tab0.col2 col0 FROM tab0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT DISTINCT tab2.col0 DIV col1 + tab2.col0 + col0 * col2 AS col2 FROM tab2
----
196
2107
3085
skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT tab2.col0 / col1 + tab2.col0 + col0 * col2 AS col2 FROM tab2
----
196
2107
3085
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col1 + col2 - - col1 )
----
query I rowsort
SELECT DISTINCT col0 + tab2.col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT col2 - - col0 * - col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col0 + tab2.col2 AS col0 FROM tab2
----
-41
-52
20
query III rowsort
SELECT * FROM tab0 WHERE col2 = ( - col1 - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT col1 + 52 DIV col0 AS col0 FROM tab0 cor0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-5310
SELECT col1 + 52 / col0 AS col0 FROM tab0 cor0
----
88
91
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT - col0 DIV ( + 53 ) AS col1 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5311
SELECT - col0 / ( + 53 ) AS col1 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT + + col2 * 55 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT col0 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT DISTINCT - - cor0.col0 + + CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - - cor0.col0 + + CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col1 * ( col0 * col1 ) FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + col0 + 16 * - col2 FROM tab1 AS cor0
----
-1456
-848
-861
onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT ALL col0 + - 99 DIV 24 FROM tab1 AS cor0
----
-1
60
76
skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL col0 + - 99 / 24 FROM tab1 AS cor0
----
-1
60
76
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 4 * - col2 AS col2 FROM tab2
----
-104
-108
-152
query I rowsort
SELECT 13 + col1 FROM tab0
----
104
110
99
query I rowsort
SELECT DISTINCT + - 45 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-45
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 cor2, tab2 AS cor3
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2
query I rowsort
SELECT + col0 * - col2 + col1 * - col2 FROM tab1
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT cor0.col1 + 46 * col0 AS col2 FROM tab1 AS cor0
----
164
2954
3693
query I rowsort
SELECT ALL - col0 * col1 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) / 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) / 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT - 64 + col0 + + col2 DIV 36 col1 FROM tab0 AS cor0
----
-29
-40
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5327
SELECT - 64 + col0 + + col2 / 36 col1 FROM tab0 AS cor0
----
-29
-40
27
query I rowsort
SELECT 64 + 13 * col1 - col1 AS col0 FROM tab0
----
1096
1156
1228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT ALL - - CAST( NULL AS SIGNED ) + cor0.col2 * col0 * + 34 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - - CAST ( NULL AS INTEGER ) + cor0.col2 * col0 * + 34 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT DISTINCT - + col0 * - col1 + + col1 DIV col0 FROM tab0 AS cor0
----
2067
3397
8100
skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - + col0 * - col1 + + col1 / col0 FROM tab0 AS cor0
----
2067
3397
8100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + - ( 64 ) * + col2 + - ( 92 ) FROM tab0 cor0
----
-156
-2204
-5340
query I rowsort
SELECT ALL - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT - CAST( NULL AS SIGNED ) + - col0 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5334
SELECT - CAST ( NULL AS INTEGER ) + - col0 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + 77 + - col0 col1 FROM tab0
----
43
70
86
query I rowsort
SELECT - 52 * - tab2.col1 AS col0 FROM tab2
----
1612
3068
884
query I rowsort
SELECT DISTINCT 64 + + col2 FROM tab1 AS cor0
----
118
121
160
query I rowsort
SELECT ALL + 41 AS col0 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT + - 91 + - col0 AS col2 FROM tab0 AS cor0
----
-115
-126
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT ALL + col0 DIV col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + col0 / col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT - - col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT ALL col1 * - col2 + 50 AS col0 FROM tab1 AS cor0
----
-1198
-1354
-520
query I rowsort
SELECT + + col2 * - col0 + 30 * - 87 + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-17206
-2680
-4194
query I rowsort
SELECT col0 + col1 * col1 * 22 + + col2 AS col2 FROM tab1 AS cor0
----
14929
2321
3894
query I rowsort
SELECT DISTINCT - - 40 AS col2 FROM tab2 AS cor0
----
40
query I rowsort
SELECT DISTINCT - - 16 * 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
784
query I rowsort
SELECT + - col2 * - col1 + col0 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + col1 * - col0 + col1 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT ALL - + 44 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - + 44 / cor0.col0 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT + - col1 + - 81 AS col0 FROM tab1 AS cor0
----
-107
-91
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT - col1 + - ( col1 ) DIV - col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-5352
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-5353
SELECT ALL + CAST( NULL AS SIGNED ) * - 40 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + CAST ( NULL AS INTEGER ) * - 40 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 54 AS col0 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL + ( - col2 + - col2 ) FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2, tab0 AS cor0
----
-12
query I rowsort
SELECT 35 + col1 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
17
31
59
query I rowsort
SELECT + - col1 * + col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT + 5 * 23 FROM tab2
----
115
115
115
query I rowsort
SELECT + + col1 - col2 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT - ( - cor0.col1 ) * ( + 3 ) AS col0 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT col2 * col2 + ( col0 ) FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL ( col2 ) + + col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - 1 FROM tab2, tab0, tab2 AS cor0
----
-1
query I rowsort
SELECT + ( col2 ) + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 + col1 * col1 * + 67 + tab1.col0 AS col0 FROM tab1
----
11483
45298
6828
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT - 5 + tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2b5ade85be5319861c59c5f0e150ea0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 80 * - col0 col1 FROM tab0
----
1953
2801
7202
query I rowsort
SELECT DISTINCT - tab0.col0 + tab0.col1 FROM tab0
----
2
62
query I rowsort
SELECT ALL ( + 22 ) FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT ALL col2 + 70 * col0 AS col1 FROM tab0 AS cor0
----
1713
2451
6312
query I rowsort
SELECT + 85 + col1 + - col0 FROM tab2 AS cor0
----
109
23
66
query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2, tab2 AS cor3
----
44
query I rowsort
SELECT DISTINCT col2 + + col1 - col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69
query I rowsort
SELECT cor0.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col2 * - col0 - - col1 AS col0 FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col1 + + 68 FROM tab1
----
78
81
94
query I rowsort
SELECT ALL 98 AS col1 FROM tab1
----
98
98
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5384
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + ( - col0 + + col2 ) * - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT CAST ( NULL AS REAL ) * + ( - col0 + + col2 ) * - col1 FROM tab2
----
NULL
query I rowsort
SELECT - col1 - - col0 * + tab0.col0 AS col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT 84 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 52 AS col1 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT ALL - 86 AS col2 FROM tab0
----
-86
-86
-86
query I rowsort
SELECT - cor0.col2 - + col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - - col1 - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + + col1 * 98 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT col2 + + ( - col2 ) + - col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + + col0 * ( - 86 ) * col1 FROM tab0 AS cor0
----
-177504
-291970
-696514
query I rowsort
SELECT + col2 + + col1 * + 74 FROM tab0 AS cor0
----
6397
6816
7179
query I rowsort
SELECT + col0 + - 77 * cor0.col1 FROM tab1 AS cor0
----
-1999
-706
-921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5397
SELECT - col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5397
SELECT - col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * + col1 + + 39 FROM tab1
----
1079
117
679
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 2 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col0 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + cor0.col2 + ( 88 ) AS col1 FROM tab2 AS cor0
----
114
115
126
query I rowsort
SELECT + + col1 * - 53 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT ALL - cor0.col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 72 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1606
718
909
query I rowsort
SELECT DISTINCT - ( 84 ) + - col1 AS col1 FROM tab2 cor0
----
-101
-115
-143
query I rowsort
SELECT ALL + ( 76 ) + col2 AS col1 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT + ( + col2 ) + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + col1 * col2 + + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
131
2829
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT DISTINCT + 13 - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
13
19
skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + 13 - col0 / - col1 AS col1 FROM tab1 AS cor0
----
13
19
query I rowsort
SELECT DISTINCT - 64 * col1 + - col0 FROM tab2 AS cor0
----
-1167
-1991
-3854
query I rowsort
SELECT - col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + - col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + col0 + - 9 AS col2 FROM tab2 AS cor0
----
-2
69
70
query I rowsort
SELECT ALL - col1 + - 23 FROM tab2 AS cor0
----
-40
-54
-82
query I rowsort
SELECT - col1 * - col1 + cor0.col1 FROM tab1 cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL tab2.col1 - col0 * - col2 AS col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + col1 * + tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - tab0.col0 - 30 FROM tab0
----
-119
-54
-65
query I rowsort
SELECT - - col2 * - col2 * col2 + col1 + 19 AS col0 FROM tab2 AS cor0
----
-17498
-19633
-54836
query I rowsort
SELECT ALL - + 57 AS col0 FROM tab0 AS cor0
----
-57
-57
-57
query I rowsort
SELECT - col0 + 64 * + col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1598
2302
5698
query I rowsort
SELECT DISTINCT 89 FROM tab2 cor0
----
89
query I rowsort
SELECT ALL + + 7 + col1 FROM tab1 AS cor0
----
17
20
33
query I rowsort
SELECT ALL - - 87 AS col2 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT - + 2 * + col2 * col0 FROM tab1 cor0
----
-15360
-324
-7296
query I rowsort
SELECT - col1 * cor0.col2 * 29 AS col1 FROM tab1 AS cor0
----
-16530
-36192
-40716
query I rowsort
SELECT + col2 + col1 * 32 FROM tab1 AS cor0
----
377
512
886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - 40 * - col0 + col2 FROM tab1 AS cor0
----
174
2617
3296
query I rowsort
SELECT col0 + + col0 * 93 AS col1 FROM tab0 AS cor0
----
2256
3290
8366
onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT DISTINCT 98 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT 98 / - col2 AS col1 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - cor0.col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1 AS cor0
----
-48
query I rowsort
SELECT col2 + - col1 * 79 FROM tab1 AS cor0
----
-2000
-733
-931
query I rowsort
SELECT ALL + col2 * 19 * + col1 FROM tab1 AS cor0
----
10830
23712
26676
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT ALL + col0 * cor0.col1 DIV + col0 - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + col0 * cor0.col1 / + col0 - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - 23 + 75 FROM tab2, tab1, tab1 AS cor0
----
52
query I rowsort
SELECT ALL - cor0.col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 42 * - col1 + col0 * - ( + 39 ) FROM tab0 AS cor0
----
-4548
-5439
-7293
query I rowsort
SELECT 43 * + col1 AS col0 FROM tab2
----
1333
2537
731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT + - 52 * ( + col0 ) + - CAST( NULL AS SIGNED ) * col2 col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5446
SELECT + - 52 * ( + col0 ) + - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 32 AS col2 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - + col1 + + 61 * col0 FROM tab1 AS cor0
----
157
3894
4867
query I rowsort
SELECT - col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT + ( + cor0.col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) + - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - 85 + cor0.col0 AS col1 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT col2 * - col0 + tab1.col0 * + col0 * tab1.col1 FROM tab1
----
37312
72
75520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT + 52 * ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5456
SELECT + 52 * ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( ( + col1 ) ) * + ( + 3 ) AS col2 FROM tab0
----
258
273
291
query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col2 - + 25 FROM tab2 cor0
----
1
13
2
query I rowsort
SELECT - col2 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - + col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT + col2 DIV - col1 + col2 * col0 FROM tab2 AS cor0
----
189
2028
3000
skipif mysql # not compatible
query I rowsort label-5462
SELECT + col2 / - col1 + col2 * col0 FROM tab2 AS cor0
----
189
2028
3000
query I rowsort
SELECT DISTINCT col1 + 35 * 11 FROM tab0 cor0
----
471
476
482
query I rowsort
SELECT ALL + col0 + - ( ( + col0 ) ) + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col1 * + col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 * + ( - col2 ) - + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - col0 + 61 * col1 FROM tab2 AS cor0
----
1884
3521
958
query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - - col1 + col2 * + 16 FROM tab0 AS cor0
----
113
1403
614
query I rowsort
SELECT ALL + 53 AS col0 FROM tab1
----
53
53
53
query I rowsort
SELECT ALL + 9 AS col2 FROM tab2
----
9
9
9
query I rowsort
SELECT - 20 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT col0 + 88 * col2 FROM tab1 AS cor0
----
4755
5080
8528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 47 col2 FROM tab2 AS cor0
----
-12
16
30
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + cor0.col2 - + col1 * - 25 AS col2 FROM tab1 AS cor0
----
307
421
704
query I rowsort
SELECT ALL + col2 + ( + col1 ) - col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT tab0.col0 * col1 * + col0 + col0 AS col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0, tab1 cor0
----
54
57
96
query I rowsort
SELECT - + col2 - 5 FROM tab1 AS cor0
----
-101
-59
-62
query I rowsort
SELECT - - 8 + - ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1240
-1396
-562
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT ALL - col2 + + ( - col1 ) DIV col1 FROM tab1 cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - col2 + + ( - col1 ) / col1 FROM tab1 cor0
----
-55
-58
-97
query I rowsort
SELECT - 91 - col1 AS col2 FROM tab2 AS cor0
----
-108
-122
-150
query I rowsort
SELECT ALL + 29 + + 4 * + col1 FROM tab1 AS cor0
----
133
69
81
query I rowsort
SELECT - col1 - ( col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL ( - 87 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT DISTINCT col1 + + col0 * - col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT tab1.col0 * + tab1.col0 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5491
SELECT CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
7
query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
7
query I rowsort
SELECT 98 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + - 58 + 52 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT 24 - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
121
2862
7486
query I rowsort
SELECT - ( col1 ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - + col1 * + col0 * + col2 + 68 FROM tab0 cor0
----
-3327
-664050
-68044
query I rowsort
SELECT - + 54 + + 66 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2
----
41
query I rowsort
SELECT - 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT DISTINCT 19 * col0 * + 50 AS col1 FROM tab1
----
2850
60800
76000
onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT - - 17 DIV col1 col2 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5503
SELECT - - 17 / col1 col2 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col0 col2 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + ( col1 ) * - 54 AS col0 FROM tab0 AS cor0
----
-4644
-4914
-5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT + cor0.col2 DIV ( - 64 + col0 ) FROM tab0 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5506
SELECT + cor0.col2 / ( - 64 + col0 ) FROM tab0 cor0
----
0
0
3
query I rowsort
SELECT cor0.col0 * 32 * col0 FROM tab1 AS cor0
----
131072
204800
288
query I rowsort
SELECT - - col0 + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 18 FROM tab2, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT - 35 + 26 AS col0 FROM tab0, tab0 cor0
----
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5511
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - cor0.col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT col0 - col2 DIV col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-5513
SELECT col0 - col2 / col1 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT + col1 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - col1 + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT cor0.col1 * + col2 + + col2 * + col0 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT cor0.col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT DISTINCT + col2 + col0 * 78 FROM tab0 AS cor0
----
1905
2731
7024
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - 96 * col0 * col1 - - 43 AS col2 FROM tab2 AS cor0
----
-128885
-20789
-441749
query I rowsort
SELECT ALL + cor0.col0 * - col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + 3 AS col1 FROM tab0 cor0
----
100
2841
7465
query I rowsort
SELECT DISTINCT - + col1 * - 93 + + col2 * col0 FROM tab1 AS cor0
----
2580
4578
8889
query I rowsort
SELECT + + col0 * 83 + - 95 * col0 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT DISTINCT + col2 * 46 + + 53 FROM tab1 AS cor0
----
2537
2675
4469
onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT + col2 + ( col1 ) DIV col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-5527
SELECT + col2 + ( col1 ) / col0 FROM tab0 AS cor0
----
3
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT + 34 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5528
SELECT + 34 / - col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT - tab0.col2 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5529
SELECT - tab0.col2 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( col1 ) + + 10 * col1 + - col1 * - ( + col2 * tab1.col1 ) AS col0 FROM tab1
----
16367
36790
5810
query I rowsort
SELECT ALL + col1 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + 30 * - cor0.col0 FROM tab1 cor0
----
-1920
-2400
-90
query I rowsort
SELECT DISTINCT 85 FROM tab2, tab1 AS cor0
----
85
query I rowsort
SELECT - col0 + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT + 46 * cor0.col1 DIV 78 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c7e9412190c327e5c9361be07e749f7a
skipif mysql # not compatible
query I rowsort label-5535
SELECT + 46 * cor0.col1 / 78 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c7e9412190c327e5c9361be07e749f7a
query I rowsort
SELECT + + ( - col0 ) + col0 * 68 AS col1 FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT 97 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ( col0 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - 42 * col0 * - col2 FROM tab1 AS cor0
----
153216
322560
6804
query I rowsort
SELECT + 93 + col2 AS col1 FROM tab0
----
126
175
94
query I rowsort
SELECT ALL 59 * 12 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 570474781ce39dea189dacab7318492f
query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab1
----
22
query I rowsort
SELECT + + col0 + 40 AS col1 FROM tab1 AS cor0
----
104
120
43
query I rowsort
SELECT DISTINCT 39 + - cor0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
-50
15
4
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col2 - + 20 AS col0 FROM tab1
----
34
37
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT col2 + col2 * + ( tab2.col0 ) DIV + col0 AS col2 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-5547
SELECT col2 + col2 * + ( tab2.col0 ) / + col0 AS col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT ALL 57 DIV + col0 AS col1 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 57 / + col0 AS col1 FROM tab1
----
0
0
19
query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - 25 * - col2 + + col1 AS col1 FROM tab2
----
706
709
967
query I rowsort
SELECT ALL - - 3 AS col0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + ( col2 ) + col2 - 58 * col1 FROM tab1 AS cor0
----
-1400
-466
-562
query I rowsort
SELECT DISTINCT + 98 * col1 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + 96 AS col1 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT ALL col2 + ( col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT + ( + cor0.col2 ) FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + tab0.col1 + - col2 - 75 * - tab0.col1 FROM tab0
----
6503
6834
7371
query I rowsort
SELECT - col2 * 26 * ( + col2 ) AS col2 FROM tab0
----
-174824
-26
-28314
query I rowsort
SELECT DISTINCT col2 + - ( tab1.col2 + col1 ) * col0 FROM tab1
----
-186
-4231
-8624
query I rowsort
SELECT - col0 * 62 + 33 * col1 FROM tab1 AS cor0
----
-3638
-4531
672
onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5563
SELECT - col0 / cor0.col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL col1 + 43 AS col0 FROM tab1
----
53
56
69
query I rowsort
SELECT col2 + ( col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT ALL 35 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL - + 97 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT - col0 + - 45 AS col1 FROM tab2 AS cor0
----
-123
-124
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) * + col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 46 AS col1 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT + 99 + + col2 AS col2 FROM tab1 AS cor0
----
153
156
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT ALL - col2 DIV + col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - col2 / + col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT + col1 DIV - 43 col2 FROM tab2 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5573
SELECT + col1 / - 43 col2 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT ALL cor0.col2 DIV 68 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL cor0.col2 / 68 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + 56 * col2 + col0 FROM tab2 AS cor0
----
1519
1534
2207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT DISTINCT + ( + ( col1 ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + ( + ( col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 73 AS col1 FROM tab2 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT + col0 + col1 DIV - col0 AS col2 FROM tab0 cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-5578
SELECT + col0 + col1 / - col0 AS col2 FROM tab0 cor0
----
21
33
88
query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab0 AS cor0
----
62
query I rowsort
SELECT DISTINCT col1 + col1 * col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col1 * 85 AS col2 FROM tab1 cor0
----
1105
2210
850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT col1 * tab0.col1 DIV - 80 AS col0 FROM tab0
----
-103
-117
-92
skipif mysql # not compatible
query I rowsort label-5585
SELECT col1 * tab0.col1 / - 80 AS col0 FROM tab0
----
-103
-117
-92
query I rowsort
SELECT + tab1.col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 * col0 * + col1 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - col1 * col2 * - 95 AS col2 FROM tab0
----
269610
708890
9215
query I rowsort
SELECT ALL col0 + col0 * 37 FROM tab2
----
266
2964
3002
query I rowsort
SELECT + col1 * tab0.col0 + + col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - + 16 - col1 * cor0.col1 * 37 AS col1 FROM tab2 AS cor0
----
-10709
-128813
-35573
query I rowsort
SELECT ( col1 ) * col2 * + col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - - col1 + - col1 * col2 * + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT ALL - + cor0.col2 * ( - col2 ) + - col1 + col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - + col0 - - ( + col1 + - col1 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col2 * col0 + + col2 - cor0.col0 FROM tab2 AS cor0
----
1976
209
2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - - col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 84 * + col1 col1 FROM tab0 AS cor0
----
7200
7555
8113
query I rowsort
SELECT - - col2 * + 37 AS col1 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT DISTINCT - + ( - ( - col0 ) ) * - 87 * + 22 FROM tab0 AS cor0
----
170346
45936
66990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 * 60 + col1 col1 FROM tab1 cor0
----
-5374
-5387
-5390
onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT ALL - cor0.col1 * col0 + col1 DIV col1 FROM tab2 AS cor0
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - cor0.col1 * col0 + col1 / col1 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT DISTINCT - - 88 * - col0 AS col1 FROM tab2 AS cor0
----
-616
-6864
-6952
query I rowsort
SELECT + 35 * cor0.col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT - cor0.col0 - + 23 AS col2 FROM tab0 AS cor0
----
-112
-47
-58
query I rowsort
SELECT ALL + 46 AS col2 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 28 + - col2 * - col0 col0 FROM tab1 AS cor0
----
1856
5440
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT ALL + 37 DIV - col0 AS col0 FROM tab2 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + 37 / - col0 AS col0 FROM tab2 AS cor0
----
-5
0
0
query I rowsort
SELECT ( cor0.col1 ) + + col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT ALL - CAST( + 90 AS SIGNED ) + + col1 * col0 AS col0 FROM tab1 AS cor0
----
-12
550
950
skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - CAST ( + 90 AS INTEGER ) + + col1 * col0 AS col0 FROM tab1 AS cor0
----
-12
550
950
query I rowsort
SELECT ALL - 39 + col0 * col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-119691
-51073
-5898
query I rowsort
SELECT DISTINCT + + 96 FROM tab2 AS cor0
----
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col0 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT - 34 * + col2 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT DISTINCT 5 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * - col0 col2 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT 68 + col1 FROM tab0
----
154
159
165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col0 col2 FROM tab2 AS cor0
----
434
4836
4898
query I rowsort
SELECT + ( col2 ) * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT 54 * col2 AS col0 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT - col0 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT + col1 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * 0 col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5628
SELECT - CAST( col2 + col1 * + col0 AS SIGNED ) AS col1 FROM tab2
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-5628
SELECT - CAST ( col2 + col1 * + col0 AS INTEGER ) AS col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT ALL + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 20 - + col1 * col0 FROM tab1
----
-1020
-58
-620
query I rowsort
SELECT + cor1.col1 - + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3
query I rowsort
SELECT DISTINCT + 15 FROM tab2, tab1 cor0
----
15
query I rowsort
SELECT col2 + - 58 + + 37 FROM tab0
----
-20
12
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 86 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 86 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT 85 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT - 39 AS col0 FROM tab0
----
-39
-39
-39
query I rowsort
SELECT ALL 15 * col1 AS col1 FROM tab2
----
255
465
885
query I rowsort
SELECT + 27 AS col0 FROM tab2
----
27
27
27
query I rowsort
SELECT + - ( - col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 39 AS col0 FROM tab1
----
39
39
39
query I rowsort
SELECT col1 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT col2 - + 7 * - tab0.col1 FROM tab0
----
635
680
719
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT + col1 DIV - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5645
SELECT + col1 / - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + + col2 + 71 AS col1 FROM tab0 cor0
----
104
153
72
query I rowsort
SELECT ALL - cor0.col2 + col2 + - 7 AS col2 FROM tab0 AS cor0
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5648
SELECT + + col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * - 64 col0 FROM tab2 AS cor0
----
-6272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT DISTINCT + 1 DIV 39 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + 1 / 39 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 58 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT DISTINCT 77 * + 87 * + col0 + 35 FROM tab2 AS cor0
----
46928
522557
529256
query I rowsort
SELECT ALL 49 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + 94 + + col1 AS col0 FROM tab0 AS cor0
----
180
185
191
onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT + - col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5656
SELECT + - col0 / - col1 FROM tab1 AS cor0
----
0
6
6
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT ALL - 39 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
113724
126711
359424
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + - col1 + - col1 * + col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + + col2 + - col1 * - cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col2 * - col2 * + col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - + col1 + cor0.col0 + 87 * + cor0.col1 FROM tab0 AS cor0
----
7420
7915
8377
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT ALL - - col2 DIV - ( - 27 ) + col0 * col0 + - col0 FROM tab1 AS cor0
----
4034
6323
8
skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - - col2 / - ( - 27 ) + col0 * col0 + - col0 FROM tab1 AS cor0
----
4034
6323
8
query I rowsort
SELECT + - col2 + - col0 * 10 AS col0 FROM tab1 AS cor0
----
-697
-84
-896
onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT ALL + + col2 DIV - col2 + 26 AS col1 FROM tab1 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + + col2 / - col2 + 26 AS col1 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT ALL - + col0 + - 54 AS col1 FROM tab0 AS cor0
----
-143
-78
-89
query I rowsort
SELECT - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT ALL cor0.col2 + + 7 DIV ( col0 ) FROM tab1 AS cor0
----
56
57
96
skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL cor0.col2 + + 7 / ( col0 ) FROM tab1 AS cor0
----
56
57
96
query I rowsort
SELECT + col1 - + col0 * col0 FROM tab2
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * ( 26 ) col2 FROM tab2
----
1026
702
729
query I rowsort
SELECT tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - + col2 * 18 AS col1 FROM tab1 AS cor0
----
-1026
-1728
-972
query I rowsort
SELECT ALL - - cor0.col1 * - 1 * + ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab2, tab2 AS cor0
----
29
query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 + - col0 AS col1 FROM tab1 cor0
----
1155
1375
496
query I rowsort
SELECT - + col0 * - 94 + + col0 + + col0 AS col2 FROM tab1 AS cor0
----
288
6144
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT - col2 + - col2 DIV + ( col0 ) + + 27 AS col2 FROM tab2 AS cor0
----
-11
-3
1
skipif mysql # not compatible
query I rowsort label-5680
SELECT - col2 + - col2 / + ( col0 ) + + 27 AS col2 FROM tab2 AS cor0
----
-11
-3
1
query I rowsort
SELECT col0 + col2 * + col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97
query I rowsort
SELECT + + 59 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT col1 - 18 AS col1 FROM tab2
----
-1
13
41
query I rowsort
SELECT ALL col1 * col2 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + 8 + - col1 * col1 FROM tab0
----
-7388
-8273
-9401
query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab2 AS cor0
----
21
query I rowsort
SELECT col2 + col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT ALL + 94 AS col2 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT col2 * + col2 * col1 + col2 + col0 AS col0 FROM tab0 AS cor0
----
133
612055
93711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * 99 col2 FROM tab0
----
-2376
query I rowsort
SELECT - 26 AS col1 FROM tab0, tab1, tab2 cor0, tab2
----
81 values hashing to 92c9dcf04a06d25c174ffa715aa22fcf
onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT col1 DIV - col0 + col2 col0 FROM tab0
----
-1
30
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5693
SELECT col1 / - col0 + col2 col0 FROM tab0
----
-1
30
81
query I rowsort
SELECT DISTINCT + 16 * tab1.col0 FROM tab1
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + col1 * col0 col1 FROM tab0
----
2112
3465
8277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT col1 * col2 DIV 50 - - col1 AS col1 FROM tab2 AS cor0
----
29
47
89
skipif mysql # not compatible
query I rowsort label-5698
SELECT col1 * col2 / 50 - - col1 AS col1 FROM tab2 AS cor0
----
29
47
89
query I rowsort
SELECT + 78 + cor0.col2 FROM tab1 AS cor0
----
132
135
174
query I rowsort
SELECT ALL 52 * + cor0.col2 FROM tab2 AS cor0
----
1352
1404
1976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * col2 - 66 * - cor0.col1 col1 FROM tab2 AS cor0
----
2034
2694
4518
query I rowsort
SELECT DISTINCT + + ( col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT - + 96 + col2 + - 71 FROM tab2 cor0
----
-129
-140
-141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT ALL - - 5 * + col0 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
3200
390
5200
skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - - 5 * + col0 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
3200
390
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT + 52 + - col0 + 34 DIV col2 AS col1 FROM tab1 AS cor0
----
-12
-28
49
skipif mysql # not compatible
query I rowsort label-5706
SELECT + 52 + - col0 + 34 / col2 AS col1 FROM tab1 AS cor0
----
-12
-28
49
query I rowsort
SELECT ALL - ( col2 ) - 21 AS col1 FROM tab1 AS cor0
----
-117
-75
-78
query I rowsort
SELECT ALL + 36 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT - - col2 + - col2 * + 41 FROM tab1 AS cor0
----
-2160
-2280
-3840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT 88 + col1 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 62 FROM tab0, tab0 AS cor0
----
62
query I rowsort
SELECT ALL + 1 * + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - 72 FROM tab0, tab1, tab2 AS cor0
----
-72
query I rowsort
SELECT ALL - ( cor1.col0 ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - cor0.col2 + 41 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 25db922154df3b6f8e2c30902e369ecc
query I rowsort
SELECT - + 29 * col1 AS col1 FROM tab2 AS cor0
----
-1711
-493
-899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - ( col0 ) * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 40 ) col0 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT - ( 13 ) * - col2 FROM tab0 AS cor0
----
1066
13
429
onlyif mysql # use DIV operator for integer division
query I rowsort label-5723
SELECT - col2 + col2 * col2 DIV - 2 col0 FROM tab0 AS cor0
----
-1
-3444
-577
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5723
SELECT - col2 + col2 * col2 / - 2 col0 FROM tab0 AS cor0
----
-1
-3444
-577
query I rowsort
SELECT DISTINCT - 10 * - col2 FROM tab2 AS cor0
----
260
270
380
onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT ALL + col0 DIV + 81 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + col0 / + 81 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + ( - col1 ) col0 FROM tab1 AS cor0
----
-1612
-620
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT + col1 DIV 68 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5727
SELECT + col1 / 68 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * 11 col0 FROM tab2 AS cor0
----
792
792
792
query I rowsort
SELECT col1 * cor0.col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5730
SELECT + + CAST( - col0 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5730
SELECT + + CAST ( - col0 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 56 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - ( col2 * - col0 ) - - col1 * - col1 FROM tab2
----
-1453
-772
2713
onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT col2 DIV - 99 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5733
SELECT col2 / - 99 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col0 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT - + col2 DIV col0 col1 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5735
SELECT - + col2 / col0 col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + + col2 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT - col2 + + col0 DIV ( - cor0.col0 ) FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-5737
SELECT - col2 + + col0 / ( - cor0.col0 ) FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT - col2 + - cor0.col0 * + col1 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - - 98 AS col2 FROM tab2 AS cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT DISTINCT + + 34 + col2 DIV + 39 FROM tab0 AS cor0
----
34
36
skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT + + 34 + col2 / + 39 FROM tab0 AS cor0
----
34
36
query I rowsort
SELECT ALL col2 * - col0 * tab2.col2 AS col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT cor1.col1 - - 65 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3a99d6ad89cb4b1a40d3e093b7ce40fd
onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT + 60 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-5743
SELECT + 60 / col0 AS col0 FROM tab1 AS cor0
----
0
0
20
query I rowsort
SELECT ALL - ( - col1 ) + + ( 95 ) + col0 AS col0 FROM tab1 AS cor0
----
124
169
188
query I rowsort
SELECT ALL + 97 + col2 AS col1 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT DISTINCT + - 97 * - col2 * + col2 AS col2 FROM tab2 AS cor0
----
140068
65572
70713
onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT - col0 + - col2 DIV cor0.col2 FROM tab1 cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-5747
SELECT - col0 + - col2 / cor0.col2 FROM tab1 cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col0 ) col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 + + 71 FROM tab0 AS cor0
----
106
160
95
query I rowsort
SELECT - 91 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT - cor0.col0 + 91 DIV 14 FROM tab1 cor0
----
-58
-74
3
skipif mysql # not compatible
query I rowsort label-5751
SELECT - cor0.col0 + 91 / 14 FROM tab1 cor0
----
-58
-74
3
query I rowsort
SELECT 40 + + ( col1 ) AS col0 FROM tab1 cor0
----
50
53
66
query I rowsort
SELECT ALL + - col1 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * col1 * col1 + 16 AS col0 FROM tab0 AS cor0
----
-636040
-753555
-912657
query I rowsort
SELECT cor0.col0 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT ALL + 73 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL + col2 * ( col0 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col1 * + col2 * + 72 AS col2 FROM tab1
----
101088
41040
89856
query I rowsort
SELECT ALL + - col1 + - 6 FROM tab2 AS cor0
----
-23
-37
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + + col2 * 65 + + cor0.col1 - - col1 AS col2 FROM tab0 AS cor0
----
2317
259
5512
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5762
SELECT + col1 + col0 * - CAST( + col0 * col2 AS SIGNED ) AS col1 FROM tab2
----
-1292
-158125
-237141
skipif mysql # not compatible
query I rowsort label-5762
SELECT + col1 + col0 * - CAST ( + col0 * col2 AS INTEGER ) AS col1 FROM tab2
----
-1292
-158125
-237141
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT DISTINCT col1 + + col2 + + ( + col0 ) DIV - col0 FROM tab1
----
108
66
79
skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT col1 + + col2 + + ( + col0 ) / - col0 FROM tab1
----
108
66
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT DISTINCT + 61 * col2 + + CAST( 71 AS SIGNED ) FROM tab1
----
3365
3548
5927
skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + 61 * col2 + + CAST ( 71 AS INTEGER ) FROM tab1
----
3365
3548
5927
onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT col1 * - tab2.col0 + - 33 DIV + col0 FROM tab2
----
-1343
-221
-4602
skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT col1 * - tab2.col0 + - 33 / + col0 FROM tab2
----
-1343
-221
-4602
query I rowsort
SELECT + tab2.col1 * + col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT col2 * - tab0.col2 * 43 FROM tab0
----
-289132
-43
-46827
query I rowsort
SELECT DISTINCT 55 + - tab0.col2 + col0 AS col1 FROM tab0
----
46
62
89
query I rowsort
SELECT DISTINCT - col1 + - col0 + - 7 AS col2 FROM tab0
----
-117
-139
-187
query I rowsort
SELECT col0 * + col2 + - col2 AS col0 FROM tab2
----
162
2002
2964
query I rowsort
SELECT 45 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ALL - 62 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 98946dcadb23f354040593c91d9c8559
query I rowsort
SELECT col1 + - tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * 11 + cor0.col1 FROM tab2 AS cor0
----
-46
-799
-852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - 31 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - 31 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * 34 AS col0 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT + col1 * col2 + + col2 * col1 FROM tab2 cor0
----
1292
1674
3068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT ALL - col1 + - CAST( col0 AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL - col1 + - CAST ( col0 AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - - col1 - - 25 * col1 AS col2 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT ALL - - col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col2 + + 53 * cor0.col1 FROM tab2 AS cor0
----
1670
3153
939
onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT col1 + col0 * col2 - col2 DIV - ( + col0 ) AS col1 FROM tab1
----
206
3658
7694
skipif mysql # not compatible
query I rowsort label-5782
SELECT col1 + col0 * col2 - col2 / - ( + col0 ) AS col1 FROM tab1
----
206
3658
7694
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5
query I rowsort
SELECT + 99 * col0 FROM tab1
----
297
6336
7920
query I rowsort
SELECT + ( col2 ) + col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT - 6 - - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-11
-13
-8
skipif mysql # not compatible
query I rowsort label-5786
SELECT - 6 - - col2 / - col1 AS col0 FROM tab1 AS cor0
----
-11
-13
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col0 - cor0.col0 * ( + col1 + col2 ) col0 FROM tab2 cor0
----
1014
280
3397
query I rowsort
SELECT ALL 71 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT + - 53 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT - cor0.col2 * tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
9 values hashing to a8ce768203b74f299b6ebad5477b14c1
query I rowsort
SELECT - 39 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT 66 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + - col0 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + ( - 32 + - cor1.col0 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c924fba037d6e2c155b93eb14cfe370
query I rowsort
SELECT - + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + 58 * 73 FROM tab2
----
4234
4234
4234
query I rowsort
SELECT DISTINCT + + col0 + col2 * + col1 AS col2 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT ALL + 63 + - cor0.col1 DIV + col0 FROM tab0 AS cor0
----
60
61
62
skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + 63 + - cor0.col1 / + col0 FROM tab0 AS cor0
----
60
61
62
query I rowsort
SELECT 14 * col0 + - 83 FROM tab1 AS cor0
----
-41
1037
813
query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col1 FROM tab0 cor0
----
2
62
query I rowsort
SELECT - 4 * - col2 AS col1 FROM tab1 AS cor0
----
216
228
384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT + + ( col2 ) * + CAST( NULL AS SIGNED ) * - ( col2 ) - col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5804
SELECT + + ( col2 ) * + CAST ( NULL AS INTEGER ) * - ( col2 ) - col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 4 * - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-313
-416
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 - + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - 25 * col2 * - col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
182541
19886
972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col0 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + - 65 FROM tab1 AS cor0
----
-227
-3713
-7745
query I rowsort
SELECT + cor0.col0 + col2 + col2 AS col0 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + cor0.col1 * + 50 AS col2 FROM tab1 AS cor0
----
1300
500
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5814
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + - col1 + col0 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 - + col2 col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + 86 * col1 - - col2 AS col0 FROM tab0 AS cor0
----
7429
7908
8343
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
query I rowsort
SELECT DISTINCT + + 53 * col0 AS col0 FROM tab2 AS cor0
----
371
4134
4187
query I rowsort
SELECT DISTINCT - 22 + cor0.col1 * col0 FROM tab1 AS cor0
----
1018
56
618
query I rowsort
SELECT ALL + 8 AS col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT - - cor0.col2 + - col0 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + 5 FROM tab2 cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT DISTINCT col0 DIV - 20 AS col1 FROM tab0 AS cor0
----
-1
-4
skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT col0 / - 20 AS col1 FROM tab0 AS cor0
----
-1
-4
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + ( 62 ) FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT ALL 78 FROM tab1
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT 92 + - col0 FROM tab0
----
3
57
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT + cor0.col1 - - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5831
SELECT + cor0.col1 - - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 29 * + col2 + - 75 AS col0 FROM tab0 AS cor0
----
-46
2303
882
query I rowsort
SELECT DISTINCT - 19 * + col0 FROM tab2
----
-133
-1482
-1501
query I rowsort
SELECT + 24 + + col0 * col2 AS col0 FROM tab1
----
186
3672
7704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 48 * col2 ) + - col0 * ( col1 ) * + col2 col2 FROM tab0
----
-3347
-660182
-66528
query I rowsort
SELECT + 15 * - tab2.col2 + ( 6 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 4ea13c0b57a446549a8ff346cf14b1e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT DISTINCT - - col0 * 1 + 55 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - - col0 * 1 + 55 / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL col2 * col2 + col2 * - col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 14 * - col0 col1 FROM tab0 AS cor0
----
-1335
-360
-525
onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + col2 DIV ( col2 ) + col2 * ( col1 * + col2 ) FROM tab0 AS cor0
----
611885
93655
98
skipif mysql # not compatible
query I rowsort label-5841
SELECT + col2 / ( col2 ) + col2 * ( col1 * + col2 ) FROM tab0 AS cor0
----
611885
93655
98
query I rowsort
SELECT + 4 * - col1 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( + cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT + col0 * col0 + - 59 DIV + col0 col2 FROM tab0
----
1224
574
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5846
SELECT + col0 * col0 + - 59 / + col0 col2 FROM tab0
----
1224
574
7921
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT 2 * - 76 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 28b3e37f94148894dc3c74396870176d
query I rowsort
SELECT DISTINCT - col0 * + 61 + col2 AS col2 FROM tab2
----
-400
-4732
-4781
query I rowsort
SELECT ALL + tab2.col1 + col1 + + tab2.col2 FROM tab2
----
144
72
89
query I rowsort
SELECT - 54 * - col2 + col0 FROM tab2 cor0
----
1465
1482
2131
query I rowsort
SELECT DISTINCT 99 * 3 + + col2 AS col1 FROM tab0
----
298
330
379
query I rowsort
SELECT ALL tab1.col1 * cor0.col0 * + 27 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 286e7836d180573eced980406604f4a1
query I rowsort
SELECT 41 * + col2 + col2 * - col0 FROM tab2
----
-1444
-962
918
query I rowsort
SELECT + 63 * - col1 FROM tab1
----
-1638
-630
-819
query I rowsort
SELECT cor0.col0 + 39 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e571980a10ffc1527379e13c1a33e52a
query I rowsort
SELECT DISTINCT 21 + - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
21
query I rowsort
SELECT ALL - col1 * - col2 + + 76 + 99 FROM tab2 AS cor0
----
1012
1709
821
query I rowsort
SELECT DISTINCT - - cor0.col1 - + col1 * - ( col0 ) FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + - 49 + col0 AS col2 FROM tab1 AS cor0
----
-46
15
31
query I rowsort
SELECT ALL + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + col2 * + col2 + 87 AS col1 FROM tab0 cor0
----
1176
6811
88
query I rowsort
SELECT - 4 + - col1 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
2060
3391
8095
onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT DISTINCT - col2 + - col1 DIV ( - 28 + col1 ) FROM tab1 AS cor0
----
-41
-57
-96
skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - col2 + - col1 / ( - 28 + col1 ) FROM tab1 AS cor0
----
-41
-57
-96
query I rowsort
SELECT cor0.col0 + col0 + - 22 AS col2 FROM tab2 AS cor0
----
-8
134
136
query I rowsort
SELECT 58 * - tab1.col0 AS col1 FROM tab1
----
-174
-3712
-4640
query I rowsort
SELECT ALL ( - col2 ) * col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT 9 DIV col2 FROM tab0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-5868
SELECT 9 / col2 FROM tab0
----
0
0
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT - - cor0.col0 + + CAST( NULL AS SIGNED ) + 21 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-5869
SELECT - - cor0.col0 + + CAST ( NULL AS INTEGER ) + 21 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 + ( + ( + col1 ) ) * - col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + + col2 * col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL 76 - col1 * - col2 FROM tab1
----
1324
1480
646
query I rowsort
SELECT DISTINCT - 28 + col2 * + col0 - - 19 FROM tab2
----
180
2019
2993
query I rowsort
SELECT DISTINCT - 57 - + col1 FROM tab2
----
-116
-74
-88
query I rowsort
SELECT - 43 AS col2 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT tab1.col0 - - ( col2 ) * col2 AS col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL - col2 + 65 FROM tab1
----
-31
11
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5878
SELECT + col2 + CAST( 88 AS SIGNED ) col1 FROM tab1 AS cor0
----
142
145
184
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5878
SELECT + col2 + CAST ( 88 AS INTEGER ) col1 FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT + col0 + + col0 + 12 AS col2 FROM tab0 AS cor0
----
190
60
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT + + col2 * col0 DIV col1 FROM tab2 AS cor0
----
176
34
6
skipif mysql # not compatible
query I rowsort label-5880
SELECT + + col2 * col0 / col1 FROM tab2 AS cor0
----
176
34
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT - - col1 * cor0.col2 + + 15 * col2 DIV 99 + + col2 FROM tab0 AS cor0
----
2876
7556
98
skipif mysql # not compatible
query I rowsort label-5881
SELECT - - col1 * cor0.col2 + + 15 * col2 / 99 + + col2 FROM tab0 AS cor0
----
2876
7556
98
query I rowsort
SELECT + 46 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT col0 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5884
SELECT - CAST( NULL AS SIGNED ) * col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5884
SELECT - CAST ( NULL AS INTEGER ) * col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - 96 ) FROM tab0 AS cor0
----
-96
-96
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5886
SELECT CAST( ( - cor0.col0 ) AS SIGNED ) * + cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5886
SELECT CAST ( ( - cor0.col0 ) AS INTEGER ) * + cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5887
SELECT CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT 67 DIV + col1 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-5888
SELECT 67 / + col1 FROM tab1 AS cor0
----
2
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * col2 + cor0.col0 + col2 FROM tab1 AS cor0
----
2973
3370
9392
query I rowsort
SELECT - + col0 + - col2 + col1 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT ALL - col1 * + col2 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - - 49 + - col0 * + col1 FROM tab2 AS cor0
----
-1294
-168
-4553
query I rowsort
SELECT + 45 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - col0 - 15 FROM tab2 AS cor0
----
-22
-93
-94
query I rowsort
SELECT DISTINCT 78 * 95 AS col1 FROM tab1 AS cor0
----
7410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * col0 + + col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - col1 * + 36 + - col2 FROM tab0 AS cor0
----
3063
3194
3491
query I rowsort
SELECT - col0 * 51 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-546
-6006
-7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT DISTINCT 99 * col0 + col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
16273
3562
5214
skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT 99 * col0 + col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
16273
3562
5214
query I rowsort
SELECT DISTINCT - - cor0.col0 - + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + col0 * - col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - 35 + col0 AS col1 FROM tab2 AS cor0
----
-28
43
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + col0 col1 FROM tab2 cor0
----
105
106
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5905
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 42 * + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
query I rowsort
SELECT DISTINCT - 31 FROM tab1 AS cor0
----
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + cor0.col2 col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT cor0.col2 * - 36 AS col1 FROM tab2 cor0
----
-1368
-936
-972
query I rowsort
SELECT ALL + - col0 * col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT ALL col2 * ( + tab2.col2 ) - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL col2 * ( + tab2.col2 ) - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - 11 AS col1 FROM tab0 AS cor0
----
-264
-385
-979
query I rowsort
SELECT ALL - 40 * ( + col0 ) FROM tab1 AS cor0
----
-120
-2560
-3200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - cor0.col0 ) * col1 + 1 col1 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT - 96 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT ( 51 ) + + tab0.col1 * + col2 AS col2 FROM tab0
----
148
2889
7513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5918
SELECT DISTINCT - CAST( 19 * col2 AS SIGNED ) + tab0.col1 FROM tab0
----
-1467
-541
78
skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - CAST ( 19 * col2 AS INTEGER ) + tab0.col1 FROM tab0
----
-1467
-541
78
query I rowsort
SELECT ALL - 43 * + col1 FROM tab2
----
-1333
-2537
-731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + - col0 col1 FROM tab0
----
-151
-86
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT col0 + + col0 + 17 DIV + col2 AS col1 FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5921
SELECT col0 + + col0 + 17 / + col2 AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT - col0 - + col1 * 47 AS col0 FROM tab0
----
-4066
-4366
-4594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT DISTINCT col0 - col2 * ( col0 * - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT col0 - col2 * ( col0 * - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT - tab1.col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5924
SELECT - tab1.col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col1 FROM tab1, tab2 cor0, tab0 cor1
----
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT col0 + + CAST( tab1.col0 AS SIGNED ) DIV col1 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-5929
SELECT col0 + + CAST ( tab1.col0 AS INTEGER ) / col1 FROM tab1
----
3
70
86
query I rowsort
SELECT ALL cor0.col2 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT + + col0 * 18 AS col0 FROM tab1 AS cor0
----
1152
1440
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT ALL - col0 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - col0 / ( col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col0 + col1 * 64 AS col1 FROM tab1 AS cor0
----
1661
576
752
query I rowsort
SELECT + - 49 * 25 FROM tab2 cor0
----
-1225
-1225
-1225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( ( col2 ) ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - ( + col1 ) * + col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT - CAST( col1 AS SIGNED ) DIV col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5938
SELECT - CAST ( col1 AS INTEGER ) / col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL - 36 * + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to de5cdc6ee0be92ea33d4167656eb2de6
query I rowsort
SELECT ALL - col1 + ( + col1 ) * + col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * ( + col0 ) col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 72 FROM tab1 AS cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT + 83 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5943
SELECT + 83 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + - cor0.col0 AS col2 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL + - cor0.col0 DIV - col2 + col2 AS col2 FROM tab0 cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + - cor0.col0 / - col2 + col2 AS col2 FROM tab0 cor0
----
33
36
83
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + - col1 * - cor0.col1 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1209
740
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col1 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - + 80 * + col1 + col2 * 60 AS col0 FROM tab2 AS cor0
----
-3160
-860
920
query I rowsort
SELECT ALL + - col0 + 98 FROM tab2 AS cor0
----
19
20
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 75 col0 FROM tab1 cor0
----
1950
750
975
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 * CAST ( 38 AS REAL ) AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT ALL + col1 + - 85 AS col1 FROM tab0 AS cor0
----
1
12
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5955
SELECT col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 + - 41 FROM tab1 AS cor0
----
-124
-69
-88
query I rowsort
SELECT DISTINCT ( tab0.col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT + - col2 + - ( col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + 71 + col0 FROM tab2 AS cor0
----
149
150
78
query I rowsort
SELECT DISTINCT - 75 + - col1 AS col1 FROM tab1 AS cor0
----
-101
-85
-88
query I rowsort
SELECT - 80 + col0 AS col0 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT + 35 * + col2 + 73 + col0 FROM tab0 AS cor0
----
1252
143
3032
query I rowsort
SELECT + 45 * 58 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8b34958a4e54dcb0b9d7d0be5cd9bf97
query I rowsort
SELECT ALL col0 * 27 AS col2 FROM tab2 AS cor0
----
189
2106
2133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * 28 AS col2 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT - col2 + - col0 + + col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 * col1 FROM tab0
----
-118826
-49569
-720893
query I rowsort
SELECT ( - col0 ) * col1 + 52 * - 18 - cor0.col0 AS col2 FROM tab1 cor0
----
-1017
-1640
-2056
onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT + + 65 + 44 + + col1 DIV col1 FROM tab1 cor0
----
110
110
110
skipif mysql # not compatible
query I rowsort label-5970
SELECT + + 65 + 44 + + col1 / col1 FROM tab1 cor0
----
110
110
110
query I rowsort
SELECT - col0 * - 19 + 39 FROM tab1
----
1255
1559
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT col1 * + ( - col2 ) DIV + col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5972
SELECT col1 * + ( - col2 ) / + col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 * - 5 AS col1 FROM tab0
----
-165
-410
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT + tab2.col0 DIV 39 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-5974
SELECT + tab2.col0 / 39 FROM tab2
----
0
2
2
query I rowsort
SELECT ( - 32 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab0 cor0
----
32
query I rowsort
SELECT + 13 * col0 - col0 FROM tab2 AS cor0
----
84
936
948
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5978
SELECT - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ( + col0 ) * col0 * col1 - - col2 FROM tab1 cor0
----
288
41017
83296
query I rowsort
SELECT col0 * col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + col1 * + 90 AS col2 FROM tab0 AS cor0
----
7740
8190
8730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT ALL CAST( 6 AS SIGNED ) FROM tab2
----
6
6
6
skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL CAST ( 6 AS INTEGER ) FROM tab2
----
6
6
6
query I rowsort
SELECT ALL - - 10 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT ALL + ( + col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 * + ( + col1 + col0 ) FROM tab1
----
-1209
-740
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * - col0 * - tab0.col2 + col0 * col2 * - col0 + col0 col1 FROM tab0
----
-210
-445089
3192
query I rowsort
SELECT DISTINCT ( ( - col1 ) ) - col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab1
----
128
160
6
query I rowsort
SELECT col2 + - col0 - - col2 FROM tab1
----
105
112
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT ALL - ( - col0 * + col2 ) - col2 DIV col0 FROM tab1
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - ( - col0 * + col2 ) - col2 / col0 FROM tab1
----
144
3648
7679
query I rowsort
SELECT 41 * col2 + col1 AS col1 FROM tab0
----
138
1439
3453
query I rowsort
SELECT ALL - col0 - + 98 FROM tab0
----
-122
-133
-187
query I rowsort
SELECT - col1 + tab0.col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT DISTINCT 45 DIV - tab1.col2 - col1 col2 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT 45 / - tab1.col2 - col1 col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + col2 - - 20 FROM tab1
----
116
74
77
query I rowsort
SELECT col1 + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - cor0.col0 - + 28 * col2 FROM tab0 AS cor0
----
-2385
-63
-948
query I rowsort
SELECT - 40 * - col2 AS col0 FROM tab2
----
1040
1080
1520
query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 98 FROM tab1
----
98
query I rowsort
SELECT ALL + 29 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT + col2 DIV - tab2.col0 + - col0 * - col1 FROM tab2
----
1343
214
4602
skipif mysql # not compatible
query I rowsort label-6003
SELECT + col2 / - tab2.col0 + - col0 * - col1 FROM tab2
----
1343
214
4602
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1, tab2 AS cor0
----
97
query I rowsort
SELECT + col0 + + ( 67 ) FROM tab1 AS cor0
----
131
147
70
query I rowsort
SELECT cor0.col0 + - 9 * col2 FROM tab0 AS cor0
----
-273
-649
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 + - col0 FROM tab2
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 - 90 col2 FROM tab0
----
-156
-254
-92
query I rowsort
SELECT ALL 77 * col2 - - ( col0 * + col2 ) FROM tab0
----
112
13612
3333
query I rowsort
SELECT ALL col2 + cor0.col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * + col1 col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * - 12 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * - 12 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - col0 * + 93 AS col1 FROM tab2 AS cor0
----
-651
-7254
-7347
query I rowsort
SELECT cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 - + 34 FROM tab0 cor0
----
-10
1
55
query I rowsort
SELECT - col1 - - 0 * col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - + col0 + - col1 * 29 AS col1 FROM tab0 cor0
----
-2518
-2728
-2848
query I rowsort
SELECT - col2 + - 12 + 31 FROM tab2 AS cor0
----
-19
-7
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT DISTINCT - + cor0.col2 DIV + 36 AS col1 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - + cor0.col2 / + 36 AS col1 FROM tab0 AS cor0
----
-2
0
query I rowsort
SELECT col0 * 33 FROM tab2 AS cor0
----
231
2574
2607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT ALL cor0.col0 * - CAST( + col2 * col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL cor0.col0 * - CAST ( + col2 * col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6028
SELECT ALL + 79 - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 79 - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8ec1e5b752a6eed5f6e85ed78b46af3c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6030
SELECT ALL + - col1 * + CAST( + 33 AS SIGNED ) FROM tab2 cor0
----
-1023
-1947
-561
skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL + - col1 * + CAST ( + 33 AS INTEGER ) FROM tab2 cor0
----
-1023
-1947
-561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + + cor0.col1 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col0 - col1 * 88 AS col0 FROM tab2 AS cor0
----
-1575
-2735
-5270
query I rowsort
SELECT col1 * 14 + 44 + col1 * col2 * col0 AS col2 FROM tab2 AS cor0
----
120522
51316
6337
query I rowsort
SELECT ALL col1 * - 48 + col0 FROM tab2 AS cor0
----
-1481
-2754
-737
query I rowsort
SELECT col0 * 89 + col2 AS col1 FROM tab2 AS cor0
----
650
6968
7069
query I rowsort
SELECT ALL + - cor0.col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - + col2 + - 97 FROM tab1 AS cor0
----
-151
-154
-193
query I rowsort
SELECT DISTINCT col1 + - col1 * + col1 + - 48 AS col2 FROM tab2 AS cor0
----
-320
-3470
-978
query I rowsort
SELECT DISTINCT - - col1 + - 68 AS col0 FROM tab2 AS cor0
----
-37
-51
-9
query I rowsort
SELECT - cor0.col0 + - 85 FROM tab1 AS cor0
----
-149
-165
-88
query I rowsort
SELECT + - cor0.col2 + + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + + col1 + + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - - col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - + 11 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1354
-228
-4613
query I rowsort
SELECT DISTINCT + 37 + col0 * + col2 * col2 + - col0 * + col2 FROM tab1 AS cor0
----
204325
729637
8623
onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT DISTINCT col0 + - cor0.col0 * + col2 + + cor0.col2 * + col1 DIV col1 FROM tab1 AS cor0
----
-105
-3527
-7504
skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT col0 + - cor0.col0 * + col2 + + cor0.col2 * + col1 / col1 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT tab2.col2 + 88 FROM tab2
----
114
115
126
query I rowsort
SELECT + cor0.col1 + 86 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3
query I rowsort
SELECT DISTINCT 22 * col0 AS col2 FROM tab2 AS cor0
----
154
1716
1738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6052
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col1 * - col0 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT 12 * + col1 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT 60 * + col1 * + col0 FROM tab2 AS cor0
----
13020
276120
80580
query I rowsort
SELECT 65 AS col1 FROM tab0 AS cor0
----
65
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6057
SELECT DISTINCT - col2 + col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - col2 + col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT ( + col2 ) * ( + col2 ) + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + + 7 AS col0 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT + ( 78 + + col2 ) FROM tab1
----
132
135
174
query I rowsort
SELECT + 93 * col2 + 86 FROM tab0 AS cor0
----
179
3155
7712
query I rowsort
SELECT 39 + - col0 AS col0 FROM tab0
----
-50
15
4
query I rowsort
SELECT ALL 11 AS col0 FROM tab0
----
11
11
11
query I rowsort
SELECT ALL 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * + cor0.col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT - 44 * + cor0.col0 DIV + col0 + 90 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
368596
575956
766
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - 44 * + cor0.col0 / + col0 + 90 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
368596
575956
766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + 51 col0 FROM tab1
----
61
64
77
query I rowsort
SELECT - - col1 * + col2 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col0 + + ( + col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col0 * + col1 * + col2 + col1 - - col2 AS col1 FROM tab1
----
-36413
-4132
-99731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT - col2 + + 51 * 63 FROM tab0
----
3131
3180
3212
query I rowsort
SELECT DISTINCT col0 * 38 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT 2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - 86 * - cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 7a29fa5ba23748f6b5a9eb3a86ec1bc9
query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - 59 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT + - col2 * + col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + - col0 + col1 * + col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT ALL - ( 54 ) FROM tab0 AS cor0
----
-54
-54
-54
query I rowsort
SELECT + 94 * + col1 FROM tab0 AS cor0
----
8084
8554
9118
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13
query I rowsort
SELECT ALL + col0 * col0 + - col0 * col2 + 96 AS col2 FROM tab0
----
-120
1286
719
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 47 col2 FROM tab0
----
-4042
-4277
-4559
query I rowsort
SELECT col1 * 98 FROM tab1 AS cor0
----
1274
2548
980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 20 col1 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT cor0.col2 * + col1 * col1 + + col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT + 94 * - col1 AS col2 FROM tab0 cor0
----
-8084
-8554
-9118
query I rowsort
SELECT + cor0.col0 * - 24 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 3b8a48eb981b5d832c1c00af57ac46ae
query I rowsort
SELECT DISTINCT + 59 FROM tab1, tab0 AS cor0, tab1 cor1
----
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab1
----
-63
-63
-63
query I rowsort
SELECT - 38 AS col1 FROM tab2
----
-38
-38
-38
query I rowsort
SELECT ALL - col2 + - col1 * + col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT - + ( - col1 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6100
SELECT - + ( - col1 ) / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + col2 col1 FROM tab0 AS cor0
----
112
31
63
query I rowsort
SELECT - cor0.col0 * - col1 + + col1 AS col2 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT - - col2 * 20 FROM tab1 AS cor0
----
1080
1140
1920
query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col1 + ( + 84 ) * col1 * + 63 FROM tab2 AS cor0
----
164021
312169
89947
query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col2 + 22 * + col0 FROM tab0 AS cor0
----
1876
495
769
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * - CAST ( 96 AS REAL ) AS col1 FROM tab2 AS cor0
----
-1632
-2976
-5664
query I rowsort
SELECT - ( + tab1.col2 ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + col1 * col1 * 75 AS col0 FROM tab1
----
12675
50700
7500
query I rowsort
SELECT - - col2 + 75 FROM tab0 AS cor0
----
108
157
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * col0 * col1 col1 FROM tab2
----
-106059
-1492
-358930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 57 * tab1.col2 - col0 col0 FROM tab1
----
166209
185129
525232
query I rowsort
SELECT DISTINCT 27 FROM tab0, tab0 AS cor0
----
27
query I rowsort
SELECT ALL 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-6116
SELECT + ( - tab1.col0 ) DIV 56 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
skipif mysql # not compatible
query I rowsort label-6116
SELECT + ( - tab1.col0 ) / 56 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT ALL 1 DIV cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 1 / cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT DISTINCT - + col0 + - ( col1 ) * - col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - + col0 + - ( col1 ) * - col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT + col2 + ( + col1 + cor0.col0 * + col2 ) FROM tab1 AS cor0
----
242
3715
7789
query I rowsort
SELECT ALL - ( + 83 ) FROM tab2 cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6121
SELECT ALL + CAST( ( col0 ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + CAST ( ( col0 ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + ( col1 ) * col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - 8 * col1 AS col0 FROM tab0 AS cor0
----
-688
-728
-776
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 + 73 AS col1 FROM tab2 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT ALL 93 DIV + 8 FROM tab2 cor0
----
11
11
11
skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL 93 / + 8 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT - ( - col2 ) - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 62 + - col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-1027
-6662
61
query I rowsort
SELECT + ( - col0 ) * - col1 + ( + col1 * col0 ) + + col2 * - col2 FROM tab1 AS cor0
----
-1969
-2760
-7136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ( - col2 ) DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6130
SELECT ( - col2 ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 52 * + col1 FROM tab1 AS cor0
----
1352
520
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT DISTINCT - 67 + ( - col2 ) DIV 86 FROM tab2 AS cor0
----
-67
skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT - 67 + ( - col2 ) / 86 FROM tab2 AS cor0
----
-67
query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab0 AS cor0
----
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT + 6 DIV - col2 + 77 AS col2 FROM tab0 AS cor0
----
71
77
77
skipif mysql # not compatible
query I rowsort label-6134
SELECT + 6 / - col2 + 77 AS col2 FROM tab0 AS cor0
----
71
77
77
query I rowsort
SELECT - + 3 FROM tab2 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ALL - - col2 + + col1 * + 87 AS col0 FROM tab1 AS cor0
----
1227
2316
927
query I rowsort
SELECT + col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 68 * + 66 AS col1 FROM tab2
----
4488
query I rowsort
SELECT ALL - - col0 * - ( 23 ) + col1 AS col2 FROM tab0 cor0
----
-1956
-466
-708
query I rowsort
SELECT 23 + cor0.col2 FROM tab0 AS cor0
----
105
24
56
query I rowsort
SELECT + + 55 + col2 FROM tab2 AS cor0
----
81
82
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * + col0 col1 FROM tab2
----
22
6058
6203
query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col1 * tab2.col0 * col2 + col2 FROM tab2
----
119678
51072
5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col1 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT ALL col2 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL col2 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 + col1 * col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT col2 * col1 * col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT DISTINCT - col0 DIV col0 + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT - col0 / col0 + col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col0 + + col2 - - col1 * col2 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + col0 * + col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT col0 + cor0.col1 * col2 AS col2 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT ALL cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT ALL - col0 + + col0 DIV + tab1.col2 AS col2 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - col0 + + col0 / + tab1.col2 AS col2 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - 49 AS col1 FROM tab1 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6160
SELECT + - 23 * col0 DIV col0 FROM tab0 AS cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-6160
SELECT + - 23 * col0 / col0 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT 48 + + col2 * + col0 FROM tab2 AS cor0
----
2076
237
3050
query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - ( cor0.col0 ) + col2 - + col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT + 99 + - col1 FROM tab0 AS cor0
----
13
2
8
query I rowsort
SELECT 77 AS col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT - + col0 * col0 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT ALL - - 60 + col1 AS col2 FROM tab2 cor0
----
119
77
91
query I rowsort
SELECT ALL cor0.col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + + col2 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT ALL + + col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + + col2 / col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + - col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col1 * cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT ALL - col2 + col2 * col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
114038
5076
52702
query I rowsort
SELECT tab2.col1 * tab2.col0 + + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL - col2 * col1 + col2 * + col2 AS col1 FROM tab1
----
1512
2679
7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT col0 DIV + col0 col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6176
SELECT col0 / + col0 col1 FROM tab2
----
1
1
1
query I rowsort
SELECT tab2.col1 + tab2.col2 * + col1 - - col2 AS col2 FROM tab2
----
1619
701
895
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( - col1 + col2 ) IN ( - col2 + col2 )
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + tab1.col0 * + col1 * + col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - col0 - col1 * col0 AS col1 FROM tab0
----
-2088
-3430
-8188
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT col0 + - col0 DIV col0 + col0 AS col2 FROM tab0
----
177
47
69
skipif mysql # not compatible
query I rowsort label-6182
SELECT col0 + - col0 / col0 + col0 AS col2 FROM tab0
----
177
47
69
query I rowsort
SELECT ALL col0 * - col2 + - col0 * col1 * + col2 - - col1 FROM tab2
----
-121621
-54019
-6017
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 * + col1 - tab0.col2 FROM tab0
----
12803
16298
9427
query I rowsort
SELECT - col0 * - col2 + + 33 FROM tab0 AS cor0
----
68
7331
825
query I rowsort
SELECT DISTINCT + 83 FROM tab1, tab0 cor0, tab0 AS cor1
----
83
query I rowsort
SELECT col0 * col1 - tab0.col2 AS col2 FROM tab0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT ALL - 18 DIV cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 41b5c8f13d2553e7698d5b460e5c2eb8
skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 18 / cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 41b5c8f13d2553e7698d5b460e5c2eb8
query I rowsort
SELECT 24 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT col1 * - col1 * + tab1.col0 + col1 AS col1 FROM tab1
----
-13507
-2002
-6390
onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT col1 + col2 DIV - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6191
SELECT col1 + col2 / - col1 FROM tab0
----
86
91
97
query III rowsort
SELECT * FROM tab0 WHERE NULL <> - tab0.col0
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND - col0 - - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - tab2.col0 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 - col0 AS col2 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT tab0.col1 * + col0 - - col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT ALL + col2 + - col2 * col0 DIV tab0.col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + col2 + - col2 * col0 / tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT col1 * col0 + - col1 AS col2 FROM tab1
----
1027
52
630
query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 * - tab2.col1 col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 - - col1 * - col1 AS col2 FROM tab1
----
-652
483
775
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT col1 DIV - col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6204
SELECT col1 / - col0 FROM tab2
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query III rowsort label-6205
SELECT * FROM tab1 WHERE ( + col1 DIV col0 + col1 ) > col1
----
3
26
54
skipif mysql # not compatible
query III rowsort label-6205
SELECT * FROM tab1 WHERE ( + col1 / col0 + col1 ) > col1
----
3
26
54
query I rowsort
SELECT ALL col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( NULL ) >= ( + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col0 col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT col2 * - col0 + col2 AS col2 FROM tab1
----
-108
-3591
-7584
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT - col0 * + col0 * tab0.col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT + col0 * - col1 - col1 AS col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - col1 * + col2 - + col0 AS col1 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL + + 77 * col0 + - col1 * col2 - + col2 AS col1 FROM tab2 AS cor0
----
-325
4446
5399
query I rowsort
SELECT + 8 + col0 FROM tab1 AS cor0
----
11
72
88
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) FROM tab2
----
17
31
59
query I rowsort
SELECT - 3 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL col2 + + col2 + - ( + col0 ) AS col1 FROM tab0
----
-33
42
75
query I rowsort
SELECT DISTINCT 70 * 57 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3990
query I rowsort
SELECT - col0 + col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 * - 76 + - 82 * + col2 FROM tab2 AS cor0
----
-4408
-4570
-6616
query I rowsort
SELECT col1 * + col0 + + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 9 AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0 cor0
----
86
91
97
query I rowsort
SELECT col0 + - col2 * - col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + 8 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT col2 * + 55 AS col2 FROM tab1
----
2970
3135
5280
query I rowsort
SELECT + 66 FROM tab0, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT 79 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + + 84 AS col0 FROM tab2 cor0
----
84
84
84
query I rowsort
SELECT cor1.col0 - + tab1.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9f76c248bed799eecbe38e7275add06f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT DISTINCT - + 51 * cor0.col2 - - CAST( NULL AS SIGNED ) * ( col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT - + 51 * cor0.col2 - - CAST ( NULL AS INTEGER ) * ( col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 56 * col1 AS col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT col0 + col2 * 69 AS col1 FROM tab0 cor0
----
104
2301
5747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT + 49 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL 93 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - + 73 AS col1 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT cor0.col2 + + 71 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 927b9f07be6fdc7675d085262826f124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6245
SELECT col1 + - CAST( NULL AS SIGNED ) * tab2.col1 * col1 + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6245
SELECT col1 + - CAST ( NULL AS INTEGER ) * tab2.col1 * col1 + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 * 79 AS col2 FROM tab0 AS cor0
----
-2765
-576542
-62568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT col2 * CAST( NULL AS SIGNED ) + + tab0.col2 - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6247
SELECT col2 * CAST ( NULL AS INTEGER ) + + tab0.col2 - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * - col1 + - col0 - col1 AS col0 FROM tab2
----
193
3344
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT - col1 - - col1 * 33 DIV col2 AS col0 FROM tab0
----
-55
0
3104
skipif mysql # not compatible
query I rowsort label-6249
SELECT - col1 - - col1 * 33 / col2 AS col0 FROM tab0
----
-55
0
3104
query I rowsort
SELECT + col2 + ( + col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - - 5 FROM tab0 AS cor0
----
5
query I rowsort
SELECT - - 42 FROM tab1 AS cor0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT cor0.col2 DIV col0 + col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-6253
SELECT cor0.col2 / col0 + col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT ALL col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 + - col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + col1 + cor0.col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT 67 + 90 AS col0 FROM tab2 AS cor0
----
157
157
157
query I rowsort
SELECT - col2 * + col2 * tab1.col1 AS col2 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6259
SELECT + CAST( - 95 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
skipif mysql # not compatible
query I rowsort label-6259
SELECT + CAST ( - 95 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT DISTINCT + 58 * + col0 AS col1 FROM tab2 cor0
----
406
4524
4582
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 58 + - col0 AS col2 FROM tab1 AS cor0
----
-122
-138
-61
query I rowsort
SELECT col1 + col0 - - col0 * col0 AS col0 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT ALL 36 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
3096
3276
3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-6265
SELECT DISTINCT - col1 + - col2 * col0 DIV CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - col1 + - col2 * col0 / CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + cor0.col2 + 90 + + col1 FROM tab2 AS cor0
----
145
148
175
query I rowsort
SELECT + col0 * + col2 * col1 + + col1 * 42 FROM tab2 AS cor0
----
122130
51748
7161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 * col2 col1 FROM tab1 cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT + col0 DIV - col2 + - cor0.col1 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-6269
SELECT + col0 / - col2 + - cor0.col1 FROM tab1 AS cor0
----
-11
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT DISTINCT col0 + + CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT col0 + + CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 + 73 FROM tab2 AS cor0
----
100
111
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT DISTINCT + col1 DIV 75 + - col0 DIV col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-32
-35
-82
skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + col1 / 75 + - col0 / col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-32
-35
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT + - col1 DIV - 35 AS col0 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6273
SELECT + - col1 / - 35 AS col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - - col2 + ( + col0 ) * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-119626
-50996
-5832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT - 57 DIV 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-6276
SELECT - 57 / 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 43 col1 FROM tab0 AS cor0
----
3698
3913
4171
query I rowsort
SELECT ALL - col1 * col2 * col2 - ( col1 ) FROM tab0
----
-194
-611975
-93740
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + 30 AS col2 FROM tab1 AS cor0
----
39
4126
6430
query I rowsort
SELECT ALL + 0 * - col2 - 52 * 97 FROM tab1 AS cor0
----
-5044
-5044
-5044
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT DISTINCT + + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + + col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0, tab1 cor0
----
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * + col0 col0 FROM tab1
----
1344
1680
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6285
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + - col1 + - col0 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + - col1 + - col0 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT - 8 * 79 + + tab0.col0 + 34 FROM tab0
----
-509
-563
-574
query I rowsort
SELECT DISTINCT + col0 - + col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT - 85 + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2831
3164
9131
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + - ( + col0 ) FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT - cor0.col1 * + col2 * + CAST( 42 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23940
-52416
-58968
skipif mysql # not compatible
query I rowsort label-6292
SELECT - cor0.col1 * + col2 * + CAST ( 42 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23940
-52416
-58968
query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col1 + col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * col2 * 54 col0 FROM tab1 AS cor0
----
277020
292410
492480
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - col1 - cor0.col1 * - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL col0 * + col0 - 75 AS col1 FROM tab2 AS cor0
----
-26
6009
6166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 + col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - ( col2 ) * ( col0 ) * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT DISTINCT ( - col2 ) * - ( - 51 ) FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT - - col2 * cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + + 72 * - col0 AS col0 FROM tab2 AS cor0
----
-504
-5616
-5688
query I rowsort
SELECT col0 + col2 + - ( 79 ) * col1 FROM tab1 AS cor0
----
-1997
-669
-851
query I rowsort
SELECT + col0 + - col1 + col0 FROM tab2
----
-17
141
97
query I rowsort
SELECT DISTINCT - col0 + col1 * + ( + col2 ) FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT + + 91 FROM tab2, tab1, tab1 AS cor0
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT DISTINCT CAST( NULL AS SIGNED ) / 29 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 29 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT cor1.col0 DIV 90 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6310
SELECT cor1.col0 / 90 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT DISTINCT + col2 + - col1 DIV 53 FROM tab2
----
25
27
38
skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + col2 + - col1 / 53 FROM tab2
----
25
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT ALL - 95 * cor0.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-6313
SELECT ALL - 95 * cor0.col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + ( + col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * - col1 + - 53 AS col2 FROM tab1 AS cor0
----
-153
-222
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT - col1 DIV + ( + col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6317
SELECT - col1 / + ( + col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT + col1 + col1 * col1 DIV - col1 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6318
SELECT + col1 + col1 * col1 / - col1 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 + ( - col2 ) - col2 FROM tab1 cor0
----
-162
-171
-288
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * col0 * col1 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT col0 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col0 * + ( ( + col2 ) ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT - col2 DIV 79 + - col1 + + col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6323
SELECT - col2 / 79 + - col1 + + col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + + col0 + - col0 + 27 AS col1 FROM tab1 AS cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT col2 DIV + col0 col1 FROM tab1 cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6325
SELECT col2 / + col0 col1 FROM tab1 cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT + 80 + + col1 DIV col0 FROM tab1 AS cor0
----
80
80
88
skipif mysql # not compatible
query I rowsort label-6326
SELECT + 80 + + col1 / col0 FROM tab1 AS cor0
----
80
80
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT DISTINCT + 25 DIV - 2 AS col0 FROM tab0 AS cor0
----
-12
skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + 25 / - 2 AS col0 FROM tab0 AS cor0
----
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT col2 * 77 DIV col0 FROM tab0 AS cor0
----
105
2
70
skipif mysql # not compatible
query I rowsort label-6328
SELECT col2 * 77 / col0 FROM tab0 AS cor0
----
105
2
70
query I rowsort
SELECT DISTINCT 77 * + col2 + col2 * 86 FROM tab2 cor0
----
4238
4401
6194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab0.col2 col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 * 94 + + col2 * ( - col2 ) FROM tab0 AS cor0
----
1830
6995
9117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - cor0.col0 ) ) col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( 90 ) FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT ALL 24 * ( col0 ) FROM tab1 AS cor0
----
1536
1920
72
query I rowsort
SELECT ALL + - col2 * 88 + - col0 FROM tab0 cor0
----
-123
-2928
-7305
query I rowsort
SELECT ALL - + col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - 30 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2886
3219
9186
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6338
SELECT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab0.col2 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4861385979e8c7c39397a7bae15e6e96
query I rowsort
SELECT ALL + tab2.col1 * - col0 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - - col1 * + col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT col1 DIV + col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6342
SELECT col1 / + col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * - ( col2 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT + col2 + + 50 DIV - col0 AS col0 FROM tab2 AS cor0
----
20
26
38
skipif mysql # not compatible
query I rowsort label-6345
SELECT + col2 + + 50 / - col0 AS col0 FROM tab2 AS cor0
----
20
26
38
query I rowsort
SELECT ALL + 54 + + col2 FROM tab0 AS cor0
----
136
55
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT - + CAST( 29 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6347
SELECT - + CAST ( 29 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT 99 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT ALL - 45 AS col2 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT - - cor0.col0 * col0 + 53 * 78 FROM tab1 AS cor0
----
10534
4143
8230
onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT DISTINCT + + cor0.col0 * col2 DIV col2 col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + + cor0.col0 * col2 / col2 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col2 * 40 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT - col0 * 36 + col0 FROM tab0 cor0
----
-1225
-3115
-840
query I rowsort
SELECT + ( - col0 + col2 ) * + col0 FROM tab0
----
-1190
-623
216
query I rowsort
SELECT ALL 36 FROM tab2
----
36
36
36
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 - 45 FROM tab1 AS cor0
----
117
3603
7635
query I rowsort
SELECT ALL - col1 + + col0 * 49 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-417
2410
3087
query I rowsort
SELECT DISTINCT - col1 * col0 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT - col1 * tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + + col0 + - col2 * - col0 * col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT DISTINCT col0 + 83 + - col2 FROM tab0 AS cor0
----
117
74
90
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT - ( + 46 * + cor0.col0 ) AS col2 FROM tab0, tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT ALL - col1 + 86 AS col0 FROM tab2 AS cor0
----
27
55
69
query I rowsort
SELECT ALL + + col0 + 21 AS col2 FROM tab0 AS cor0
----
110
45
56
query I rowsort
SELECT ALL - col1 * + col0 * ( + col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT + - 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT ALL col2 + ( + ( col2 ) ) * 41 AS col2 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT ( - 75 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT DISTINCT col1 * 72 * tab2.col1 + col1 FROM tab2
----
20825
250691
69223
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - col1 * + col2 + + col1 DIV + col0 AS col2 FROM tab1
----
-1248
-1396
-570
skipif mysql # not compatible
query I rowsort label-6371
SELECT - col1 * + col2 + + col1 / + col0 AS col2 FROM tab1
----
-1248
-1396
-570
query I rowsort
SELECT - col2 + 32 * col2 AS col0 FROM tab0 AS cor0
----
1023
2542
31
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - col2 AS REAL ) * + col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + tab2.col0 + - ( col2 ) * col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT col1 + - col2 + col2 FROM tab1
----
10
13
26
query I rowsort
SELECT 5 AS col0 FROM tab1
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6377
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT + CAST( + 4 AS SIGNED ) FROM tab0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-6378
SELECT + CAST ( + 4 AS INTEGER ) FROM tab0
----
4
4
4
query I rowsort
SELECT ALL 37 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 cor0, tab1 cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT ALL + CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col2 * + 26 FROM tab2
----
676
702
988
query I rowsort
SELECT 87 AS col2 FROM tab0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 - col0 col2 FROM tab0 cor0
----
-115
-50
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT DISTINCT col1 DIV + col1 AS col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT col1 / + col1 AS col0 FROM tab2 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6386
SELECT + col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab2.col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( - col1 ) * + 94 FROM tab0 cor0
----
-8084
-8554
-9118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col2 * + col0 + - ( 12 ) AS col0 FROM tab0 AS cor0
----
23
7286
780
query I rowsort
SELECT - + col0 + col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT + - col0 DIV cor0.col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6393
SELECT + - col0 / cor0.col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT col1 * col2 * + col0 + 43 AS col2 FROM tab0 AS cor0
----
3438
664161
68155
query I rowsort
SELECT ALL + 70 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT ALL + 26 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL + 26 / col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT DISTINCT tab2.col0 + + col0 + col0 FROM tab2
----
21
234
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6398
SELECT CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 79 * col2 FROM tab0
----
2607
6478
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT ALL + col1 DIV 36 AS col1 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + col1 / 36 AS col1 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL - ( + col1 ) + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 57 + col0 AS col2 FROM tab1 cor0
----
121
137
60
query I rowsort
SELECT ( + ( - col2 ) ) * + 95 + - col1 AS col2 FROM tab2 cor0
----
-2529
-2596
-3627
query I rowsort
SELECT ALL + - 67 * col0 + - col1 FROM tab1 AS cor0
----
-227
-4298
-5373
query I rowsort
SELECT DISTINCT + + col1 + 0 * col0 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + cor0.col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + ( col1 ) * col1 + 58 FROM tab0 AS cor0
----
7454
8339
9467
query I rowsort
SELECT + 99 * col2 + ( + ( col0 ) * + col1 ) FROM tab2 AS cor0
----
2890
5105
7176
query I rowsort
SELECT ALL + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col0 * + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT + 60 * + 15 + - col1 FROM tab2
----
841
869
883
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT DISTINCT + col2 + + col2 DIV - tab1.col1 + - 96 AS col2 FROM tab1
----
-44
-7
skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + col2 + + col2 / - tab1.col1 + - 96 AS col2 FROM tab1
----
-44
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 + col0 col1 FROM tab1
----
143
159
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6415
SELECT CAST( NULL AS SIGNED ) + - 46 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6415
SELECT CAST ( NULL AS INTEGER ) + - 46 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 - col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + 21 + col0 FROM tab0
----
110
45
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT ALL - col2 DIV + ( 15 ) - col0 * 61 AS col2 FROM tab1 cor0
----
-186
-3907
-4886
skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - col2 / + ( 15 ) - col0 * 61 AS col2 FROM tab1 cor0
----
-186
-3907
-4886
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * + ( - cor0.col1 ) FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL - col2 * - col1 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - - col0 - ( + col2 ) AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - + col1 + + ( - col0 ) FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT DISTINCT + + col0 + + ( - col1 + col0 * CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + + col0 + + ( - col1 + col0 * CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 91 * col2 col1 FROM tab0 AS cor0
----
-258258
-679042
-8827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6425
SELECT + col0 * CAST( 50 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
350
3900
3950
skipif mysql # not compatible
query I rowsort label-6425
SELECT + col0 * CAST ( 50 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
350
3900
3950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT + col0 * 58 AS col2 FROM tab1 AS cor0
----
174
3712
4640
query I rowsort
SELECT ALL - col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + + col0 + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col0 * tab2.col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 76 FROM tab1, tab2, tab0 AS cor0
----
76
query I rowsort
SELECT DISTINCT + col1 - 60 AS col1 FROM tab1
----
-34
-47
-50
query I rowsort
SELECT DISTINCT - col1 - + col0 * 95 AS col1 FROM tab1
----
-311
-6090
-7613
query I rowsort
SELECT col2 + col2 - col1 AS col2 FROM tab1
----
104
179
82
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( 11 * + col1 AS REAL ) FROM tab2 AS cor0
----
16874
7106
9207
onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) DIV - col1 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) / - col1 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab0.col0 * - col0 + - col1 col1 FROM tab0
----
-13910
-42972
-705060
query I rowsort
SELECT + col0 * - 28 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT DISTINCT col0 * 47 AS col2 FROM tab2
----
329
3666
3713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + - 28 col1 FROM tab1
----
1220
1376
542
query I rowsort
SELECT DISTINCT + col1 + 71 - cor0.col0 FROM tab1 AS cor0
----
17
4
94
query I rowsort
SELECT + ( cor0.col0 ) + + col1 * + ( + col1 ) AS col1 FROM tab0 cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT ALL + - ( - 55 ) DIV + col0 AS col0 FROM tab1 cor0
----
0
0
18
skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + - ( - 55 ) / + col0 AS col0 FROM tab1 cor0
----
0
0
18
query I rowsort
SELECT + col0 - ( cor0.col0 ) FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT DISTINCT - ( - 62 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - ( - 62 ) / + col0 AS col1 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + cor0.col0 + 67 * col1 AS col0 FROM tab1 AS cor0
----
1745
734
951
query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab2 AS cor0
----
92
query I rowsort
SELECT ALL + - 9 FROM tab0 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - + ( col2 ) * col1 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + ( + cor0.col2 ) * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 20 * 43 FROM tab2 AS cor0
----
860
query I rowsort
SELECT col2 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ( 97 ) * col1 AS col0 FROM tab1 AS cor0
----
1261
2522
970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + cor0.col1 * - col1 * - 31 col0 FROM tab0 AS cor0
----
229243
256629
291678
query I rowsort
SELECT 65 AS col2 FROM tab0
----
65
65
65
query I rowsort
SELECT DISTINCT + + 97 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col1 col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor0.col0 + col1 * col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 24 + col2 AS col0 FROM tab2 cor0
----
50
51
62
query I rowsort
SELECT DISTINCT col2 * cor0.col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * + col0 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT ALL + ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - + col1 + - col2 + 68 AS col2 FROM tab2 AS cor0
----
-17
10
13
query I rowsort
SELECT + + col0 + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 * - col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT - col0 * 22 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT DISTINCT 63 FROM tab0, tab2, tab0 cor0
----
63
query I rowsort
SELECT + col2 + - col0 + col0 * - col1 FROM tab2 AS cor0
----
-1384
-197
-4654
query I rowsort
SELECT ALL 92 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT ALL - col2 * + col2 - + col2 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT ALL col2 + tab2.col2 - - col2 * col0 AS col1 FROM tab2
----
2080
243
3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + tab1.col1 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1a4f43ea4186b2b16e5524688d4e5ca6
query I rowsort
SELECT DISTINCT - 97 - + col1 AS col2 FROM tab0
----
-183
-188
-194
query I rowsort
SELECT + + col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * col0 * 25 AS col1 FROM tab0
----
-202475
-51600
-84875
query I rowsort
SELECT - col2 * col1 * col2 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col0 * + col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + - col2 * + ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col0 + ( - 53 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1300
-1424
-1935
query I rowsort
SELECT ALL + col0 + ( + 71 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
1924
1924
2777
query I rowsort
SELECT - col2 * + 93 * - col0 + col0 FROM tab2 cor0
----
17584
188682
279265
onlyif mysql # use DIV operator for integer division
query I rowsort label-6488
SELECT col2 * col1 + + tab2.col1 DIV col0 AS col2 FROM tab2 WHERE NOT ( + col1 ) IN ( col0 * col2 )
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-6488
SELECT col2 * col1 + + tab2.col1 / col0 AS col2 FROM tab2 WHERE NOT ( + col1 ) IN ( col0 * col2 )
----
1534
646
841
query I rowsort
SELECT col0 + + col1 * col2 * col0 FROM tab1
----
36544
4215
99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 - col1 col1 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT + col0 DIV - col0 + col1 * + col2 FROM tab0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-6491
SELECT + col0 / - col0 + col1 * + col2 FROM tab0
----
2837
7461
96
query I rowsort
SELECT + col1 * + tab0.col2 + col2 * tab0.col2 AS col1 FROM tab0
----
14186
3927
98
query I rowsort
SELECT ALL - col0 - - col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT col2 * + col2 - - col2 FROM tab1
----
2970
3306
9312
query III rowsort
SELECT * FROM tab1 WHERE col2 * col2 = - col2
----
query I rowsort
SELECT - col1 + col1 * col1 * + tab0.col1 - - col1 FROM tab0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT + col2 DIV - col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6497
SELECT + col2 / - col0 AS col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT - col2 + - col0 * - col2 - col2 FROM tab0
----
33
7134
726
query I rowsort
SELECT - ( - col1 ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 41 + col1 * 34 AS col2 FROM tab1 AS cor0
----
299
401
843
query I rowsort
SELECT + + 91 * col1 + - 69 AS col2 FROM tab1 AS cor0
----
1114
2297
841
query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + tab1.col0 * - col1 * - col0 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL - col1 - col0 * - col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL - col2 + + tab0.col2 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE NULL < col0 + + col1 + col0 * col2
----
query I rowsort
SELECT + - ( cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - + cor0.col1 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - 10 FROM tab1 AS cor0
----
-10
query III rowsort
SELECT * FROM tab1 WHERE + col1 / col1 + - col0 > NULL
----
query I rowsort
SELECT - 74 + + cor0.col0 * - 88 + col1 FROM tab1 AS cor0
----
-312
-5696
-7101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - - col1 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 66 * col1 + ( - 39 ) + + col1 AS col1 FROM tab1
----
1703
631
832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + - col0 col0 FROM tab2
----
-124
-125
-53
query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT + col2 * col0 + + cor0.col1 * col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT col0 + - col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT ALL + col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT DISTINCT - col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ALL col2 + - col2 DIV col0 col2 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL col2 + - col2 / col0 col2 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT DISTINCT + 24 + col2 FROM tab0 cor0
----
106
25
57
query I rowsort
SELECT DISTINCT - - col1 * - ( - col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6524
SELECT DISTINCT - - col2 * CAST( - 74 AS SIGNED ) * col2 FROM tab1 cor0
----
-215784
-240426
-681984
skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT - - col2 * CAST ( - 74 AS INTEGER ) * col2 FROM tab1 cor0
----
-215784
-240426
-681984
query I rowsort
SELECT cor0.col0 * ( - col0 ) + col1 FROM tab2 cor0
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT DISTINCT - col2 + col2 DIV - 68 col1 FROM tab0 AS cor0
----
-1
-33
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - col2 + col2 / - 68 col1 FROM tab0 AS cor0
----
-1
-33
-83
query I rowsort
SELECT cor0.col2 * + 21 AS col2 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT - 6 AS col1 FROM tab0
----
-6
-6
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6529
SELECT ALL 52 - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL 52 - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col0 + - col1 + - col2 AS col2 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT - col1 + - col0 + col2 * 54 FROM tab0
----
-78
1672
4248
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - col1 * col1 - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT 60 AS col0 FROM tab1 AS cor0
----
60
60
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6536
SELECT ALL + - ( 85 ) + col0 * + CAST( - 6 AS SIGNED ) * + col0 FROM tab0 cor0
----
-3541
-47611
-7435
skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + - ( 85 ) + col0 * + CAST ( - 6 AS INTEGER ) * + col0 FROM tab0 cor0
----
-3541
-47611
-7435
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT + 6 + col1 FROM tab0 AS cor0
----
103
92
97
query I rowsort
SELECT ALL ( - col1 * col2 ) AS col2 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0 cor0
----
-97
query I rowsort
SELECT + ( + 96 ) FROM tab2
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT DISTINCT 95 DIV + col0 FROM tab2
----
1
13
skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT 95 / + col0 FROM tab2
----
1
13
query I rowsort
SELECT 84 AS col2 FROM tab2
----
84
84
84
query I rowsort
SELECT - 3 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT ALL + 91 AS col1 FROM tab1
----
91
91
91
query I rowsort
SELECT ALL col0 * - tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 38 + tab0.col2 FROM tab0
----
120
39
71
query I rowsort
SELECT - ( - col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - 25 * col2 FROM tab0 cor0
----
-2050
-25
-825
query I rowsort
SELECT ALL cor0.col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT + col1 DIV - col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6553
SELECT + col1 / - col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT + col1 * col1 + - col2 * col2 FROM tab1 AS cor0
----
-2240
-3149
-9047
onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT ALL cor0.col0 DIV col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL cor0.col0 / col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT DISTINCT - col1 * + col2 * + col1 + - cor0.col2 FROM tab1 cor0
----
-16320
-36558
-5757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 29 col2 FROM tab1
----
-290
-377
-754
query I rowsort
SELECT DISTINCT - - 15 FROM tab1 cor0
----
15
query I rowsort
SELECT DISTINCT 25 FROM tab0, tab0 AS cor0
----
25
query I rowsort
SELECT ALL ( - col0 * col2 + + col0 ) FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT ( 22 * col0 + + col1 ) AS col1 FROM tab2
----
1755
1775
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6562
SELECT - CAST( NULL AS SIGNED ) * col2 + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6562
SELECT - CAST ( NULL AS INTEGER ) * col2 + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT DISTINCT - - col1 DIV + 66 + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - - col1 / + 66 + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT - - 83 + + col1 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT DISTINCT + 34 + 40 FROM tab1 AS cor0
----
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6566
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col2 + cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col2 + cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor1.col2 * cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT ALL + CAST( NULL AS SIGNED ) + 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + CAST ( NULL AS INTEGER ) + 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT 18 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
18
skipif mysql # not compatible
query I rowsort label-6569
SELECT 18 / col2 AS col2 FROM tab0 AS cor0
----
0
0
18
query I rowsort
SELECT ALL + - cor0.col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - 28 * col1 AS col2 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col1 + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - - 47 FROM tab2 cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ( + ( + col0 ) ) DIV col1 + - col1 * - col1 FROM tab1
----
106
175
676
skipif mysql # not compatible
query I rowsort label-6577
SELECT ( + ( + col0 ) ) / col1 + - col1 * - col1 FROM tab1
----
106
175
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT DISTINCT - col1 DIV + ( - col0 ) AS col2 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - col1 / + ( - col0 ) AS col2 FROM tab2
----
0
4
query I rowsort
SELECT - cor0.col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + 3 + + col2 FROM tab1
----
57
60
99
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab2
----
-61
query I rowsort
SELECT ALL col1 + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab1 WHERE NOT NULL < col0
----
query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL ) BETWEEN - col1 * - col2 AND ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col2 >= ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col1 FROM tab0 WHERE ( NULL ) < col0
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col0 * + col2 AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 / + col2
----
query I rowsort
SELECT + col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT DISTINCT col0 DIV col0 + col1 * tab0.col1 FROM tab0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT col0 / col0 + col1 * tab0.col1 FROM tab0
----
7397
8282
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT - col2 DIV + col1 + + col2 DIV - col0 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-6594
SELECT - col2 / + col1 + + col2 / - col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + tab1.col0 + col1 * col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col0 * col0 + + tab0.col2 * col0 FROM tab0
----
1260
1368
15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT col2 DIV col0 + col2 * col2 * + col2 AS col0 FROM tab2
----
17576
19686
54872
skipif mysql # not compatible
query I rowsort label-6597
SELECT col2 / col0 + col2 * col2 * + col2 AS col0 FROM tab2
----
17576
19686
54872
query I rowsort
SELECT - col1 * col0 + col1 * + col0 * col2 + col0 AS col0 FROM tab2
----
115128
49770
5649
onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT ALL col1 DIV + col1 + + col0 * col0 AS col1 FROM tab2
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL col1 / + col1 + + col0 * col0 AS col1 FROM tab2
----
50
6085
6242
query I rowsort
SELECT col1 + tab1.col2 * col2 * + tab1.col0 FROM tab1
----
207946
737293
8774
query I rowsort
SELECT ALL - - col2 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL + + col1 - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 - cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - col1 + - col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT - + col2 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - - col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - + col1 * - col0 - col2 * - col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT + 42 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1469
-3656
-975
query I rowsort
SELECT ALL - + 36 * col2 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1970
-2062
-3469
query I rowsort
SELECT ALL - ( + col1 ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - cor0.col2 * col1 - + cor0.col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT + col1 * - 67 * col0 - 83 * 98 DIV + col1 FROM tab1 AS cor0
----
-43693
-5538
-70305
skipif mysql # not compatible
query I rowsort label-6613
SELECT + col1 * - 67 * col0 - 83 * 98 / + col1 FROM tab1 AS cor0
----
-43693
-5538
-70305
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT - tab1.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6614
SELECT - tab1.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 58 FROM tab0, tab0 AS cor0
----
58
query I rowsort
SELECT + + 62 * 28 - col1 * + 7 AS col0 FROM tab2 AS cor0
----
1323
1519
1617
onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT ( col2 ) + cor0.col2 DIV col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6617
SELECT ( col2 ) + cor0.col2 / col0 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT + 67 + col2 FROM tab1
----
121
124
163
query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 * col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT + 94 DIV col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6621
SELECT + 94 / col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL ( - col1 + col1 ) * 99 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 + + col2 * col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT + - col0 * - 32 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 71 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT ALL + + ( + cor0.col1 ) * CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + + ( + cor0.col1 ) * CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - tab2.col2 + - 10 FROM tab2
----
-36
-37
-48
query I rowsort
SELECT 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f
query I rowsort
SELECT col2 * - col1 + col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - + col0 + - cor0.col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - + col1 * col0 + 75 AS col0 FROM tab1 AS cor0
----
-3
-565
-965
query I rowsort
SELECT DISTINCT + + col2 * + col2 + 64 * col0 FROM tab0 cor0
----
12420
2241
2625
query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT cor0.col1 * 42 * col0 FROM tab2 cor0
----
193284
56406
9114
query I rowsort
SELECT + col2 * 11 FROM tab0 AS cor0
----
11
363
902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT + cor0.col2 * CAST( 35 + col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-4620
-919548
-95832
skipif mysql # not compatible
query I rowsort label-6637
SELECT + cor0.col2 * CAST ( 35 + col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-4620
-919548
-95832
query I rowsort
SELECT col0 * + 16 FROM tab1 AS cor0
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1 AS cor0
----
23
query I rowsort
SELECT - + ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT ALL + + 91 * - 8 AS col1 FROM tab2 AS cor0
----
-728
-728
-728
query I rowsort
SELECT ALL + 33 AS col1 FROM tab1 AS cor0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT ALL - 62 DIV + 44 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - 62 / + 44 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + col2 + 85 FROM tab1 AS cor0
----
139
142
181
query I rowsort
SELECT DISTINCT 7 + + col2 AS col2 FROM tab1
----
103
61
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT DISTINCT + col1 DIV col0 + ( col0 ) AS col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + col1 / col0 + ( col0 ) AS col0 FROM tab0
----
27
37
90
query I rowsort
SELECT - 37 * - col2 AS col0 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - + 67 + col0 AS col0 FROM tab2 AS cor0
----
-60
11
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL - col0 + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - col0 + - col1 / cor0.col1 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT - col2 DIV + 11 AS col1 FROM tab0 AS cor0
----
-3
-7
0
skipif mysql # not compatible
query I rowsort label-6654
SELECT - col2 / + 11 AS col1 FROM tab0 AS cor0
----
-3
-7
0
query I rowsort
SELECT - cor0.col0 + ( col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + - 62 FROM tab2, tab0, tab1 cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - + col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col2 + + 46 FROM tab0 AS cor0
----
-36
13
45
query I rowsort
SELECT ALL - col0 * 34 FROM tab0 AS cor0
----
-1190
-3026
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 15 + + col1 * col1 AS col2 FROM tab1
----
154
661
85
query I rowsort
SELECT - tab1.col1 + + tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + 58 * - col2 AS col2 FROM tab2
----
-1508
-1566
-2204
query I rowsort
SELECT 20 * + col0 AS col0 FROM tab0
----
1780
480
700
query I rowsort
SELECT - 43 AS col2 FROM tab2
----
-43
-43
-43
query I rowsort
SELECT DISTINCT 66 + col2 AS col2 FROM tab2
----
104
92
93
query I rowsort
SELECT ALL + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6670
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT + 42 AS col0 FROM tab0
----
42
42
42
query I rowsort
SELECT DISTINCT + ( col0 ) * - cor0.col1 + - col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT 42 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10
query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 - col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - cor0.col0 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * - ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 1 + - col1 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - tab0.col1 + 64 FROM tab0
----
-22
-27
-33
query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab0, tab1 cor0
----
3
query I rowsort
SELECT + tab1.col2 + + ( col0 ) FROM tab1
----
121
176
57
query I rowsort
SELECT - col1 * + col1 + col0 * col1 + col1 AS col0 FROM tab1 cor0
----
-572
550
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab2, tab2 AS cor0
----
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT ALL - col1 + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col1 + - 48 * col1 * - col1 AS col2 FROM tab0
----
354922
397397
451535
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 97 col1 FROM tab2 AS cor0
----
-2522
-2619
-3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + - 87 AS col0 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT DISTINCT - col2 + + 63 AS col2 FROM tab1 cor0
----
-33
6
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT ALL 86 DIV 84 - col2 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 86 / 84 - col2 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT - col1 + - col0 * col2 * 86 AS col1 FROM tab1 AS cor0
----
-13958
-313738
-660493
query I rowsort
SELECT ALL - col0 * col2 - col0 AS col1 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT DISTINCT + CAST( 63 AS SIGNED ) + col1 FROM tab2 cor0
----
122
80
94
skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT + CAST ( 63 AS INTEGER ) + col1 FROM tab2 cor0
----
122
80
94
query I rowsort
SELECT + 42 + col1 AS col0 FROM tab1 AS cor0
----
52
55
68
query I rowsort
SELECT ALL - 26 AS col1 FROM tab0 cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT - ( + 68 ) AS col1 FROM tab2 AS cor0
----
-68
query I rowsort
SELECT + + col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - 60 * + 19 AS col2 FROM tab1 cor0
----
-1140
-1140
-1140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT CAST( 82 AS SIGNED ) + - col0 AS col1 FROM tab2 cor0
----
3
4
75
skipif mysql # not compatible
query I rowsort label-6704
SELECT CAST ( 82 AS INTEGER ) + - col0 AS col1 FROM tab2 cor0
----
3
4
75
query I rowsort
SELECT + + col0 * + col2 + col2 * col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT + col2 * + 52 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT ALL - col1 + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT - - col0 + - cor0.col2 + col0 * cor0.col2 DIV 56 FROM tab0 AS cor0
----
137
34
5
skipif mysql # not compatible
query I rowsort label-6708
SELECT - - col0 + - cor0.col2 + col0 * cor0.col2 / 56 FROM tab0 AS cor0
----
137
34
5
query I rowsort
SELECT ALL - col2 * + 72 AS col0 FROM tab0
----
-2376
-5904
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT ALL - col2 DIV col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - col2 / col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT 61 * tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 86ad322ab690fae692344a42a0d894c1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT + 80 DIV + cor0.col2 FROM tab0 AS cor0
----
0
2
80
skipif mysql # not compatible
query I rowsort label-6712
SELECT + 80 / + cor0.col2 FROM tab0 AS cor0
----
0
2
80
query I rowsort
SELECT ALL - 83 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT ALL + 69 AS col0 FROM tab2
----
69
69
69
query I rowsort
SELECT ( + col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT - + CAST( NULL AS SIGNED ) * + col2 + col1 * 60 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6716
SELECT - + CAST ( NULL AS INTEGER ) * + col2 + col1 * 60 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 13 AS col2 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT + - 31 * + cor0.col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL + 35 + - col1 FROM tab2 cor0
----
-24
18
4
query I rowsort
SELECT + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + ( col0 ) * 41 AS col1 FROM tab0 AS cor0
----
1435
3649
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT 82 * cor0.col0 + - CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1882
2773
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6722
SELECT 82 * cor0.col0 + - CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1882
2773
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 23 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT - col1 DIV col0 + col1 col2 FROM tab1
----
10
13
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6727
SELECT - col1 / col0 + col1 col2 FROM tab1
----
10
13
18
query I rowsort
SELECT col1 + + 54 AS col1 FROM tab0
----
140
145
151
query I rowsort
SELECT ALL - col0 + 84 AS col0 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT + + col2 + - 4 FROM tab2 cor0
----
22
23
34
query I rowsort
SELECT DISTINCT + cor0.col0 * ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT ALL col0 * + col2 + col1 DIV cor0.col0 FROM tab2 AS cor0
----
193
2028
3002
skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL col0 * + col2 + col1 / cor0.col0 FROM tab2 AS cor0
----
193
2028
3002
query I rowsort
SELECT - col1 + 26 FROM tab2 AS cor0
----
-33
-5
9
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 + col0 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + - cor0.col0 * col1 + - 99 AS col2 FROM tab2 cor0
----
-1442
-316
-4701
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT DISTINCT - + col0 + CAST( + 92 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT - + col0 + CAST ( + 92 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col1 * - 56 - - col1 col0 FROM tab2 AS cor0
----
-1732
-3271
-973
query I rowsort
SELECT DISTINCT + col2 + col2 + col0 FROM tab2 AS cor0
----
130
155
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT col1 + + 29 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
38
42
55
skipif mysql # not compatible
query I rowsort label-6740
SELECT col1 + + 29 + - cor0.col0 / col2 FROM tab1 AS cor0
----
38
42
55
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT + tab2.col1 DIV - tab2.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
skipif mysql # not compatible
query I rowsort label-6742
SELECT + tab2.col1 / - tab2.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT - + 21 * tab0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 20b5bbe97c2e8407f3025bb8755b2ba0
query I rowsort
SELECT + col0 * + ( 69 ) + + col2 AS col1 FROM tab0 AS cor0
----
1689
2416
6223
query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-59
query I rowsort
SELECT + 43 + - col0 * + col1 + + cor0.col2 AS col2 FROM tab0 cor0
----
-1988
-3351
-7974
query I rowsort
SELECT cor1.col0 + 76 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1903fee0ebf606c9718d804580f44fa0
query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab0, tab2 AS cor0
----
68
query I rowsort
SELECT - cor0.col2 + - col1 * col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - 60 * + col0 AS col0 FROM tab1 AS cor0
----
-180
-3840
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT ALL + col0 DIV - tab1.col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + col0 / - tab1.col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + 12 + + col0 AS col0 FROM tab1 cor0
----
15
76
92
query I rowsort
SELECT DISTINCT + - col0 + col1 * + cor0.col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - 8 FROM tab0 AS cor0
----
-8
query I rowsort
SELECT 96 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - 51 * - col1 FROM tab2 AS cor0
----
1798
2210
7611
query I rowsort
SELECT ALL - col2 * ( 83 ) FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT DISTINCT - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT cor0.col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * col0 col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + col0 * + ( - 61 ) * col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
-246607
-381184
2367
query I rowsort
SELECT col0 - 46 FROM tab0 AS cor0
----
-11
-22
43
query I rowsort
SELECT ALL - col2 * - cor0.col1 + 16 FROM tab1 AS cor0
----
1264
1420
586
query I rowsort
SELECT ALL - 18 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT DISTINCT - 21 * + tab1.col2 FROM tab1
----
-1134
-1197
-2016
query I rowsort
SELECT - ( 58 ) FROM tab0 AS cor0
----
-58
-58
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT - 65 * + cor0.col1 * + col2 + CAST( col1 AS SIGNED ) * col0 * - col1 FROM tab1 AS cor0
----
-43450
-93288
-94640
skipif mysql # not compatible
query I rowsort label-6768
SELECT - 65 * + cor0.col1 * + col2 + CAST ( col1 AS INTEGER ) * col0 * - col1 FROM tab1 AS cor0
----
-43450
-93288
-94640
query I rowsort
SELECT - ( + 44 ) + + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1181
532
7877
query I rowsort
SELECT col1 + col0 * - col0 * - 14 FROM tab1 AS cor0
----
152
57354
89613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * 72 col1 FROM tab1 cor0
----
4896
4896
4896
query I rowsort
SELECT - + 19 * - ( - cor0.col0 ) + col1 FROM tab0 cor0
----
-1600
-370
-568
query I rowsort
SELECT DISTINCT cor0.col2 + 92 FROM tab0 AS cor0
----
125
174
93
query I rowsort
SELECT ALL + + 13 AS col0 FROM tab0 cor0
----
13
13
13
query I rowsort
SELECT 29 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
1620
1710
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col1 FROM tab0 AS cor0
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 * 71 col2 FROM tab1 AS cor0
----
4118
query I rowsort
SELECT ALL - col0 * col2 * col2 + 49 FROM tab2 AS cor0
----
-114027
-5054
-52679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT col2 * tab0.col0 + + ( + col0 ) * tab0.col2 DIV col0 FROM tab0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-6779
SELECT col2 * tab0.col0 + + ( + col0 ) * tab0.col2 / col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT + - 36 + col0 + cor0.col2 FROM tab1 AS cor0
----
140
21
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * col1 + col2 col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT ALL + col1 * - col1 + ( - col2 ) DIV - col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + col1 * - col1 + ( - col2 ) / - col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - col1 + col1 * - 28 FROM tab2 AS cor0
----
-1711
-493
-899
query I rowsort
SELECT DISTINCT + 97 + - col0 FROM tab0 AS cor0
----
62
73
8
query I rowsort
SELECT ALL + + col0 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab0 AS cor0
----
77
query I rowsort
SELECT + col0 + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ( - cor0.col1 ) + + col0 * - 21 AS col1 FROM tab0 AS cor0
----
-1960
-590
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT ALL - col2 * + col0 + CAST( + col2 AS SIGNED ) * - col0 DIV col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - col2 * + col0 + CAST ( + col2 AS INTEGER ) * - col0 / col0 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT + tab2.col1 DIV + 45 + - col1 AS col0 FROM tab2
----
-17
-31
-58
skipif mysql # not compatible
query I rowsort label-6790
SELECT + tab2.col1 / + 45 + - col1 AS col0 FROM tab2
----
-17
-31
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + tab1.col0 col1 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - 92 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT DISTINCT - ( - col1 ) + col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
-10
-13
-26
query I rowsort
SELECT ALL - - ( + 52 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 * - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT DISTINCT cor0.col1 * col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT DISTINCT + col0 + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + col0 + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT 72 + + col1 FROM tab2 cor0
----
103
131
89
query I rowsort
SELECT ALL 1 + col2 - ( - 54 + - col2 ) AS col0 FROM tab0 AS cor0
----
121
219
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT ALL - + cor0.col2 DIV + col1 + 99 * + col2 col2 FROM tab2 AS cor0
----
2574
2673
3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - + cor0.col2 / + col1 + 99 * + col2 col2 FROM tab2 AS cor0
----
2574
2673
3760
query I rowsort
SELECT ALL col2 - + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + 98 * cor0.col0 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 - 9 FROM tab0 AS cor0
----
2055
3386
8090
query I rowsort
SELECT - - 97 AS col1 FROM tab2 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT DISTINCT - + cor0.col0 DIV col1 + cor0.col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - + cor0.col0 / col1 + cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col2 - - ( col2 ) FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT ALL col1 DIV - 56 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL col1 / - 56 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - col2 + - col1 + - ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
131
1943
2947
query I rowsort
SELECT + - col2 * ( - cor0.col0 + + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-9801
34
47068
query I rowsort
SELECT + col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col1 * tab2.col1 + - col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT ALL + tab1.col1 + - 90 * + col1 + tab1.col1 * ( ( - col1 ) ) AS col0 FROM tab1
----
-1326
-2990
-990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6815
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6816
SELECT ALL CAST( NULL AS SIGNED ) + - 26 * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL CAST ( NULL AS INTEGER ) + - 26 * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 * - col2 * + col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 29 + + col2 FROM tab1
----
25
28
67
query I rowsort
SELECT 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT DISTINCT 11 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT 11 / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT DISTINCT - cor0.col2 * - col0 + + col0 * + col0 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
239
8113
9244
skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - cor0.col2 * - col0 + + col0 * + col0 + col0 / col0 AS col0 FROM tab2 AS cor0
----
239
8113
9244
query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0
----
-33
query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT + + col0 DIV 22 + col0 FROM tab2 AS cor0
----
7
81
82
skipif mysql # not compatible
query I rowsort label-6824
SELECT + + col0 / 22 + col0 FROM tab2 AS cor0
----
7
81
82
query I rowsort
SELECT 36 + + 57 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT col1 + 35 FROM tab2 AS cor0
----
52
66
94
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT + col1 + ( ( + col1 ) ) DIV - col2 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6828
SELECT + col1 + ( ( + col1 ) ) / - col2 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + col1 * - 69 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT - col2 + + 12 * + col0 AS col0 FROM tab1 cor0
----
-18
711
864
query I rowsort
SELECT ALL - + col1 + 67 * 12 AS col0 FROM tab0 AS cor0
----
707
713
718
query I rowsort
SELECT + cor0.col2 * + col0 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
233408
483
614320
query I rowsort
SELECT - - col2 + 34 * + col1 AS col2 FROM tab0 AS cor0
----
2957
3176
3299
query I rowsort
SELECT - 80 AS col0 FROM tab0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-6835
SELECT cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + col2 + ( cor0.col1 ) * cor0.col0 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT + col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6837
SELECT + col0 / cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col2 * - ( col1 ) * + col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT col1 * - 20 FROM tab0 AS cor0
----
-1720
-1820
-1940
onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - col2 DIV - ( 82 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6840
SELECT - col2 / - ( 82 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL 12 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ( + 60 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col1 * - col1 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
182
5332
6014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + ( col0 ) col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT DISTINCT - - col0 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT - - col0 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT col1 + + col2 * 20 FROM tab0 AS cor0
----
117
1731
746
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT tab0.col0 DIV col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6850
SELECT tab0.col0 / col0 FROM tab0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT - tab0.col1 DIV col2 + col1 AS col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-6852
SELECT - tab0.col1 / col2 + col1 AS col2 FROM tab0
----
0
84
90
query I rowsort
SELECT tab1.col1 * tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 + - col0 * col2 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 AS col0 FROM tab1
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - col2 col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT - ( col2 ) + - col2 * + col1 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + - 23 * col0 FROM tab1 AS cor0
----
-1472
-1840
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab1 AS cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT ALL - - 89 DIV + cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - - 89 / + cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col1 - - cor0.col1 * col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT col1 + - CAST( - col1 AS SIGNED ) DIV - col0 col2 FROM tab0 AS cor0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6862
SELECT col1 + - CAST ( - col1 AS INTEGER ) / - col0 col2 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT + col0 * ( col0 ) + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952
query I rowsort
SELECT + + 53 * 28 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d0552ea764d8beb8c5cf58d549dde214
query I rowsort
SELECT ALL + col1 * 40 FROM tab2
----
1240
2360
680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT DISTINCT + 40 DIV 35 AS col0 FROM tab0, tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT + 40 / 35 AS col0 FROM tab0, tab1 AS cor0
----
1
query I rowsort
SELECT col0 + + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 * cor0.col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 + 57 FROM tab2 AS cor0
----
-21
-22
50
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT DISTINCT 63 * - col0 * + col0 AS col1 FROM tab2
----
-3087
-383292
-393183
query I rowsort
SELECT - 30 FROM tab0 cor0
----
-30
-30
-30
query I rowsort
SELECT ALL + + 88 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + - col0 + col1 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT - 64 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6875
SELECT - 64 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + + 24 FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT ( 49 ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
49
query I rowsort
SELECT ALL cor0.col2 * + 63 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f2b207c373906ce53f5e7d84b72cfa41
query I rowsort
SELECT - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 + col1 * ( - 27 ) FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT col2 + - col0 - ( col1 ) AS col2 FROM tab0 cor0
----
-131
-77
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * - col0 col2 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + col2 * col1 + 13 FROM tab2 AS cor0
----
1547
659
850
query I rowsort
SELECT + col1 * - col1 - - 88 AS col2 FROM tab2 AS cor0
----
-201
-3393
-873
query I rowsort
SELECT ALL - col2 * tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 24 + + col2 AS col0 FROM tab1 cor0
----
30
33
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6889
SELECT + CAST( 94 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
skipif mysql # not compatible
query I rowsort label-6889
SELECT + CAST ( 94 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT col1 + + 2 + 46 AS col0 FROM tab2
----
107
65
79
query I rowsort
SELECT DISTINCT + 7 + - 67 AS col2 FROM tab2, tab1 cor0
----
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT - - cor0.col1 DIV - col0 + - ( + col0 ) * - col0 FROM tab1 cor0
----
1
4096
6400
skipif mysql # not compatible
query I rowsort label-6892
SELECT - - cor0.col1 / - col0 + - ( + col0 ) * - col0 FROM tab1 cor0
----
1
4096
6400
query I rowsort
SELECT - col0 + - 68 AS col0 FROM tab2
----
-146
-147
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) + + ( - col0 ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) + + ( - col0 ) FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6895
SELECT - CAST( NULL AS SIGNED ) * + ( col2 ) * 47 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-6895
SELECT - CAST ( NULL AS INTEGER ) * + ( col2 ) * 47 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + 94 * cor0.col0 AS col2 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT ALL - + 49 * col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT - + 53 * col0 FROM tab1 AS cor0
----
-159
-3392
-4240
query I rowsort
SELECT - col2 + col2 * + tab0.col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - 78 + - col1 FROM tab0 AS cor0
----
-164
-169
-175
query I rowsort
SELECT + cor0.col1 + col0 * - ( ( col2 ) ) * + col2 AS col2 FROM tab2 AS cor0
----
-114059
-5072
-52669
query I rowsort
SELECT - col2 + + col2 * col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + 97 * 88 FROM tab2
----
8536
8536
8536
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + col2 * - 75 * - col1 + col2 * 31 AS col2 FROM tab1 cor0
----
106974
44517
96576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT + CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6908
SELECT + CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6909
SELECT DISTINCT - col0 * - CAST( ( col2 ) AS SIGNED ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - col0 * - CAST ( ( col2 ) AS INTEGER ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + cor0.col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col1 + 28 AS col1 FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT + + col1 + 42 AS col0 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT ALL + col2 + 16 * + col1 AS col1 FROM tab0 AS cor0
----
1409
1538
1553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT ALL - col1 DIV - col0 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1396
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - col1 / - col0 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1396
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT ALL - + col1 DIV + CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - + col1 / + CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL col0 - 89 FROM tab2 AS cor0
----
-10
-11
-82
query I rowsort
SELECT - + col2 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT ALL - + col0 * col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - + col0 * col2 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - col2 + - 21 FROM tab2 AS cor0
----
-47
-48
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT ALL + cor0.col2 DIV - col2 + - 9 FROM tab1 AS cor0
----
-10
-10
-10
skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + cor0.col2 / - col2 + - 9 FROM tab1 AS cor0
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 1 col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT ALL col1 * CAST( NULL AS DECIMAL ) + col2 * - col1 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-6923
SELECT ALL col1 * CAST ( NULL AS REAL ) + col2 * - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT + col1 * - 53 + col1 DIV - col1 FROM tab2 AS cor0
----
-1644
-3128
-902
skipif mysql # not compatible
query I rowsort label-6924
SELECT + col1 * - 53 + col1 / - col1 FROM tab2 AS cor0
----
-1644
-3128
-902
query I rowsort
SELECT DISTINCT - cor0.col1 * 14 FROM tab0 cor0
----
-1204
-1274
-1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - cor0.col2 - - 67 FROM tab2 AS cor0
----
105
93
94
query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + + col1 + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab2.col0 + + ( col1 ) AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + + col1 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 + + 36 AS col1 FROM tab0 AS cor0
----
125
60
71
query I rowsort
SELECT - col2 + 30 * col1 * + col1 FROM tab0 AS cor0
----
221847
248348
282269
query I rowsort
SELECT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4
query I rowsort
SELECT ALL - col1 + - col0 * + 2 FROM tab1
----
-138
-173
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT + - cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6936
SELECT + - cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 2 AS col1 FROM tab2 AS cor0
----
24
25
36
query I rowsort
SELECT ALL col2 + col2 * + 50 FROM tab0
----
1683
4182
51
query I rowsort
SELECT DISTINCT - 4 FROM tab0, tab1 AS cor0
----
-4
query I rowsort
SELECT - 44 - ( + tab2.col0 + ( 28 ) ) FROM tab2
----
-150
-151
-79
query I rowsort
SELECT ( + col0 ) + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT + col1 - col2 AS col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT tab2.col0 DIV + col0 col0 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6944
SELECT tab2.col0 / + col0 col0 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT + 50 + col1 DIV + ( 98 ) FROM tab0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-6945
SELECT + 50 + col1 / + ( 98 ) FROM tab0
----
50
50
50
query I rowsort
SELECT + - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT ALL + col0 DIV + col1 - col0 AS col1 FROM tab2
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + col0 / + col1 - col0 AS col1 FROM tab2
----
-7
-75
-77
query I rowsort
SELECT ALL - ( + col1 ) - - 86 * 99 * + col1 FROM tab0
----
732118
774683
825761
query I rowsort
SELECT DISTINCT - cor0.col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - 88 + + col2 AS col1 FROM tab2 AS cor0
----
-50
-61
-62
query I rowsort
SELECT - cor0.col1 * - col1 - - col1 * col2 AS col1 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT ALL + 91 * col0 AS col2 FROM tab1 AS cor0
----
273
5824
7280
query I rowsort
SELECT + 28 + col1 FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 23 * + 82 FROM tab2, tab2 cor0
----
1886
query I rowsort
SELECT 86 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL - cor0.col2 * + 64 * + col2 FROM tab0 AS cor0
----
-430336
-64
-69696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 53 col1 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT DISTINCT ( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + ( + col2 ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - 32 * col1 FROM tab2 cor0
----
-1888
-544
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT DISTINCT + - col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + - col0 / - col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL - 35 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-115
-38
-99
query I rowsort
SELECT col2 + + 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-6965
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT col0 * + col1 * + cor0.col2 - + 64 DIV + 96 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-6966
SELECT col0 * + col1 * + cor0.col2 - + 64 / + 96 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT ALL - + col0 DIV + col1 col2 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - + col0 / + col1 col2 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - ( - 39 ) * - col1 + - col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
1042
437
590
onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT + 19 + col0 DIV col1 + col0 FROM tab2 AS cor0
----
102
26
98
skipif mysql # not compatible
query I rowsort label-6970
SELECT + 19 + col0 / col1 + col0 FROM tab2 AS cor0
----
102
26
98
query I rowsort
SELECT ALL 7 + ( col1 ) AS col2 FROM tab1 AS cor0
----
17
20
33
query I rowsort
SELECT - cor0.col0 - + 58 FROM tab0 AS cor0
----
-147
-82
-93
query I rowsort
SELECT DISTINCT - col0 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6974
SELECT DISTINCT - cor0.col0 * + col1 + CAST( - col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - cor0.col0 * + col1 + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-70
1326
208
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 + col1 + col1 * - 6 * + 28 AS col0 FROM tab2 AS cor0
----
-2839
-5177
-9853
query I rowsort
SELECT + 89 * - col2 + 20 * - cor0.col1 FROM tab0 AS cor0
----
-2029
-4657
-9118
query I rowsort
SELECT ALL - col0 + - ( tab0.col0 ) FROM tab0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6979
SELECT 86 * + col1 + + CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6979
SELECT 86 * + col1 + + CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * - col1 + - 16 col2 FROM tab2
----
-1438
-240
-4696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col1 + - ( - col2 ) * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 AS col2 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ALL - cor0.col2 * 25 AS col1 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 - col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 94 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL tab0.col1 * col0 - - col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT ALL + tab0.col0 DIV 46 - col0 AS col1 FROM tab0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + tab0.col0 / 46 - col0 AS col1 FROM tab0
----
-24
-35
-88
query I rowsort
SELECT ALL col1 + - tab1.col0 * col2 - - tab1.col2 AS col2 FROM tab1
----
-3581
-7571
-82
query I rowsort
SELECT - cor0.col2 - 78 FROM tab0 AS cor0
----
-111
-160
-79
query I rowsort
SELECT + ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 + - 96 - + col1 FROM tab1
----
-96
-96
-96
query I rowsort
SELECT ALL - ( 40 ) FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT col1 * - CAST( NULL AS SIGNED ) + - 74 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7000
SELECT col1 * - CAST ( NULL AS INTEGER ) + - 74 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 8 AS col1 FROM tab2
----
18
19
30
query I rowsort
SELECT - col2 * - ( - tab1.col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col1 + + col2 ) * - col0 col0 FROM tab2
----
-1659
2574
28
query I rowsort
SELECT + 56 * + ( - col0 ) * ( - ( col0 ) ) AS col0 FROM tab1
----
229376
358400
504
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col1 + 35 AS col1 FROM tab0 AS cor0
----
167
7424
913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7007
SELECT CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7007
SELECT CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 60 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT - 61 FROM tab0
----
-61
query I rowsort
SELECT ALL + cor0.col1 * col0 * col2 + - col1 * 72 * col1 AS col0 FROM tab0 AS cor0
----
-464400
-674053
67886
query I rowsort
SELECT ALL col2 - + cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + + col2 * col2 + + 58 FROM tab1 AS cor0
----
2974
3307
9274
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - col2 + - 72 AS col2 FROM tab1 AS cor0
----
-126
-129
-168
onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT - col1 DIV cor0.col0 + + col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-7015
SELECT - col1 / cor0.col0 + + col1 FROM tab0 AS cor0
----
83
90
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7016
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col2 + + col0 * col0 col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 AS col2 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7019
SELECT col1 + - 22 DIV + cor0.col0 FROM tab1 AS cor0
----
10
13
19
skipif mysql # not compatible
query I rowsort label-7019
SELECT col1 + - 22 / + cor0.col0 FROM tab1 AS cor0
----
10
13
19
query I rowsort
SELECT - 39 * + tab0.col2 * 34 - col1 FROM tab0
----
-108823
-1423
-43844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT col0 DIV tab2.col0 + 61 FROM tab2
----
62
62
62
skipif mysql # not compatible
query I rowsort label-7021
SELECT col0 / tab2.col0 + 61 FROM tab2
----
62
62
62
query I rowsort
SELECT ALL + 86 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT DISTINCT + col0 DIV + col2 + tab0.col0 * tab0.col1 AS col0 FROM tab0
----
2064
3430
8100
skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT + col0 / + col2 + tab0.col0 * tab0.col1 AS col0 FROM tab0
----
2064
3430
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT - col0 DIV + col0 + + col2 * + col1 FROM tab0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-7024
SELECT - col0 / + col0 + + col2 * + col1 FROM tab0
----
2837
7461
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab1, tab0 AS cor0
----
-33
query I rowsort
SELECT + col2 - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + + col2 + col1 * + col2 FROM tab2
----
1619
701
895
query I rowsort
SELECT DISTINCT tab2.col0 * col2 + 10 + + col2 * + col0 FROM tab2
----
388
4066
6014
query I rowsort
SELECT col1 * - col0 + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT ( - 51 + + tab1.col1 ) AS col0 FROM tab1
----
-25
-38
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7031
SELECT CAST( col1 + + col0 AS SIGNED ) * col2 AS col1 FROM tab0
----
132
14760
3630
skipif mysql # not compatible
query I rowsort label-7031
SELECT CAST ( col1 + + col0 AS INTEGER ) * col2 AS col1 FROM tab0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT col1 DIV - col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7032
SELECT col1 / - col1 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL 7 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT - + cor0.col1 * col1 + - col2 * + col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT + + col0 + - cor0.col1 * - ( - col0 ) FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT 57 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
399
4446
4503
query I rowsort
SELECT col0 * col2 * + 60 + col2 AS col1 FROM tab1
----
218937
460896
9774
onlyif mysql # use DIV operator for integer division
query I rowsort label-7038
SELECT + - 99 - col1 DIV + col1 FROM tab2 AS cor0
----
-100
-100
-100
skipif mysql # not compatible
query I rowsort label-7038
SELECT + - 99 - col1 / + col1 FROM tab2 AS cor0
----
-100
-100
-100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT DISTINCT + + cor0.col2 * + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + + cor0.col2 * + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT ALL - - col1 * col2 DIV - col2 + col2 AS col0 FROM tab1 cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - - col1 * col2 / - col2 + col2 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + ( col1 ) - col2 * + col0 * + cor0.col2 FROM tab2 AS cor0
----
-114059
-5072
-52669
query I rowsort
SELECT ( + col0 ) + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + 47 + + col2 AS col0 FROM tab0 AS cor0
----
129
48
80
query I rowsort
SELECT DISTINCT + 45 + col2 FROM tab2 AS cor0
----
71
72
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 74 + col1 AS col0 FROM tab2
----
105
133
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + + col1 col0 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT - ( - col1 ) * - col1 + col0 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL col0 + + col2 + col0 FROM tab1
----
185
256
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT + - 45 + - col1 DIV - col2 FROM tab1 AS cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-7050
SELECT + - 45 + - col1 / - col2 FROM tab1 AS cor0
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT DISTINCT - col2 * col1 DIV - cor0.col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT - col2 * col1 / - cor0.col0 FROM tab2 AS cor0
----
119
19
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT - - col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7052
SELECT - - col0 / + col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7054
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7054
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - + col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - col2 * 13 + - 4 * col2 FROM tab2 AS cor0
----
-442
-459
-646
onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + - cor0.col1 * col0 - ( col1 ) DIV - ( 73 ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-7057
SELECT + - cor0.col1 * col0 - ( col1 ) / - ( 73 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 + - 76 AS col2 FROM tab0 AS cor0
----
10
15
21
query I rowsort
SELECT DISTINCT - col2 - + 88 AS col2 FROM tab1 AS cor0
----
-142
-145
-184
query I rowsort
SELECT DISTINCT col1 - col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + col0 + cor0.col1 * 32 FROM tab2 AS cor0
----
1966
623
999
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7062
SELECT - - col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7062
SELECT - - col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT - col0 DIV col0 + cor0.col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7063
SELECT - col0 / col0 + cor0.col1 FROM tab0 cor0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7064
SELECT ALL col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + ( - col0 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * CAST ( - col1 AS REAL ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col0 - - 72 AS col1 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT + + col1 * + 38 + col2 AS col1 FROM tab0 cor0
----
3301
3540
3687
query I rowsort
SELECT ALL - col2 * col1 - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL + col2 + col2 * + 70 - col2 AS col2 FROM tab2
----
1820
1890
2660
query I rowsort
SELECT ALL + col2 * + 48 AS col2 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT ALL + - col1 * - 30 + col2 + - col2 FROM tab0 AS cor0
----
2580
2730
2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT + col1 + col1 DIV - ( + col0 ) FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-7073
SELECT + col1 + col1 / - ( + col0 ) FROM tab0 AS cor0
----
83
90
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT - - col0 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-7074
SELECT - - col0 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 + col2 FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT DISTINCT + - CAST( - cor0.col0 AS SIGNED ) FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + - CAST ( - cor0.col0 AS INTEGER ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + ( 19 ) * col0 FROM tab1 cor0
----
1216
1520
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT - col2 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 + + 32 + col0 FROM tab2 AS cor0
----
12
73
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 * 3 + cor0.col0 col1 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT DISTINCT - 31 FROM tab2 cor0
----
-31
skipif mysql # not compatible
query I rowsort
SELECT - ( col2 ) + col0 * CAST ( col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - 67 FROM tab2, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT - 20 + col0 * col0 FROM tab1 cor0
----
-11
4076
6380
onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT - col2 DIV 4 AS col2 FROM tab1 cor0
----
-13
-14
-24
skipif mysql # not compatible
query I rowsort label-7087
SELECT - col2 / 4 AS col2 FROM tab1 cor0
----
-13
-14
-24
query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2 AS cor0
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col2 * col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + CAST ( NULL AS REAL ) * col2 * col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col0 + + 54 * col2 AS col0 FROM tab2 AS cor0
----
1465
1482
2131
query I rowsort
SELECT ALL - 85 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT DISTINCT - col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - col2 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT ( - cor0.col1 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT 0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + 8 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 - + col0 * ( + 30 ) * - col2 col1 FROM tab0 AS cor0
----
-8359
16364
210659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7097
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7097
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + - 6 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to b27ffe5fca3aedb2653abfcf3561c0ae
query I rowsort
SELECT - - col0 * + col2 - col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT CAST( cor0.col1 AS SIGNED ) - - col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7101
SELECT CAST ( cor0.col1 AS INTEGER ) - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col1 * - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + - ( col1 ) + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + - 5 + + col1 AS col1 FROM tab0 AS cor0
----
81
86
92
query I rowsort
SELECT ALL - 68 * + col0 + - col1 FROM tab0 AS cor0
----
-1718
-2477
-6143
query I rowsort
SELECT DISTINCT ( - col0 ) + col2 + - col2 * col1 FROM tab0 AS cor0
----
-131
-2829
-7469
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 59 - + 80 AS col0 FROM tab0 AS cor0
----
-139
-139
-139
query I rowsort
SELECT - 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT + col2 * - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT + + 3 AS col1 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT - - col1 * + col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - ( + col1 ) + - col1 AS col2 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - 17 * + col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT DISTINCT col1 + + cor0.col0 * 16 FROM tab0 AS cor0
----
1515
470
657
query I rowsort
SELECT col2 + col0 * 6 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
321
36530
37484
query I rowsort
SELECT + col2 * - ( + 37 ) AS col1 FROM tab2 AS cor0
----
-1406
-962
-999
onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ALL + - cor0.col0 * col2 DIV 52 + + cor0.col0 FROM tab0 AS cor0
----
-51
35
9
skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + - cor0.col0 * col2 / 52 + + cor0.col0 FROM tab0 AS cor0
----
-51
35
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT DISTINCT + cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT + cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT 92 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + 67 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb
query I rowsort
SELECT col2 + + ( col0 ) FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT + cor0.col0 DIV cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7318d0dc3ebf76e990ab679b26520e3b
skipif mysql # not compatible
query I rowsort label-7123
SELECT + cor0.col0 / cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7318d0dc3ebf76e990ab679b26520e3b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7124
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7124
SELECT CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT ALL + col0 * CAST( - tab1.col1 AS SIGNED ) AS col1 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + col0 * CAST ( - tab1.col1 AS INTEGER ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 50 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 37 col0 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT col1 + + 78 FROM tab1 cor0
----
104
88
91
query I rowsort
SELECT col1 * 61 FROM tab0 cor0
----
5246
5551
5917
query I rowsort
SELECT col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - 45 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-45
query I rowsort
SELECT + cor1.col2 FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT - col2 * + 71 FROM tab1
----
-3834
-4047
-6816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT - 70 AS col0 FROM tab2 cor0
----
-70
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col2 + col1 col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT 66 + + col2 FROM tab0 AS cor0
----
148
67
99
query I rowsort
SELECT - + 55 + col2 FROM tab0 cor0
----
-22
-54
27
query I rowsort
SELECT DISTINCT + tab1.col1 * col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7142
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7142
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + 36 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
36
query I rowsort
SELECT - 86 + - col1 AS col0 FROM tab2
----
-103
-117
-145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7145
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7145
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + cor0.col1 * 67 FROM tab1, tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT ( col0 * ( + col2 ) + - col2 ) AS col1 FROM tab1
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT - - col0 * - col0 + + cor0.col0 DIV + 60 FROM tab2 AS cor0
----
-49
-6083
-6240
skipif mysql # not compatible
query I rowsort label-7148
SELECT - - col0 * - col0 + + cor0.col0 / + 60 FROM tab2 AS cor0
----
-49
-6083
-6240
query I rowsort
SELECT - 39 * col2 AS col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT DISTINCT - 15 * - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1170
15600
9600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT + CAST( NULL AS DECIMAL ) * + col1 - col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7151
SELECT + CAST ( NULL AS REAL ) * + col1 - col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - cor0.col0 * - 0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 42 * + col1 + col2 FROM tab1 cor0
----
-1038
-363
-450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col2 FROM tab2
----
88
88
88
query I rowsort
SELECT ALL - col0 * + col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT ALL - 28 DIV col0 FROM tab1 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - 28 / col0 FROM tab1 AS cor0
----
-9
0
0
query I rowsort
SELECT + - 81 * - col0 AS col0 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT ALL col0 + - col0 * - 25 * + col1 FROM tab0 AS cor0
----
202564
51624
84910
query I rowsort
SELECT - 76 AS col2 FROM tab1
----
-76
-76
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT DISTINCT ( 54 ) - - col2 DIV - ( - col1 * + col0 ) AS col0 FROM tab2
----
54
skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT ( 54 ) - - col2 / - ( - col1 * + col0 ) AS col0 FROM tab2
----
54
query I rowsort
SELECT ALL ( 94 ) + - col2 * col1 - col1 AS col1 FROM tab0
----
-100
-2830
-7459
query I rowsort
SELECT ALL - col0 - + col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT DISTINCT col0 DIV 67 + col1 - - ( + col2 ) * col0 FROM tab1
----
188
3658
7694
skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT col0 / 67 + col1 - - ( + col2 ) * col0 FROM tab1
----
188
3658
7694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7168
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT - col0 + + ( - col2 ) * - col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL col2 - ( + col1 ) FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - + col2 + col2 * + 79 AS col0 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT tab0.col1 - col0 * - col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT - col2 * - tab2.col0 * + col0 + + 8 * col1 * ( col2 ) FROM tab2
----
170456
242326
8019
query I rowsort
SELECT col1 + + col2 * 70 * col2 AS col2 FROM tab0
----
167
470771
76316
query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab1
----
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7179
SELECT DISTINCT - col2 DIV + 8 AS col1 FROM tab1
----
-12
-6
-7
skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - col2 / + 8 AS col1 FROM tab1
----
-12
-6
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - tab2.col0 + - ( tab2.col2 + - col1 ) FROM tab2
----
-100
-3
-45
query I rowsort
SELECT col1 - ( 15 ) AS col0 FROM tab2
----
16
2
44
query I rowsort
SELECT + col1 - - tab2.col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + + ( - 58 ) AS col1 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL col0 + - 77 FROM tab0 cor0
----
-42
-53
12
query I rowsort
SELECT ALL - 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT + + col1 * - 29 AS col2 FROM tab2 AS cor0
----
-1711
-493
-899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + 10 col2 FROM tab0 AS cor0
----
82
query I rowsort
SELECT ALL + ( + col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - 46 * - col1 * col1 AS col0 FROM tab2 cor0
----
13294
160126
44206
query I rowsort
SELECT ALL + ( - col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT DISTINCT - cor0.col1 + col2 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - cor0.col1 + col2 / + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - 52 + + 44 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT 14 FROM tab2 cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7196
SELECT ALL - col0 DIV + ( - col0 * 78 ) + - col0 DIV col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - col0 / + ( - col0 * 78 ) + - col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 74 ) * col1 - + col2 col2 FROM tab0 AS cor0
----
6331
6652
7177
query I rowsort
SELECT DISTINCT - - col2 - - col2 AS col0 FROM tab2 cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + tab2.col1 + + col2 AS col0 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT ALL - col0 DIV - cor0.col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL - col0 / - cor0.col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT - - 11 * - col0 + 41 * 34 + col0 FROM tab1 AS cor0
----
1364
594
754
query I rowsort
SELECT cor0.col0 + col0 + col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT + ( col0 ) + 42 AS col2 FROM tab1 AS cor0
----
106
122
45
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col1 + - col2 + - 38 AS col1 FROM tab1 cor0
----
-121
-66
-85
query I rowsort
SELECT ALL col1 + + col1 * ( - 7 ) AS col0 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT + + 58 * col1 AS col1 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT - 13 + + col2 + col0 AS col2 FROM tab2 cor0
----
104
21
91
query I rowsort
SELECT ALL + col1 * col0 + - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT col1 * - col0 + CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
-2118
-3449
-8153
skipif mysql # not compatible
query I rowsort label-7211
SELECT col1 * - col0 + CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
-2118
-3449
-8153
onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT DISTINCT - col0 + - 9 DIV 33 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - col0 + - 9 / 33 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col1 * 67 AS col0 FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT col1 + 46 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT ALL - - col2 - - 50 AS col2 FROM tab1 AS cor0
----
104
107
146
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-40
query I rowsort
SELECT 40 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL - + col0 + 43 * col0 AS col0 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT ALL + tab1.col0 + col1 * - 77 * 80 FROM tab1
----
-160157
-61536
-80000
query I rowsort
SELECT ALL col1 * tab2.col0 + 12 * col1 FROM tab2
----
1547
5310
589
query I rowsort
SELECT + cor0.col0 * col0 + + 10 AS col2 FROM tab2 AS cor0
----
59
6094
6251
onlyif mysql # use DIV operator for integer division
query I rowsort label-7222
SELECT - - col0 * col2 DIV + 9 FROM tab2 AS cor0
----
21
225
333
skipif mysql # not compatible
query I rowsort label-7222
SELECT - - col0 * col2 / + 9 FROM tab2 AS cor0
----
21
225
333
query I rowsort
SELECT + + col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT DISTINCT col0 * col0 DIV + 88 AS col0 FROM tab0 AS cor0
----
13
6
90
skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT col0 * col0 / + 88 AS col0 FROM tab0 AS cor0
----
13
6
90
query I rowsort
SELECT DISTINCT - - ( col1 ) * 49 + col2 AS col2 FROM tab1 AS cor0
----
1328
547
733
query I rowsort
SELECT + 32 + col2 AS col0 FROM tab2 AS cor0
----
58
59
70
query I rowsort
SELECT + 13 AS col2 FROM tab2 cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - tab0.col0 col2 FROM tab0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7229
SELECT - CAST( NULL AS SIGNED ) + 74 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7229
SELECT - CAST ( NULL AS INTEGER ) + 74 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL + ( - col1 ) + 93 AS col2 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + ( + col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT tab1.col1 * CAST( 46 AS SIGNED ) + col0 * + col1 FROM tab1
----
1100
1274
1638
skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT tab1.col1 * CAST ( 46 AS INTEGER ) + col0 * + col1 FROM tab1
----
1100
1274
1638
query I rowsort
SELECT ALL - ( cor0.col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab0, tab2 AS cor0
----
26
query I rowsort
SELECT ALL col1 + col1 - + col2 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT - col2 * 65 * - col0 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
12258
131794
195092
query I rowsort
SELECT - - col0 * col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 53 + col0 AS col2 FROM tab1 AS cor0
----
-50
11
27
query I rowsort
SELECT 19 + col1 AS col2 FROM tab1 cor0
----
29
32
45
query I rowsort
SELECT DISTINCT col0 + 54 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + col2 + 21 FROM tab1 AS cor0
----
178
286
751
onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT + - CAST( col1 AS SIGNED ) DIV col0 + col0 * ( col2 ) + - col1 FROM tab0 cor0
----
-64
703
7206
skipif mysql # not compatible
query I rowsort label-7248
SELECT + - CAST ( col1 AS INTEGER ) / col0 + col0 * ( col2 ) + - col1 FROM tab0 cor0
----
-64
703
7206
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT + CAST( + col1 AS SIGNED ) + - col1 + ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7249
SELECT + CAST ( + col1 AS INTEGER ) + - col1 + ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - - col0 + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT + CAST( + cor0.col0 AS SIGNED ) * col2 + ( col2 * col1 ) FROM tab2 AS cor0
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-7251
SELECT + CAST ( + cor0.col0 AS INTEGER ) * col2 + ( col2 * col1 ) FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL - 57 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 8cb69fe641d5073f3d026c445306c478
query I rowsort
SELECT 87 * col0 + col1 AS col1 FROM tab0 AS cor0
----
2174
3142
7834
query I rowsort
SELECT ALL 64 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT + + ( col1 ) * ( 94 ) + - col1 AS col2 FROM tab2 cor0
----
1581
2883
5487
query I rowsort
SELECT + 55 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1, tab0 AS cor0
----
37
query I rowsort
SELECT DISTINCT + - col1 * - 66 FROM tab1 AS cor0
----
1716
660
858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7259
SELECT - + col0 * CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7259
SELECT - + col0 * CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 * col2 - 43 FROM tab2 AS cor0
----
1491
603
794
query I rowsort
SELECT ALL + col1 * col2 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - 92 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT - - col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + ( - col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - col2 * - ( ( + col0 ) ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col0 + col2 + + 37 AS col0 FROM tab1
----
158
213
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT - col1 * 51 * col2 + + col1 DIV + col0 AS col0 FROM tab2
----
-32946
-42683
-78234
skipif mysql # not compatible
query I rowsort label-7267
SELECT - col1 * 51 * col2 + + col1 / + col0 AS col0 FROM tab2
----
-32946
-42683
-78234
query I rowsort
SELECT DISTINCT + col1 * + 97 + tab0.col0 + col2 FROM tab0
----
8399
8998
9445
query I rowsort
SELECT - ( col2 ) * 5 + - 67 * col2 * col0 AS col1 FROM tab2
----
-12798
-136006
-201324
query I rowsort
SELECT DISTINCT + 12 + - col2 FROM tab1 AS cor0
----
-42
-45
-84
query I rowsort
SELECT 12 * col1 AS col2 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT ALL - + col2 + col0 * - ( cor0.col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
13791
42874
704887
onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT DISTINCT - - col0 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - - col0 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT col0 + ( + 95 ) FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT col0 + ( - col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - cor2.col1 * - ( + 50 ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e34d267634afe1fc8748e619e09e363c
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT + - cor0.col0 * + 77 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - + 17 * - 14 AS col0 FROM tab2 AS cor0
----
238
238
238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7281
SELECT CAST( NULL AS SIGNED ) / - 66 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7281
SELECT CAST ( NULL AS INTEGER ) / - 66 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 45 + col0 AS col0 FROM tab1
----
-42
19
35
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT + + col1 + 48 FROM tab0 AS cor0
----
134
139
145
query I rowsort
SELECT DISTINCT + - col1 + col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + 85 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT - 50 AS col2 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT - 29 * col2 + - col1 + - ( - cor0.col0 * col0 + + col1 ) AS col2 FROM tab2 AS cor0
----
-796
5105
5212
query I rowsort
SELECT ( col0 ) * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - 69 * - col2 AS col0 FROM tab0 AS cor0
----
-2277
-5658
-69
query I rowsort
SELECT ALL col2 * col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * - col0 - + col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - 4 - - col0 AS col0 FROM tab2
----
3
74
75
query I rowsort
SELECT 13 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + 79 + ( + col1 * ( col2 ) ) AS col1 FROM tab0
----
176
2917
7541
query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1, tab2 AS cor0
----
48
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + + ( col0 ) + col1 FROM tab1 AS cor0
----
-26
-647
-76
query I rowsort
SELECT ALL - ( - col1 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - - cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL 66 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 + 82 col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 342395bf11859f8102f1cacbc3707cb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 col1 FROM tab0
----
2
62
query I rowsort
SELECT - col1 - + 68 * - col1 FROM tab1
----
1742
670
871
query I rowsort
SELECT tab2.col2 + + col0 * - 83 AS col1 FROM tab2
----
-554
-6448
-6519
query I rowsort
SELECT + 31 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col1 * + col1 col2 FROM tab2
----
10903
25940
90428
query I rowsort
SELECT - col2 * col1 + ( - col1 ) AS col1 FROM tab0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7313
SELECT - - col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7313
SELECT - - col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col2 + + col0 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT col0 - + col2 * + 28 FROM tab2
----
-650
-749
-985
query I rowsort
SELECT - col2 * col1 + 73 FROM tab2
----
-1461
-573
-764
query I rowsort
SELECT 73 + col1 AS col0 FROM tab0
----
159
164
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT - col1 + col0 DIV col1 FROM tab2
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-7318
SELECT - col1 + col0 / col1 FROM tab2
----
-13
-31
-58
query I rowsort
SELECT ALL - ( + col2 * - col2 ) FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT ALL - tab0.col1 DIV + col2 - - col0 AS col2 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - tab0.col1 / + col2 - - col0 AS col2 FROM tab0
----
-62
22
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 - + col0 * - col1 * + col0 col2 FROM tab1 cor0
----
249
40975
83215
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT - col0 DIV col2 + - col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3430
-8100
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7322
SELECT - col0 / col2 + - col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3430
-8100
query I rowsort
SELECT - - col1 * col1 - + col2 AS col2 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + col0 * col0 - col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT - col1 + + 77 AS col2 FROM tab1 AS cor0
----
51
64
67
query I rowsort
SELECT DISTINCT + - ( col2 ) + - cor0.col2 * + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col0 - col1 * col0 * - col2 AS col0 FROM tab1 cor0
----
36416
4209
99760
query I rowsort
SELECT - - col0 * + col2 + col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT ALL + + ( cor0.col1 ) * - col2 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + + ( cor0.col1 ) * - col2 / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 + - tab0.col2 * col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT tab1.col2 + 52 AS col0 FROM tab1
----
106
109
148
query I rowsort
SELECT ALL col0 + + col2 * - 6 AS col0 FROM tab1
----
-278
-321
-496
query I rowsort
SELECT DISTINCT tab2.col2 * + col0 * + col2 + - col1 AS col1 FROM tab2
----
114059
5072
52669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7335
SELECT ALL tab2.col0 - + CAST( 13 AS SIGNED ) FROM tab2
----
-6
65
66
skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL tab2.col0 - + CAST ( 13 AS INTEGER ) FROM tab2
----
-6
65
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7336
SELECT ALL - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7337
SELECT DISTINCT tab1.col1 * - CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT tab1.col1 * - CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - ( 46 * - col2 ) + + ( - tab2.col2 ) FROM tab2
----
1170
1215
1710
query I rowsort
SELECT + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ( col0 ) * col0 - cor0.col0 * col2 * col1 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT DISTINCT - 53 * + col2 FROM tab1 cor0
----
-2862
-3021
-5088
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 + col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT ALL + + 5 * ( col1 ) DIV + 42 AS col0 FROM tab0 AS cor0
----
10
10
11
skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + + 5 * ( col1 ) / + 42 AS col0 FROM tab0 AS cor0
----
10
10
11
query I rowsort
SELECT ALL + 55 * - col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
-4056
-809
576
query I rowsort
SELECT ALL 73 * 84 FROM tab2 AS cor0
----
6132
6132
6132
onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT DISTINCT + - 17 DIV col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT + - 17 / col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - 84 FROM tab1 cor0
----
-84
-84
-84
query I rowsort
SELECT + cor0.col1 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - - ( + cor0.col1 ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + - 93 * + col2 FROM tab2 AS cor0
----
-2340
-2504
-3455
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL tab0.col2 * tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT 14 FROM tab1, tab0 cor0, tab2 AS cor1
----
14
query I rowsort
SELECT + col0 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col0 * col2 * - 83 + + col1 * - ( col0 * + col1 + 30 ) AS col0 FROM tab2 AS cor0
----
-23344
-272507
-441612
query I rowsort
SELECT - 27 * col1 * col2 FROM tab0 AS cor0
----
-201474
-2619
-76626
query I rowsort
SELECT - cor0.col2 + + 64 * - col2 AS col0 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT + 90 * cor0.col2 * col1 FROM tab1 AS cor0
----
112320
126360
51300
query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7360
SELECT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7360
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT ALL - 33 + + col2 + cor0.col2 DIV - col0 col1 FROM tab1 AS cor0
----
24
3
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - 33 + + col2 + cor0.col2 / - col0 col1 FROM tab1 AS cor0
----
24
3
62
query I rowsort
SELECT DISTINCT - col0 * col0 + + 68 FROM tab2 AS cor0
----
-6016
-6173
19
query I rowsort
SELECT - ( + col1 ) + - ( - col2 * - col2 + - col2 * - col2 ) FROM tab0 AS cor0
----
-13539
-2264
-99
query I rowsort
SELECT + col0 * - cor0.col0 * 21 FROM tab2 AS cor0
----
-1029
-127764
-131061
query I rowsort
SELECT DISTINCT + 16 * col2 + - col1 * 53 FROM tab0 AS cor0
----
-3511
-4030
-5125
query I rowsort
SELECT - col1 * - col0 - ( + ( col0 ) * col0 ) AS col0 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT ALL cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT col0 * col1 + + col0 * 61 + col0 FROM tab0 AS cor0
----
13617
3552
5565
query I rowsort
SELECT - ( col2 ) * tab2.col0 * col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT ALL col2 + - 71 - - col1 FROM tab2
----
-13
-16
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT + tab0.col0 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7373
SELECT + tab0.col0 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 7 * + col1 - col1 AS col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT - - col0 * + col2 - 38 AS col2 FROM tab0 AS cor0
----
-3
7260
754
query I rowsort
SELECT - - col2 - - col2 * col0 * - col2 FROM tab2 AS cor0
----
-114038
-5076
-52702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 26 * + cor0.col0 col0 FROM tab0 AS cor0
----
-2223
-538
-813
query I rowsort
SELECT DISTINCT + 89 * col1 AS col1 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT ALL - + cor0.col2 + col2 * col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1423
709
733
query I rowsort
SELECT + - cor0.col1 * + col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL col0 + - cor0.col2 * + 50 AS col2 FROM tab1 AS cor0
----
-2697
-2786
-4720
query I rowsort
SELECT + cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + + col2 + 81 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT ALL - + col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col1 + 73 AS col1 FROM tab0 AS cor0
----
159
164
170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7386
SELECT + col2 * + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-7386
SELECT + col2 * + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT - - col1 + - CAST( + 48 AS SIGNED ) * - col0 FROM tab2 cor0
----
367
3803
3809
skipif mysql # not compatible
query I rowsort label-7387
SELECT - - col1 + - CAST ( + 48 AS INTEGER ) * - col0 FROM tab2 cor0
----
367
3803
3809
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT 50 * col1 DIV - col0 AS col1 FROM tab2
----
-10
-221
-37
skipif mysql # not compatible
query I rowsort label-7388
SELECT 50 * col1 / - col0 AS col1 FROM tab2
----
-10
-221
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT - 9 * col2 DIV col1 FROM tab1
----
-18
-51
-66
skipif mysql # not compatible
query I rowsort label-7389
SELECT - 9 * col2 / col1 FROM tab1
----
-18
-51
-66
query I rowsort
SELECT col2 * - 4 + col1 * col2 + 2 AS col2 FROM tab0 cor0
----
2708
7136
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7391
SELECT - - col1 - - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7391
SELECT - - col1 - - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + col1 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0, tab1 cor0
----
26
query I rowsort
SELECT DISTINCT - 47 + col2 FROM tab2 AS cor0
----
-20
-21
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 * ( col2 ) col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + col1 * 1 + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT - 15 FROM tab2 cor0
----
-15
-15
-15
query I rowsort
SELECT ALL + col0 - + col0 * col1 * col0 FROM tab2
----
-106018
-1512
-358878
query I rowsort
SELECT col1 - tab1.col2 * - col2 AS col0 FROM tab1
----
2942
3259
9229
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col2 + col2 >= col0
----
35
97
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT col1 DIV - col2 col2 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7401
SELECT col1 / - col2 col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col0 * col1 * cor0.col1 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - col2 * + col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - col0 + col1 * col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL col0 * col1 + + col0 AS col1 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NOT col1 + col2 BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT col1 DIV tab2.col0 col2 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7409
SELECT col1 / tab2.col0 col2 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT col2 * col0 + - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT - tab0.col1 + - col0 - - col2 FROM tab0 WHERE + col1 + - col1 BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( - col1 ) AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab1.col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 48 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT ALL 98 FROM tab1
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT ALL - 16 DIV cor0.col1 - + ( 57 + col1 ) * col1 col2 FROM tab0 AS cor0
----
-12298
-13468
-14938
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - 16 / cor0.col1 - + ( 57 + col1 ) * col1 col2 FROM tab0 AS cor0
----
-12298
-13468
-14938
query I rowsort
SELECT ALL + + cor0.col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col2 - + cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + - col1 * col0 + 64 AS col1 FROM tab1 cor0
----
-14
-576
-976
query I rowsort
SELECT - 94 AS col0 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT + col1 * - col0 + - col1 / col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT DISTINCT - tab1.col0 DIV col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT - tab1.col0 / col2 FROM tab1
----
-1
0
query I rowsort
SELECT + col1 * + col1 * tab0.col1 FROM tab0
----
636056
753571
912673
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( tab1.col2 + - col1 * col2 * - col2 )
----
query I rowsort
SELECT + col0 * col1 * col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT tab2.col1 * tab2.col2 * + col0 + col1 AS col1 FROM tab2
----
119711
51051
5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + - col0 * + col1 col2 FROM tab0
----
-1945
-3297
-7926
onlyif mysql # use DIV operator for integer division
query I rowsort label-7428
SELECT ALL - col0 DIV col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - col0 / col0 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT ALL + col0 DIV - col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + col0 / - col2 FROM tab1
----
-1
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col0 - - col2 * - tab1.col2 * - tab1.col2 )
----
query I rowsort
SELECT col2 + - col1 - - tab1.col2 * - col0 AS col1 FROM tab1
----
-134
-3601
-7597
onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT - col1 * + col0 DIV - col0 AS col2 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - col1 * + col0 / - col0 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 + - col0 * col0 * + col0 + + col1 FROM tab2 AS cor0
----
-305
-474415
-492943
query I rowsort
SELECT - col1 + - col2 * col2 + col1 * col2 * col2 AS col1 FROM tab1 cor0
----
110579
29231
72874
query I rowsort
SELECT + col2 * + col1 + - col2 * col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + cor0.col0 )
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND ( + col0 )
----
query I rowsort
SELECT + col0 * col0 + - col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT col0 * + col1 + col2 AS col1 FROM tab1
----
1136
132
697
query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN ( NULL ) AND ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * tab1.col2 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + tab2.col0 - col1 AS col0 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT ALL - col0 - - col0 DIV + col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL - col0 - - col0 / + col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT col2 * + col0 NOT BETWEEN NULL AND + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col0 col2 FROM tab1
----
12
4160
6480
query I rowsort
SELECT + col0 * - col1 + col2 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col0 * col0 * + col1 + + col1 AS col0 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + 15 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
query I rowsort
SELECT ALL - 91 + - col0 * - tab2.col0 + + 60 FROM tab2
----
18
6053
6210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT ALL col1 + col1 + + col1 * CAST( col0 + - col0 AS SIGNED ) FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL col1 + col1 + + col1 * CAST ( col0 + - col0 AS INTEGER ) FROM tab1
----
20
26
52
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT ( + col0 ) + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT + 4 * cor0.col0 + + col1 DIV col0 + - col0 AS col1 FROM tab1 AS cor0
----
17
192
240
skipif mysql # not compatible
query I rowsort label-7455
SELECT + 4 * cor0.col0 + + col1 / col0 + - col0 AS col1 FROM tab1 AS cor0
----
17
192
240
query I rowsort
SELECT - col0 + col2 * + col2 + col2 * 50 AS col2 FROM tab2 AS cor0
----
1898
2072
3265
query I rowsort
SELECT ALL - ( col0 ) * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7458
SELECT ALL CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab1 AS cor0
----
79
query I rowsort
SELECT ALL 22 FROM tab2 AS cor0
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT - + 83 DIV col2 FROM tab0 AS cor0
----
-1
-2
-83
skipif mysql # not compatible
query I rowsort label-7461
SELECT - + 83 / col2 FROM tab0 AS cor0
----
-1
-2
-83
query I rowsort
SELECT DISTINCT + 35 + col1 * + 36 AS col0 FROM tab0 AS cor0
----
3131
3311
3527
query I rowsort
SELECT + - col1 * + col1 + - col2 * - 69 + col0 FROM tab2 AS cor0
----
-1609
2412
909
onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT + 37 + 58 DIV col1 AS col2 FROM tab2
----
37
38
40
skipif mysql # not compatible
query I rowsort label-7464
SELECT + 37 + 58 / col1 AS col2 FROM tab2
----
37
38
40
query I rowsort
SELECT + col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ( col2 * + col1 ) + - col0 * + 81 AS col1 FROM tab2
----
-4784
-5753
270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 ) * - col2 * ( - tab1.col0 ) col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT 37 + + col0 * + col2 + - col0 * 91 FROM tab0
----
-1355
-3113
-764
onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT ALL - cor0.col0 DIV + cor0.col2 + 20 + cor0.col0 FROM tab1 AS cor0
----
100
23
83
skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - cor0.col0 / + cor0.col2 + 20 + cor0.col0 FROM tab1 AS cor0
----
100
23
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7471
SELECT DISTINCT - + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT - + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * 36 col0 FROM tab0 AS cor0
----
-20736
-285156
-44100
query I rowsort
SELECT ALL + + col2 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT col0 + - 93 AS col1 FROM tab2 cor0
----
-14
-15
-86
query I rowsort
SELECT DISTINCT + + col1 + col2 * col0 * - col0 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT col0 * 53 FROM tab1 cor0
----
159
3392
4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT DISTINCT + + col1 DIV 9 AS col0 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + + col1 / 9 AS col0 FROM tab1 AS cor0
----
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab2
----
92
92
92
query I rowsort
SELECT + cor0.col0 + col2 * - ( + col1 + - col1 * - 87 ) AS col0 FROM tab0 AS cor0
----
-249720
-656567
-8501
onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT DISTINCT + col1 + - ( cor0.col0 ) DIV col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + col1 + - ( cor0.col0 ) / col2 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT tab0.col0 - - col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col0 * + col2 + + 71 - + col0 FROM tab2
----
-125
-2035
-3010
query I rowsort
SELECT - 57 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT DISTINCT + - col2 * - 48 * 52 + + col0 FROM tab0 AS cor0
----
204761
2531
82392
query I rowsort
SELECT ALL + + col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 20 FROM tab0, tab0 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT DISTINCT - 13 + 19 FROM tab2
----
6
query I rowsort
SELECT - ( col1 + tab0.col0 ) * - col2 AS col1 FROM tab0
----
132
14760
3630
query I rowsort
SELECT + col1 * - 20 FROM tab2
----
-1180
-340
-620
query I rowsort
SELECT 40 * + 89 * - col1 AS col2 FROM tab1
----
-35600
-46280
-92560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab1
----
72
query I rowsort
SELECT DISTINCT - tab1.col1 + + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT col0 * + 99 * - col1 AS col1 FROM tab0
----
-204336
-336105
-801801
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT DISTINCT - col0 * col2 DIV col1 + - col1 + col1 AS col2 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - col0 * col2 / col1 + - col1 + col1 AS col2 FROM tab1
----
-364
-590
-6
query I rowsort
SELECT - cor0.col0 - + col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT 18 * + 63 FROM tab0 cor0
----
1134
1134
1134
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
query I rowsort
SELECT ALL - 72 AS col0 FROM tab0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + 24 + col1 * col2 FROM tab0 AS cor0
----
121
2862
7486
query I rowsort
SELECT DISTINCT - + 95 AS col2 FROM tab0 AS cor0
----
-95
query I rowsort
SELECT - - 18 * - col0 FROM tab1 AS cor0
----
-1152
-1440
-54
query I rowsort
SELECT - col2 * + col0 + + col1 * - col2 * - cor0.col2 FROM tab0 AS cor0
----
604586
62
92862
query I rowsort
SELECT + col0 * - col0 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-10634
-16202
-7972
query I rowsort
SELECT ALL - ( - col2 ) + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + 24 FROM tab0 AS cor0
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT ALL col0 + + tab0.col1 * col2 DIV col2 AS col2 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL col0 + + tab0.col1 * col2 / col2 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT - cor0.col2 * + col2 + - col2 * - cor0.col1 * col2 AS col0 FROM tab1 cor0
----
110592
29241
72900
query I rowsort
SELECT col2 * cor0.col0 * + col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7510
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - 97 AS col1 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 * + col2 * + 19 FROM tab2 AS cor0
----
3591
38532
57038
query I rowsort
SELECT + - cor0.col1 + 79 FROM tab0 AS cor0
----
-12
-18
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT CAST( NULL AS SIGNED ) + + col2 * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7515
SELECT CAST ( NULL AS INTEGER ) + + col2 * col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 47 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT cor0.col0 + - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7518
SELECT DISTINCT + col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + + ( 24 ) FROM tab0
----
-58
-9
23
query I rowsort
SELECT - - col2 + + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT ALL col1 DIV col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL col1 / col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT ALL col1 DIV col1 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL col1 / col1 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT 94 AS col2 FROM tab1
----
94
94
94
query I rowsort
SELECT + col1 + - tab1.col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT DISTINCT col2 * col2 DIV col1 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT col2 * col2 / col1 FROM tab2
----
11
23
84
query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 * col1 + col0 AS col2 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7532
SELECT ALL + + col2 * + CAST( - ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + + col2 * + CAST ( - ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col1 + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col0 + - 50 AS col0 FROM tab2 AS cor0
----
-128
-129
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7535
SELECT ALL col1 + col1 * - col1 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL col1 + col1 * - col1 / + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 * + 4 + - col0 * col0 FROM tab1 AS cor0
----
-3868
-6016
207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + 51 * col0 col1 FROM tab1 AS cor0
----
179
3274
4093
query I rowsort
SELECT + col0 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT ALL + + col1 DIV - 40 AS col0 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + + col1 / - 40 AS col0 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL + + col0 * cor0.col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7542
SELECT + col1 DIV + col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7542
SELECT + col1 / + col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL - cor0.col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7544
SELECT + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7544
SELECT + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 + cor0.col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT - col0 DIV ( - col1 ) col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7546
SELECT - col0 / ( - col1 ) col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + - 79 * col1 FROM tab2
----
-1326
-2418
-4602
query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col2 * col0 col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL 20 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT ALL 22 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 * - 15 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT + 74 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT + tab1.col2 + col0 + - 71 FROM tab1
----
-14
105
50
query I rowsort
SELECT ALL 99 + + col2 FROM tab0
----
100
132
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 * + col2 col1 FROM tab2
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 36 + col2 col1 FROM tab2 AS cor0
----
-10
-9
2
query I rowsort
SELECT ALL - 33 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
16
6051
6208
query I rowsort
SELECT - - ( col2 ) * 73 + - col1 FROM tab2 AS cor0
----
1839
1940
2757
query I rowsort
SELECT ALL 11 AS col0 FROM tab1 AS cor0
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 col1 FROM tab0 AS cor0
----
-50
-50
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col1 FROM tab1
----
51
51
51
query I rowsort
SELECT DISTINCT - col2 * col2 - + col1 AS col1 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col0 - + col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL + col2 * col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT tab2.col2 + ( 58 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dd1f7f854e75e37d5b8e7dfdbf54f05f
query I rowsort
SELECT + + col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col1 * ( 49 ) AS col0 FROM tab2
----
1519
2891
833
query I rowsort
SELECT DISTINCT col1 + + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col2 * + 93 + + 97 FROM tab1 AS cor0
----
5119
5398
9025
onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT - + col1 * - 1 + cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7576
SELECT - + col1 * - 1 + cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7
query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT + + ( 24 ) * col1 FROM tab1 AS cor0
----
240
312
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-7581
SELECT - 86 DIV col1 + col0 FROM tab1 AS cor0
----
0
56
74
skipif mysql # not compatible
query I rowsort label-7581
SELECT - 86 / col1 + col0 FROM tab1 AS cor0
----
0
56
74
query I rowsort
SELECT ALL - 75 - + col1 * - col1 AS col0 FROM tab0 AS cor0
----
7321
8206
9334
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + cor0.col1 col0 FROM tab0 cor0
----
130
135
141
query I rowsort
SELECT ALL + + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + 41 - - col0 FROM tab2 AS cor0
----
-34
37
38
query I rowsort
SELECT ALL - + 73 FROM tab1 AS cor0
----
-73
-73
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT - 49 + + col0 * + CAST( - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-4145
-58
-6449
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7587
SELECT - 49 + + col0 * + CAST ( - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-4145
-58
-6449
query I rowsort
SELECT DISTINCT - 25 * col2 FROM tab0 cor0
----
-2050
-25
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + col1 col0 FROM tab1 AS cor0
----
44
47
60
query I rowsort
SELECT - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 - + col1 * col1 AS col2 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + ( - col0 + col1 ) FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7593
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT - 10 AS col2 FROM tab1 AS cor0
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT 60 DIV + col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7595
SELECT 60 / + col0 FROM tab0
----
0
1
2
query I rowsort
SELECT ALL 2 + + col0 FROM tab1
----
5
66
82
query I rowsort
SELECT + col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 + col0 * + col0 AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + col0 * col0 * col0 AS col1 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + col2 * - ( col2 * col1 ) - cor0.col2 AS col2 FROM tab1 AS cor0
----
-119904
-32547
-75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-7601
SELECT DISTINCT - col2 DIV 12 FROM tab2
----
-2
-3
skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - col2 / 12 FROM tab2
----
-2
-3
query I rowsort
SELECT 6 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT 14 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT DISTINCT + - 35 FROM tab1, tab2, tab1 AS cor0
----
-35
query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 * col2 * 35 + col0 AS col2 FROM tab2 AS cor0
----
-104991
-6608
-70902
query I rowsort
SELECT ALL - + col0 * + 61 + + 69 FROM tab1 AS cor0
----
-114
-3835
-4811
query I rowsort
SELECT ALL - col0 * 39 AS col2 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT col0 * + col0 + 80 FROM tab2 AS cor0
----
129
6164
6321
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7610
SELECT - - col2 * CAST( NULL AS SIGNED ) * ( col2 * 2 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7610
SELECT - - col2 * CAST ( NULL AS INTEGER ) * ( col2 * 2 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 + 7 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT - cor0.col0 * + 32 AS col2 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT DISTINCT - tab0.col0 * 80 AS col1 FROM tab0
----
-1920
-2800
-7120
query I rowsort
SELECT - col0 * ( + col1 + col0 ) FROM tab0
----
-16020
-2640
-4620
query I rowsort
SELECT + col1 + + 47 FROM tab0
----
133
138
144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7616
SELECT + - col0 + CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-7616
SELECT + - col0 + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT col1 + 37 FROM tab1 AS cor0
----
47
50
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab0.col2 + col2 col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT 7 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT ALL + ( + col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + 28 AS col2 FROM tab2 cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT col2 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - - 56 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
1377
1961
5066
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7626
SELECT DISTINCT CAST( NULL AS SIGNED ) + 40 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 40 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 6 * - 84 FROM tab2 AS cor0
----
-504
-504
-504
onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT ALL col0 * + 65 + + col0 DIV - 70 FROM tab0 AS cor0
----
1560
2275
5784
skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL col0 * + 65 + + col0 / - 70 FROM tab0 AS cor0
----
1560
2275
5784
query I rowsort
SELECT col1 + + 43 FROM tab2 cor0
----
102
60
74
query I rowsort
SELECT ALL - - ( 97 ) FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT - - col1 * cor0.col0 + col2 + col2 AS col2 FROM tab0 AS cor0
----
2130
3397
8263
query I rowsort
SELECT + 8 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT + 54 + + col0 + - col2 FROM tab1 AS cor0
----
3
38
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7634
SELECT - - 71 DIV + col2 + ( 51 ) + cor0.col1 col1 FROM tab0 AS cor0
----
139
142
219
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7634
SELECT - - 71 / + col2 + ( 51 ) + cor0.col1 col1 FROM tab0 AS cor0
----
139
142
219
query I rowsort
SELECT ALL - col2 + - tab0.col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT + ( cor0.col2 ) * 76 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT - col1 * col0 + - ( - col0 ) * + col1 * - cor0.col0 FROM tab1 AS cor0
----
-312
-41600
-84240
query I rowsort
SELECT 17 * + col2 + + 30 * col1 FROM tab2 AS cor0
----
1156
1389
2212
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + cor0.col0 + + col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1, tab2 cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT + col2 * - 87 * col2 - + col0 FROM tab1 AS cor0
----
-253695
-282727
-801872
query I rowsort
SELECT 69 + - col2 AS col2 FROM tab0 AS cor0
----
-13
36
68
query I rowsort
SELECT DISTINCT - 68 FROM tab1 AS cor0
----
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - cor0.col0 col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL cor0.col1 * 33 FROM tab2 cor0
----
1023
1947
561
query I rowsort
SELECT 53 + col0 * + col2 - ( + col1 + col1 ) * - 84 AS col0 FROM tab1
----
4583
5381
9917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - ( col2 ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) + cor0.col1 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2 AS cor0
----
-63
query I rowsort
SELECT ALL + 90 * + 73 AS col0 FROM tab2 AS cor0
----
6570
6570
6570
query I rowsort
SELECT ALL - + 26 * - col1 AS col2 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT DISTINCT 88 * + 62 FROM tab0 AS cor0
----
5456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT CAST( NULL AS DECIMAL ) + col2 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7656
SELECT CAST ( NULL AS REAL ) + col2 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - ( - col1 ) + col2 + + col2 AS col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - 99 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
118
1244
4503
query I rowsort
SELECT - + col2 * col1 + col0 + + col1 FROM tab0 AS cor0
----
-2728
-7282
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT - 17 DIV 26 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-7661
SELECT - 17 / 26 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7662
SELECT DISTINCT - - col2 DIV + col2 col1 FROM tab1 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT - - col2 / + col2 col1 FROM tab1 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7663
SELECT ( + 95 ) DIV col2 FROM tab0
----
1
2
95
skipif mysql # not compatible
query I rowsort label-7663
SELECT ( + 95 ) / col2 FROM tab0
----
1
2
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7664
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 / + col0 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 / + col0 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + col2 + 0 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL 90 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7667
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) - + col0 * - cor0.col1 * 64 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) - + col0 * - cor0.col1 * 64 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7668
SELECT + cor0.col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7668
SELECT + cor0.col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL + + col2 * + 78 FROM tab0 cor0
----
2574
6396
78
query I rowsort
SELECT - - ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * - 44 AS col0 FROM tab2
----
-1144
-1188
-1672
query I rowsort
SELECT - 96 + - 7 FROM tab2, tab1 cor0
----
9 values hashing to 4075dadda88ee5f6a84abede0a0e9aa0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 17 col2 FROM tab0
----
-1513
-408
-595
query I rowsort
SELECT ALL - - ( - col1 ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + 63 * - 47 FROM tab2 AS cor0
----
-2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT + 72 + - 24 FROM tab1
----
48
48
48
query I rowsort
SELECT 19 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7679
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT 97 + + tab1.col0 DIV + col2 FROM tab1
----
97
97
98
skipif mysql # not compatible
query I rowsort label-7680
SELECT 97 + + tab1.col0 / + col2 FROM tab1
----
97
97
98
query I rowsort
SELECT ALL + + 32 + - col2 FROM tab2 AS cor0
----
-6
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * col2 + + col0 col1 FROM tab1 AS cor0
----
4053
4339
7280
query I rowsort
SELECT + + 8 + col0 AS col2 FROM tab1 AS cor0
----
11
72
88
query I rowsort
SELECT ALL + + col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + 57 * + col2 FROM tab2 AS cor0
----
1482
1539
2166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * 98 col1 FROM tab1 AS cor0
----
4018
4018
4018
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7689
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 65 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 65 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7690
SELECT + + CAST( ( - col1 ) AS SIGNED ) * ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-7690
SELECT + + CAST ( ( - col1 ) AS INTEGER ) * ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( - col0 ) + col1 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT tab0.col2 + col0 DIV ( 63 ) AS col1 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-7692
SELECT tab0.col2 + col0 / ( 63 ) AS col1 FROM tab0
----
1
33
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT ALL + ( + col1 ) DIV ( + col0 ) + col0 AS col1 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + ( + col1 ) / ( + col0 ) + col0 AS col1 FROM tab1
----
11
64
80
query I rowsort
SELECT DISTINCT col1 * col1 + - 59 FROM tab2 AS cor0
----
230
3422
902
query I rowsort
SELECT cor0.col2 + col0 * + ( col0 ) FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-7696
SELECT ALL + + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + + col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT DISTINCT + ( + col0 * + col2 ) + - tab1.col1 DIV - col1 AS col2 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + ( + col0 * + col2 ) + - tab1.col1 / - col1 AS col2 FROM tab1
----
163
3649
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * + col2 col1 FROM tab0 cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT ALL + + col0 * + col0 DIV col0 AS col0 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + + col0 * + col0 / col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL col1 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT DISTINCT - col1 * - CAST( + col2 + col2 AS SIGNED ) FROM tab1 AS cor0
----
1140
2496
2808
skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - col1 * - CAST ( + col2 + col2 AS INTEGER ) FROM tab1 AS cor0
----
1140
2496
2808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + cor0.col2 col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + - col2 * - col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT + col2 + col0 + + col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT - col0 + + ( + 44 ) FROM tab1 cor0
----
-20
-36
41
query I rowsort
SELECT col0 * col0 + 61 FROM tab2 AS cor0
----
110
6145
6302
query I rowsort
SELECT ALL - col1 + cor0.col1 * - 48 * - col1 FROM tab1 AS cor0
----
32422
4790
8099
query I rowsort
SELECT - col1 + + col2 * 0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7711
SELECT DISTINCT + cor0.col1 + - CAST( NULL AS SIGNED ) * - cor0.col2 col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT + cor0.col1 + - CAST ( NULL AS INTEGER ) * - cor0.col2 col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 61 + tab1.col2 FROM tab1
----
-4
-7
35
query I rowsort
SELECT + + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - - col0 * ( + 12 ) + col1 FROM tab1 AS cor0
----
62
778
973
query I rowsort
SELECT ALL + + col1 + + col1 * - cor0.col2 AS col1 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT - cor0.col0 DIV cor0.col0 + ( col0 + 91 ) AS col1 FROM tab0 cor0
----
114
125
179
skipif mysql # not compatible
query I rowsort label-7716
SELECT - cor0.col0 / cor0.col0 + ( col0 + 91 ) AS col1 FROM tab0 cor0
----
114
125
179
query I rowsort
SELECT DISTINCT + - col1 * ( + col1 ) + - col0 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT - tab0.col0 * + ( 71 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 432b8119e85884c1f8e9e321e4d09124
query I rowsort
SELECT + tab0.col2 + + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156
query I rowsort
SELECT - 90 + - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-187
-2928
-7552
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT - ( col1 ) DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7721
SELECT - ( col1 ) / + col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 23 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-103
-26
-87
query I rowsort
SELECT + + 14 * col2 AS col2 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT - 96 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
onlyif mysql # use DIV operator for integer division
query I rowsort label-7726
SELECT ALL + col2 * col0 DIV col1 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + col2 * col0 / col1 FROM tab0
----
0
80
9
query I rowsort
SELECT - - col1 + ( + col1 ) * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT ( col1 ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 84 FROM tab1
----
84
84
84
query I rowsort
SELECT 26 + ( cor0.col0 ) FROM tab2 cor0
----
104
105
33
query I rowsort
SELECT + col1 * + ( col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT 15 * col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1319
50
519
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
10
13
26
query I rowsort
SELECT col2 + - 90 FROM tab2
----
-52
-63
-64
query I rowsort
SELECT 81 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + col2 + 8 FROM tab0
----
41
9
90
query I rowsort
SELECT col0 * + 9 FROM tab1
----
27
576
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) * + col1 + - ( - col0 * tab1.col2 ) col1 FROM tab1
----
-1268
3068
6419
query I rowsort
SELECT DISTINCT 37 + 96 FROM tab2, tab0 AS cor0
----
133
query I rowsort
SELECT col2 + col0 + + col2 AS col2 FROM tab1
----
111
178
272
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7743
SELECT DISTINCT - cor1.col2 * CAST( NULL AS SIGNED ) + + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - cor1.col2 * CAST ( NULL AS INTEGER ) + + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7744
SELECT 9 * 98 + + tab2.col2 * + CAST( NULL AS SIGNED ) * 46 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7744
SELECT 9 * 98 + + tab2.col2 * + CAST ( NULL AS INTEGER ) * 46 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( 99 ) FROM tab2
----
99
99
99
query I rowsort
SELECT ALL ( + col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 17 * - cor0.col2 FROM tab0 cor0
----
-1394
-17
-561
query I rowsort
SELECT - + col1 * col2 + - col2 AS col1 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL ( 90 ) * + col2 + + 48 AS col1 FROM tab2 AS cor0
----
2388
2478
3468
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + col0 col2 FROM tab1 AS cor0
----
-59
18
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT DISTINCT + + col2 DIV - col1 + - col0 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + + col2 / - col1 + - col0 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT - col0 + - 48 AS col0 FROM tab2 cor0
----
-126
-127
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7753
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 75 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 75 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7754
SELECT DISTINCT - CAST( + 32 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864
skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT - CAST ( + 32 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864
query I rowsort
SELECT - col0 + - 73 * - col1 AS col0 FROM tab1 AS cor0
----
1895
666
869
onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT + + col1 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7756
SELECT + + col1 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT 95 * col0 FROM tab2 AS cor0
----
665
7410
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT + 32 * col2 DIV + col1 + - cor0.col1 FROM tab1 AS cor0
----
172
223
40
skipif mysql # not compatible
query I rowsort label-7758
SELECT + 32 * col2 / + col1 + - cor0.col1 FROM tab1 AS cor0
----
172
223
40
query I rowsort
SELECT DISTINCT 46 - col2 AS col2 FROM tab0 cor0
----
-36
13
45
query I rowsort
SELECT 30 + + cor0.col2 FROM tab2 AS cor0
----
56
57
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col0 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7762
SELECT ALL - col1 + col1 * CAST( NULL AS SIGNED ) * ( col2 ) 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-7762
SELECT ALL - col1 + col1 * CAST ( NULL AS INTEGER ) * ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + - col1 col1 FROM tab2 AS cor0
----
38
66
80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 cor0, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT ALL - 44 + tab1.col0 FROM tab1
----
-41
20
36
query I rowsort
SELECT ALL col1 + - col1 * - col1 AS col0 FROM tab1
----
110
182
702
query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL col1 * col2 + + ( col2 ) * col2 + + col2 AS col0 FROM tab2 AS cor0
----
1593
2128
2236
query I rowsort
SELECT ALL + col0 * + col1 + 98 * + col0 FROM tab1 AS cor0
----
372
6912
8880
query I rowsort
SELECT col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + 94 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT ALL col2 - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL col2 - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT DISTINCT tab0.col2 * + CAST( NULL AS SIGNED ) / 83 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT tab0.col2 * + CAST ( NULL AS INTEGER ) / 83 FROM tab0
----
NULL
query I rowsort
SELECT + 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT col1 * col0 + 24 AS col2 FROM tab1 AS cor0
----
102
1064
664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 * 21 col0 FROM tab0 AS cor0
----
-76
1631
607
query I rowsort
SELECT + col2 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT col0 * 1 * + col2 + - col1 * + cor0.col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ( + cor0.col0 ) + + col0 * 33 FROM tab2 AS cor0
----
238
2652
2686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + col2 * - col0 * + col2 col0 FROM tab1 AS cor0
----
-207836
-737111
-8072
query I rowsort
SELECT + 84 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT + 43 * ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
1065
1506
3909
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT DISTINCT CAST( NULL AS SIGNED ) + 80 * - col2 * + 73 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 80 * - col2 * + 73 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 56 * col2 + - col1 FROM tab1 AS cor0
----
2998
3182
5363
query I rowsort
SELECT ALL + col0 + col0 * + col2 FROM tab1 cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col1 col2 FROM tab0 WHERE ( NULL ) IN ( col0 )
----
query I rowsort
SELECT ALL + col0 * + col2 - + col2 * col2 FROM tab0
----
-297
34
574
query I rowsort
SELECT DISTINCT + col1 + - col1 + col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + tab1.col2 / col0 )
----
query I rowsort
SELECT - col2 + + col2 * col1 AS col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT ALL + col2 * + col2 * - col1 + - col2 FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN col1 AND - col1
----
query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN col2 * - col2 AND col0 / col2
----
35
97
1
query I rowsort
SELECT - col0 + col2 + tab0.col1 * + col0 FROM tab0
----
2073
3361
8092
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT IN ( col0 * col0 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col1 FROM tab1 cor0 WHERE NOT NULL <> col1
----
query I rowsort
SELECT DISTINCT + tab0.col1 * col1 - col2 * + col1 * + col0 AS col0 FROM tab0
----
-60716
-655837
6014
query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col0 * col0 / + col0 FROM tab0 WHERE NOT + col1 NOT BETWEEN + col1 AND ( + col2 )
----
query I rowsort
SELECT DISTINCT - col0 * col0 - - col1 AS col2 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT + col0 + col1 DIV + col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7802
SELECT + col0 + col1 / + col1 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT tab1.col1 * col0 * + col2 - + col1 AS col2 FROM tab1
----
36470
4186
99827
query I rowsort
SELECT ALL + col2 + - col0 + col2 AS col2 FROM tab0
----
-33
42
75
query I rowsort
SELECT col1 * col0 * col2 + + col2 AS col0 FROM tab1
----
36537
4266
99936
query III rowsort
SELECT * FROM tab0 WHERE col1 + col2 NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL - col0 * col1 * col2 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT + tab0.col0 + - col1 DIV - col2 AS col2 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-7808
SELECT + tab0.col0 + - col1 / - col2 AS col2 FROM tab0
----
132
26
90
query I rowsort
SELECT tab1.col0 + + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + col0 * col2 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT - col1 + + tab1.col2 * col1 + col0 FROM tab1 WHERE NOT NULL <= col0
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / col2 <> ( + col0 )
----
query I rowsort
SELECT ALL tab1.col2 * - tab1.col1 + + col2 * col0 AS col1 FROM tab1
----
-1242
3078
6432
query I rowsort
SELECT + + col0 + col2 + + col0 * + col2 FROM tab2 AS cor0
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-7815
SELECT - col0 + col0 DIV col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7815
SELECT - col0 + col0 / col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + - cor0.col2 - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL + + cor0.col2 * + col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT col2 + col0 * + col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7820
SELECT - col0 + + col2 DIV col1 FROM tab1 cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-7820
SELECT - col0 + + col2 / col1 FROM tab1 cor0
----
-1
-59
-73
query I rowsort
SELECT ALL + + col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7822
SELECT DISTINCT + col2 * + col0 + col0 + + cor0.col0 * col0 DIV col1 FROM tab1 AS cor0
----
165
4121
8252
skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + col2 * + col0 + col0 + + cor0.col0 * col0 / col1 FROM tab1 AS cor0
----
165
4121
8252
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > - col1
----
query I rowsort
SELECT col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col0 - - cor0.col1 FROM tab0 AS cor0
----
1199
133
6904
query I rowsort
SELECT DISTINCT col2 - col0 * - col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col0 - - col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - col2 + - 21 AS col1 FROM tab2 AS cor0
----
-47
-48
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT - + col0 * CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7829
SELECT - + col0 * CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * ( - 70 ) FROM tab1 AS cor0
----
-1820
-700
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT ALL + - col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + - col2 / col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT + - col2 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-7832
SELECT + - col2 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT ALL - - col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + col2 + col1 + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - col2 * + 54 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT DISTINCT + col0 * 17 FROM tab0
----
1513
408
595
query I rowsort
SELECT col0 + 12 FROM tab1 cor0
----
15
76
92
query I rowsort
SELECT + col0 * col0 - - ( 67 ) FROM tab1
----
4163
6467
76
query I rowsort
SELECT - - col2 + + ( + cor0.col1 ) + col2 * - col1 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT - col0 * + 96 * 61 + cor0.col0 FROM tab0 AS cor0
----
-140520
-204925
-521095
query I rowsort
SELECT col1 + + 20 * 61 AS col2 FROM tab2 AS cor0
----
1237
1251
1279
query I rowsort
SELECT - 92 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
1936
2910
97
query I rowsort
SELECT col1 * col2 + tab2.col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT 29 * + cor0.col0 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT + cor0.col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - + 54 * - col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT col2 * + col0 + tab0.col2 * + col2 AS col0 FROM tab0
----
14022
1881
36
query I rowsort
SELECT DISTINCT col0 * + tab2.col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 + - col2 + + col0 AS col1 FROM tab0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT DISTINCT - tab0.col0 DIV tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - tab0.col0 / tab0.col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT ALL tab0.col1 * col0 DIV + col2 AS col2 FROM tab0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL tab0.col1 * col0 / + col2 AS col2 FROM tab0
----
3395
62
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7852
SELECT DISTINCT + col2 DIV + col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT + col2 / + col0 FROM tab2
----
0
3
query I rowsort
SELECT col1 * col2 + - col0 + - col1 AS col2 FROM tab0
----
-35
2728
7282
query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( col0 / + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * col2 + col1 * - col2 col0 FROM tab0
----
-1322
-21846
-656984
query I rowsort
SELECT DISTINCT 47 FROM tab2, tab1, tab2 cor0
----
47
query I rowsort
SELECT DISTINCT - col1 + col2 + col1 * tab2.col2 FROM tab2
----
1501
667
833
query I rowsort
SELECT 71 * + col0 AS col1 FROM tab0
----
1704
2485
6319
query I rowsort
SELECT 42 * - col2 + 40 FROM tab0
----
-1346
-2
-3404
query I rowsort
SELECT DISTINCT 72 + + col0 AS col1 FROM tab1
----
136
152
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - col2 + col0 col0 FROM tab1
----
-1455
-1475
-2512
query I rowsort
SELECT ALL 7 AS col2 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT + 43 + col1 AS col0 FROM tab1 cor0
----
53
56
69
query I rowsort
SELECT ALL - - 76 * + cor0.col1 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f68e924d60ba90196ff7cbd0f94fe0f
query I rowsort
SELECT - tab0.col0 * + tab0.col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 6049db922cf615ac02010fbaffaf74d8
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + ( col2 ) + - 29 FROM tab1
----
25
28
67
query I rowsort
SELECT DISTINCT 32 * tab2.col1 * + 53 AS col2 FROM tab2
----
100064
28832
52576
query I rowsort
SELECT - col1 * + ( - col2 ) AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - 19 + 4 AS col2 FROM tab0
----
-15
-15
-15
query I rowsort
SELECT - col1 * col2 * col2 - col2 FROM tab0
----
-611966
-93687
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7872
SELECT + CAST( + 77 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
1309
2387
4543
skipif mysql # not compatible
query I rowsort label-7872
SELECT + CAST ( + 77 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT 87 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT ALL + - col0 DIV + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + - col0 / + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT col2 + col0 DIV + col1 AS col0 FROM tab2 cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-7876
SELECT col2 + col0 / + col1 AS col0 FROM tab2 cor0
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT DISTINCT 97 DIV - cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-1
-32
skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 97 / - cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-1
-32
query I rowsort
SELECT ALL cor0.col2 * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT 93 AS col1 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7880
SELECT 49 DIV col1 AS col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7880
SELECT 49 / col1 AS col1 FROM tab2
----
0
1
2
query I rowsort
SELECT - 29 + - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-49
-55
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7882
SELECT + - cor0.col1 * col2 DIV + ( col1 ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7882
SELECT + - cor0.col1 * col2 / + ( col1 ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT - col1 * - col1 DIV - col1 + - col0 * - cor0.col1 * col2 + col2 col2 FROM tab2 AS cor0
----
119619
51055
5855
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7883
SELECT - col1 * - col1 / - col1 + - col0 * - cor0.col1 * col2 + col2 col2 FROM tab2 AS cor0
----
119619
51055
5855
onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT + col1 + - col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7884
SELECT + col1 + - col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
10
13
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT + + col2 DIV col2 + + 38 * - col2 FROM tab1 cor0
----
-2051
-2165
-3647
skipif mysql # not compatible
query I rowsort label-7885
SELECT + + col2 / col2 + + 38 * - col2 FROM tab1 cor0
----
-2051
-2165
-3647
query I rowsort
SELECT + col1 * col0 + 58 FROM tab0 AS cor0
----
2122
3453
8157
query I rowsort
SELECT col1 * tab2.col2 * - ( col0 ) FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * col1 ) col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 * col2 * ( + 58 ) + col1 * col2 FROM tab0
----
167442
440258
5723
query I rowsort
SELECT 81 + col1 FROM tab2
----
112
140
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT - col2 DIV - col2 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7891
SELECT - col2 / - col2 col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
45
query I rowsort
SELECT + col1 + col2 * cor0.col1 + - col1 * + col1 FROM tab1 AS cor0
----
1092
480
754
query I rowsort
SELECT ALL + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7895
SELECT DISTINCT + cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT + cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - col0 * - col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT col0 + + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - col1 + - col2 * - col2 * col0 FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT - col2 + col0 * - col0 FROM tab1 AS cor0
----
-4153
-63
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + col2 * col2 * - col2 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT + col1 * col1 * - col1 AS col2 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT col0 * col0 + + cor0.col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT + + cor0.col1 + col1 + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2968
3269
9242
query I rowsort
SELECT DISTINCT + + col2 * col0 * col2 AS col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - - col1 * + col1 col2 FROM tab0
----
7515
8454
9507
query I rowsort
SELECT ALL col0 + col1 * + col1 AS col0 FROM tab1
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT + col1 DIV + tab2.col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7909
SELECT + col1 / + tab2.col1 AS col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL + col1 * col2 * col1 + tab0.col2 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT ALL + 84 + - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-13
-2754
-7378
query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab1 AS cor0
----
15
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT DISTINCT + + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + + col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col2 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - - col0 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + 26 FROM tab2, tab2 AS cor0
----
26
query I rowsort
SELECT col2 + - col1 * + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT + cor0.col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7922
SELECT + cor0.col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - - col0 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - 36 - col0 FROM tab1 AS cor0
----
-28
-44
33
query I rowsort
SELECT - 93 + - col1 AS col0 FROM tab0 AS cor0
----
-179
-184
-190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT DISTINCT + + col0 DIV col1 + + ( col2 + + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + + col0 / col1 + + ( col2 + + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT DISTINCT - 51 DIV + col0 + - CAST( 28 AS SIGNED ) DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT - 51 / + col0 + - CAST ( 28 AS INTEGER ) / - cor0.col0 FROM tab2 AS cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * col0 col0 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT ALL 28 + - col1 AS col1 FROM tab0
----
-58
-63
-69
query I rowsort
SELECT - - tab1.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7933
SELECT CAST( ( col2 ) AS SIGNED ) * - 62 FROM tab2
----
-1612
-1674
-2356
skipif mysql # not compatible
query I rowsort label-7933
SELECT CAST ( ( col2 ) AS INTEGER ) * - 62 FROM tab2
----
-1612
-1674
-2356
query I rowsort
SELECT - ( + col0 ) + + 6 * - col0 * - col0 FROM tab0
----
3432
47437
7315
query I rowsort
SELECT ALL cor0.col2 * col1 + 12 * 24 AS col2 FROM tab0 cor0
----
3126
385
7750
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 * - col0 col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - ( - col1 ) + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL 10 AS col0 FROM tab0 cor0
----
10
10
10
query I rowsort
SELECT DISTINCT + + cor0.col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 52 * - col0 AS col1 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT ALL - - 14 * col2 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT - 90 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618
query I rowsort
SELECT col1 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + cor0.col0 * + col0 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * tab2.col1 col1 FROM tab2
----
-1173
-2139
-4071
query I rowsort
SELECT + cor0.col1 + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - col2 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT ALL - - col0 DIV - col2 + col1 AS col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - - col0 / - col2 + col1 AS col2 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT col2 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - - 99 * - col1 + col0 FROM tab2 AS cor0
----
-1604
-3062
-5763
query I rowsort
SELECT + col0 + + 7 * col1 AS col1 FROM tab1 AS cor0
----
134
171
185
query I rowsort
SELECT ALL - + 95 * - col1 + - col0 FROM tab2 cor0
----
1536
2938
5527
onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT DISTINCT - - col2 DIV col1 + + col2 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT - - col2 / col1 + + col2 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 7 * + col2 FROM tab2 AS cor0
----
-182
-189
-266
onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT DISTINCT + - col2 DIV - 97 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + - col2 / - 97 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ( 26 ) FROM tab0
----
26
26
26
query I rowsort
SELECT + cor0.col2 * + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT ALL + 16 DIV col0 - col0 * - col1 FROM tab1 AS cor0
----
1040
640
83
skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + 16 / col0 - col0 * - col1 FROM tab1 AS cor0
----
1040
640
83
query I rowsort
SELECT - col0 + - col1 * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-16304
-36507
-5764
query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 - + col0 * + col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL 81 + 34 FROM tab0 AS cor0
----
115
115
115
onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT + cor0.col0 * col2 - - col0 * cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-7967
SELECT + cor0.col0 * col2 - - col0 * cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + 76 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT ALL - 79 * col0 FROM tab1 AS cor0
----
-237
-5056
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT + 80 + + col1 DIV + col2 FROM tab1 AS cor0
----
80
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + 80 + + col1 / + col2 FROM tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT - - col2 * + col2 + - cor0.col0 + cor0.col2 * + cor0.col2 * col1 FROM tab0 AS cor0
----
618519
63
94719
query I rowsort
SELECT - - col2 * cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + 2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT ALL col1 * col1 + 46 + - col2 AS col2 FROM tab2 AS cor0
----
297
3501
980
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT + col0 * col0 + 8 * - col1 FROM tab0 AS cor0
----
-112
449
7193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 + + col1 col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col0 * - col1 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + cor0.col2 + - ( 93 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1113
-2364
-873
query I rowsort
SELECT ALL col0 * 84 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT DISTINCT col2 + 1 * col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 62 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 13 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT ALL + cor0.col2 DIV ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + cor0.col2 / ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7989
SELECT + col2 * CAST( + col0 + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
16896
3078
6897
skipif mysql # not compatible
query I rowsort label-7989
SELECT + col2 * CAST ( + col0 + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
16896
3078
6897
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT DISTINCT col1 * 52 - col2 FROM tab2
----
1585
3042
846
query I rowsort
SELECT - 5 * - tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 8e5091446a038d11de77abb16480e82e
query I rowsort
SELECT ALL col1 + col1 - - col0 AS col2 FROM tab1
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7994
SELECT ALL tab0.col0 + - ( ( + col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL tab0.col0 + - ( ( + col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - 65 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT + + ( cor0.col0 ) - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 48 * 93 - - col2 FROM tab0 AS cor0
----
4465
4497
4546
query I rowsort
SELECT 48 * - 52 + col0 * col2 FROM tab0 AS cor0
----
-1704
-2461
4802
query I rowsort
SELECT + 77 + + col2 FROM tab1 AS cor0
----
131
134
173
query I rowsort
SELECT cor0.col2 * - tab0.col2 + tab0.col0 + + 76 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9b9a4108b9a708eaceac40c1afe2b3a8
query I rowsort
SELECT - - col2 + + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8002
SELECT 31 + col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8002
SELECT 31 + col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( cor0.col1 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8004
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8004
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + tab0.col1 + - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * + col1 + - col2 * col2 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT cor0.col1 * col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 * col2 col1 FROM tab1
----
-1026
-1083
-1824
query I rowsort
SELECT 65 + - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c4f035b4f4d27236baf860a2a521eef4
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - 65 FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8013
SELECT DISTINCT CAST( NULL AS SIGNED ) - - ( col2 * 47 + + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - ( col2 * 47 + + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( + cor0.col1 ) + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8015
SELECT + CAST( 44 AS SIGNED ) * col0 FROM tab1 AS cor0
----
132
2816
3520
skipif mysql # not compatible
query I rowsort label-8015
SELECT + CAST ( 44 AS INTEGER ) * col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT ALL - col0 * col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + 90 * - col0 - - col0 AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT + col0 * - col0 * col1 AS col2 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT - col0 + - col0 DIV + 53 AS col2 FROM tab2 AS cor0
----
-7
-79
-80
skipif mysql # not compatible
query I rowsort label-8021
SELECT - col0 + - col0 / + 53 AS col2 FROM tab2 AS cor0
----
-7
-79
-80
query I rowsort
SELECT + 81 + - col1 AS col1 FROM tab1 cor0
----
55
68
71
query I rowsort
SELECT - ( col0 ) * ( - col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 8 * col0 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT col2 - col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab2, tab1, tab0 AS cor0
----
20
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa
query I rowsort
SELECT ALL 59 AS col2 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT - - col1 * + ( col0 ) + + col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT + col1 + 29 FROM tab0 AS cor0
----
115
120
126
onlyif mysql # use DIV operator for integer division
query I rowsort label-8031
SELECT + - col2 DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8031
SELECT + - col2 / col2 AS col1 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT col0 DIV col0 + + ( cor0.col1 + - 16 ) AS col0 FROM tab0 AS cor0
----
71
76
82
skipif mysql # not compatible
query I rowsort label-8032
SELECT col0 / col0 + + ( cor0.col1 + - 16 ) AS col0 FROM tab0 AS cor0
----
71
76
82
query I rowsort
SELECT ALL - - col0 + 97 FROM tab2 AS cor0
----
104
175
176
query I rowsort
SELECT DISTINCT - col2 - 66 FROM tab2 cor0
----
-104
-92
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8035
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
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 + - col1 * ( + col1 ) + 72 * - col0 col1 FROM tab0 AS cor0
----
-11929
-14689
-9124
query I rowsort
SELECT - - 19 AS col1 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT + ( col0 ) + + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL 71 + 73 * cor0.col0 FROM tab0 AS cor0
----
1823
2626
6568
query I rowsort
SELECT - col0 * - col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8042
SELECT + - 20 DIV col1 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8042
SELECT + - 20 / col1 FROM tab1 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT - tab2.col1 * 94 AS col2 FROM tab2
----
-1598
-2914
-5546
onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT ALL - col2 DIV - 99 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - col2 / - 99 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-8046
SELECT ALL + cor0.col1 DIV + 92 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + cor0.col1 / + 92 AS col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8047
SELECT - + CAST( NULL AS SIGNED ) + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8047
SELECT - + CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 22 * + col0 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT ALL + 10 + col2 * - 50 FROM tab0 cor0
----
-1640
-40
-4090
query I rowsort
SELECT - + ( col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + col1 * + 51 * col0 AS col1 FROM tab0 AS cor0
----
-105264
-173145
-413049
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT - - col2 + - CAST( + col1 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-8052
SELECT - - col2 + - CAST ( + col1 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT 95 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT DISTINCT col2 DIV col2 + col0 + col1 AS col1 FROM tab0 AS cor0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT col2 / col2 + col0 + col1 AS col1 FROM tab0 AS cor0
----
111
133
181
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + ( - col2 ) + + cor0.col1 * + col1 FROM tab2 cor0
----
1895
540
6936
query I rowsort
SELECT - col0 * - 54 AS col2 FROM tab2 AS cor0
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT ALL - + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - + col1 / col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - 98 col1 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT + col0 - - col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - - cor0.col1 + ( - 76 * cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-4078
-4322
-7283
onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT col2 DIV - 49 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83
skipif mysql # not compatible
query I rowsort label-8061
SELECT col2 / - 49 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83
query I rowsort
SELECT DISTINCT ( 74 ) FROM tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT 74 * - col1 FROM tab2 AS cor0
----
-1258
-2294
-4366
onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT ALL - + col1 DIV + cor0.col0 + + col2 * + 85 * 80 FROM tab0 AS cor0
----
224397
557599
6798
skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - + col1 / + cor0.col0 + + col2 * + 85 * 80 FROM tab0 AS cor0
----
224397
557599
6798
query I rowsort
SELECT ALL + 86 - col0 FROM tab0 AS cor0
----
-3
51
62
query I rowsort
SELECT + 10 + col1 AS col0 FROM tab0 AS cor0
----
101
107
96
query I rowsort
SELECT + + col0 + - 72 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT 51 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT col2 + - ( tab2.col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * + col0 + - col0 * col1 + col2 FROM tab2
----
-1
-2548
1697
query I rowsort
SELECT - col1 * - ( col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8072
SELECT DISTINCT col0 + - CAST( + 5 AS SIGNED ) * col0 AS col2 FROM tab0
----
-140
-356
-96
skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT col0 + - CAST ( + 5 AS INTEGER ) * col0 AS col2 FROM tab0
----
-140
-356
-96
query I rowsort
SELECT - 46 + col2 FROM tab0 cor0
----
-13
-45
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT ( - col0 ) * 93 DIV col2 AS col1 FROM tab1 AS cor0
----
-104
-5
-77
skipif mysql # not compatible
query I rowsort label-8074
SELECT ( - col0 ) * 93 / col2 AS col1 FROM tab1 AS cor0
----
-104
-5
-77
query I rowsort
SELECT ALL + 12 * + col2 + cor0.col2 FROM tab1 cor0
----
1248
702
741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT - col2 * col0 * CAST( 18 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-138240
-2916
-65664
skipif mysql # not compatible
query I rowsort label-8076
SELECT - col2 * col0 * CAST ( 18 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-138240
-2916
-65664
query I rowsort
SELECT ALL - 46 * col2 FROM tab1 AS cor0
----
-2484
-2622
-4416
query I rowsort
SELECT DISTINCT + - 51 FROM tab1 AS cor0
----
-51
query I rowsort
SELECT ( + 19 ) AS col1 FROM tab1
----
19
19
19
query I rowsort
SELECT col1 - - col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + ( 67 ) + + col2 AS col1 FROM tab2
----
105
93
94
query I rowsort
SELECT - 44 * - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fc75b215d85a746590ebf00d6efabd08
query I rowsort
SELECT ALL col0 + - col0 - col1 AS col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + col0 * col1 + tab1.col1 + 56 * 54 col2 FROM tab1
----
3284
43994
86237
query I rowsort
SELECT DISTINCT + + 99 + 74 * cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
2023
2097
2911
query I rowsort
SELECT ALL - col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + cor0.col1 * + col1 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1054
-1121
744
query I rowsort
SELECT DISTINCT col2 + col1 * 73 AS col1 FROM tab1 AS cor0
----
1045
1952
787
query I rowsort
SELECT - col1 + + col1 * + 40 AS col0 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT ALL - - 90 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT col2 * 47 FROM tab0 cor0
----
1551
3854
47
query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL cor0.col0 * + 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 4128f054ad85ac8db5fcf9add4e5bad1
query I rowsort
SELECT col1 + + col2 * col0 + + col1 * 30 FROM tab2 AS cor0
----
1150
3529
3857
query I rowsort
SELECT - + 24 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT + - col2 + + col2 + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + cor0.col2 - + ( col2 + col0 ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT - + col2 DIV ( col1 ) + + col0 + - col1 FROM tab2 AS cor0
----
-24
19
60
skipif mysql # not compatible
query I rowsort label-8098
SELECT - + col2 / ( col1 ) + + col0 + - col1 FROM tab2 AS cor0
----
-24
19
60
query I rowsort
SELECT + cor0.col0 * + col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT ALL - col0 + + CAST( col0 AS SIGNED ) DIV col1 col1 FROM tab1 cor0
----
-3
-58
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - col0 + + CAST ( col0 AS INTEGER ) / col1 col1 FROM tab1 cor0
----
-3
-58
-74
query I rowsort
SELECT - + col1 * col2 + ( + cor0.col0 ) + - 8 AS col2 FROM tab2 AS cor0
----
-1464
-575
-838
query I rowsort
SELECT DISTINCT ( col0 * tab0.col1 ) FROM tab0
----
2064
3395
8099
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT DISTINCT - + col0 * col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8106
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT ALL + 80 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + 80 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + col2 * 0 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + 33 + - col1 FROM tab0 cor0
----
-53
-58
-64
query I rowsort
SELECT ALL - ( 61 ) * col2 + - 3 AS col0 FROM tab2 cor0
----
-1589
-1650
-2321
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-8112
SELECT DISTINCT + - 17 DIV col0 + + 83 AS col0 FROM tab0 AS cor0
----
83
skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + - 17 / col0 + + 83 AS col0 FROM tab0 AS cor0
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT ALL col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + 30 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615
query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 - - col2 * col1 AS col2 FROM tab1 cor0
----
-40390
-81952
1170
query I rowsort
SELECT ALL - col2 * - col2 + - ( + col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
1226
14645
1665
query I rowsort
SELECT DISTINCT col0 * col2 + + col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + 13 + col1 AS col2 FROM tab0 AS cor0
----
104
110
99
query I rowsort
SELECT cor0.col2 * col1 * + ( + col2 + - col0 ) FROM tab0 AS cor0
----
-3298
-52234
25542
query I rowsort
SELECT + + col2 + - col1 * + col2 * + 3 AS col1 FROM tab1 AS cor0
----
-1653
-3648
-4158
query I rowsort
SELECT - col1 * cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT CAST ( col0 AS INTEGER ) / + col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - - 49 * + col2 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT + 6 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT - 79 DIV col0 AS col0 FROM tab2 cor0
----
-1
-1
-11
skipif mysql # not compatible
query I rowsort label-8127
SELECT - 79 / col0 AS col0 FROM tab2 cor0
----
-1
-1
-11
query I rowsort
SELECT ALL cor0.col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - 9 + col1 AS col1 FROM tab0 cor0
----
77
82
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + col1 col2 FROM tab2 AS cor0
----
-15
-43
-57
query I rowsort
SELECT DISTINCT col1 - - col1 AS col0 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + 59 + - col0 FROM tab2 AS cor0
----
-19
-20
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT + - 54 AS col0 FROM tab0 AS cor0
----
-54
query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8136
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8136
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8137
SELECT - cor0.col1 DIV 25 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8137
SELECT - cor0.col1 / 25 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - 83 * - 5 * tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fefb644f249781afd4ea527900635cde
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col2 * 99 * col2 FROM tab0
----
107811
665676
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 33 col0 FROM tab1 AS cor0
----
129
87
90
query I rowsort
SELECT - col1 * + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8145
SELECT - - col1 * - CAST( NULL AS SIGNED ) + + 44 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8145
SELECT - - col1 * - CAST ( NULL AS INTEGER ) + + 44 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT ALL + tab2.col2 + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + tab2.col2 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab1
----
-78
-78
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT - ( - col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8149
SELECT - ( - col2 ) / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab0 AS cor0
----
75
query I rowsort
SELECT ALL 61 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-17
-18
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( col1 * + 84 ) col1 FROM tab1 cor0
----
-104832
-117936
-47880
onlyif mysql # use DIV operator for integer division
query I rowsort label-8153
SELECT ALL - ( - col1 ) + 50 DIV - col1 AS col1 FROM tab2
----
15
30
59
skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL - ( - col1 ) + 50 / - col1 AS col1 FROM tab2
----
15
30
59
query I rowsort
SELECT col0 + col0 * ( - col0 ) AS col2 FROM tab1
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8155
SELECT ALL + col1 + col1 DIV col2 AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + col1 + col1 / col2 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + col0 * - col2 + 78 * - col1 AS col0 FROM tab0 cor0
----
-14396
-7500
-7601
onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT ALL + col0 DIV col1 + + 52 * ( + col1 ) FROM tab2 AS cor0
----
1612
3069
888
skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + col0 / col1 + + 52 * ( + col1 ) FROM tab2 AS cor0
----
1612
3069
888
query I rowsort
SELECT - 78 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8159
SELECT + col2 * + CAST( + 6 AS SIGNED ) + col0 FROM tab1 AS cor0
----
327
406
656
skipif mysql # not compatible
query I rowsort label-8159
SELECT + col2 * + CAST ( + 6 AS INTEGER ) + col0 FROM tab1 AS cor0
----
327
406
656
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
1080
35
6731
query I rowsort
SELECT ALL + col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * + col0 + col0 + - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + cor0.col1 * col2 - - col1 * - cor0.col1 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT col0 * ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col1 * - 38 + - col2 FROM tab0 AS cor0
----
-3301
-3540
-3687
query I rowsort
SELECT col2 * - tab2.col2 * - col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL - 95 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL + col1 - + ( + col1 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT ALL + col1 DIV + ( + ( - col1 ) * cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + col1 / + ( + ( - col1 ) * cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - 18 FROM tab0
----
17
6
71
query I rowsort
SELECT ALL + 60 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8173
SELECT - + 92 DIV 63 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
skipif mysql # not compatible
query I rowsort label-8173
SELECT - + 92 / 63 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8174
SELECT ALL + CAST( col2 AS SIGNED ) + - col0 * tab0.col1 FROM tab0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + CAST ( col2 AS INTEGER ) + - col0 * tab0.col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col1 * col0 * col2 + + 90 FROM tab2
----
119742
51124
5949
query I rowsort
SELECT 79 + col2 * col1 FROM tab1
----
1327
1483
649
query I rowsort
SELECT - cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab2 AS cor0
----
57
query I rowsort
SELECT ALL - 62 AS col0 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT - 28 * col2 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT DISTINCT - ( col1 ) + col0 - - ( col1 ) * col0 FROM tab0 cor0
----
2002
3333
8097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT col1 - - ( - col2 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + - col2 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT 68 AS col2 FROM tab0 cor0
----
68
68
68
query I rowsort
SELECT ALL - col0 * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT cor0.col2 + col0 * - col1 * + col0 FROM tab2 AS cor0
----
-106059
-1492
-358930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT DISTINCT col0 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT col0 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT - + col0 + + col2 * + 17 AS col0 FROM tab0 AS cor0
----
-18
1305
537
query I rowsort
SELECT 11 + col0 FROM tab2 AS cor0
----
18
89
90
query I rowsort
SELECT ALL col1 * - col2 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + 25 + + col2 * + col2 FROM tab2 AS cor0
----
1469
701
754
query I rowsort
SELECT ALL - col2 - col1 * - col1 AS col2 FROM tab2 cor0
----
251
3455
934
query I rowsort
SELECT + ( col0 ) + 5 FROM tab2 AS cor0
----
12
83
84
query I rowsort
SELECT - - col2 + cor0.col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8196
SELECT ALL - col1 + + col0 DIV col1 AS col2 FROM tab2 cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL - col1 + + col0 / col1 AS col2 FROM tab2 cor0
----
-13
-31
-58
query I rowsort
SELECT ALL + col1 - - col2 * - 49 FROM tab0 AS cor0
----
-1531
-3927
48
query I rowsort
SELECT - - col1 * - col2 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
-10965
-25916
-90447
query I rowsort
SELECT DISTINCT - col0 * col2 + - ( - cor0.col2 ) * - col0 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT ALL col2 - + 32 AS col1 FROM tab2
----
-5
-6
6
query I rowsort
SELECT ALL 5 - - col2 * - col0 AS col1 FROM tab2
----
-184
-2023
-2997
query I rowsort
SELECT ALL - - col2 * col1 - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - 73 * + col2 AS col2 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT + + 81 + - cor0.col2 * col2 FROM tab0 cor0
----
-1008
-6643
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 * 54 AS col2 FROM tab1 AS cor0
----
2916
3078
5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT + col0 + CAST( NULL AS DECIMAL ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8207
SELECT + col0 + CAST ( NULL AS REAL ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col0 + col1 * - col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT 62 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT DISTINCT + + col2 * 87 + col0 FROM tab1 AS cor0
----
4701
5023
8432
query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab0 AS cor0
----
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 35 * - ( col0 ) FROM tab2 AS cor0
----
-245
-2730
-2765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + + col2 * col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT 20 * + col0 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8219
SELECT + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8219
SELECT + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( 64 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT ( 6 ) FROM tab0 AS cor0
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + tab1.col0 + 56 * - 57 FROM tab1
----
-3112
-3128
-3189
query I rowsort
SELECT - ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL cor1.col2 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c345857bb273aa2639457b7deb30fe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8228
SELECT ALL - col0 DIV col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - col0 / col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT 72 + - col2 + - col1 AS col0 FROM tab0
----
-101
-26
-47
query I rowsort
SELECT + col2 * col0 + col0 * col2 AS col2 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8231
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8231
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - + 59 * col0 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - 10 * col1 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81
query I rowsort
SELECT ALL col2 + 52 + 84 FROM tab0 AS cor0
----
137
169
218
query I rowsort
SELECT DISTINCT - + col2 * - col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT 92 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8240
SELECT ALL CAST( 74 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL CAST ( 74 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT DISTINCT - col0 DIV + 92 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - col0 / + 92 FROM tab2
----
0
query I rowsort
SELECT ALL - col0 * - 55 * + col2 FROM tab2
----
10395
111540
165110
onlyif mysql # use DIV operator for integer division
query I rowsort label-8243
SELECT ALL - col2 DIV + 94 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - col2 / + 94 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 10 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT DISTINCT + + col2 * + col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col1 * + ( + 96 ) AS col0 FROM tab0 cor0
----
8256
8736
9312
query I rowsort
SELECT - 66 FROM tab1 cor0
----
-66
-66
-66
query I rowsort
SELECT - 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47
query I rowsort
SELECT - - col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 94 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col0 * 66 AS col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT + cor0.col1 * 24 FROM tab1, tab1 AS cor0
----
9 values hashing to 779aeb174f3922e91299213141ae51ee
query I rowsort
SELECT + + col2 * + 76 AS col0 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT ALL 76 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT ALL + cor0.col1 * 61 FROM tab0, tab1 AS cor0
----
9 values hashing to 8730a9bc1f5ce9ff85ce4cf3db7f570c
query I rowsort
SELECT + + ( - 89 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT + 73 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT + cor0.col1 * - col1 + + col1 * - ( + 21 ) + col1 * - col1 FROM tab0 AS cor0
----
-16598
-18473
-20855
query I rowsort
SELECT 36 + 24 AS col0 FROM tab1 AS cor0
----
60
60
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 col0 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL col2 * ( 33 ) * col1 AS col1 FROM tab0
----
246246
3201
93654
query I rowsort
SELECT - col2 + + 62 + - col1 FROM tab0 AS cor0
----
-111
-36
-57
query I rowsort
SELECT - - 80 + + col0 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT ALL - col0 * - col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - 68 * 53 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e6865294073fa32d20e277986b3d54cb
query I rowsort
SELECT 27 * col1 AS col1 FROM tab2 AS cor0
----
1593
459
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab2 cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8269
SELECT CAST( - col0 AS SIGNED ) + col2 * col1 AS col1 FROM tab2
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-8269
SELECT CAST ( - col0 AS INTEGER ) + col2 * col1 AS col1 FROM tab2
----
1456
567
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8270
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8270
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 2df272448a67587d4635afedff278dcc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col0 + col0 col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL + - 40 * + col2 FROM tab1 AS cor0
----
-2160
-2280
-3840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 + - col2 col2 FROM tab0 AS cor0
----
-40
41
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT - 54 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-51
-52
-53
skipif mysql # not compatible
query I rowsort label-8275
SELECT - 54 + col1 / col0 AS col0 FROM tab0 AS cor0
----
-51
-52
-53
query I rowsort
SELECT DISTINCT 11 * + tab1.col0 - col2 * - col2 AS col1 FROM tab1
----
10096
2949
3953
query I rowsort
SELECT 92 + + col0 AS col2 FROM tab2
----
170
171
99
query I rowsort
SELECT 13 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67
query I rowsort
SELECT col0 * col1 + col2 * 89 FROM tab1
----
4884
5713
9584
query I rowsort
SELECT ALL ( - col1 * - col1 ) + + col2 AS col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT - 63 + col2 FROM tab1
----
-6
-9
33
query I rowsort
SELECT DISTINCT 2 + col1 + - 64 FROM tab0
----
24
29
35
query I rowsort
SELECT - 65 - - col1 FROM tab0
----
21
26
32
query I rowsort
SELECT ALL + 97 + - col1 FROM tab1
----
71
84
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col0 + - ( - col1 + col1 * - ( col0 ) ) col0 FROM tab2
----
4362
437
6689
query I rowsort
SELECT + col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT col0 + - col1 * + 64 FROM tab0
----
-5480
-5735
-6173
query I rowsort
SELECT DISTINCT + 97 + + col1 FROM tab1
----
107
110
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-8289
SELECT + col2 + col0 DIV 44 FROM tab2
----
27
27
39
skipif mysql # not compatible
query I rowsort label-8289
SELECT + col2 + col0 / 44 FROM tab2
----
27
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col0 FROM tab1, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col0 * ( + col1 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 * + ( + 4 ) AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d2d454c975203da3b6df36fbf09e426a
query I rowsort
SELECT DISTINCT + col2 * + ( + col1 + + col2 ) * 34 AS col0 FROM tab2
----
53244
71060
75140
query I rowsort
SELECT + col2 * + col1 - 24 AS col2 FROM tab2
----
1510
622
813
query I rowsort
SELECT ALL + 34 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT cor0.col1 * - 2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 0c37b4fc9f31cf6c3317713bda65efbe
query I rowsort
SELECT col2 - - 70 * + col2 FROM tab0 cor0
----
2343
5822
71
query I rowsort
SELECT + + 91 - col2 FROM tab0 AS cor0
----
58
9
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col1 ) + 13 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7c3674f46638804e8534ae825a0c16ac
query I rowsort
SELECT - col0 + ( - col1 ) AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + - col1 * - 77 + - col0 - + 74 AS col0 FROM tab1 AS cor0
----
1925
632
847
query I rowsort
SELECT + col0 * + col2 - - col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT DISTINCT col0 DIV + 20 + + col1 + 1 * 30 col2 FROM tab1 AS cor0
----
43
47
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT col0 / + 20 + + col1 + 1 * 30 col2 FROM tab1 AS cor0
----
43
47
56
query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + col1 * + ( - col1 ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT + ( + cor0.col2 ) * col0 - ( - 94 + - col2 ) FROM tab1 cor0
----
310
3799
7870
onlyif mysql # use DIV operator for integer division
query I rowsort label-8307
SELECT 8 + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
16
8
8
skipif mysql # not compatible
query I rowsort label-8307
SELECT 8 + col1 / + col0 AS col0 FROM tab1 AS cor0
----
16
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8308
SELECT + CAST( NULL AS SIGNED ) * 47 + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8308
SELECT + CAST ( NULL AS INTEGER ) * 47 + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col2 * - 7 FROM tab2 AS cor0
----
182
189
266
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL - col0 * ( + col0 ) FROM tab1
----
-4096
-6400
-9
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT - 97 * tab1.col0 + col1 FROM tab1
----
-265
-6198
-7747
onlyif mysql # use DIV operator for integer division
query I rowsort label-8315
SELECT DISTINCT 95 DIV + col1 AS col2 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT 95 / + col1 AS col2 FROM tab2
----
1
3
5
query I rowsort
SELECT DISTINCT + col1 * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL + ( col1 ) * col1 + + tab2.col0 * col2 + + col0 * 41 FROM tab2
----
1437
6530
8707
query I rowsort
SELECT - 39 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-273
-3042
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 9 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1334
-208
-4593
query I rowsort
SELECT ALL 58 AS col2 FROM tab1 AS cor0
----
58
58
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + ( 43 ) + + cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
205
3691
7723
query I rowsort
SELECT ALL - 51 + - 54 * col1 FROM tab1 cor0
----
-1455
-591
-753
onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT DISTINCT + col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + col2 / cor0.col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT 82 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT DISTINCT + 54 + ( col2 ) FROM tab2 AS cor0
----
80
81
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT DISTINCT col0 * col2 + + tab2.col0 DIV col1 FROM tab2
----
189
2029
3006
skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT col0 * col2 + + tab2.col0 / col1 FROM tab2
----
189
2029
3006
query I rowsort
SELECT 31 + - tab1.col1 AS col2 FROM tab1
----
18
21
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT ALL - col0 * - tab2.col1 + + 15 * col0 DIV + col0 FROM tab2
----
1358
232
4617
skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - col0 * - tab2.col1 + + 15 * col0 / + col0 FROM tab2
----
1358
232
4617
query I rowsort
SELECT + 54 * + col0 * ( + col2 ) + col1 * + col2 * 89 FROM tab1
----
133704
247722
525792
query I rowsort
SELECT + 53 + col1 FROM tab0
----
139
144
150
query I rowsort
SELECT - 83 * + tab0.col1 + col0 AS col1 FROM tab0
----
-7114
-7464
-8016
query I rowsort
SELECT ALL + col2 * col2 + 33 * col1 AS col2 FROM tab1
----
3579
3774
9645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col2 col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT ALL cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + 23 * + col0 + ( + col1 ) FROM tab1 cor0
----
1482
1853
95
query I rowsort
SELECT DISTINCT ( - 72 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-72
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL - col2 + 83 FROM tab1 cor0
----
-13
26
29
query I rowsort
SELECT ALL - - col1 + col2 + 60 FROM tab2 AS cor0
----
115
118
145
query I rowsort
SELECT ALL - col2 + ( cor0.col0 * col1 ) FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col0 + + col2 + col2 * - col0 AS col1 FROM tab1 cor0
----
-105
-3527
-7504
query I rowsort
SELECT ALL - col1 * - ( + 9 ) AS col0 FROM tab1 AS cor0
----
117
234
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * 5 * col0 col2 FROM tab1
----
18240
38400
810
query I rowsort
SELECT - + cor0.col0 + - col1 + - col2 * - col0 AS col2 FROM tab0 cor0
----
-97
682
7118
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 83 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8350
SELECT DISTINCT col1 + CAST( + 67 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1768
680
884
skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT col1 + CAST ( + 67 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT ALL - - col1 * cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - + col0 + 85 AS col2 FROM tab0 AS cor0
----
-4
50
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8353
SELECT + CAST( NULL AS DECIMAL ) + 32 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8353
SELECT + CAST ( NULL AS REAL ) + 32 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col2 * ( + col2 * - col0 ) + col0 * col0 AS col2 FROM tab2 AS cor0
----
-107835
-46644
-5054
query I rowsort
SELECT ALL + col1 * ( 42 ) AS col0 FROM tab0 AS cor0
----
3612
3822
4074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + + cor0.col0 col2 FROM tab0, tab2 cor0
----
9 values hashing to 447dd2aaff0aa377f4e2bad5139814b8
query I rowsort
SELECT 3 FROM tab0 cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col2 * - 15 AS col0 FROM tab0
----
-1230
-15
-495
query I rowsort
SELECT ALL + 62 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT - 12 * + 16 FROM tab2, tab2 cor0
----
9 values hashing to e2aaf248e89cfe907195894fdf1f8cd4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT + col0 DIV - col0 + ( - col2 + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8364
SELECT + col0 / - col0 + ( - col2 + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT - - cor0.col1 + col2 + ( + 36 ) DIV + col0 FROM tab0 AS cor0
----
120
173
99
skipif mysql # not compatible
query I rowsort label-8365
SELECT - - cor0.col1 + col2 + ( + 36 ) / + col0 FROM tab0 AS cor0
----
120
173
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8366
SELECT - col2 * col1 + CAST( - col1 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
-1567
-625
-841
skipif mysql # not compatible
query I rowsort label-8366
SELECT - col2 * col1 + CAST ( - col1 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
-1567
-625
-841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col0 + + ( col1 + - cor0.col0 * + col2 ) col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0 AS cor0
----
99
query I rowsort
SELECT DISTINCT - + 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT ALL + - col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + - col0 / col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + 51 * + col2 AS col2 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT - col0 * - col2 - ( col2 * + cor0.col0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT ALL - col0 DIV - col0 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - col0 / - col0 AS col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL col1 + + col0 * col0 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - 10 * col0 AS col2 FROM tab2 cor0
----
-70
-780
-790
query I rowsort
SELECT - col0 + col1 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1281
241
4583
query I rowsort
SELECT + 44 + col0 * - 48 FROM tab2 AS cor0
----
-292
-3700
-3748
query I rowsort
SELECT ALL - - col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-8381
SELECT + cor0.col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8381
SELECT + cor0.col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL 10 + col0 FROM tab1 AS cor0
----
13
74
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - 44 col0 FROM tab2 AS cor0
----
-1578
-690
-881
query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + 18 + col2 AS col2 FROM tab1
----
114
72
75
query I rowsort
SELECT ALL - 43 + col2 + + tab1.col0 * + col1 * + col1 FROM tab1
----
13573
2039
6414
query I rowsort
SELECT DISTINCT col1 * + col0 + + tab0.col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL 24 FROM tab1 cor0
----
24
24
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8389
SELECT DISTINCT - - ( col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - - ( col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + col1 * col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + + cor0.col2 + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + ( - col1 ) * - 18 + col2 AS col0 FROM tab0 AS cor0
----
1581
1720
1747
query I rowsort
SELECT DISTINCT - + ( cor1.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT - - col2 * - 59 AS col0 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT - col1 + - 48 FROM tab0 cor0
----
-134
-139
-145
query I rowsort
SELECT DISTINCT col1 * 42 - col1 FROM tab1
----
1066
410
533
query I rowsort
SELECT - + col2 * 74 - - col1 FROM tab0 AS cor0
----
-2356
-5977
23
query I rowsort
SELECT - + 32 AS col0 FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + + 64 + 30 * col2 FROM tab1 cor0
----
1684
1774
2944
query I rowsort
SELECT - ( - col0 ) * cor0.col2 + 94 * 9 AS col0 FROM tab0 AS cor0
----
1638
8144
881
onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT ALL - - 36 * col1 + col0 DIV col0 FROM tab1 AS cor0
----
361
469
937
skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - - 36 * col1 + col0 / col0 FROM tab1 AS cor0
----
361
469
937
query I rowsort
SELECT DISTINCT - col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT + + col0 - - 26 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT cor0.col1 * + 74 AS col1 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT + + col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 16 * - col1 AS col0 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT col2 * + col0 + tab0.col2 AS col2 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col0 FROM tab2 AS cor0
----
-20
query I rowsort
SELECT ALL + 85 * + col0 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT + col2 - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - + ( - col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT ALL + 50 * - ( + cor0.col1 ) + 13 DIV col2 FROM tab1 cor0
----
-1300
-500
-650
skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + 50 * - ( + cor0.col1 ) + 13 / col2 FROM tab1 cor0
----
-1300
-500
-650
query I rowsort
SELECT - cor0.col1 - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + 67 - ( col1 ) * col1 FROM tab0 AS cor0
----
-7329
-8214
-9342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 - + col1 * - col0 col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT ALL + 96 AS col1 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT ALL + - 79 * + col1 AS col2 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL - - 76 AS col2 FROM tab0 cor0
----
76
76
76
query I rowsort
SELECT ALL + - 45 + 43 AS col2 FROM tab2 AS cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT DISTINCT - - CAST( col1 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 - + cor0.col1 col2 FROM tab0 AS cor0
----
-147
-152
-158
query I rowsort
SELECT + + col1 * cor0.col0 + 7 * + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
3402
55167
9687
query I rowsort
SELECT ALL - col0 * + col0 - - col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL + ( col2 ) * 77 - col2 FROM tab2 AS cor0
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8426
SELECT - col0 DIV + col2 + - ( col2 + col2 ) AS col1 FROM tab1 AS cor0
----
-108
-115
-192
skipif mysql # not compatible
query I rowsort label-8426
SELECT - col0 / + col2 + - ( col2 + col2 ) AS col1 FROM tab1 AS cor0
----
-108
-115
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 + col1 + - col0 * 24 * - col1 FROM tab1 cor0
----
15306
1895
24893
query I rowsort
SELECT + + col2 * col0 + ( ( col1 ) * - 59 ) FROM tab1 AS cor0
----
-1372
3058
6913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - cor0.col1 + ( col0 ) col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT DISTINCT - 80 + col1 DIV + col2 col1 FROM tab0 AS cor0
----
-78
-79
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - 80 + col1 / + col2 col1 FROM tab0 AS cor0
----
-78
-79
17
query I rowsort
SELECT DISTINCT 35 * col0 + - col0 AS col2 FROM tab1
----
102
2176
2720
query I rowsort
SELECT ALL - col0 + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL col2 * - ( col2 + + col1 ) FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT - + col1 * 9 AS col0 FROM tab2 cor0
----
-153
-279
-531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + 98 * - col2 col2 FROM tab1 AS cor0
----
285768
318402
903168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8437
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 * 15 AS col0 FROM tab1
----
115200
2430
54720
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 * - 88 AS col1 FROM tab1
----
-4752
-5016
-8448
query I rowsort
SELECT DISTINCT + col2 * - ( tab1.col1 ) AS col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8442
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8442
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab2.col2 * col0 * col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2, tab2 AS cor0
----
86
query I rowsort
SELECT ALL + col0 + + col1 * col2 AS col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL - 42 + 19 * + cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6be74e8e4cb7b99ecf06fb0926dd0f6d
query I rowsort
SELECT + 28 * col1 AS col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT DISTINCT 1 + col1 FROM tab2 AS cor0
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT DISTINCT 32 DIV - cor0.col0 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 32 / - cor0.col0 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT col0 * - tab1.col0 - + col0 AS col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT + 30 AS col1 FROM tab2
----
30
30
30
query I rowsort
SELECT 69 * - col0 + col0 AS col1 FROM tab2
----
-476
-5304
-5372
query I rowsort
SELECT + col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT 70 + tab2.col0 FROM tab2
----
148
149
77
query I rowsort
SELECT ALL + 3 * col2 AS col1 FROM tab0
----
246
3
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT DISTINCT col2 + + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT col2 + + col1 / - col1 AS col0 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT DISTINCT + col2 - + col1 DIV + tab0.col2 AS col0 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + col2 - + col1 / + tab0.col2 AS col0 FROM tab0
----
-96
31
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT DISTINCT col1 * - 42 - - ( col0 ) DIV tab0.col2 FROM tab0
----
-3612
-3821
-4039
skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT col1 * - 42 - - ( col0 ) / tab0.col2 FROM tab0
----
-3612
-3821
-4039
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + 44 + 54 AS col2 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT ALL + 19 + col1 FROM tab0 AS cor0
----
105
110
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT ALL col2 + + col2 DIV col1 + col1 AS col1 FROM tab1
----
116
72
82
skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL col2 + + col2 / col1 + col1 AS col1 FROM tab1
----
116
72
82
query I rowsort
SELECT ALL + col1 * 58 + col1 * col0 AS col2 FROM tab0
----
13377
7052
9021
query I rowsort
SELECT ALL + col1 + + ( + col2 * col1 ) FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 * tab2.col0 col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT + col0 + col2 * + col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT 72 + - col2 AS col1 FROM tab1 cor0
----
-24
15
18
query I rowsort
SELECT ALL - col0 * - 98 + col2 FROM tab1
----
348
6329
7936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8469
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 39 * col2 * + col0 FROM tab0 AS cor0
----
-1365
-284622
-30888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 13 + - col0 * + col2 FROM tab0 cor0
----
-48
-7311
-805
query I rowsort
SELECT DISTINCT - - 98 FROM tab0 AS cor0
----
98
query I rowsort
SELECT - + 10 * col0 * + cor0.col1 + - ( + cor0.col2 ) * col0 FROM tab1 AS cor0
----
-10048
-18080
-942
query I rowsort
SELECT ALL 32 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT - - 26 + - 88 + - col1 FROM tab1 AS cor0
----
-72
-75
-88
query I rowsort
SELECT DISTINCT + ( 42 ) * + col0 AS col1 FROM tab2 cor0
----
294
3276
3318
query I rowsort
SELECT + 57 * - col1 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT DISTINCT + + cor0.col2 + + 13 FROM tab0 AS cor0
----
14
46
95
query I rowsort
SELECT ALL - 50 * col1 FROM tab1 cor0
----
-1300
-500
-650
query I rowsort
SELECT - col1 + - col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + 50 * - col0 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT DISTINCT col1 * + col2 + cor0.col0 * + col1 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT + + 39 * 65 + - col2 AS col0 FROM tab0 AS cor0
----
2453
2502
2534
query I rowsort
SELECT 7 AS col0 FROM tab1
----
7
7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8486
SELECT CAST( + 1 AS SIGNED ) * col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8486
SELECT CAST ( + 1 AS INTEGER ) * col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - 99 * ( tab1.col1 ) + tab1.col0 AS col1 FROM tab1
----
-1207
-2571
-926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 + col1 ) col0 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8489
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - ( 88 ) * - col2 FROM tab2 AS cor0
----
2288
2376
3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8492
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col1 / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col1 / col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col0 * + cor0.col0 + + col2 AS col2 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab2
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT + col2 DIV tab1.col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8495
SELECT + col2 / tab1.col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - + 99 AS col0 FROM tab1 AS cor0
----
-99
-99
-99
query I rowsort
SELECT - 65 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT ALL - - col0 * col0 + 69 * col1 * col0 AS col2 FROM tab1 cor0
----
48256
5391
78160
query I rowsort
SELECT ALL - + col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8500
SELECT DISTINCT - col1 * col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT - col1 * col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT 83 * col2 + ( cor0.col0 ) * cor0.col2 FROM tab2 AS cor0
----
2430
4186
6156
query I rowsort
SELECT 87 * col0 + 86 FROM tab1 AS cor0
----
347
5654
7046
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT - + col1 + col2 DIV col0 FROM tab1 AS cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-8504
SELECT - + col1 + col2 / col0 FROM tab1 AS cor0
----
-10
-12
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT ALL - + col0 DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - + col0 / ( col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col0 * col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - - col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + col0 * tab2.col0 * + tab2.col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT col0 + + 40 FROM tab0 AS cor0
----
129
64
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT DISTINCT col2 * - CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT col2 * - CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col1 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8513
SELECT DISTINCT + - cor0.col1 DIV ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT + - cor0.col1 / ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT + col2 * - ( - col0 ) AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col0 * + cor0.col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col2 + - col2 * - col1 AS col1 FROM tab0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + 46 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
104
query I rowsort
SELECT DISTINCT col2 * ( col1 ) + + col0 * + tab1.col2 AS col1 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT 5 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT DISTINCT - col1 + + col1 DIV 56 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - col1 + + col1 / 56 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT + + col0 * ( - ( + cor0.col0 ) ) + + col0 + col0 * + col1 DIV - col1 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-8521
SELECT + + col0 * ( - ( + cor0.col0 ) ) + + col0 + col0 * + col1 / - col1 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT + + col2 + col1 * cor0.col1 * + col2 + col1 DIV 81 AS col2 FROM tab2 cor0
----
11020
25974
90532
skipif mysql # not compatible
query I rowsort label-8522
SELECT + + col2 + col1 * cor0.col1 * + col2 + col1 / 81 AS col2 FROM tab2 cor0
----
11020
25974
90532
query I rowsort
SELECT DISTINCT - - col2 * + col0 * 80 FROM tab1 cor0
----
12960
291840
614400
query I rowsort
SELECT - col2 * 75 AS col0 FROM tab2 AS cor0
----
-1950
-2025
-2850
query I rowsort
SELECT cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT 82 DIV col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-8527
SELECT 82 / col0 FROM tab0
----
0
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT tab1.col1 DIV - col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8528
SELECT tab1.col1 / - col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - col2 * - 42 FROM tab0 AS cor0
----
1386
3444
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT ALL 47 DIV + col1 AS col0 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL 47 / + col1 AS col0 FROM tab1
----
1
3
4
query I rowsort
SELECT + 99 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 9 col0 FROM tab2
----
35
36
47
query I rowsort
SELECT 79 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - + col0 * - col2 + - col1 * col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + - col0 * col1 * + ( - 84 ) FROM tab2 AS cor0
----
112812
18228
386568
onlyif mysql # use DIV operator for integer division
query I rowsort label-8537
SELECT - + col1 DIV + col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8537
SELECT - + col1 / + col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col2 * - tab0.col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL + - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT - col0 - col0 * 47 * col0 AS col2 FROM tab1 AS cor0
----
-192576
-300880
-426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * 1 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + 3 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT ALL - tab1.col2 - col2 FROM tab1
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT DISTINCT col1 + + col2 - CAST( col1 * + col0 AS SIGNED ) FROM tab1
----
-573
-931
2
skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT col1 + + col2 - CAST ( col1 * + col0 AS INTEGER ) FROM tab1
----
-573
-931
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8547
SELECT + col1 + col2 DIV + col1 + col2 AS col1 FROM tab2
----
57
58
85
skipif mysql # not compatible
query I rowsort label-8547
SELECT + col1 + col2 / + col1 + col2 AS col1 FROM tab2
----
57
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT DISTINCT CAST( 35 AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
35
skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT CAST ( 35 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8549
SELECT - cor0.col0 DIV 12 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to bb50e73dbec52b4ab77c0ac11bcb4d61
skipif mysql # not compatible
query I rowsort label-8549
SELECT - cor0.col0 / 12 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to bb50e73dbec52b4ab77c0ac11bcb4d61
query I rowsort
SELECT - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 + 84 + col1 col0 FROM tab0 AS cor0
----
-1894
-3214
-7924
query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + 9 + - col2 AS col0 FROM tab0 AS cor0
----
-24
-73
8
query I rowsort
SELECT DISTINCT col0 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - col2 + - ( + col2 ) * - col2 * - col2 FROM tab1 cor0
----
-157518
-185250
-884832
query I rowsort
SELECT ALL - col2 * + ( - col0 * + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col1 * - ( - col2 ) + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT DISTINCT cor0.col2 DIV - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT cor0.col2 / - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT + col2 DIV tab0.col1 - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8563
SELECT + col2 / tab0.col1 - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - ( - cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8565
SELECT ALL - CAST( NULL AS SIGNED ) - + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - CAST ( NULL AS INTEGER ) - + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * ( + col0 ) * col1 - col0 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - + ( col0 ) + col2 * 38 AS col1 FROM tab2 AS cor0
----
1019
1365
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 37 ) * cor0.col1 col2 FROM tab0 AS cor0
----
-3182
-3367
-3589
query I rowsort
SELECT DISTINCT + ( + 8 ) * col0 AS col1 FROM tab1 AS cor0
----
24
512
640
query I rowsort
SELECT DISTINCT + 81 * 77 AS col0 FROM tab0 AS cor0
----
6237
query I rowsort
SELECT ALL 76 * + 7 AS col2 FROM tab0 cor0
----
532
532
532
query I rowsort
SELECT 32 * + 22 + - col1 AS col0 FROM tab2 cor0
----
645
673
687
query I rowsort
SELECT ALL + + 65 + + col0 * 72 FROM tab2 AS cor0
----
5681
569
5753
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT ALL - 27 DIV col0 + + col0 AS col0 FROM tab1 AS cor0
----
-6
64
80
skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - 27 / col0 + + col0 AS col0 FROM tab1 AS cor0
----
-6
64
80
query I rowsort
SELECT DISTINCT + + col2 * + col0 - ( + col1 ) * - col0 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT 95 + col2 AS col0 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT ALL - - cor0.col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + ( + col2 ) + 88 + + col2 AS col2 FROM tab2 cor0
----
140
142
164
query I rowsort
SELECT 28 * col2 + + 57 AS col2 FROM tab1 AS cor0
----
1569
1653
2745
query I rowsort
SELECT ALL + 78 - cor0.col2 FROM tab0 AS cor0
----
-4
45
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT tab2.col0 - + col0 DIV col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-8582
SELECT tab2.col0 - + col0 / col0 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL 38 * + 43 AS col2 FROM tab2
----
1634
1634
1634
query I rowsort
SELECT - 91 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col2 + + ( - cor0.col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT ALL - - col2 * + col2 + + col0 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
1448
677
729
skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - - col2 * + col2 + + col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
1448
677
729
query I rowsort
SELECT ALL + cor0.col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - col2 - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col1 * + col0 + + 48 AS col1 FROM tab1 AS cor0
----
1088
126
688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8592
SELECT ALL - - cor0.col0 + + CAST( + col0 AS SIGNED ) * - cor0.col0 * + 80 FROM tab2 cor0
----
-3913
-486642
-499201
skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - - cor0.col0 + + CAST ( + col0 AS INTEGER ) * - cor0.col0 * + 80 FROM tab2 cor0
----
-3913
-486642
-499201
query I rowsort
SELECT - + col2 * 76 + col2 FROM tab1 cor0
----
-4050
-4275
-7200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - col0 col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8595
SELECT ALL cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + ( 68 ) AS col0 FROM tab2 AS cor0
----
37
51
9
query I rowsort
SELECT + 4 + col2 * + cor0.col0 FROM tab2 cor0
----
193
2032
3006
onlyif mysql # use DIV operator for integer division
query I rowsort label-8598
SELECT + 33 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8598
SELECT + 33 / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + 44 FROM tab2 AS cor0
----
-34
-35
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - tab2.col1 + + 8 FROM tab2
----
-23
-51
-9
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - ( - col2 ) * col2 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT - + ( ( col2 ) ) * ( + col1 ) * col2 + - col2 FROM tab1 AS cor0
----
-119904
-32547
-75870
query I rowsort
SELECT DISTINCT - - col1 * col1 + + col0 * - 21 FROM tab0 cor0
----
6412
6892
8674
query I rowsort
SELECT ALL + col0 * + col2 * - cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - col2 * - cor0.col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT cor1.col1 * 32 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5b30c97a52b49fbc31a7469da807e0b1
query I rowsort
SELECT ALL cor0.col1 * col2 * cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT ALL + col1 DIV - col0 - 77 AS col0 FROM tab0 AS cor0
----
-78
-79
-80
skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + col1 / - col0 - 77 AS col0 FROM tab0 AS cor0
----
-78
-79
-80
query I rowsort
SELECT + - col0 + + col2 * - 98 FROM tab2 cor0
----
-2626
-2653
-3803
query I rowsort
SELECT ALL + col1 * - col2 + 37 FROM tab0 AS cor0
----
-2801
-60
-7425
query I rowsort
SELECT col2 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 + col2 + tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + - col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort
SELECT + + col1 * CAST ( - col2 AS REAL ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - 37 + col0 FROM tab0
----
-13
-2
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT + 55 DIV + col1 AS col0 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-8620
SELECT + 55 / + col1 AS col0 FROM tab1
----
2
4
5
query I rowsort
SELECT ALL col1 * - col0 + - ( + 5 ) FROM tab0
----
-2069
-3400
-8104
query I rowsort
SELECT ALL + col1 * col2 + + col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col0 * - col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT col1 DIV - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8625
SELECT col1 / - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + tab2.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - col1 * ( col2 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 * ( - col2 ) AS col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT DISTINCT - col0 DIV - col0 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - col0 / - col0 AS col2 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT - + 44 DIV + col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-8630
SELECT - + 44 / + col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * - col1 * - col0 col1 FROM tab1
----
33920
4134
55120
query I rowsort
SELECT ALL - - ( + col0 ) * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0
----
22
query I rowsort
SELECT ALL + + 36 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT 60 AS col0 FROM tab2
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT ALL + col2 DIV + col0 AS col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + col2 / + col0 AS col0 FROM tab2
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT ALL col0 DIV + col1 col1 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL col0 / + col1 col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab2 AS cor0
----
-97
query I rowsort
SELECT - - 92 AS col0 FROM tab2 cor0
----
92
92
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8640
SELECT + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + - col1 col2 FROM tab1
----
32
45
48
query I rowsort
SELECT - 32 - - 1 FROM tab2
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0
----
39
query I rowsort
SELECT - 14 * col0 FROM tab0 AS cor0
----
-1246
-336
-490
query I rowsort
SELECT ALL cor0.col0 * ( + 38 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7cd5dba0a0e2a78a1cf861c53b4b88a1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT ALL - 45 * col2 + 51 + 31 AS col0 FROM tab2 AS cor0
----
-1088
-1133
-1628
query I rowsort
SELECT - - col0 * - col0 + ( cor0.col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT DISTINCT - + 92 * col0 + + col0 DIV col0 FROM tab1 AS cor0
----
-275
-5887
-7359
skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - + 92 * col0 + + col0 / col0 FROM tab1 AS cor0
----
-275
-5887
-7359
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab1 AS cor0
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT ALL - 90 * - col1 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 90 * - col1 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8652
SELECT ALL + cor0.col2 + col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + cor0.col2 + col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 13 + col2 + + col2 FROM tab2 AS cor0
----
65
67
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT DISTINCT - + col2 DIV - col1 + 74 FROM tab1 AS cor0
----
76
79
81
skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - + col2 / - col1 + 74 FROM tab1 AS cor0
----
76
79
81
query I rowsort
SELECT col2 * - col1 + - 98 FROM tab2 AS cor0
----
-1632
-744
-935
onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT ALL cor0.col1 DIV + col1 col2 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL cor0.col1 / + col1 col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col0 * col2 + + col2 * 30 FROM tab2 AS cor0
----
2808
4142
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col2 FROM tab1 AS cor0
----
51
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0, tab2 AS cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT DISTINCT - col1 - - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT 19 * + col0 AS col0 FROM tab0
----
1691
456
665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 * - ( + 59 ) AS col2 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT + - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col1 + 58 * + col0 AS col2 FROM tab1 cor0
----
200
3722
4653
query I rowsort
SELECT col1 * col2 * + tab0.col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8668
SELECT col2 + + 97 DIV col1 AS col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8668
SELECT col2 + + 97 / col1 AS col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL - cor0.col2 * col1 + 56 AS col2 FROM tab2 AS cor0
----
-1478
-590
-781
query I rowsort
SELECT DISTINCT 93 * + col2 AS col1 FROM tab1
----
5022
5301
8928
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT ALL + 36 + 27 AS col1 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT DISTINCT col2 * + 43 FROM tab0
----
1419
3526
43
query I rowsort
SELECT col1 - 44 * - col1 AS col1 FROM tab0
----
3870
4095
4365
query I rowsort
SELECT ( + cor0.col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8676
SELECT ALL - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 78 AS col2 FROM tab1
----
52
65
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8678
SELECT DISTINCT - 5 DIV col2 AS col1 FROM tab0 AS cor0
----
-5
0
skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - 5 / col2 AS col1 FROM tab0 AS cor0
----
-5
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 + - col1 col2 FROM tab1 AS cor0
----
-19
-3
-6
query I rowsort
SELECT 84 * col0 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT ALL col1 * 87 AS col1 FROM tab2 AS cor0
----
1479
2697
5133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8682
SELECT - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8682
SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + col2 * + 85 AS col1 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT col1 * 37 AS col0 FROM tab1
----
370
481
962
query I rowsort
SELECT + col2 + tab1.col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8689
SELECT - col2 + + col1 DIV col1 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8689
SELECT - col2 + + col1 / col1 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT ALL - ( - col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 9 + col0 AS col2 FROM tab0 AS cor0
----
33
44
98
query I rowsort
SELECT DISTINCT + + 82 * + col0 AS col1 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL - - ( + col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - 81 FROM tab0 AS cor0
----
-81
query I rowsort
SELECT 68 AS col1 FROM tab2 AS cor0
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 col2 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT + + 72 + + cor0.col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT ALL + + ( + 76 ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
109
158
77
query I rowsort
SELECT col0 + col1 + col2 AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT 7 + col1 FROM tab1
----
17
20
33
query I rowsort
SELECT - 7 + cor0.col2 AS col2 FROM tab1 cor0
----
47
50
89
query I rowsort
SELECT col0 * col1 + col0 * ( col2 ) - 55 * + col1 FROM tab1 AS cor0
----
-1190
3738
8005
query I rowsort
SELECT + 0 - col1 AS col2 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT 65 + col0 DIV col0 AS col1 FROM tab0
----
66
66
66
skipif mysql # not compatible
query I rowsort label-8704
SELECT 65 + col0 / col0 AS col1 FROM tab0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8705
SELECT - col1 DIV col0 AS col1 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8705
SELECT - col1 / col0 AS col1 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT ALL - col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab2.col1 * ( - 12 ) FROM tab2
----
204
372
708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8708
SELECT + col0 * - CAST( NULL AS SIGNED ) + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8708
SELECT + col0 * - CAST ( NULL AS INTEGER ) + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT DISTINCT + - col2 DIV col2 + col2 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + - col2 / col2 + col2 FROM tab0 cor0
----
0
32
81
query I rowsort
SELECT + + cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * + col2 + cor0.col2 * - col0 FROM tab2 cor0
----
-378
-4056
-6004
query I rowsort
SELECT col1 * 85 + + col2 * - col1 FROM tab0 AS cor0
----
273
4472
8148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8713
SELECT DISTINCT col0 * ( - 17 * - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT col0 * ( - 17 * - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 + + ( - 11 ) * + col1 AS col2 FROM tab2 AS cor0
----
-108
-334
-571
query I rowsort
SELECT DISTINCT tab0.col2 + - col1 * - col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT + col1 + col1 - tab1.col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col2 + col1 + col2 * col0 AS col2 FROM tab2
----
2113
247
3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT - col2 DIV - col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8718
SELECT - col2 / - col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT ALL + col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT - col2 DIV + tab1.col0 + - tab1.col1 + col0 * + col1 FROM tab1
----
1026
34
630
skipif mysql # not compatible
query I rowsort label-8720
SELECT - col2 / + tab1.col0 + - tab1.col1 + col0 * + col1 FROM tab1
----
1026
34
630
query I rowsort
SELECT ALL - col0 + - col1 * col2 * col2 AS col0 FROM tab0
----
-132
-611973
-93678
onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT - col0 DIV tab2.col0 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8722
SELECT - col0 / tab2.col0 AS col2 FROM tab2
----
-1
-1
-1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 * col2 AND NULL
----
query I rowsort
SELECT col2 + + col0 * tab2.col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 + col0 * - tab2.col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col1 * col0 - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT tab1.col1 * col2 + col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT ALL + col1 - col0 * col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 * col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + - col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col1 + col2 * + col1 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col1 col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8742
SELECT + col0 DIV - col2 + col2 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-8742
SELECT + col0 / - col2 + col2 FROM tab0
----
-34
33
81
query I rowsort
SELECT - 80 * cor0.col2 FROM tab2 AS cor0
----
-2080
-2160
-3040
query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - col0 * col2 * col1 - col1 * col0 AS col1 FROM tab0 AS cor0
----
-672217
-6790
-70176
query I rowsort
SELECT + ( + col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col1 + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 - col1 )
----
query I rowsort
SELECT 62 FROM tab2 cor0
----
62
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8750
SELECT ALL col1 * CAST( NULL AS SIGNED ) - 60 * - col1 / ( + cor0.col2 + cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL col1 * CAST ( NULL AS INTEGER ) - 60 * - col1 / ( + cor0.col2 + cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 2 + + 82 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
84
query I rowsort
SELECT DISTINCT + col2 * + 30 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT ALL + 7 FROM tab0
----
7
7
7
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
-3
-64
-80
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL - tab0.col1 * col0 * col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col0 * tab2.col0 * - col1 AS col2 FROM tab2
----
106097
1519
358956
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT ALL - tab1.col2 * + col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 + - tab1.col2 AS col0 FROM tab1 WHERE NOT col0 + + col1 * col0 NOT IN ( col1 + col2 )
----
query I rowsort
SELECT DISTINCT - col0 * - col1 * + col0 AS col1 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * - col0 col2 FROM tab1
----
35
4106
6413
query III rowsort
SELECT * FROM tab2 WHERE col1 <> ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col1 * col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT col0 * + col2 * col1 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT * FROM tab1 WHERE NULL < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col1 col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + tab1.col2 * + col2 + col2 col0 FROM tab1
----
2944
3296
9299
query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col0 + + col1 * - col1 AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT tab2.col1 - col0 AS col0 FROM tab2
----
-19
-62
24
query III rowsort
SELECT * FROM tab2 WHERE + col1 < NULL
----
query I rowsort
SELECT ALL - col2 + col0 * - col0 * - col0 AS col1 FROM tab1
----
-27
262087
511904
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col0 * col2 NOT IN ( + col0 )
----
query I rowsort
SELECT - col1 + col2 + col2 AS col1 FROM tab1
----
104
179
82
query I rowsort
SELECT + tab1.col1 + - col2 + col0 AS col0 FROM tab1
----
-25
-3
17
query I rowsort
SELECT tab2.col1 - + col1 * tab2.col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL + ( - col2 + col1 ) AS col0 FROM tab2
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8779
SELECT + col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8779
SELECT + col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 67 * - col0 FROM tab1
----
-201
-4288
-5360
query I rowsort
SELECT + 7 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * col1 * + col2 + + cor0.col0 col2 FROM tab1 cor0
----
22294
48752
54759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8783
SELECT - col1 * tab2.col1 + - CAST( 96 AS SIGNED ) FROM tab2
----
-1057
-3577
-385
skipif mysql # not compatible
query I rowsort label-8783
SELECT - col1 * tab2.col1 + - CAST ( 96 AS INTEGER ) FROM tab2
----
-1057
-3577
-385
query I rowsort
SELECT DISTINCT + ( tab1.col1 + + 15 ) FROM tab1
----
25
28
41
query I rowsort
SELECT + tab1.col0 + tab1.col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( 44 ) col1 FROM tab2 AS cor0
----
-15
13
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT DISTINCT + + col0 * col1 DIV + col2 + - col0 col1 FROM tab1 AS cor0
----
-2
-53
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + + col0 * col1 / + col2 + - col0 col1 FROM tab1 AS cor0
----
-2
-53
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + + col1 col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col1 * + 98 FROM tab2 AS cor0
----
1666
3038
5782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - col2 col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT DISTINCT col1 * + ( 2 ) * col0 - col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
16198
4128
6790
skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT col1 * + ( 2 ) * col0 - col2 / - col1 AS col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + 74 col1 FROM tab2 AS cor0
----
123
6158
6315
query I rowsort
SELECT ALL + col2 * col0 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT DISTINCT + col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col0 * - ( col2 ) + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + col2 * - col2 + + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT 13 * col1 + col0 DIV + col1 AS col1 FROM tab1 cor0
----
136
175
338
skipif mysql # not compatible
query I rowsort label-8798
SELECT 13 * col1 + col0 / + col1 AS col1 FROM tab1 cor0
----
136
175
338
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-8800
SELECT ALL + ( col2 ) DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + ( col2 ) / + col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + - 53 FROM tab0 AS cor0
----
-53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8802
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 * col0 + cor0.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-8802
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 * col0 + cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * 54 - col2 AS col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT ( - col2 ) * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL 52 * + cor0.col0 - + ( + col0 ) * cor0.col1 FROM tab0 AS cor0
----
-1575
-3471
-816
query I rowsort
SELECT - 89 * + col0 * + col0 + 71 AS col0 FROM tab0 AS cor0
----
-108954
-51193
-704898
query I rowsort
SELECT - cor0.col1 * + col0 * + ( col2 * col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
-12610
-2334710
-7987187
query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - - 44 FROM tab0 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - 95 + col0 + col2 AS col1 FROM tab0 AS cor0
----
-38
-59
76
query I rowsort
SELECT ALL col0 * - col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
-1128
-459
2262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + + 30 * - cor0.col2 FROM tab0 cor0
----
-2460
-30
-990
query I rowsort
SELECT + + col2 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - 84 * col0 * + col2 FROM tab0 AS cor0
----
-2940
-613032
-66528
query I rowsort
SELECT ALL - - col2 * col1 - col1 * - col2 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT ALL + - 35 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
-22610
-29295
-53690
onlyif mysql # use DIV operator for integer division
query I rowsort label-8820
SELECT DISTINCT 33 DIV cor0.col1 FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT 33 / cor0.col1 FROM tab1 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT 33 * + col1 FROM tab2
----
1023
1947
561
query I rowsort
SELECT 22 + tab2.col1 FROM tab2
----
39
53
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 - col2 * - col2 * col2 col0 FROM tab1
----
157490
185203
884749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8824
SELECT ALL CAST( NULL AS SIGNED ) * - tab2.col1 - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL CAST ( NULL AS INTEGER ) * - tab2.col1 - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + col1 + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + 50 + col1 FROM tab2 AS cor0
----
109
67
81
query I rowsort
SELECT DISTINCT 35 * + col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT ALL 75 * - col1 FROM tab0 cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - - 3 + - col0 * col0 FROM tab1 AS cor0
----
-4093
-6
-6397
query I rowsort
SELECT ALL - 56 + cor0.col2 FROM tab1 AS cor0
----
-2
1
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 * col2 * col2 col2 FROM tab2 AS cor0
----
27040
29160
57760
query I rowsort
SELECT 8 AS col1 FROM tab2
----
8
8
8
query I rowsort
SELECT 55 + + col1 FROM tab1
----
65
68
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 + - col2 col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL col0 + + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col1 + col0 * + col2 * + col1 AS col2 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT + + col0 + + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - ( 47 ) + cor0.col0 * + col0 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-215
1435
4851
query I rowsort
SELECT DISTINCT - col2 * + col1 * - col1 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col2 + - 18 * tab1.col1 AS col1 FROM tab1
----
-123
-138
-414
onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT ALL col2 DIV 52 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL col2 / 52 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - col1 * 75 * + col2 + col0 + col1 AS col1 FROM tab2
----
-114913
-48354
-62737
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8846
SELECT ALL CAST( NULL AS SIGNED ) * - 56 + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL CAST ( NULL AS INTEGER ) * - 56 + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 69 ) + + tab2.col1 FROM tab2
----
100
128
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8848
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + ( + 60 ) + - col2 + + tab2.col1 AS col2 FROM tab2
----
39
64
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 31 col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + 3 * col2 AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT - 45 * + 75 FROM tab2 AS cor0
----
-3375
-3375
-3375
query I rowsort
SELECT ( + ( cor0.col1 ) ) * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 99 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT + 94 AS col0 FROM tab1 cor0
----
94
94
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8859
SELECT CAST( - 7 AS SIGNED ) FROM tab0 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-8859
SELECT CAST ( - 7 AS INTEGER ) FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT + ( 30 ) FROM tab2 AS cor0
----
30
30
30
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 - cor0.col2 * + 49 FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT - 36 * cor0.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to de5cdc6ee0be92ea33d4167656eb2de6
query I rowsort
SELECT ALL 45 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT + CAST( col0 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8865
SELECT + CAST ( col0 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col1 * col0 + + col1 * tab1.col0 FROM tab1
----
1280
156
2080
query I rowsort
SELECT + 28 AS col1 FROM tab1
----
28
28
28
query I rowsort
SELECT DISTINCT + col0 * 33 + - col0 * col1 FROM tab2 AS cor0
----
-2028
1264
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8869
SELECT ALL + ( - 45 ) * + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + ( - 45 ) * + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + ( cor0.col1 ) * cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 16 + - cor0.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1917a3253acead24f30eb7e27757a87a
query I rowsort
SELECT + col1 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39
query I rowsort
SELECT DISTINCT - tab2.col1 * + ( + 88 ) AS col1 FROM tab2
----
-1496
-2728
-5192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT 14 FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT col1 * + 50 FROM tab0 AS cor0
----
4300
4550
4850
query I rowsort
SELECT col0 * 73 + + ( col2 ) FROM tab2 AS cor0
----
538
5720
5805
onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT DISTINCT + col0 * ( - col1 ) DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + col0 * ( - col1 ) / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + 79 FROM tab1 AS cor0
----
133
136
175
query I rowsort
SELECT col1 + - 50 FROM tab0 cor0
----
36
41
47
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( + col1 AS REAL ) * - col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT 24 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - + col2 * col2 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1690
-1733
-4157
query I rowsort
SELECT + + 69 + - cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1274
-148
-4533
query I rowsort
SELECT 50 * + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 16b1feffcfd4473538f200e291382324
query I rowsort
SELECT - col0 + + col1 AS col2 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 41 col0 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT DISTINCT + 7 + - col2 AS col2 FROM tab1 AS cor0
----
-47
-50
-89
query I rowsort
SELECT ALL - + 23 FROM tab0 AS cor0
----
-23
-23
-23
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT + col1 * col0 + - col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT + 78 + col0 FROM tab0 AS cor0
----
102
113
167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT - CAST( - 12 AS SIGNED ) FROM tab0 cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-8895
SELECT - CAST ( - 12 AS INTEGER ) FROM tab0 cor0
----
12
12
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT ALL + - col1 + col2 DIV 62 FROM tab1 AS cor0
----
-10
-12
-26
skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + - col1 + col2 / 62 FROM tab1 AS cor0
----
-10
-12
-26
query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ( 11 ) + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 428618caf2bba48c63c1dc94ecb7bbdd
onlyif mysql # use DIV operator for integer division
query I rowsort label-8899
SELECT - col1 DIV - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8899
SELECT - col1 / - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 11 AS col2 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT + - col1 * + 93 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT ALL - 54 * col2 FROM tab2
----
-1404
-1458
-2052
query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 7 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT + + 58 + col0 AS col1 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT DISTINCT - col2 * col2 * ( cor0.col0 * + col2 ) AS col0 FROM tab2 AS cor0
----
-1370928
-137781
-4334888
query I rowsort
SELECT DISTINCT + 10 * col0 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT DISTINCT cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + 72 + - col0 * cor0.col1 + + col2 FROM tab1 AS cor0
----
-511
-872
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT ALL - + col2 DIV col0 - + col2 * col0 AS col0 FROM tab2 cor0
----
-192
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - + col2 / col0 - + col2 * col0 AS col0 FROM tab2 cor0
----
-192
-2028
-3002
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
query I rowsort
SELECT ALL - cor0.col1 + + col1 * + col0 AS col0 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT + cor1.col2 * 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 44bc5334d6e7adab2bd9631469888c1e
query I rowsort
SELECT col2 - col1 * + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + 10 + - col0 FROM tab0
----
-14
-25
-79
query I rowsort
SELECT tab0.col1 + + col2 * col0 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col0 + col0 * 55 * - 6 AS col1 FROM tab1
----
-21056
-26320
-987
query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - - ( + col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - 76 * 99 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ac97c3357b856cebc011ea31eef7ae65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-8924
SELECT - col1 DIV ( + col0 * + tab2.col1 ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8924
SELECT - col1 / ( + col0 * + tab2.col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT 16 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT 83 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT ALL - col0 DIV 15 FROM tab0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - col0 / 15 FROM tab0
----
-1
-2
-5
query I rowsort
SELECT col2 * - ( + 45 ) AS col0 FROM tab0
----
-1485
-3690
-45
query I rowsort
SELECT ALL col2 - - 65 AS col1 FROM tab1
----
119
122
161
onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT + col2 + ( col0 ) * col1 - ( + col1 ) DIV col0 AS col2 FROM tab0
----
2094
3394
8180
skipif mysql # not compatible
query I rowsort label-8930
SELECT + col2 + ( col0 ) * col1 - ( + col1 ) / col0 AS col2 FROM tab0
----
2094
3394
8180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT col2 DIV 99 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8931
SELECT col2 / 99 FROM tab0
----
0
0
0
query I rowsort
SELECT + 11 * + 63 + - col1 AS col1 FROM tab0 AS cor0
----
596
602
607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + - col1 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - 84 FROM tab0 AS cor0
----
-84
-84
-84
query I rowsort
SELECT - 59 * + col1 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT ALL - 7 + + col0 FROM tab0 AS cor0
----
17
28
82
query I rowsort
SELECT DISTINCT + 11 * - 28 FROM tab2 cor0
----
-308
query I rowsort
SELECT ALL + col2 + - col1 AS col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT ALL - - 52 + col0 DIV + col0 + + CAST( col0 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2117
3448
8152
skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - - 52 + col0 / + col0 + + CAST ( col0 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2117
3448
8152
query I rowsort
SELECT DISTINCT - - 71 * col1 + - col2 FROM tab0 AS cor0
----
6073
6379
6886
onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT + - cor0.col2 + 57 DIV + col1 AS col2 FROM tab2 AS cor0
----
-26
-26
-35
skipif mysql # not compatible
query I rowsort label-8941
SELECT + - cor0.col2 + 57 / + col1 AS col2 FROM tab2 AS cor0
----
-26
-26
-35
query I rowsort
SELECT ALL - + col2 * - 11 AS col0 FROM tab0 AS cor0
----
11
363
902
query I rowsort
SELECT + + col1 + + 47 + col0 * + 52 FROM tab0 AS cor0
----
1381
1964
4766
query I rowsort
SELECT + 87 + - col0 * col2 + col0 * col1 FROM tab1 cor0
----
-2921
-6553
3
query I rowsort
SELECT - + col1 * 17 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT ALL col0 * - col2 + col1 + col1 FROM tab1 AS cor0
----
-110
-3628
-7654
query I rowsort
SELECT - col2 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + col1 ) col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 + col0 AS col2 FROM tab1
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8950
SELECT ALL - tab2.col1 DIV - 95 + - col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - tab2.col1 / - 95 + - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - cor0.col0 * + 93 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9b45d4d5a4f0608c67e32ab4028ed77d
query I rowsort
SELECT 52 + - col0 AS col0 FROM tab1
----
-12
-28
49
query I rowsort
SELECT - ( + 21 + + col2 ) FROM tab2
----
-47
-48
-59
query I rowsort
SELECT ALL col2 + - 52 FROM tab0
----
-19
-51
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8955
SELECT ALL - CAST( NULL AS SIGNED ) / ( + col0 ) + - 61 + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - CAST ( NULL AS INTEGER ) / ( + col0 ) + - 61 + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 18 * + col0 ) - tab2.col2 FROM tab2
----
-1430
-1460
-153
query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0 AS cor0
----
27
query I rowsort
SELECT + 44 FROM tab1 cor0
----
44
44
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8959
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col0 + - col0 col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col0 + - col0 col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + 72 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
13
41
55
query I rowsort
SELECT + col0 - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8962
SELECT ALL + CAST( + col2 AS SIGNED ) * col2 - + col0 * col1 FROM tab2 cor0
----
-3926
101
512
skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + CAST ( + col2 AS INTEGER ) * col2 - + col0 * col1 FROM tab2 cor0
----
-3926
101
512
query I rowsort
SELECT DISTINCT - 75 * + col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT - 45 DIV col2 FROM tab0 AS cor0
----
-1
-45
0
skipif mysql # not compatible
query I rowsort label-8964
SELECT - 45 / col2 FROM tab0 AS cor0
----
-1
-45
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8965
SELECT DISTINCT cor0.col0 + col2 DIV 69 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT cor0.col0 + col2 / 69 FROM tab0 AS cor0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8966
SELECT + col2 - col1 DIV ( - col2 ) AS col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-8966
SELECT + col2 - col1 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 + col2 * + ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
181
2020
2994
query I rowsort
SELECT DISTINCT - + 6 * col2 * - cor0.col2 FROM tab2 AS cor0
----
4056
4374
8664
query I rowsort
SELECT ALL - + ( + col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab0 cor0
----
64
query I rowsort
SELECT + - 16 + + cor0.col2 FROM tab2 AS cor0
----
10
11
22
query I rowsort
SELECT - - col0 * col0 + 8 AS col0 FROM tab1 cor0
----
17
4104
6408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab2 AS cor0
----
26
26
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT - col2 + cor0.col2 DIV 15 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-8974
SELECT - col2 + cor0.col2 / 15 FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT ALL - + 33 * + col2 AS col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT - col2 + 89 * + col1 FROM tab2
----
1475
2732
5225
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT DISTINCT 52 + col0 DIV CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
52
skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT 52 + col0 / CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
52
query I rowsort
SELECT - 26 + col1 FROM tab2 AS cor0
----
-9
33
5
query I rowsort
SELECT + + 34 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-2900
-3005
-3263
query I rowsort
SELECT col1 * + cor0.col1 + 46 AS col0 FROM tab0 AS cor0
----
7442
8327
9455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8981
SELECT DISTINCT + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 + - ( + 23 ) AS col0 FROM tab0 AS cor0
----
-22
10
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8983
SELECT ALL - - cor0.col1 - - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - - cor0.col1 - - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + col2 * - cor0.col2 + + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-798
108
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 24 col0 FROM tab2 cor0
----
-7
35
7
query I rowsort
SELECT DISTINCT - - col1 + 69 * - col0 FROM tab1 AS cor0
----
-181
-4406
-5507
query I rowsort
SELECT DISTINCT + col1 + - 97 * - 21 AS col0 FROM tab1 AS cor0
----
2047
2050
2063
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col0 * col0 + col2 col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8991
SELECT DISTINCT - cor0.col2 DIV 49 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - cor0.col2 / 49 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT + col0 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-8992
SELECT + col0 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col1 + - 40 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2186
-2290
-3853
query I rowsort
SELECT + - col2 * - 49 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT col2 * col0 - - col2 * col0 AS col1 FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT - col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + ( - col0 ) * - col1 col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col0 * + col0 + - col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL - col0 * - ( + col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 + col0 * + 95 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT DISTINCT + ( col0 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - ( + 86 ) AS col0 FROM tab2 cor0
----
-86
query I rowsort
SELECT ALL - col0 * - 19 AS col2 FROM tab0
----
1691
456
665
query I rowsort
SELECT col2 + cor0.col2 * - 34 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT DISTINCT - col1 - - cor0.col0 * + ( - col2 + cor0.col0 ) FROM tab0 cor0
----
-302
1093
532
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 97 * col0 + - ( col1 ) FROM tab0 AS cor0
----
2242
3298
8542
query I rowsort
SELECT - 37 * col0 + ( - ( - col1 ) ) FROM tab1 cor0
----
-2358
-2947
-85
query I rowsort
SELECT ALL + + col2 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT + col0 DIV + col2 + 54 AS col2 FROM tab1 AS cor0
----
54
54
55
skipif mysql # not compatible
query I rowsort label-9010
SELECT + col0 / + col2 + 54 AS col2 FROM tab1 AS cor0
----
54
54
55
query I rowsort
SELECT + - col1 + - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT DISTINCT - ( + col0 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT - ( + col0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col2 + - ( - cor0.col1 ) col2 FROM tab1 cor0
----
295
296
493
query I rowsort
SELECT + - 19 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT - 46 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT - cor0.col1 + - 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b379d982bf819b3165845fd0e1ded12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9017
SELECT CAST( + col2 AS SIGNED ) + col2 + ( - 28 ) AS col0 FROM tab2 AS cor0
----
24
26
48
skipif mysql # not compatible
query I rowsort label-9017
SELECT CAST ( + col2 AS INTEGER ) + col2 + ( - 28 ) AS col0 FROM tab2 AS cor0
----
24
26
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 85 col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT DISTINCT ( cor1.col0 * - cor0.col0 ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
9 values hashing to a5747c01cc59c7dd6ac59c9369299556
query I rowsort
SELECT - + 61 + 1 + col0 AS col0 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab0 AS cor0
----
96
query I rowsort
SELECT ALL col0 - + 7 * col2 AS col2 FROM tab1 AS cor0
----
-335
-375
-592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9023
SELECT + CAST( cor0.col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-9023
SELECT + CAST ( cor0.col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col2 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT 88 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - 32 + ( + col1 ) + - 11 AS col1 FROM tab2 AS cor0
----
-12
-26
16
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) * ( - 38 ) AS col0 FROM tab0
----
-1330
-3382
-912
query I rowsort
SELECT ALL - 49 * tab2.col0 * col2 AS col1 FROM tab2
----
-147098
-9261
-99372
query I rowsort
SELECT ALL 53 * col2 + tab2.col2 * tab2.col1 FROM tab2
----
2268
2660
2912
query I rowsort
SELECT ALL - 91 * + 76 + col1 * col1 FROM tab1
----
-6240
-6747
-6816
query I rowsort
SELECT + 76 - 3 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL - col2 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + 26 * - col1 FROM tab0
----
-2236
-2366
-2522
query I rowsort
SELECT + ( + tab2.col2 ) * col2 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9037
SELECT + CAST( - col2 AS SIGNED ) * col0 * 39 FROM tab0
----
-1365
-284622
-30888
skipif mysql # not compatible
query I rowsort label-9037
SELECT + CAST ( - col2 AS INTEGER ) * col0 * 39 FROM tab0
----
-1365
-284622
-30888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col1 FROM tab0
----
-22
query I rowsort
SELECT - + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + + 0 * col0 + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - 68 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT + col0 * - ( + col0 ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + cor0.col2 * col2 - - ( col2 * col1 ) FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT - col2 - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - 96 - - col2 * - cor0.col2 FROM tab2 AS cor0
----
-1540
-772
-825
query I rowsort
SELECT - col0 * - 34 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT 66 + + col2 AS col1 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + - ( 27 ) + - col0 AS col0 FROM tab0 AS cor0
----
-116
-51
-62
query I rowsort
SELECT + - 26 * + col0 + col0 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT - 76 * + col0 AS col0 FROM tab0 AS cor0
----
-1824
-2660
-6764
query I rowsort
SELECT + col1 * - col0 + 3 AS col1 FROM tab2 AS cor0
----
-1340
-214
-4599
query I rowsort
SELECT - - cor0.col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col2 + + col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + col1 + 44 * ( cor0.col1 ) * - 53 + - col2 AS col2 FROM tab1 AS cor0
----
-23367
-30399
-60660
query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab0, tab2 AS cor0
----
52
query I rowsort
SELECT + 10 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT - col1 * + col2 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + ( - cor0.col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - ( + 10 ) * col2 + + col1 AS col1 FROM tab0 cor0
----
-244
-729
87
query I rowsort
SELECT ALL 96 * col2 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT ALL - 84 + + 60 + + col2 FROM tab1 AS cor0
----
30
33
72
query I rowsort
SELECT DISTINCT - 43 - col0 FROM tab2 AS cor0
----
-121
-122
-50
query I rowsort
SELECT ALL + col2 * - col2 + col0 AS col1 FROM tab1
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT DISTINCT tab1.col2 DIV 79 + + col2 FROM tab1
----
54
57
97
skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT tab1.col2 / 79 + + col2 FROM tab1
----
54
57
97
query I rowsort
SELECT ALL col0 + - ( col1 ) + - col0 * ( col1 * col1 ) FROM tab1
----
-13453
-2051
-6346
query I rowsort
SELECT ALL + tab0.col0 + - ( - 25 ) AS col0 FROM tab0
----
114
49
60
query I rowsort
SELECT ALL + col0 + col0 * tab0.col0 FROM tab0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - ( col2 ) * - col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab1 AS cor0
----
69
query I rowsort
SELECT ALL col2 * col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( tab0.col1 ) FROM tab0, tab2 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort
SELECT + - col0 + col2 * CAST ( col2 AS REAL ) AS col0 FROM tab1 cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab0 AS cor0
----
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - cor0.col0 col2 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT ALL + 0 * - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 40 AS col1 FROM tab0
----
40
40
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * - 51 col0 FROM tab1
----
-204
-204
-204
query I rowsort
SELECT - 55 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL col2 - + col0 * col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT col1 + col2 * cor0.col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + 73 * - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
490852
73
79497
query I rowsort
SELECT 78 + col2 * ( col2 * col2 ) FROM tab0 AS cor0
----
36015
551446
79
query I rowsort
SELECT - + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT + + ( - col2 ) * ( - col2 ) DIV col0 AS col2 FROM tab2 AS cor0
----
104
18
8
skipif mysql # not compatible
query I rowsort label-9089
SELECT + + ( - col2 ) * ( - col2 ) / col0 AS col2 FROM tab2 AS cor0
----
104
18
8
query I rowsort
SELECT ( col2 * + col2 ) FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9091
SELECT col0 DIV + col0 + + 64 AS col2 FROM tab2
----
65
65
65
skipif mysql # not compatible
query I rowsort label-9091
SELECT col0 / + col0 + + 64 AS col2 FROM tab2
----
65
65
65
query I rowsort
SELECT - col0 - - col0 * - ( + col1 + col1 ) FROM tab0
----
-16287
-4152
-6825
query I rowsort
SELECT DISTINCT 35 * col0 AS col2 FROM tab1
----
105
2240
2800
query I rowsort
SELECT + 11 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab0
----
68
68
68
query I rowsort
SELECT - + cor0.col2 - - col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT + cor0.col2 DIV 95 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9098
SELECT + cor0.col2 / 95 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * + ( col2 ) + col1 + tab0.col2 AS col0 FROM tab0
----
1208
6897
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 + col1 * + col1 col0 FROM tab1
----
110
182
702
query I rowsort
SELECT ALL - - cor0.col1 + ( - col0 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * ( - 83 ) + cor0.col2 FROM tab2 AS cor0
----
-1373
-2546
-4871
query I rowsort
SELECT + - col1 * col1 * cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9105
SELECT cor0.col0 + ( 30 ) DIV - col0 col0 FROM tab0 AS cor0
----
23
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9105
SELECT cor0.col0 + ( 30 ) / - col0 col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT - col1 + 66 * + cor0.col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT - col0 + ( + col1 ) * + col1 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9108
SELECT ALL col0 * - CAST( NULL AS SIGNED ) + - 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) + - 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT DISTINCT col1 + col0 * 23 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
27
32
35
skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT col1 + col0 * 23 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
27
32
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col0 col0 FROM tab1, tab0 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 + col1 - 25 FROM tab2 cor0
----
55
6118
6233
query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col1 * + col1 + col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT col0 * ( + col1 ) AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 25 + - 68 * cor0.col2 * col2 FROM tab2 AS cor0
----
-45993
-49597
-98217
query I rowsort
SELECT col2 * col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT - 84 * - 58 + col1 AS col0 FROM tab2 AS cor0
----
4889
4903
4931
onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT ALL - - col0 DIV col0 + + col1 * ( cor0.col0 ) FROM tab1 cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - - col0 / col0 + + col1 * ( cor0.col0 ) FROM tab1 cor0
----
1041
641
79
query I rowsort
SELECT DISTINCT 0 * - col0 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab2 cor0
----
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9122
SELECT - - col2 DIV + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-9122
SELECT - - col2 / + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT ALL - 75 + col1 FROM tab1 AS cor0
----
-49
-62
-65
query I rowsort
SELECT ALL - cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col2 + - col2 * + 53 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT ALL + 38 AS col1 FROM tab1 AS cor0
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9127
SELECT - col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9127
SELECT - col2 + + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT DISTINCT + + col0 DIV + col1 + + 15 FROM tab0 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + + col0 / + col1 + + 15 FROM tab0 AS cor0
----
15
query I rowsort
SELECT DISTINCT + ( - col1 ) + tab0.col0 FROM tab0
----
-2
-62
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 * col0 AS REAL ) + col0 AS col2 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT ALL 90 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-30
skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL 90 / - col0 FROM tab1 AS cor0
----
-1
-1
-30
query I rowsort
SELECT - col0 + + col0 * - col0 + - col2 * col2 FROM tab0
----
-1261
-14734
-1689
onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT + tab0.col2 DIV - col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9133
SELECT + tab0.col2 / - col0 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT ALL + col1 + + col2 DIV col2 col2 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + col1 + + col2 / col2 col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1 WHERE NOT - col1 NOT IN ( col2 + + col1 ) AND col2 - - col2 IN ( + tab1.col0 )
----
query I rowsort
SELECT - col1 + col1 * + col0 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT col1 + col2 * - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT cor0.col0 * col0 + - col0 + col2 * col2 FROM tab0 cor0
----
1191
14556
1641
query I rowsort
SELECT cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT DISTINCT + col1 + + col0 DIV - col2 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
35
4105
6413
skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT + col1 + + col0 / - col2 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
35
4105
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 * col0 + + col1 col2 FROM tab2 AS cor0
----
521
5519
5547
query I rowsort
SELECT DISTINCT + 36 * - col1 + - col0 FROM tab0 AS cor0
----
-3120
-3365
-3527
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + col2 + tab1.col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 31 + col0 FROM tab1
----
111
34
95
query I rowsort
SELECT + ( col2 ) * - col2 * col1 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN + col0 AND ( col2 * - tab1.col2 )
----
query I rowsort
SELECT - col0 + - col1 + col1 * + col0 AS col1 FROM tab1
----
49
566
947
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col0 + col2 + col2 )
----
query I rowsort
SELECT ALL col0 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col2 + + col0
----
query I rowsort
SELECT ALL col1 + - col2 - col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9158
SELECT ALL tab0.col1 DIV tab0.col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL tab0.col1 / tab0.col0 FROM tab0
----
1
2
3
query I rowsort
SELECT tab2.col2 * col0 * + col2 FROM tab2
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 - col1 col1 FROM tab2
----
-24
19
62
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > col2
----
query I rowsort
SELECT ALL col2 - col2 * - col2 * col0 AS col1 FROM tab2
----
114114
5130
52754
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <> ( + col1 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT - - col0 * col0 + 82 DIV col0 AS col1 FROM tab2 AS cor0
----
60
6085
6242
skipif mysql # not compatible
query I rowsort label-9164
SELECT - - col0 * col0 + 82 / col0 AS col1 FROM tab2 AS cor0
----
60
6085
6242
onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT DISTINCT + col1 + + col2 DIV + 36 AS col2 FROM tab1 AS cor0
----
11
15
27
skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT + col1 + + col2 / + 36 AS col2 FROM tab1 AS cor0
----
11
15
27
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col1 FROM tab0 WHERE + col1 NOT IN ( col1 / col2 )
----
7209
768
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 * - ( + col0 ) AS col0 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL cor0.col2 - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT 12 * col0 * - col0 + - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-14700
-6912
-95052
skipif mysql # not compatible
query I rowsort label-9170
SELECT 12 * col0 * - col0 + - col0 / col1 AS col2 FROM tab0 AS cor0
----
-14700
-6912
-95052
query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col1 * + col0 - - col1 * col1 * col2 FROM tab0
----
242004
6014
670943
query I rowsort
SELECT + col2 + col1 + - col0 AS col0 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT DISTINCT col0 DIV col2 AS col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT col0 / col2 AS col2 FROM tab1
----
0
1
query I rowsort
SELECT col1 - col1 * - col2 * - col1 AS col0 FROM tab0
----
-243982
-678951
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT tab1.col2 DIV col1 - col2 FROM tab1
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-9176
SELECT tab1.col2 / col1 - col2 FROM tab1
----
-52
-52
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT DISTINCT + col2 DIV col2 + col2 AS col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + col2 / col2 + col2 AS col2 FROM tab0
----
2
34
83
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < col0 * + col1 * col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT ALL + col2 DIV - col1 + col2 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + col2 / - col1 + col2 FROM tab2
----
26
27
36
query I rowsort
SELECT col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col2 * - col1 * + col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL BETWEEN - col0 + + col2 / + col1 AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE col0 < col2
----
3
26
54
80
13
96
query I rowsort
SELECT ALL - col1 + col2 + col1 * tab0.col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL + col2 * + col2 + - col0 AS col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT - tab1.col0 + col1 * col0 - - col1 AS col1 FROM tab1
----
101
586
973
query I rowsort
SELECT col2 * cor0.col1 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-9189
SELECT ALL + col0 DIV col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL + col0 / col0 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT ALL 33 DIV + col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL 33 / + col1 FROM tab1
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9191
SELECT ALL CAST( 96 AS SIGNED ) * - col2 FROM tab2
----
-2496
-2592
-3648
skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL CAST ( 96 AS INTEGER ) * - col2 FROM tab2
----
-2496
-2592
-3648
query I rowsort
SELECT ALL + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - 10 + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1099
-11
-6734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9194
SELECT ALL CAST( NULL AS SIGNED ) * - 2 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL CAST ( NULL AS INTEGER ) * - 2 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) * + cor0.col2 - 7 FROM tab2 AS cor0
----
1527
639
830
query I rowsort
SELECT ALL - ( + col2 ) * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - ( 38 ) + col2 - - col0 FROM tab0 AS cor0
----
-2
133
19
query I rowsort
SELECT ALL - 75 + - col2 FROM tab0 AS cor0
----
-108
-157
-76
query I rowsort
SELECT - col1 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + ( + cor0.col0 ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + - 81 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT DISTINCT + + 91 * col1 AS col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT - col1 + + cor0.col2 * col2 + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-95
1036
6715
onlyif mysql # use DIV operator for integer division
query I rowsort label-9204
SELECT - col2 + - col1 + - col1 DIV col0 FROM tab1 AS cor0
----
-109
-67
-88
skipif mysql # not compatible
query I rowsort label-9204
SELECT - col2 + - col1 + - col1 / col0 FROM tab1 AS cor0
----
-109
-67
-88
query I rowsort
SELECT + - col2 + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-9206
SELECT + + col0 * - col1 + 45 DIV col1 FROM tab1 AS cor0
----
-1037
-636
-77
skipif mysql # not compatible
query I rowsort label-9206
SELECT + + col0 * - col1 + 45 / col1 FROM tab1 AS cor0
----
-1037
-636
-77
query I rowsort
SELECT + cor2.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT + cor0.col0 + + ( + cor0.col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col2 + col2 * ( + col2 ) AS col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * + col1 col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL + - col1 + + 22 * + 68 + - col0 FROM tab0 AS cor0
----
1316
1364
1386
query I rowsort
SELECT ALL - - col2 + col0 * 65 AS col1 FROM tab2 AS cor0
----
482
5096
5173
onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT - + col2 + + 78 DIV + cor0.col1 FROM tab2 AS cor0
----
-25
-25
-34
skipif mysql # not compatible
query I rowsort label-9215
SELECT - + col2 + + 78 / + cor0.col1 FROM tab2 AS cor0
----
-25
-25
-34
query I rowsort
SELECT DISTINCT - col0 + col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - col0 + + 62 FROM tab2 cor0
----
-16
-17
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + 53 * - col2 col2 FROM tab0 AS cor0
----
-129
-1825
-4422
query I rowsort
SELECT DISTINCT + 79 + - col0 * cor0.col0 * col0 FROM tab2 AS cor0
----
-264
-474473
-492960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9220
SELECT col2 / + cor0.col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 39 + + 46 AS col2 FROM tab2 AS cor0
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT col2 * - col0 DIV + 1 + + tab2.col2 AS col1 FROM tab2
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort label-9222
SELECT col2 * - col0 / + 1 + + tab2.col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT col2 * - col0 + + 64 FROM tab0
----
-7234
-728
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 32 ) * + col2 + col1 * + col0 col0 FROM tab2 AS cor0
----
1081
2559
5434
query I rowsort
SELECT DISTINCT + col1 * col1 - col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT 73 + col0 * col1 AS col2 FROM tab1 cor0
----
1113
151
713
query I rowsort
SELECT DISTINCT - 18 FROM tab0, tab1 cor0
----
-18
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT col2 + ( 28 ) FROM tab2
----
54
55
66
query I rowsort
SELECT DISTINCT col0 + + tab0.col1 * tab0.col1 AS col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT + 68 DIV cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
21
33
60
skipif mysql # not compatible
query I rowsort label-9232
SELECT + 68 / cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
21
33
60
query I rowsort
SELECT DISTINCT tab0.col1 * - col1 + + col0 * tab0.col0 AS col0 FROM tab0
----
-360
-6820
-8184
query I rowsort
SELECT - 76 FROM tab0, tab0 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ( 37 ) + col2 * col1 FROM tab2 AS cor0
----
1571
683
874
query I rowsort
SELECT ALL + 60 AS col2 FROM tab1
----
60
60
60
query I rowsort
SELECT + ( 34 ) + - col2 FROM tab2
----
-4
7
8
query I rowsort
SELECT ALL col1 - - tab0.col1 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + col1 * tab0.col2 - - col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + col2 * col1 + - 53 * ( col2 ) FROM tab1
----
-1458
-2451
-3840
query I rowsort
SELECT DISTINCT + 74 + col0 AS col0 FROM tab0
----
109
163
98
query I rowsort
SELECT + 83 + col2 AS col2 FROM tab1
----
137
140
179
query I rowsort
SELECT - + col2 * + col0 + 32 * col0 + col1 * col2 FROM tab0 AS cor0
----
1182
2814
3012
query I rowsort
SELECT DISTINCT - - col1 * col1 + + col2 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT - - col1 + 57 + + col2 FROM tab1 AS cor0
----
124
137
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9246
SELECT + col1 * CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-9246
SELECT + col1 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + 40 FROM tab0, tab1, tab1 cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT ALL + col1 + - col0 + col1 * + col0 * tab1.col2 FROM tab1
----
36426
4235
99773
onlyif mysql # use DIV operator for integer division
query I rowsort label-9249
SELECT ALL col2 * col0 + col2 DIV tab2.col1 AS col2 FROM tab2
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL col2 * col0 + col2 / tab2.col1 AS col2 FROM tab2
----
189
2028
3004
query I rowsort
SELECT ALL - col1 * - tab2.col2 + + 69 FROM tab2
----
1603
715
906
query I rowsort
SELECT DISTINCT - 82 * + col0 + col0 FROM tab2
----
-567
-6318
-6399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9252
SELECT ALL 16 + - tab0.col0 * CAST( + ( col0 ) AS SIGNED ) + + col0 FROM tab0
----
-1174
-536
-7816
skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL 16 + - tab0.col0 * CAST ( + ( col0 ) AS INTEGER ) + + col0 FROM tab0
----
-1174
-536
-7816
query I rowsort
SELECT - 49 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT col1 + - 70 AS col0 FROM tab2 cor0
----
-11
-39
-53
query I rowsort
SELECT DISTINCT - col2 + + 14 FROM tab2 AS cor0
----
-12
-13
-24
query I rowsort
SELECT + col2 + col0 * col2 + - col0 FROM tab1 AS cor0
----
213
3641
7696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 44 * + 11 col1 FROM tab1 cor0
----
458
471
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT ALL + col1 DIV - 85 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + col1 / - 85 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL col2 + - tab0.col0 * tab0.col0 AS col1 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - col2 * - col2 * ( + ( + col1 ) ) + 32 AS col2 FROM tab1
----
119840
32522
75848
query I rowsort
SELECT cor0.col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 24 FROM tab1, tab1 cor0, tab1 AS cor1
----
24
query I rowsort
SELECT ALL 64 + - col2 FROM tab0
----
-18
31
63
query I rowsort
SELECT ALL + 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT cor0.col0 * - ( 51 + cor0.col2 ) FROM tab1 AS cor0
----
-11760
-315
-6912
query I rowsort
SELECT - col0 * - 51 - 2 AS col0 FROM tab2 AS cor0
----
355
3976
4027
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 col2 + ( - col1 ) + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1142
-6733
-97
query I rowsort
SELECT DISTINCT - - col1 * ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT ALL col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT cor0.col1 * + col2 * - col2 AS col1 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - ( col0 ) * tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT ALL - CAST( - 48 AS SIGNED ) FROM tab2 AS cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - CAST ( - 48 AS INTEGER ) FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT ALL 62 + col1 FROM tab2 AS cor0
----
121
79
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV col1 + 52 FROM tab2 AS cor0
----
48
51
52
skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / col1 + 52 FROM tab2 AS cor0
----
48
51
52
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + col2 - - cor0.col1 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT 6 + col2 AS col0 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT DISTINCT 60 + + cor0.col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1204
-150
-4464
query I rowsort
SELECT ALL - 10 AS col2 FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - col2 * - 52 + col0 + 85 FROM tab0 AS cor0
----
172
1825
4438
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 52 col0 FROM tab0 AS cor0
----
52
query I rowsort
SELECT ALL - 77 * col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT ALL 78 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT + - 81 AS col1 FROM tab1 AS cor0
----
-81
query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9287
SELECT + col2 + - col0 * CAST( col0 * - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
370
474578
493077
skipif mysql # not compatible
query I rowsort label-9287
SELECT + col2 + - col0 * CAST ( col0 * - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
370
474578
493077
query I rowsort
SELECT DISTINCT + 93 + cor0.col0 * col1 FROM tab0 AS cor0
----
2157
3488
8192
query I rowsort
SELECT - 25 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT - 27 DIV col1 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-9290
SELECT - 27 / col1 FROM tab1 AS cor0
----
-1
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9291
SELECT + ( col0 ) DIV + cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9291
SELECT + ( col0 ) / + cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 8 * - 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32
query I rowsort
SELECT 84 * col2 AS col0 FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT + col2 + + col0 * - 58 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-37063
-4470
-60224
query I rowsort
SELECT ALL col1 * - 19 FROM tab2 cor0
----
-1121
-323
-589
query I rowsort
SELECT + - 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT DISTINCT + col0 + ( - 9 ) AS col1 FROM tab0 AS cor0
----
15
26
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9298
SELECT DISTINCT + col1 DIV col1 AS col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + col1 / col1 AS col0 FROM tab2 cor0
----
1
query I rowsort
SELECT 64 + - col2 FROM tab1 AS cor0
----
-32
10
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9300
SELECT + col2 + + col0 DIV - col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-9300
SELECT + col2 + + col0 / - col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - ( col0 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT + ( 18 ) DIV col2 + + col0 * col2 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9302
SELECT + ( 18 ) / col2 + + col0 * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + 62 * 74 * - col1 FROM tab1
----
-119288
-45880
-59644
query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ( - cor0.col2 ) * - col1 + - 78 FROM tab2 cor0
----
1456
568
759
query I rowsort
SELECT ALL - col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL ( 88 ) FROM tab1
----
88
88
88
query I rowsort
SELECT ALL - 72 AS col0 FROM tab1
----
-72
-72
-72
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL + + cor0.col2 + + 34 * col2 AS col1 FROM tab2 cor0
----
1330
910
945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9312
SELECT DISTINCT + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3
query I rowsort
SELECT ALL + 9 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - 23 + 8 AS col1 FROM tab1
----
-15
-15
-15
query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * col2 + - tab1.col0 col0 FROM tab1
----
1941
1988
3376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * col0 col0 FROM tab2
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9319
SELECT + - 58 DIV 7 col2 FROM tab1 AS cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9319
SELECT + - 58 / 7 col2 FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT - - 81 * col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
14095
7858
8055
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9321
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 91 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 91 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab1 AS cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col1 * + col2 col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + 10 * + col1 FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT DISTINCT + col0 * - ( + cor0.col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 43 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT 0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col1 * col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT - col0 + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-9330
SELECT - col0 + + col1 / col0 AS col0 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * + col2 * + 96 AS col1 FROM tab0 AS cor0
----
104544
645504
96
query I rowsort
SELECT DISTINCT + + col1 * + 58 * + col1 AS col1 FROM tab0 cor0
----
428968
480298
545722
query I rowsort
SELECT ( col1 + tab0.col0 ) * - 61 FROM tab0
----
-10980
-6710
-8052
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - - col0 * ( + cor0.col0 + - col1 ) AS col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT DISTINCT col0 + 42 AS col2 FROM tab0 AS cor0
----
131
66
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col2 * ( - col2 ) + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-513
1197
1224
query I rowsort
SELECT ALL - + col1 + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL - col1 * - col0 * col1 + + col2 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT + col1 * + 89 + col0 FROM tab0 AS cor0
----
7678
8188
8668
query I rowsort
SELECT ALL + col2 * ( col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + - col0 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - cor0.col0 + + cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 86 * - 18 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d2c9fa05690c009d2e0ce868a04afa29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9350
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * 14 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * 14 FROM tab1 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT DISTINCT col1 * 25 * - col0 AS col0 FROM tab0
----
-202475
-51600
-84875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( col1 ) col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT cor0.col0 * tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9355
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 - + col0 col1 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT col2 + col2 * col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - col2 * 30 + col0 AS col1 FROM tab1 AS cor0
----
1623
1774
2960
query I rowsort
SELECT ALL - col1 * + 93 + col2 AS col2 FROM tab2 AS cor0
----
-1543
-2856
-5461
query I rowsort
SELECT - col0 * + col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + cor0.col0 col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT + + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9362
SELECT + + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * - col1 + 53 + - col1 FROM tab2 cor0
----
1528
682
859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT + ( col0 ) * col1 DIV 77 FROM tab0 AS cor0
----
105
26
44
skipif mysql # not compatible
query I rowsort label-9364
SELECT + ( col0 ) * col1 / 77 FROM tab0 AS cor0
----
105
26
44
query I rowsort
SELECT col2 + + tab2.col0 * - col2 AS col0 FROM tab2
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9366
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL + col1 * col0 + - col0 FROM tab0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9368
SELECT DISTINCT - + cor0.col1 * col2 * - CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - + cor0.col1 * col2 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - ( col2 ) * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 * + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - col2 - + col2 * + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9375
SELECT ALL + - ( + col1 ) * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + - ( + col1 ) * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - col0 - + col2 * + col1 * col0 FROM tab1 AS cor0
----
-106240
-40576
-4221
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 - - col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ( - 28 + - col1 ) FROM tab1
----
-38
-41
-54
query I rowsort
SELECT ALL 46 + - col0 AS col1 FROM tab1 AS cor0
----
-18
-34
43
query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 - + col1 AS col0 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT - 49 DIV + col1 FROM tab1
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-9382
SELECT - 49 / + col1 FROM tab1
----
-1
-3
-4
query I rowsort
SELECT - col2 + col0 + - col1 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT col0 + col0 * + col2 + - 87 * - col2 AS col0 FROM tab2
----
2545
4368
6387
query I rowsort
SELECT ALL + col0 + + col1 * col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + cor1.col0 * 6 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6d325149e90af2faf0c31f064e65c424
query I rowsort
SELECT ALL + col0 + col1 * - 5 FROM tab2 AS cor0
----
-148
-217
-6
query I rowsort
SELECT - ( + col2 ) * + ( + col0 ) + col1 AS col0 FROM tab1 cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT + - 6 DIV + col1 + 58 AS col0 FROM tab2 AS cor0
----
58
58
58
skipif mysql # not compatible
query I rowsort label-9389
SELECT + - 6 / + col1 + 58 AS col0 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT col0 * col0 - - col1 * - 66 * - col0 AS col2 FROM tab2 cor0
----
14371
309816
94879
query I rowsort
SELECT DISTINCT 38 * col2 FROM tab1 cor0
----
2052
2166
3648
query I rowsort
SELECT ALL - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab0 AS cor0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col2 FROM tab2
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9396
SELECT + CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9396
SELECT + CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 23 + - col2 FROM tab1 cor0
----
-31
-34
-73
query I rowsort
SELECT - col2 * col1 + ( + col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 * + col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT ALL - cor0.col1 DIV tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7033b3a2da857bd829c8fc5c375fcd9c
skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - cor0.col1 / tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7033b3a2da857bd829c8fc5c375fcd9c
query I rowsort
SELECT + ( col0 + tab0.col2 ) AS col0 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL 89 AS col1 FROM tab0
----
89
89
89
query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9406
SELECT + col2 + + CAST( NULL AS SIGNED ) * + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9406
SELECT + col2 + + CAST ( NULL AS INTEGER ) * + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + col1 * 51 FROM tab0 AS cor0
----
4300
4550
4850
query I rowsort
SELECT + - col0 + - col1 * col0 * col2 AS col2 FROM tab2 cor0
----
-119730
-51113
-5866
query I rowsort
SELECT - col2 * col1 + - 98 FROM tab0 AS cor0
----
-195
-2936
-7560
query I rowsort
SELECT - cor0.col2 + - col2 * + 34 AS col0 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT col2 * col1 * tab2.col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - 93 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT ALL col2 * col2 + ( + col0 ) * tab0.col0 AS col2 FROM tab0
----
1226
14645
1665
query I rowsort
SELECT DISTINCT ( tab2.col2 * col1 ) + - 49 * tab2.col2 AS col1 FROM tab2
----
-1216
-486
260
query I rowsort
SELECT 19 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT ( 56 ) FROM tab1, tab1 cor0
----
56
query I rowsort
SELECT + + col2 + - ( 3 ) * + col1 FROM tab1 AS cor0
----
-24
27
57
query I rowsort
SELECT ALL - + col2 * 6 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT col1 * + ( - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9420
SELECT - cor0.col0 DIV + 5 + 40 * - col1 FROM tab1 AS cor0
----
-1040
-412
-536
skipif mysql # not compatible
query I rowsort label-9420
SELECT - cor0.col0 / + 5 + 40 * - col1 FROM tab1 AS cor0
----
-1040
-412
-536
query I rowsort
SELECT ALL - 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT ALL + - cor0.col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * - CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + cor0.col1 col1 FROM tab1 AS cor0
----
38
41
54
skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col2 AS REAL ) / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT DISTINCT + col2 DIV col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + col2 / col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9427
SELECT ALL - + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - + col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT + + col2 DIV col1 + - col1 * ( - 13 ) + cor0.col2 FROM tab2 AS cor0
----
261
430
793
skipif mysql # not compatible
query I rowsort label-9428
SELECT + + col2 / col1 + - col1 * ( - 13 ) + cor0.col2 FROM tab2 AS cor0
----
261
430
793
query I rowsort
SELECT ALL - col1 + col2 * col2 AS col0 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - col2 + col1 + col1 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL ( cor1.col0 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - col2 - 83 FROM tab1
----
-137
-140
-179
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9435
SELECT + tab2.col1 DIV 85 + - tab2.col1 * col2 AS col2 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-9435
SELECT + tab2.col1 / 85 + - tab2.col1 * col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + 32 * col1 FROM tab2 cor0
----
1888
544
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col2 FROM tab1 AS cor0
----
99
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT DISTINCT - + col2 DIV col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - + col2 / col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT - ( 71 ) DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9439
SELECT - ( 71 ) / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + col2 + 2 * - col0 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT - 62 * - col2 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT - + 39 + col1 * cor0.col2 FROM tab0 AS cor0
----
2799
58
7423
query I rowsort
SELECT DISTINCT 1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
query I rowsort
SELECT - col2 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT - 77 - + col2 FROM tab1 AS cor0
----
-131
-134
-173
query I rowsort
SELECT + + col2 + col1 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col2 + col0 + + col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT col1 * + col2 + ( col1 * + ( col0 ) ) FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT + col2 * + ( - col2 ) + - col2 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
-2967
-3242
-9232
query I rowsort
SELECT ALL + + col1 + - col2 * 10 + + col2 * col0 FROM tab1 cor0
----
-352
3088
6733
query I rowsort
SELECT DISTINCT + + 88 + cor0.col2 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * 13 + - 11 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1646
-3393
-7044
query I rowsort
SELECT col1 * - col2 + ( - col2 + col1 ) AS col2 FROM tab0 cor0
----
-1
-2785
-7453
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2 AS cor0
----
51
query I rowsort
SELECT DISTINCT col2 + + col1 * 78 * col1 AS col1 FROM tab0 AS cor0
----
576921
646000
733903
query I rowsort
SELECT + + col2 + col0 * ( + 65 ) FROM tab1 AS cor0
----
249
4217
5296
query I rowsort
SELECT DISTINCT - col2 * + col2 + 82 * col2 FROM tab0 AS cor0
----
0
1617
81
query I rowsort
SELECT DISTINCT - - col2 * col1 * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + + 91 + - col2 FROM tab0 AS cor0
----
58
9
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT ALL + 44 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + 44 / col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT ALL + col2 + cor0.col1 DIV - col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + col2 + cor0.col1 / - col0 FROM tab2 AS cor0
----
23
26
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9462
SELECT ALL - - col0 DIV col0 - ( + 73 + col2 ) FROM tab1 AS cor0
----
-126
-129
-168
skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - - col0 / col0 - ( + 73 + col2 ) FROM tab1 AS cor0
----
-126
-129
-168
query I rowsort
SELECT ALL cor0.col1 * col0 + col2 + + col1 FROM tab2 AS cor0
----
1398
275
4687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + cor0.col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col1 * - col0 - - col0 * ( + col0 ) * ( - col2 ) FROM tab0 AS cor0
----
-21072
-4620
-657621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - - col0 col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT ALL + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + col1 / col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + 73 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + col0 + + 31 FROM tab0 AS cor0
----
120
55
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9470
SELECT DISTINCT + + col0 DIV + col1 + col0 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + + col0 / + col1 + col0 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ALL 9 * col0 AS col1 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col1 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT + ( col0 ) + col2 + 15 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
-1194
-1233
-1419
onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT cor2.col1 + - cor2.col1 DIV - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 1b9e0e5abe26d99e55722f0aa8bb38e1
skipif mysql # not compatible
query I rowsort label-9474
SELECT cor2.col1 + - cor2.col1 / - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 1b9e0e5abe26d99e55722f0aa8bb38e1
query I rowsort
SELECT col1 * 39 + col1 * + col1 + + col2 FROM tab0
----
10783
11912
13193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9476
SELECT ALL CAST( - col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL CAST ( - col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * + col2 + - col1 + 66 FROM tab2 AS cor0
----
1493
683
764
query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT ( - 72 ) AS col1 FROM tab2 AS cor0
----
-72
query I rowsort
SELECT ALL - 97 * - col2 FROM tab2 AS cor0
----
2522
2619
3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT ALL 95 DIV + col1 AS col2 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 95 / + col1 AS col2 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT ALL + 39 * - col2 + + col2 * + col2 FROM tab1 AS cor0
----
1026
5472
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT ALL + CAST( - 83 AS SIGNED ) FROM tab2 AS cor0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + CAST ( - 83 AS INTEGER ) FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL - 10 * col1 + col2 FROM tab2 AS cor0
----
-132
-283
-564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9489
SELECT DISTINCT + 93 * + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + 93 * + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT col1 * col2 * col2 AS col2 FROM tab1
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT DISTINCT + col0 * tab1.col1 DIV - tab1.col0 AS col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + col0 * tab1.col1 / - tab1.col0 AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col0 * col2 * ( col2 + tab1.col2 * + col1 ) FROM tab1
----
-10321920
-2287296
-236196
query I rowsort
SELECT - + col0 + col1 * - 12 FROM tab2 cor0
----
-283
-379
-786
query I rowsort
SELECT - + 24 AS col1 FROM tab1 AS cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT + - col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col2 + col0 + col0 AS col1 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT col1 * 70 AS col0 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT DISTINCT - col2 - + ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col1 FROM tab2, tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 + - col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - - col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + col2 + + ( + 58 ) AS col0 FROM tab0 AS cor0
----
140
59
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT ALL - col1 DIV - col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - col1 / - col2 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT + CAST( cor0.col2 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-9505
SELECT + CAST ( cor0.col2 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + cor0.col1 * 86 FROM tab1 AS cor0
----
1118
2236
860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 27 ) * + col0 col0 FROM tab1 AS cor0
----
1728
2160
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9508
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9509
SELECT DISTINCT + CAST( - 56 AS SIGNED ) * + col2 + ( - 18 ) AS col1 FROM tab0 cor0
----
-1866
-4610
-74
skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + CAST ( - 56 AS INTEGER ) * + col2 + ( - 18 ) AS col1 FROM tab0 cor0
----
-1866
-4610
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9510
SELECT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT col2 * + 56 + tab0.col1 DIV col2 FROM tab0
----
153
1850
4593
skipif mysql # not compatible
query I rowsort label-9512
SELECT col2 * + 56 + tab0.col1 / col2 FROM tab0
----
153
1850
4593
query I rowsort
SELECT + 27 * + col2 FROM tab0 AS cor0
----
2214
27
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT ALL col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 6 * cor0.col2 + + 52 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4d0358c8ad185f5587293fe48c487b7b
query I rowsort
SELECT - - cor0.col2 * - col1 + + 65 AS col0 FROM tab0 AS cor0
----
-2773
-32
-7397
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT ALL + col2 + + col0 DIV + col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL + col2 + + col0 / + col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - - 95 + + col1 FROM tab0 AS cor0
----
181
186
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT + col2 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9520
SELECT + col2 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 3 FROM tab1 AS cor0
----
-192
-240
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 76 + + col1 FROM tab2
----
-17
-45
-59
query I rowsort
SELECT - col0 * + col1 * - col2 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM tab1
----
54
query I rowsort
SELECT - col1 * + col2 + 77 * - col1 AS col1 FROM tab1 AS cor0
----
-1340
-2249
-3406
query I rowsort
SELECT - ( + tab2.col1 ) * col1 + 93 * - col0 FROM tab2
----
-10735
-1612
-7636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 + + ( - col0 ) ) col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - - col2 + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + 12 + col0 * - col1 FROM tab2 AS cor0
----
-1331
-205
-4590
query I rowsort
SELECT + - ( - 64 ) * + cor0.col0 FROM tab0 AS cor0
----
1536
2240
5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9532
SELECT ( 67 ) * + col0 + CAST( 71 + col2 AS SIGNED ) FROM tab1 cor0
----
326
4416
5527
skipif mysql # not compatible
query I rowsort label-9532
SELECT ( 67 ) * + col0 + CAST ( 71 + col2 AS INTEGER ) FROM tab1 cor0
----
326
4416
5527
query I rowsort
SELECT + col1 * col2 * col2 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - ( 37 ) AS col1 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - + col0 * + 52 AS col0 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9537
SELECT + col0 * col0 * col1 + col2 DIV ( - col0 + 87 ) FROM tab2 AS cor0
----
106101
1519
358958
skipif mysql # not compatible
query I rowsort label-9537
SELECT + col0 * col0 * col1 + col2 / ( - col0 + 87 ) FROM tab2 AS cor0
----
106101
1519
358958
query I rowsort
SELECT ALL - col0 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + 3 * col1 AS col0 FROM tab1 AS cor0
----
-34
-41
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT 73 * col2 DIV col0 - CAST( + col2 * col1 AS SIGNED ) FROM tab0 AS cor0
----
-2738
-7395
-95
skipif mysql # not compatible
query I rowsort label-9540
SELECT 73 * col2 / col0 - CAST ( + col2 * col1 AS INTEGER ) FROM tab0 AS cor0
----
-2738
-7395
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT DISTINCT col1 + ( + col2 ) * col0 + + col1 DIV col0 FROM tab1
----
196
3658
7693
skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT col1 + ( + col2 ) * col0 + + col1 / col0 FROM tab1
----
196
3658
7693
query I rowsort
SELECT ALL col2 + ( - col1 ) * - col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1, tab2 AS cor0
----
74
query I rowsort
SELECT + ( + ( + col2 ) ) + - 54 AS col1 FROM tab2 AS cor0
----
-16
-27
-28
query I rowsort
SELECT - - 72 - col1 AS col0 FROM tab2 AS cor0
----
13
41
55
query I rowsort
SELECT 73 * col0 * - col2 FROM tab2 AS cor0
----
-13797
-148044
-219146
query I rowsort
SELECT + - 59 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab0 cor1
----
243 values hashing to 22ab9bd3b5f4877e4ba3d3f7269d563e
query I rowsort
SELECT cor1.col2 + + cor1.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 75f21515f5e6f5fe2301266aeb130551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9549
SELECT DISTINCT - 1 * col1 - + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - 1 * col1 - + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col1 * + cor0.col2 * cor0.col2 + - 98 FROM tab2 AS cor0
----
22501
24450
39786
query I rowsort
SELECT - col1 * col0 - - cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + 91 + col2 AS col0 FROM tab2 AS cor0
----
117
118
129
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ( col0 ) * ( + 68 ) FROM tab0 AS cor0
----
1632
2380
6052
onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT col0 * col2 - col2 DIV + col1 FROM tab2 AS cor0
----
189
2028
3000
skipif mysql # not compatible
query I rowsort label-9555
SELECT col0 * col2 - col2 / + col1 FROM tab2 AS cor0
----
189
2028
3000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT - col1 + - col0 DIV - CAST( - 69 * col1 AS SIGNED ) + - 46 FROM tab2 cor0
----
-105
-63
-77
skipif mysql # not compatible
query I rowsort label-9556
SELECT - col1 + - col0 / - CAST ( - 69 * col1 AS INTEGER ) + - 46 FROM tab2 cor0
----
-105
-63
-77
query I rowsort
SELECT col1 + col0 * 61 AS col2 FROM tab2
----
458
4817
4836
query I rowsort
SELECT DISTINCT + col1 + + tab0.col2 * col0 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT col2 - col1 DIV + 55 AS col0 FROM tab2
----
25
27
38
skipif mysql # not compatible
query I rowsort label-9559
SELECT col2 - col1 / + 55 AS col0 FROM tab2
----
25
27
38
query I rowsort
SELECT ( cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + 36 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL 77 * col1 FROM tab0 AS cor0
----
6622
7007
7469
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9563
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9563
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT ALL + col2 DIV + 33 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + col2 / + 33 FROM tab0
----
0
1
2
query I rowsort
SELECT ALL - 3 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9566
SELECT + col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9566
SELECT + col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT DISTINCT col2 DIV + ( ( tab0.col1 ) ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT col2 / + ( ( tab0.col1 ) ) FROM tab0
----
0
query I rowsort
SELECT col1 + + col1 + - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + ( + col2 * tab2.col0 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 * col1 - col2 AS col0 FROM tab1
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT CAST( NULL AS SIGNED ) * + ( - col2 ) * + 88 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9571
SELECT CAST ( NULL AS INTEGER ) * + ( - col2 ) * + 88 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 55 * - col0 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT + - 52 + cor0.col1 * col0 FROM tab2 AS cor0
----
1291
165
4550
query I rowsort
SELECT - - col0 * 57 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT ALL + col1 + cor0.col1 * + 56 AS col0 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT - col0 * 77 - col0 * col0 FROM tab2 AS cor0
----
-12090
-12324
-588
query I rowsort
SELECT ALL col2 * 51 * - col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
-1688
-364736
-37554
query I rowsort
SELECT ALL - - col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9580
SELECT ALL - col0 / CAST( NULL AS SIGNED ) + ( col0 * col1 ) + col2 * - col0 * - col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) + ( col0 * col1 ) + col2 * - col0 * - col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 + 62 * col0 FROM tab0 AS cor0
----
1574
2267
5609
onlyif mysql # use DIV operator for integer division
query I rowsort label-9582
SELECT ALL - - col1 + CAST( + cor0.col1 AS SIGNED ) DIV + col0 FROM tab0 cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - - col1 + CAST ( + cor0.col1 AS INTEGER ) / + col0 FROM tab0 cor0
----
89
92
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT ALL - col1 DIV ( + col1 ) - + col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - col1 / ( + col1 ) - + col2 FROM tab0 AS cor0
----
-2
-34
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT col1 * CAST( NULL AS SIGNED ) + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9584
SELECT col1 * CAST ( NULL AS INTEGER ) + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + ( col1 ) - col0 * col0 FROM tab2 AS cor0
----
-10686
-266
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT DISTINCT cor0.col1 DIV + 39 - + 60 FROM tab1 cor0
----
-60
skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT cor0.col1 / + 39 - + 60 FROM tab1 cor0
----
-60
query I rowsort
SELECT - + col0 * col1 + + col2 * col0 * + ( ( + col0 ) + col0 ) AS col2 FROM tab0 AS cor0
----
-945
1290945
35952
query I rowsort
SELECT ALL - - 50 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9589
SELECT ALL + CAST( NULL AS SIGNED ) * + 76 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + CAST ( NULL AS INTEGER ) * + 76 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + cor0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to da8d5d6ef5c9f7ff1ab4446fff04af31
query I rowsort
SELECT ALL - 79 + - 33 AS col1 FROM tab1 cor0
----
-112
-112
-112
query I rowsort
SELECT ALL - + 51 * + 37 + - col1 * - 59 AS col1 FROM tab0 AS cor0
----
3187
3482
3836
query I rowsort
SELECT + - 86 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2830
3163
9130
query I rowsort
SELECT ALL + col2 - + ( 56 + + col1 ) AS col1 FROM tab0
----
-109
-152
-65
query I rowsort
SELECT DISTINCT - tab1.col1 - + col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT col1 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - + cor0.col0 * col0 - col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT cor0.col1 - - col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 85 AS col1 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT 28 AS col1 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT DISTINCT + ( + 60 ) FROM tab0
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col2 col0 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 75 + 16 col2 FROM tab2 AS cor0
----
1291
2341
4441
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT ALL - - col0 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - - col0 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT 90 * + col1 * 38 AS col1 FROM tab0
----
294120
311220
331740
query I rowsort
SELECT - col1 * tab2.col1 + - col0 AS col1 FROM tab2
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-9607
SELECT - - cor0.col0 + col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-9607
SELECT - - cor0.col0 + col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT ALL 62 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ALL col2 * - ( col0 ) + + col1 * tab1.col1 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT ALL - col2 + 41 AS col2 FROM tab0
----
-41
40
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 97 * col2 col2 FROM tab2 AS cor0
----
2581
2650
3703
query I rowsort
SELECT + col1 + col2 * 76 AS col1 FROM tab0 AS cor0
----
173
2594
6323
query I rowsort
SELECT ALL + col2 + + col0 AS col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT DISTINCT tab2.col1 DIV - 3 FROM tab2
----
-10
-19
-5
skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT tab2.col1 / - 3 FROM tab2
----
-10
-19
-5
query I rowsort
SELECT 10 AS col2 FROM tab0
----
10
10
10
query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 40 * - 11 + + col1 * + col2 FROM tab1
----
130
808
964
query I rowsort
SELECT + 16 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL - col0 * + col1 + - col1 + col0 FROM tab0
----
-2126
-3457
-8101
query I rowsort
SELECT 15 * - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to eb91a7cd3d386d9d68515c604425c526
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + ( - col2 ) + + col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT + ( - col0 ) DIV col0 + col2 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9623
SELECT + ( - col0 ) / col0 + col2 AS col0 FROM tab0
----
0
32
81
query I rowsort
SELECT DISTINCT - - 94 * + cor0.col1 AS col2 FROM tab0, tab1, tab1 cor0, tab2
----
1222
2444
940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT DISTINCT + CAST( 50 + + col0 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + CAST ( 50 + + col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9626
SELECT ALL + + CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + + CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col0 * - cor0.col0 * + 54 FROM tab1 AS cor0
----
221184
345600
486
query I rowsort
SELECT DISTINCT - col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - col1 * col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-9631
SELECT col1 DIV col1 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9631
SELECT col1 / col1 AS col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - 77 * + col0 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 * col0 FROM tab1 cor0
----
233415
432
614304
query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2 AS cor0
----
55
query I rowsort
SELECT ALL - - col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * 48 col0 FROM tab2 cor0
----
336
3744
3792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col1 * col2 * - col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26
27
38
query I rowsort
SELECT - - 31 + + col2 * + col2 + - cor0.col2 FROM tab2 AS cor0
----
1437
681
733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT + + col0 * col1 + + CAST( col2 AS SIGNED ) + + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
16102
2673
4621
skipif mysql # not compatible
query I rowsort label-9641
SELECT + + col0 * col1 + + CAST ( col2 AS INTEGER ) + + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
16102
2673
4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col1 col2 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT 13 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL 77 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL + ( cor0.col0 ) AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - 4 AS col0 FROM tab2
----
-4
-4
-4
query I rowsort
SELECT ALL 92 * + col0 AS col0 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT + col0 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + - col0 + 2 * col1 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT - - col2 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT 93 DIV + col1 - cor0.col1 FROM tab2 cor0
----
-12
-28
-58
skipif mysql # not compatible
query I rowsort label-9652
SELECT 93 / + col1 - cor0.col1 FROM tab2 cor0
----
-12
-28
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9653
SELECT - cor0.col0 + + 66 * + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9653
SELECT - cor0.col0 + + 66 * + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9654
SELECT CAST( NULL AS DECIMAL ) * col2 + col0 + + col2 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-9654
SELECT CAST ( NULL AS REAL ) * col2 + col0 + + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( ( + cor0.col2 ) ) + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-20
-95
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + col2 * 1 * 17 col0 FROM tab1 cor0
----
1523
838
902
query I rowsort
SELECT + + col0 * col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9658
SELECT CAST( NULL AS SIGNED ) * 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9658
SELECT CAST ( NULL AS INTEGER ) * 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9659
SELECT - CAST( 91 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
7826
8281
8827
skipif mysql # not compatible
query I rowsort label-9659
SELECT - CAST ( 91 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
7826
8281
8827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9660
SELECT cor0.col1 * ( col0 ) + CAST( col0 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9660
SELECT cor0.col1 * ( col0 ) + CAST ( col0 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - ( + cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col1 * 84 AS col1 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT col1 DIV - col0 - col2 col2 FROM tab1
----
-57
-62
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9664
SELECT col1 / - col0 - col2 col2 FROM tab1
----
-57
-62
-96
query I rowsort
SELECT ALL col1 + 48 * + col0 FROM tab1 AS cor0
----
170
3082
3853
query I rowsort
SELECT DISTINCT + col0 * + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
12800
18
8192
query I rowsort
SELECT - cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9668
SELECT ALL + + cor0.col1 DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + + cor0.col1 / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 76 + + col1 FROM tab2 cor0
----
107
135
93
query I rowsort
SELECT + - 56 + - col2 - + 98 FROM tab1 AS cor0
----
-208
-211
-250
query I rowsort
SELECT ALL + + col0 + - col1 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL 56 * + col2 + 4 FROM tab1 cor0
----
3028
3196
5380
query I rowsort
SELECT DISTINCT col2 + + col0 + col0 AS col1 FROM tab2 cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col1 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT + col0 - col1 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT DISTINCT + ( + col0 ) + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + ( + col0 ) + col2 / col0 AS col1 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT DISTINCT - 87 * col2 + - 48 FROM tab1 AS cor0
----
-4746
-5007
-8400
query I rowsort
SELECT 81 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT 80 - 82 AS col0 FROM tab2
----
-2
-2
-2
query I rowsort
SELECT + ( col2 ) * col0 + - col0 AS col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT ALL + 21 * col0 AS col0 FROM tab1
----
1344
1680
63
query I rowsort
SELECT + + col2 + col1 * - 65 FROM tab0 AS cor0
----
-5557
-5833
-6304
query I rowsort
SELECT + col2 * - 68 + + 41 FROM tab0 AS cor0
----
-2203
-27
-5535
query I rowsort
SELECT - col0 * cor0.col0 * 93 + col1 AS col0 FROM tab1 AS cor0
----
-380918
-595187
-811
query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col1 + col2 * + col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - col2 * + col0 * - 81 AS col1 FROM tab2
----
15309
164268
243162
query I rowsort
SELECT - 52 * + col2 AS col0 FROM tab1
----
-2808
-2964
-4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9689
SELECT ALL + col1 * + CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + col1 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 col2 FROM tab0 cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9692
SELECT ALL - + col2 + col2 + - 34 DIV - col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL - + col2 + col2 + - 34 / - col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + + col2 * ( - col1 ) - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL + 88 + - 49 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT ALL col2 DIV + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL col2 / + col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - 15 * - col1 + + col0 FROM tab1 AS cor0
----
214
275
393
query I rowsort
SELECT 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + cor0.col1 + - ( col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col1 - + ( 26 ) FROM tab0
----
60
65
71
query I rowsort
SELECT + col1 * col2 + + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT - + col1 + - 8 AS col0 FROM tab2 cor0
----
-25
-39
-67
query I rowsort
SELECT ALL cor0.col1 + - 35 FROM tab0, tab2 AS cor0
----
9 values hashing to d6fe24a92323e4ae219d7796c735826f
query I rowsort
SELECT + - col2 + col0 * 24 FROM tab2 AS cor0
----
141
1846
1858
query I rowsort
SELECT - 83 + col1 FROM tab1
----
-57
-70
-73
query I rowsort
SELECT ALL 42 * + col1 FROM tab1
----
1092
420
546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + col0 col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - + col1 * ( 65 ) * + col2 AS col1 FROM tab0 AS cor0
----
-184470
-485030
-6305
query I rowsort
SELECT ALL + cor0.col1 * - col1 - - col0 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-9711
SELECT + col0 DIV + ( 21 ) AS col2 FROM tab1
----
0
3
3
skipif mysql # not compatible
query I rowsort label-9711
SELECT + col0 / + ( 21 ) AS col2 FROM tab1
----
0
3
3
query I rowsort
SELECT DISTINCT + 30 FROM tab2, tab2 cor0
----
30
query I rowsort
SELECT DISTINCT + col2 * - 53 FROM tab0 cor0
----
-1749
-4346
-53
query I rowsort
SELECT - col1 * ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9715
SELECT DISTINCT col0 * CAST( col2 * + col2 + + col1 AS SIGNED ) FROM tab1 AS cor0
----
208576
738320
8826
skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT col0 * CAST ( col2 * + col2 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
208576
738320
8826
query I rowsort
SELECT DISTINCT - + col1 * ( col0 ) + col2 * - col2 + col2 * + col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col0 - - col2 * ( col0 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col0 * - ( 56 ) FROM tab0 AS cor0
----
-1344
-1960
-4984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 27 col1 FROM tab1 AS cor0
----
1458
1539
2592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9720
SELECT col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * - 18 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT col1 * - 8 * col0 FROM tab2 cor0
----
-10744
-1736
-36816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 - col0 col0 FROM tab0
----
-7420
-8370
-9444
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 >= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 + + col0 * tab2.col0 AS col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 AS col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT + col1 * col1 + - col0 FROM tab2
----
210
3403
954
query I rowsort
SELECT - col1 + + col2 + col1 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( + col1 ) <= ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN - col2 + col2 - + col2 * + col1 AND ( NULL )
----
query I rowsort
SELECT ALL + tab1.col1 - col2 * + col1 FROM tab1
----
-1235
-1378
-560
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col1 * - col0 <= NULL
----
query I rowsort
SELECT tab0.col1 + + col1 AS col1 FROM tab0
----
172
182
194
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN ( col2 + - col2 ) AND + col1 * - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT ALL - 34 DIV col1 AS col0 FROM tab1 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - 34 / col1 AS col0 FROM tab1 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + col1 + col1 + col0 AS col0 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT col1 - + col0 * - col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT col1 FROM tab1 WHERE + col0 * + col2 < + col2 * + col2
----
13
26
query I rowsort
SELECT DISTINCT col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT - + cor0.col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + 49 * col1 AS col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ALL - col0 * cor0.col0 + ( - col2 ) FROM tab1 AS cor0
----
-4153
-63
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - cor0.col1 * + col1 col0 FROM tab2 cor0
----
17340
208860
57660
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 * + col2 + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9747
SELECT ALL - - col1 + col2 DIV 12 FROM tab2 AS cor0
----
20
33
61
skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - - col1 + col2 / 12 FROM tab2 AS cor0
----
20
33
61
query I rowsort
SELECT + + ( col1 ) * col0 * 55 + - col2 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
38449
66416
7206
onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT - 95 DIV col2 + - col2 * col0 col2 FROM tab0 AS cor0
----
-130
-7299
-794
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9749
SELECT - 95 / col2 + - col2 * col0 col2 FROM tab0 AS cor0
----
-130
-7299
-794
query I rowsort
SELECT 38 * + col0 AS col1 FROM tab1 cor0
----
114
2432
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 88 col1 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT - 72 + col1 FROM tab1 AS cor0
----
-46
-59
-62
query I rowsort
SELECT + col0 * - 79 * + col0 + col1 * - 7 + col0 FROM tab0 AS cor0
----
-46082
-626307
-97419
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9754
SELECT ALL + CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col2 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9756
SELECT CAST( NULL AS SIGNED ) * col2 + + col2 * - col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9756
SELECT CAST ( NULL AS INTEGER ) * col2 + + col2 * - col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 18 ) * + col0 FROM tab2
----
126
1404
1422
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 94 * tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 11ce4c64173a21b96c5aae8e74b78b22
query I rowsort
SELECT ALL + ( - col1 * + col2 ) + col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col0 + ( col1 + - col1 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 * + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + col2 col1 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) + col2 * 27 col2 FROM tab0 cor0
----
2132
26
858
query I rowsort
SELECT col0 * + col2 * col1 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT 45 AS col2 FROM tab2
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT cor0.col0 + + col2 DIV + col2 col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9768
SELECT cor0.col0 + + col2 / + col2 col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * 80 col1 FROM tab0 AS cor0
----
2800
583840
63360
query I rowsort
SELECT + 3 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT - tab2.col1 * + 47 AS col0 FROM tab2
----
-1457
-2773
-799
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT + tab2.col1 DIV ( - col1 ) FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9773
SELECT + tab2.col1 / ( - col1 ) FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT col1 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9774
SELECT col1 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9775
SELECT col0 * col2 DIV col0 + + tab2.col0 * 27 * + col1 AS col0 FROM tab2
----
124280
36299
5886
skipif mysql # not compatible
query I rowsort label-9775
SELECT col0 * col2 / col0 + + tab2.col0 * 27 * + col1 AS col0 FROM tab2
----
124280
36299
5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 7 + col1 col2 FROM tab2
----
-123
-158
-249
query I rowsort
SELECT - ( 7 + + col0 ) AS col1 FROM tab2
----
-14
-85
-86
query I rowsort
SELECT - - cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - ( + tab1.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL 76 + col2 FROM tab2 AS cor0
----
102
103
114
onlyif mysql # use DIV operator for integer division
query I rowsort label-9781
SELECT - cor0.col2 * + col1 DIV col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9781
SELECT - cor0.col2 * + col1 / col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 62 FROM tab0, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT cor0.col0 * + cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT ALL - col1 * col0 - + 49 FROM tab0 AS cor0
----
-2113
-3444
-8148
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 * - 10 AS col0 FROM tab0 AS cor0
----
354
45
909
onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT DISTINCT + tab1.col0 DIV + tab1.col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + tab1.col0 / + tab1.col2 FROM tab1
----
0
1
query I rowsort
SELECT + 82 * col2 AS col1 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT ALL - 55 * + 59 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0da5a1b65cf45c93a26a64baee058332
onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT DISTINCT 29 DIV - col1 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT 29 / - col1 FROM tab2
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT ALL col1 DIV - col0 AS col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL col1 / - col0 AS col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - 70 + - col2 * + col1 FROM tab2
----
-1604
-716
-907
onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT + - 6 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9792
SELECT + - 6 / col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT + - col1 + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-9794
SELECT + - col1 + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-10
-14
-44
query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 * + 71 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT ALL col1 * 72 FROM tab1 cor0
----
1872
720
936
query I rowsort
SELECT DISTINCT - + col1 + 15 FROM tab1 AS cor0
----
-11
2
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9799
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * ( + col2 ) * - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * ( + col2 ) * - col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9800
SELECT DISTINCT + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT col0 DIV ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9801
SELECT col0 / ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT DISTINCT col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT DISTINCT col0 DIV ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT col0 / ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - col1 * + ( - col2 + col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + + 71 AS col2 FROM tab0 cor0
----
71
71
71
query I rowsort
SELECT DISTINCT 83 FROM tab0, tab0 AS cor0
----
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT - - CAST( col2 AS SIGNED ) * col2 + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
13448
2
2178
skipif mysql # not compatible
query I rowsort label-9808
SELECT - - CAST ( col2 AS INTEGER ) * col2 + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
13448
2
2178
onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT + + ( col0 ) * col1 - col0 DIV col0 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-9809
SELECT + + ( col0 ) * col1 - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT ALL + 91 * + col2 * col1 + col2 FROM tab0 AS cor0
----
258291
679124
8828
query I rowsort
SELECT DISTINCT - 19 * - 45 + + col1 * 75 AS col1 FROM tab0 cor0
----
7305
7680
8130
query I rowsort
SELECT + col0 * cor0.col0 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL + + 22 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT col2 + + 26 AS col1 FROM tab1 AS cor0
----
122
80
83
query I rowsort
SELECT + 47 + - 14 * + col1 AS col0 FROM tab0 AS cor0
----
-1157
-1227
-1311
onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT + ( + cor0.col1 ) DIV col2 + + ( 65 ) * + col2 AS col2 FROM tab1 AS cor0
----
3510
3705
6240
skipif mysql # not compatible
query I rowsort label-9816
SELECT + ( + cor0.col1 ) / col2 + + ( 65 ) * + col2 AS col2 FROM tab1 AS cor0
----
3510
3705
6240
query I rowsort
SELECT - 0 + col2 AS col2 FROM tab1 cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
3645 values hashing to e678818485e7b492c8b5d6db976ebc7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 + col2 col1 FROM tab1 AS cor0
----
122
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 - col2 col1 FROM tab2 AS cor0
----
-108
-96
-97
query I rowsort
SELECT + col0 * - 56 AS col1 FROM tab0 AS cor0
----
-1344
-1960
-4984
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 95 + + col2 FROM tab1 AS cor0
----
-38
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT + + 67 DIV + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9826
SELECT + + 67 / + col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + 17 * + col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT ALL + 41 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL - ( ( - col2 ) ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + 51 * - tab0.col2 * col0 FROM tab0
----
-1785
-372198
-40392
query I rowsort
SELECT ALL + col1 * + 65 * + col2 FROM tab0 AS cor0
----
184470
485030
6305
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * 25 col2 FROM tab0 cor0
----
1239
3370
6049
query I rowsort
SELECT ALL - ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 99 + col1 AS col0 FROM tab0 AS cor0
----
185
190
196
query I rowsort
SELECT + + col0 + col1 * col1 * + 96 FROM tab0 AS cor0
----
710040
795065
903299
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + 32 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-157
-1996
-2970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 3 col0 FROM tab0 AS cor0
----
-30
-79
2
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - + ( 89 ) - col0 AS col0 FROM tab2 AS cor0
----
-167
-168
-96
query I rowsort
SELECT + 14 * 22 FROM tab0 AS cor0
----
308
308
308
query I rowsort
SELECT ALL + tab0.col2 * 99 FROM tab0, tab0 cor0
----
9 values hashing to 3587ed66d17f1b4e9ff1c73ae5bd2da4
query I rowsort
SELECT - - col1 * + col2 + - col1 * 97 FROM tab1 AS cor0
----
-1118
-13
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9844
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9844
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col2 * + 0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col0 + 34 FROM tab2 cor0
----
112
113
41
query I rowsort
SELECT ALL + col0 * col0 * - col0 + col2 FROM tab1 AS cor0
----
-262087
-511904
27
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 + 73 FROM tab0
----
108
162
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL col2 * - 12 + - col0 AS col0 FROM tab2 AS cor0
----
-331
-390
-535
query I rowsort
SELECT - col0 * 30 AS col0 FROM tab2 cor0
----
-210
-2340
-2370
query I rowsort
SELECT ALL + col2 * - 83 AS col2 FROM tab0 AS cor0
----
-2739
-6806
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9856
SELECT + - col2 + - 7 + col0 * col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-61
345
389
skipif mysql # not compatible
query I rowsort label-9856
SELECT + - col2 + - 7 + col0 * col0 / + col1 AS col1 FROM tab1 AS cor0
----
-61
345
389
query I rowsort
SELECT - col0 + + 67 * - col0 AS col1 FROM tab2 cor0
----
-476
-5304
-5372
query I rowsort
SELECT DISTINCT + col0 + 58 FROM tab0 cor0
----
147
82
93
query I rowsort
SELECT + 46 + cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 98b9b49d73666b0c7cc4b3e06a72e787
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0, tab0 AS cor0
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-9861
SELECT ALL col2 + col0 DIV + 57 AS col0 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL col2 + col0 / + 57 AS col0 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9863
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) + - col0 * - col2 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ) + - col0 * - col2 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + col1 * 67 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT + col2 * 55 + + 13 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
3255
3282
5436
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT col0 + - 76 FROM tab1 AS cor0
----
-12
-73
4
query I rowsort
SELECT DISTINCT col1 * - ( - 15 ) AS col0 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT DISTINCT - col0 * 27 + 61 FROM tab0 AS cor0
----
-2342
-587
-884
query I rowsort
SELECT col2 * + 18 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT 31 + cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f3dfb201fe3c72290083e00a49c945ff
query I rowsort
SELECT - 74 * col0 + - col2 FROM tab2 AS cor0
----
-545
-5798
-5884
query I rowsort
SELECT - 80 + cor0.col1 * col0 FROM tab2 cor0
----
1263
137
4522
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col0 + col0 col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 84 + - 59 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 * + col1 * - col1 AS col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 17 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9882
SELECT col2 DIV col1 - 83 FROM tab1 AS cor0
----
-76
-78
-81
skipif mysql # not compatible
query I rowsort label-9882
SELECT col2 / col1 - 83 FROM tab1 AS cor0
----
-76
-78
-81
query I rowsort
SELECT + + col0 - - col1 * col2 * + col1 FROM tab0 AS cor0
----
244092
679131
9444
query I rowsort
SELECT - - col0 * ( cor0.col0 ) + col2 AS col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL + 99 * + tab2.col0 + + col2 FROM tab2
----
720
7748
7859
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1, tab1 cor0, tab1 cor1
----
71
query I rowsort
SELECT 43 - - 84 AS col0 FROM tab1
----
127
127
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-9888
SELECT + - col2 + - col2 DIV + col0 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-9888
SELECT + - col2 + - col2 / + col0 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT - 1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT + 48 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9890
SELECT + 48 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT ALL col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT + col0 DIV col0 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9892
SELECT + col0 / col0 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + cor0.col1 * ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 + + col0 * - 90 FROM tab2 AS cor0
----
-599
-6961
-7093
query I rowsort
SELECT ( + col0 + col1 ) * col2 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT cor0.col2 + 59 FROM tab1 cor0
----
113
116
155
query I rowsort
SELECT col0 * ( - col2 ) * + col1 AS col0 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT ALL - + col2 + 77 DIV cor0.col0 FROM tab0 AS cor0
----
-30
-82
1
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - + col2 + 77 / cor0.col0 FROM tab0 AS cor0
----
-30
-82
1
query I rowsort
SELECT + col0 + - 98 FROM tab2 AS cor0
----
-19
-20
-91
query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab1 AS cor0
----
-64
query I rowsort
SELECT col0 * + ( col2 + + col1 ) FROM tab2
----
406
4345
6630
query I rowsort
SELECT DISTINCT - tab0.col0 * col1 * 60 AS col2 FROM tab0
----
-123840
-203700
-485940
query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - 5 + - cor0.col1 * - col2 + ( - col1 * col1 ) AS col0 FROM tab1 AS cor0
----
1074
465
723
onlyif mysql # use DIV operator for integer division
query I rowsort label-9907
SELECT ALL - - 19 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - - 19 / col0 AS col0 FROM tab1 AS cor0
----
0
0
6
query I rowsort
SELECT + - col2 + + 19 * - col1 AS col1 FROM tab0 AS cor0
----
-1667
-1811
-1844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - col0 ) * 29 + cor0.col2 col0 FROM tab1 AS cor0
----
18617
2316
30256
query I rowsort
SELECT DISTINCT + + col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL ( cor0.col1 ) - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9912
SELECT - col1 DIV + 40 + col0 AS col1 FROM tab2 AS cor0
----
7
77
79
skipif mysql # not compatible
query I rowsort label-9912
SELECT - col1 / + 40 + col0 AS col1 FROM tab2 AS cor0
----
7
77
79
query I rowsort
SELECT DISTINCT 22 FROM tab1, tab1 AS cor0
----
22
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col1 + col2 * col0 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9916
SELECT col1 - CAST( col0 AS SIGNED ) * col2 * ( + 33 ) FROM tab0
----
-1058
-240743
-26050
skipif mysql # not compatible
query I rowsort label-9916
SELECT col1 - CAST ( col0 AS INTEGER ) * col2 * ( + 33 ) FROM tab0
----
-1058
-240743
-26050
query I rowsort
SELECT 3 * col2 + - col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + 16 * col2 AS col0 FROM tab2
----
416
432
608
query I rowsort
SELECT - - tab1.col1 * 2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 742cb84003fd090efc5ed158b4c7e268
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - ( - 62 ) + + col1 FROM tab0 AS cor0
----
148
153
159
query I rowsort
SELECT - - ( col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 - col0 * - ( col1 * - col1 ) FROM tab1 AS cor0
----
-13453
-2051
-6346
query I rowsort
SELECT DISTINCT col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 - + 65 FROM tab0 AS cor0
----
-30
-41
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9927
SELECT - col2 * tab2.col0 - CAST( col2 AS SIGNED ) FROM tab2
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort label-9927
SELECT - col2 * tab2.col0 - CAST ( col2 AS INTEGER ) FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + col2 * - col0 - ( 69 ) * - col0 FROM tab2
----
2449
294
3354
query I rowsort
SELECT - - col0 - col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - 60 + + cor0.col2 * + col1 * 73 FROM tab2 AS cor0
----
111922
47098
61041
onlyif mysql # use DIV operator for integer division
query I rowsort label-9931
SELECT col1 * col0 + col2 DIV tab0.col0 - + col0 AS col2 FROM tab0
----
2041
3360
8010
skipif mysql # not compatible
query I rowsort label-9931
SELECT col1 * col0 + col2 / tab0.col0 - + col0 AS col2 FROM tab0
----
2041
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT tab2.col2 + col1 DIV col0 col1 FROM tab2
----
26
31
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9932
SELECT tab2.col2 + col1 / col0 col1 FROM tab2
----
26
31
38
query I rowsort
SELECT col1 * col1 * - 28 FROM tab0 AS cor0
----
-207088
-231868
-263452
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab2.col0 col1 FROM tab2
----
14
156
158
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT + col2 + + ( + col2 ) * col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-9937
SELECT - col0 * 23 DIV cor0.col2 + - col0 * + col2 AS col1 FROM tab1 cor0
----
-163
-3673
-7699
skipif mysql # not compatible
query I rowsort label-9937
SELECT - col0 * 23 / cor0.col2 + - col0 * + col2 AS col1 FROM tab1 cor0
----
-163
-3673
-7699
query I rowsort
SELECT - col2 - + ( - col2 ) * - col2 * - col0 FROM tab1 cor0
----
207879
737184
8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 37 col2 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL col2 + + 2 - 80 AS col0 FROM tab0 AS cor0
----
-45
-77
4
query I rowsort
SELECT - + col1 + - 23 AS col2 FROM tab0 AS cor0
----
-109
-114
-120
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col2 + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - col2 * - col0 + + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + 78 AS col1 FROM tab1
----
78
78
78
query I rowsort
SELECT tab0.col2 * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 77 * - col2 + + col1 * col1 FROM tab2 AS cor0
----
-1118
-2637
1479
query I rowsort
SELECT ALL + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT DISTINCT + col2 + - col0 DIV ( col1 ) FROM tab2 cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + col2 + - col0 / ( col1 ) FROM tab2 cor0
----
25
27
34
query I rowsort
SELECT col1 + 84 * col0 * + col2 FROM tab1 AS cor0
----
13634
306442
645133
query I rowsort
SELECT ALL col0 + + col0 * - col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - + cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - cor0.col2 * - ( - cor0.col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
6
query I rowsort
SELECT ALL - 21 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT ALL 63 * - tab2.col0 * + 25 AS col2 FROM tab2
----
-11025
-122850
-124425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT 40 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT ALL + col2 * + col1 + 68 DIV + tab1.col1 + - col0 AS col2 FROM tab1
----
1173
1403
512
skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + col2 * + col1 + 68 / + tab1.col1 + - col0 AS col2 FROM tab1
----
1173
1403
512
onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT + - ( - col1 ) * cor0.col2 - + 57 DIV - col2 col1 FROM tab1 AS cor0
----
1248
1405
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9961
SELECT + - ( - col1 ) * cor0.col2 - + 57 / - col2 col1 FROM tab1 AS cor0
----
1248
1405
571
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ( - 64 ) - cor0.col1 FROM tab1 AS cor0
----
-74
-77
-90
query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2 AS cor0
----
20
query I rowsort
SELECT ALL + col2 * col2 - - col1 AS col2 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT ALL - col2 * + ( cor0.col0 * col2 ) + - 8 * - col0 FROM tab1 AS cor0
----
-207424
-736640
-8724
query I rowsort
SELECT ALL - 4 + col0 AS col2 FROM tab1 AS cor0
----
-1
60
76
query I rowsort
SELECT DISTINCT + - col1 + + col2 - - col2 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT + col2 + col0 * ( + col2 ) FROM tab0
----
36
7380
825
query I rowsort
SELECT - col0 * 34 + - tab0.col1 AS col0 FROM tab0
----
-1287
-3117
-902
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT + cor0.col1 + + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1aafc156b714810d5d1cdf5028ce351d
query I rowsort
SELECT ALL 63 AS col1 FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab2, tab1 AS cor0
----
9
query I rowsort
SELECT DISTINCT + + col2 * - col1 + col0 * + ( col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
113430
4266
51194
query I rowsort
SELECT + col1 + - 35 AS col2 FROM tab1 AS cor0
----
-22
-25
-9
query I rowsort
SELECT DISTINCT + - 24 + - 23 FROM tab2 AS cor0
----
-47
query I rowsort
SELECT + 7 + - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-282
-3474
-954
query I rowsort
SELECT DISTINCT - ( + 67 ) * + col2 FROM tab1 AS cor0
----
-3618
-3819
-6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 79 col0 FROM tab1 AS cor0
----
-17
22
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9981
SELECT ALL + CAST( NULL AS SIGNED ) + + 22 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + CAST ( NULL AS INTEGER ) + + 22 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 45 + - col0 * col0 AS col1 FROM tab0 cor0
----
-1180
-531
-7876
query I rowsort
SELECT + col0 + col1 * tab1.col0 FROM tab1
----
1120
704
81
skipif mysql # not compatible
query I rowsort
SELECT - - col1 + col0 + CAST ( col2 + col1 AS REAL ) FROM tab1 AS cor0
----
109
141
202
query I rowsort
SELECT + col1 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 * + col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - - col2 + cor0.col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - ( + 83 ) FROM tab2
----
-83
-83
-83
query I rowsort
SELECT ALL ( + tab0.col1 ) + col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col1 + ( + col2 ) AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT - + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT + 75 + cor0.col2 AS col0 FROM tab0 AS cor0
----
108
157
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT col0 * + col1 - + CAST( NULL AS SIGNED ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9993
SELECT col0 * + col1 - + CAST ( NULL AS INTEGER ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9994
SELECT - col1 DIV col0 + + ( + 7 ) AS col2 FROM tab2 AS cor0
----
3
7
7
skipif mysql # not compatible
query I rowsort label-9994
SELECT - col1 / col0 + + ( + 7 ) AS col2 FROM tab2 AS cor0
----
3
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9995
SELECT DISTINCT + col0 - col1 DIV + col1 col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT + col0 - col1 / + col1 col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + + 84 + - cor0.col1 * 43 * col0 AS col1 FROM tab1 AS cor0
----
-27436
-3270
-44636
onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT - col1 DIV + col2 - - col2 DIV - col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9997
SELECT - col1 / + col2 - - col2 / - col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT ALL col2 * 1 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT cor0.col1 DIV 59 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9999
SELECT cor0.col1 / 59 FROM tab2 AS cor0
----
0
0
1