hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT + cor0.col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + - 97 AS col2 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT col1 * + cor0.col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col2 + - col2 * 90 AS col0 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT - + 51 + - col2 FROM tab0 AS cor0
----
-133
-52
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col0 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL 17 AS col2 FROM tab1 cor0
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7
SELECT + CAST( NULL AS SIGNED ) * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7
SELECT + CAST ( NULL AS INTEGER ) * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 60 AS col0 FROM tab2 AS cor0
----
-18
-19
53
query I rowsort
SELECT DISTINCT - ( + 98 ) FROM tab2 AS cor0
----
-98
query I rowsort
SELECT DISTINCT - 18 FROM tab1 AS cor0
----
-18
query I rowsort
SELECT - cor0.col0 + - col1 * - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + - col2 * - col1 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + 45 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT - + 96 * - col2 AS col1 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT ALL col2 * - 7 FROM tab2
----
-182
-189
-266
query I rowsort
SELECT DISTINCT col0 * + col2 * - 93 + + 39 AS col2 FROM tab2 AS cor0
----
-17538
-188565
-279147
query I rowsort
SELECT DISTINCT + - 23 + col1 + 83 FROM tab1 AS cor0
----
70
73
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 * + col2 col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT DISTINCT col0 + - col2 * - 68 FROM tab0 AS cor0
----
103
2268
5665
query I rowsort
SELECT ALL 26 * + 22 AS col2 FROM tab2
----
572
572
572
query I rowsort
SELECT col0 * + ( + col2 ) FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT CAST( + 22 AS SIGNED ) + + tab2.col0 FROM tab2
----
100
101
29
skipif mysql # not compatible
query I rowsort label-23
SELECT CAST ( + 22 AS INTEGER ) + + tab2.col0 FROM tab2
----
100
101
29
query I rowsort
SELECT DISTINCT - 71 * tab1.col1 FROM tab1, tab0 cor0
----
-1846
-710
-923
query I rowsort
SELECT - cor0.col2 + tab1.col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to db05a50788df0b2907f733e0d5042161
query I rowsort
SELECT + cor0.col1 * ( + cor0.col1 ) + + cor0.col0 * cor0.col2 * + col2 - col2 AS col1 FROM tab2 cor0
----
114327
56183
6037
query I rowsort
SELECT ALL col2 + 83 AS col0 FROM tab1 AS cor0
----
137
140
179
query I rowsort
SELECT DISTINCT - + col0 + - ( col1 ) * col2 * col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT - + col1 * + 32 - col2 FROM tab1 AS cor0
----
-377
-512
-886
onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT - col2 DIV 70 + col1 AS col2 FROM tab1 AS cor0
----
10
12
26
skipif mysql # not compatible
query I rowsort label-30
SELECT - col2 / 70 + col1 AS col2 FROM tab1 AS cor0
----
10
12
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT + + col2 + - col1 * col2 DIV + cor0.col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-31
SELECT + + col2 + - col1 * col2 / + cor0.col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-32
SELECT + col0 * - CAST( 64 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1536
-2240
-5696
skipif mysql # not compatible
query I rowsort label-32
SELECT + col0 * - CAST ( 64 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1536
-2240
-5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-33
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + col0 + - col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT DISTINCT 99 - col0 FROM tab2
----
20
21
92
query I rowsort
SELECT DISTINCT + - col0 + - 67 + - col2 AS col0 FROM tab1 AS cor0
----
-124
-188
-243
query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col1 * - 55 + col0 + col0 AS col1 FROM tab1 AS cor0
----
1436
678
875
query I rowsort
SELECT - - col2 + + 93 AS col0 FROM tab0 cor0
----
126
175
94
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT tab1.col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 69 ) * col0 * + 90 + col1 col1 FROM tab1 AS cor0
----
-18604
-397430
-496787
query I rowsort
SELECT DISTINCT - tab2.col2 + ( 19 + col2 ) FROM tab2
----
19
query I rowsort
SELECT ALL 12 * - 68 FROM tab0, tab2 AS cor0
----
9 values hashing to a37b51544cccd69410ee90ae04fa37e5
query I rowsort
SELECT ALL + col0 * - col2 + tab0.col2 * - tab0.col2 AS col2 FROM tab0
----
-14022
-1881
-36
query I rowsort
SELECT DISTINCT + col1 + 55 FROM tab2
----
114
72
86
query I rowsort
SELECT ALL 76 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL + 10 + + 39 FROM tab1 cor0
----
49
49
49
query I rowsort
SELECT - col0 * + col2 * + col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1, tab0 AS cor0
----
66
query I rowsort
SELECT + ( 82 ) * col2 AS col0 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT - col2 + + ( col0 * + col1 + col0 * + col1 ) FROM tab0 AS cor0
----
16116
4095
6789
onlyif mysql # use DIV operator for integer division
query I rowsort label-54
SELECT - col0 DIV cor0.col1 + col1 DIV 45 FROM tab0 cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-54
SELECT - col0 / cor0.col1 + col1 / 45 FROM tab0 cor0
----
1
2
2
query I rowsort
SELECT + col1 + + 41 - + col0 FROM tab0 AS cor0
----
103
103
43
query I rowsort
SELECT DISTINCT - - col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 39 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT DISTINCT + col2 * - 61 + + col2 AS col0 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT 86 + col0 AS col1 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT ALL - - col1 * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * + 49 + col0 AS col0 FROM tab0 AS cor0
----
-4190
-4370
-4718
onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT ALL + col2 + col0 DIV col1 - - col0 FROM tab1 AS cor0
----
127
182
57
skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + col2 + col0 / col1 - - col0 FROM tab1 AS cor0
----
127
182
57
query I rowsort
SELECT DISTINCT - - 75 * cor0.col1 + + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1354
2332
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT DISTINCT cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT cor0.col2 / col0 FROM tab2 AS cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col2 col2 FROM tab2 cor0
----
1482
1539
2166
query I rowsort
SELECT ALL - ( col1 ) + - col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT col2 * - col2 - - col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + col1 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + + cor0.col0 * - 49 - - col2 FROM tab2 AS cor0
----
-316
-3796
-3833
query I rowsort
SELECT + col1 - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + col0 * - col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - col1 - cor0.col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-73
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) + + 6 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) + + 6 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-74
SELECT DISTINCT - CAST( col2 AS SIGNED ) col1 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + 80 AS col0 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT ALL - + ( col2 ) * + col0 * + 21 FROM tab2 AS cor0
----
-3969
-42588
-63042
query I rowsort
SELECT ALL - 16 + 13 FROM tab0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT 4 * col0 AS col1 FROM tab0
----
140
356
96
query I rowsort
SELECT 48 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 - tab1.col2 * + 35 col0 FROM tab1
----
-1842
-1947
-3312
query I rowsort
SELECT + + col2 + col2 * col1 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT + cor0.col0 * + cor0.col1 - - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-82
SELECT + cor0.col0 * + cor0.col1 - - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT - col0 DIV - 79 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1344
217
4602
skipif mysql # not compatible
query I rowsort label-83
SELECT - col0 / - 79 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1344
217
4602
query I rowsort
SELECT + col1 * cor0.col1 - - col0 * col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT ALL + - col1 * ( 62 ) AS col0 FROM tab0 cor0
----
-5332
-5642
-6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-86
SELECT cor0.col2 * + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-86
SELECT cor0.col2 * + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - + col2 * + col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + 10 * - cor0.col1 FROM tab1 AS cor0
----
-100
-130
-260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + cor0.col0 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-90
SELECT CAST( + ( + col1 ) AS SIGNED ) * col2 * col1 + col1 FROM tab2 cor0
----
10999
25978
90565
skipif mysql # not compatible
query I rowsort label-90
SELECT CAST ( + ( + col1 ) AS INTEGER ) * col2 * col1 + col1 FROM tab2 cor0
----
10999
25978
90565
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-91
SELECT - CAST( - col1 AS SIGNED ) + - col0 + 55 * cor0.col2 AS col1 FROM tab0 AS cor0
----
117
1877
4512
skipif mysql # not compatible
query I rowsort label-91
SELECT - CAST ( - col1 AS INTEGER ) + - col0 + 55 * cor0.col2 AS col1 FROM tab0 AS cor0
----
117
1877
4512
query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + - 13 FROM tab2 AS cor0
----
-13
query I rowsort
SELECT ALL - ( - col0 ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + + ( col1 ) + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT ALL + 80 + + col0 DIV - col0 FROM tab1 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 80 + + col0 / - col0 FROM tab1 AS cor0
----
79
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT DISTINCT + cor0.col0 DIV + 12 + + col0 FROM tab2 AS cor0
----
7
84
85
skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + cor0.col0 / + 12 + + col0 FROM tab2 AS cor0
----
7
84
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-98
SELECT cor0.col0 + + col1 * - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-98
SELECT cor0.col0 + + col1 * - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-99
SELECT - - CAST( NULL AS SIGNED ) + col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-99
SELECT - - CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 19 + 89 * col0 AS col1 FROM tab0 AS cor0
----
2117
3096
7902
query I rowsort
SELECT ( + col2 ) * + col1 + col0 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
1419
15474
3500
onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT ALL + col0 + col1 DIV - cor0.col0 col2 FROM tab2 AS cor0
----
3
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + col0 + col1 / - cor0.col0 col2 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT ALL + 32 AS col0 FROM tab1 AS cor0
----
32
32
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT DISTINCT - col1 DIV col0 + + 0 - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT - col1 / col0 + + 0 - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT ALL - 27 + - col1 AS col2 FROM tab0 cor0
----
-113
-118
-124
onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT + 27 + col0 DIV ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
27
27
27
skipif mysql # not compatible
query I rowsort label-108
SELECT + 27 + col0 / ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT ALL + col2 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - - col0 * cor0.col0 + + col1 AS col2 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT 3 + + col2 FROM tab1
----
57
60
99
query I rowsort
SELECT DISTINCT 50 * - cor0.col0 FROM tab2, tab2 cor0
----
-350
-3900
-3950
query I rowsort
SELECT - + col2 * + 77 - + 84 * col2 FROM tab2 cor0
----
-4186
-4347
-6118
query I rowsort
SELECT DISTINCT col2 * 99 FROM tab2 AS cor0
----
2574
2673
3762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-115
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0, 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-115
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + col0 * 84 AS col1 FROM tab1
----
252
5376
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 55 col0 FROM tab0
----
-4730
-5005
-5335
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 17 * col0 - + tab1.col2 col0 FROM tab1
----
1041
1277
23
query I rowsort
SELECT col2 - ( + cor0.col2 * - col0 ) FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-121
SELECT DISTINCT - tab0.col2 - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - tab0.col2 - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT ALL + col2 * + col2 + - col0 AS col2 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT - col0 * + col1 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
-237
-41024
-83280
query I rowsort
SELECT DISTINCT + + col2 * col0 - cor0.col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL 78 * + col1 AS col0 FROM tab1 AS cor0
----
1014
2028
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * col0 col2 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 33 * + cor0.col1 * col0 FROM tab0 AS cor0
----
-112035
-267267
-68112
query I rowsort
SELECT 80 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT col0 * col1 + - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-133
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) * col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-133
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) * col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + ( - 25 ) FROM tab1 AS cor0
----
29
32
71
query I rowsort
SELECT ALL - col2 + - 47 + col1 FROM tab2 AS cor0
----
-14
-43
-68
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 * 67 AS col0 FROM tab1 AS cor0
----
-1742
-670
-871
query I rowsort
SELECT ALL - - col0 * cor0.col2 - + col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ( - tab1.col2 + col2 ) AS col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-140
SELECT CAST( col2 AS SIGNED ) * col2 + col1 AS col1 FROM tab0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-140
SELECT CAST ( col2 AS INTEGER ) * col2 + col1 AS col1 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT ALL + col2 DIV 13 AS col0 FROM tab1 AS cor0
----
4
4
7
skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + col2 / 13 AS col0 FROM tab1 AS cor0
----
4
4
7
query I rowsort
SELECT ALL 60 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-143
SELECT DISTINCT - col1 DIV + col0 + + col0 AS col0 FROM tab2 cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT - col1 / + col0 + + col0 AS col0 FROM tab2 cor0
----
3
78
79
query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2, tab0 AS cor0
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-145
SELECT DISTINCT 34 DIV 93 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT 34 / 93 AS col0 FROM tab0 AS cor0
----
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab1 cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 16 ) * col1 * + ( col0 * - col1 ) col0 FROM tab2 AS cor0
----
107632
365296
4344288
query I rowsort
SELECT - ( cor0.col0 ) * - 75 + + cor0.col1 FROM tab0 AS cor0
----
1886
2722
6766
query I rowsort
SELECT DISTINCT - ( - col1 ) - 97 FROM tab1 AS cor0
----
-71
-84
-87
query I rowsort
SELECT + 90 - col1 FROM tab2 AS cor0
----
31
59
73
query I rowsort
SELECT ALL - col2 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT 28 * col0 * - col2 FROM tab0 AS cor0
----
-204344
-22176
-980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab1 AS cor0
----
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT 81 * col2 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
2676
6643
83
skipif mysql # not compatible
query I rowsort label-154
SELECT 81 * col2 + col1 / col0 AS col1 FROM tab0 AS cor0
----
2676
6643
83
query I rowsort
SELECT DISTINCT + col1 + - col0 * - 97 FROM tab2 AS cor0
----
710
7625
7680
query I rowsort
SELECT ALL - - ( col0 ) * - 0 - col1 * + col0 * cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 * - col2 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
119728
32426
75813
query I rowsort
SELECT ALL col2 - 0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + 67 * + col0 - - col2 FROM tab1
----
255
4345
5456
query I rowsort
SELECT ALL + - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT - + cor0.col1 DIV + col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-161
SELECT - + cor0.col1 / + col0 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT + 38 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-163
SELECT + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + cor0.col0 col1 FROM tab0, tab2 cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT ALL - 28 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL + ( - col2 ) + - tab0.col2 DIV - tab0.col2 AS col2 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + ( - col2 ) + - tab0.col2 / - tab0.col2 AS col2 FROM tab0
----
-32
-81
0
query I rowsort
SELECT + - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - - col1 + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col2 + - 0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab0.col2 col2 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT ALL + cor0.col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 0 + col2 * - col1 * col2 + - col0 FROM tab1
----
-119888
-32554
-75819
query I rowsort
SELECT + + 15 * - 14 + - col2 * col1 FROM tab2 AS cor0
----
-1047
-1744
-856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-174
SELECT - CAST( NULL AS SIGNED ) * - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-174
SELECT - CAST ( NULL AS INTEGER ) * - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 51 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT tab0.col0 + - col2 * - col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT + 15 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
15
query I rowsort
SELECT DISTINCT - - cor0.col2 * - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT ALL - 15 DIV col1 + + col0 + + col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - 15 / col1 + + col0 + + col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT DISTINCT 52 * col0 FROM tab1 AS cor0
----
156
3328
4160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-181
SELECT - CAST( NULL AS SIGNED ) * + col2 + col0 * ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-181
SELECT - CAST ( NULL AS INTEGER ) * + col2 + col0 * ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-182
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + 32 * - cor0.col1 FROM tab2 AS cor0
----
-1019
-1914
-582
onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT - - col0 DIV cor0.col1 + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-184
SELECT - - col0 / cor0.col1 + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1254
1404
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT - col2 DIV - 33 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-185
SELECT - col2 / - 33 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT col0 * 90 + - cor0.col0 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT + col0 + - col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-187
SELECT + col0 + - col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 47 AS col1 FROM tab2
----
-47
-47
-47
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1
----
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-190
SELECT DISTINCT CAST( - 16 AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT CAST ( - 16 AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
-16
query I rowsort
SELECT DISTINCT 5 FROM tab2, tab1 AS cor0
----
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT col2 * col2 DIV col2 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-192
SELECT col2 * col2 / col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 + col1 * col0 * + 43 AS col1 FROM tab2 AS cor0
----
197964
57828
9338
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-194
SELECT ALL CAST( + col1 AS SIGNED ) + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-194
SELECT ALL CAST ( + col1 AS INTEGER ) + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + cor0.col0 * col0 col2 FROM tab1 AS cor0
----
35
4106
6413
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT ALL 72 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + col2 * - col2 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT ALL + 65 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT 36 * tab1.col0 AS col2 FROM tab1
----
108
2304
2880
query I rowsort
SELECT + col1 * - col1 * tab1.col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + - cor0.col0 * - col1 + ( - 36 ) FROM tab0 AS cor0
----
2028
3359
8063
query I rowsort
SELECT - 94 * col1 + + col0 + + col0 AS col2 FROM tab2
----
-1440
-2900
-5390
query I rowsort
SELECT - cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col1 * + col1 - - cor0.col0 AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT - + 73 * col0 AS col2 FROM tab0 AS cor0
----
-1752
-2555
-6497
query I rowsort
SELECT - col0 * col1 - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT col2 DIV col0 + col0 * col2 - col2 AS col2 FROM tab0 AS cor0
----
34
7216
760
skipif mysql # not compatible
query I rowsort label-208
SELECT col2 / col0 + col0 * col2 - col2 AS col2 FROM tab0 AS cor0
----
34
7216
760
query I rowsort
SELECT ALL + col0 * col0 + col2 * - col0 FROM tab0 AS cor0
----
-216
1190
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT tab0.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-210
SELECT tab0.col2 / col2 col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - 36 * - tab1.col1 AS col0 FROM tab1
----
360
468
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-212
SELECT ALL - col1 * col0 + col2 DIV - col1 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - col1 * col0 + col2 / - col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 55 * - ( + col0 ) FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT 10 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + col0 * + 62 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT - 53 * - 46 + - col1 FROM tab2 AS cor0
----
2379
2407
2421
onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT - cor0.col1 + - col2 DIV col2 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-217
SELECT - cor0.col1 + - col2 / col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL 36 * col2 + + col1 * col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
19680
38448
7752
query I rowsort
SELECT ALL col2 * - 73 FROM tab2
----
-1898
-1971
-2774
onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT + col2 DIV - 61 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-220
SELECT + col2 / - 61 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( + col2 ) + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - ( + col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + - col1 - + col1 AS col0 FROM tab0 cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT DISTINCT + col1 * col2 + col0 * + cor0.col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT + col1 * col2 + col0 * + cor0.col2 / + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT DISTINCT 68 DIV col0 FROM tab2
----
0
9
skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 68 / col0 FROM tab2
----
0
9
query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1, tab0 cor0
----
35
query I rowsort
SELECT DISTINCT - col1 * 78 AS col2 FROM tab1
----
-1014
-2028
-780
query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) - ( 72 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-13
-41
-55
query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0, tab2 AS cor0
----
79
query I rowsort
SELECT + col0 * + 76 AS col1 FROM tab2 cor0
----
532
5928
6004
query I rowsort
SELECT ALL - 34 * - 18 + + col2 FROM tab1 AS cor0
----
666
669
708
query I rowsort
SELECT col0 * - cor0.col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT col0 + + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - col2 * 90 FROM tab2 cor0
----
-2340
-2430
-3420
query I rowsort
SELECT col1 * - 89 + + col1 FROM tab1
----
-1144
-2288
-880
query I rowsort
SELECT ALL + 61 + col2 FROM tab2
----
87
88
99
query I rowsort
SELECT + tab2.col1 * col1 AS col0 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-239
SELECT col2 * 54 DIV col2 FROM tab0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-239
SELECT col2 * 54 / col2 FROM tab0
----
54
54
54
query I rowsort
SELECT 96 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT 13 + col2 + - tab1.col0 * - col2 FROM tab1
----
229
3718
7789
query I rowsort
SELECT 32 FROM tab1, tab2 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT DISTINCT + 34 + - 37 FROM tab0
----
-3
query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col2 * - tab1.col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL 10 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - col0 - 78 FROM tab2 AS cor0
----
-156
-157
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) * + col2 - col1 col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - + cor0.col0 + - col1 * - col2 * col1 FROM tab2 AS cor0
----
10903
25940
90428
query I rowsort
SELECT ALL - - col2 + + 23 * + col2 * ( col1 ) AS col2 FROM tab2 cor0
----
14896
19278
35308
query I rowsort
SELECT DISTINCT + + ( 75 ) AS col1 FROM tab2 AS cor0
----
75
query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT 98 FROM tab2, tab0, tab0 AS cor0
----
98
query I rowsort
SELECT ALL - 48 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT + tab1.col2 - col0 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col2 FROM tab1 AS cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-257
SELECT DISTINCT - - col0 + ( 92 + + col1 ) * CAST( - col0 + col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - - col0 + ( 92 + + col1 ) * CAST ( - col0 + col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col0 * col2 - + col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - 44 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL + cor0.col2 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL col0 + + col0 * - 65 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( - tab0.col2 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-265
SELECT + col0 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-265
SELECT + col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT ALL col0 DIV cor0.col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-266
SELECT ALL col0 / cor0.col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT ALL - + col1 * - 68 - 87 AS col0 FROM tab1 AS cor0
----
1681
593
797
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab0, tab1 AS cor0
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col2 + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + 69 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab0, tab1 AS cor0
----
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT ALL - col1 DIV - ( col1 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - col1 / - ( col1 ) FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-275
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL - col0 * - col0 * - col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col2 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - - 37 + col2 + col2 FROM tab2 AS cor0
----
113
89
91
query I rowsort
SELECT ALL + ( + col1 ) + - 26 FROM tab0 cor0
----
60
65
71
query I rowsort
SELECT + col2 + + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT - - col0 DIV col1 + col2 * col1 + - col1 FROM tab2 AS cor0
----
1476
633
806
skipif mysql # not compatible
query I rowsort label-281
SELECT - - col0 / col1 + col2 * col1 + - col1 FROM tab2 AS cor0
----
1476
633
806
query I rowsort
SELECT ALL + ( - col0 ) * 74 + - col2 AS col1 FROM tab2 AS cor0
----
-545
-5798
-5884
onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT DISTINCT cor0.col2 * col2 DIV - 59 FROM tab1 AS cor0
----
-156
-49
-55
skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT cor0.col2 * col2 / - 59 FROM tab1 AS cor0
----
-156
-49
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT - col0 + + cor0.col2 DIV - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-284
SELECT - col0 + + cor0.col2 / - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT 64 * + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
1050
1957
3750
query I rowsort
SELECT ( col0 ) * 79 FROM tab2 AS cor0
----
553
6162
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + + tab2.col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + 72 AS col2 FROM tab2
----
72
72
72
query I rowsort
SELECT col2 + cor0.col1 * - 16 AS col1 FROM tab0 cor0
----
-1343
-1374
-1551
query I rowsort
SELECT - ( col0 ) + - 18 FROM tab1
----
-21
-82
-98
query I rowsort
SELECT 48 + + col1 FROM tab0
----
134
139
145
query I rowsort
SELECT col2 - + col0 * - 9 * col1 AS col1 FROM tab0
----
18609
30556
72973
query I rowsort
SELECT col1 + tab1.col2 + 79 FROM tab1
----
146
159
188
query I rowsort
SELECT ALL 8 * 49 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebf1674bf2c18318d79221cf009c4512
query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
95
query I rowsort
SELECT - ( + col0 ) * col0 + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT col2 + col1 * + 17 FROM tab0 AS cor0
----
1495
1629
1650
onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT + ( col0 ) - - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-298
SELECT + ( col0 ) - - col1 / + col1 AS col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + col1 * - col0 + - ( - col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL col2 * - cor0.col0 - + col2 * col1 FROM tab2 cor0
----
-1026
-3562
-3648
query I rowsort
SELECT cor0.col0 + 64 AS col0 FROM tab1 AS cor0
----
128
144
67
query I rowsort
SELECT DISTINCT + col0 + 35 AS col2 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT ALL + + cor0.col0 + + 56 AS col2 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT + - col0 * + 5 FROM tab2 AS cor0
----
-35
-390
-395
onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT ALL - col2 DIV + col0 - col1 DIV col0 FROM tab2 cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - col2 / + col0 - col1 / col0 FROM tab2 cor0
----
-7
0
0
query I rowsort
SELECT + col2 + 69 * col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
11757
46698
6957
query I rowsort
SELECT - - col0 * + col0 * col1 + col2 AS col1 FROM tab1 AS cor0
----
288
41017
83296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-308
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT - + col1 DIV + col1 + + col0 * col0 FROM tab2 AS cor0
----
48
6083
6240
skipif mysql # not compatible
query I rowsort label-309
SELECT - + col1 / + col1 + + col0 * col0 FROM tab2 AS cor0
----
48
6083
6240
query I rowsort
SELECT ALL - - col0 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL 52 * col0 AS col1 FROM tab1
----
156
3328
4160
query I rowsort
SELECT - col1 + 13 * col1 AS col2 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT - + 74 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2138
-3469
-8173
query I rowsort
SELECT - + ( + col2 ) + - col2 * + 4 FROM tab0 AS cor0
----
-165
-410
-5
query I rowsort
SELECT ALL col1 * + col2 * + tab0.col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL - + ( col1 ) + col1 * + ( - 35 ) FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT - 92 * + cor0.col0 * col2 FROM tab0 AS cor0
----
-3220
-671416
-72864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * + col2 col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + 3 FROM tab2, tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT - + col0 * + col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
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 ALL cor0.col0 * + col0 * ( + col2 * col0 ) AS col2 FROM tab0 AS cor0
----
42875
456192
57807458
query I rowsort
SELECT + + 14 * + col2 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT ALL - ( + col2 + + col1 * - 51 ) AS col1 FROM tab0
----
4353
4559
4946
query I rowsort
SELECT 28 * + col1 + + 73 * - col1 FROM tab0
----
-3870
-4095
-4365
query I rowsort
SELECT - 2 + + tab0.col1 * col1 * tab0.col2 + col2 FROM tab0
----
244099
679122
9408
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 + ( col0 ) * + col2 FROM tab2 AS cor0
----
-540
1352
1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 * + 92 col2 FROM tab0 AS cor0
----
7888
8283
8889
onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT ALL + col0 DIV 90 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + col0 / 90 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + - cor0.col0 * 64 + col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT + col1 * + 21 AS col0 FROM tab1 cor0
----
210
273
546
query I rowsort
SELECT - cor0.col1 * col0 + 47 + col2 * + 38 AS col1 FROM tab0 cor0
----
-3310
-4936
-763
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-335
SELECT ALL col1 + + CAST( NULL AS DECIMAL ) * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-335
SELECT ALL col1 + + CAST ( NULL AS REAL ) * + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT + cor0.col2 * + cor0.col2 * + col1 + col0 * + col0 FROM tab1 cor0
----
126208
36586
75825
query I rowsort
SELECT ALL - + ( col1 ) * col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + - col0 + + col1 * col0 * col1 AS col0 FROM tab2 cor0
----
24196
272116
7449
query I rowsort
SELECT ALL cor0.col1 - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - + col1 * 63 + col0 FROM tab2 AS cor0
----
-1946
-3639
-992
query I rowsort
SELECT DISTINCT 53 + col0 * col1 * - 83 + + col0 AS col0 FROM tab2 cor0
----
-111337
-17951
-381835
query I rowsort
SELECT 15 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - 63 + cor0.col1 FROM tab2 AS cor0
----
-32
-4
-46
query I rowsort
SELECT DISTINCT - col2 + col1 + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1165
1376
523
query I rowsort
SELECT ALL cor0.col0 * + 52 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 60fc09eeede5680b332f84f1a91d8a27
query I rowsort
SELECT - 77 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL - 40 * col1 + + col1 + + col0 FROM tab2 AS cor0
----
-1202
-2223
-584
onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT ALL + col1 * col2 DIV cor0.col2 + + col2 + col2 FROM tab0 AS cor0
----
152
255
99
skipif mysql # not compatible
query I rowsort label-349
SELECT ALL + col1 * col2 / cor0.col2 + + col2 + col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT ALL col1 * ( - col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + col0 - 24 FROM tab2 AS cor0
----
-17
54
55
query I rowsort
SELECT + cor0.col0 * - 80 FROM tab1 AS cor0
----
-240
-5120
-6400
query I rowsort
SELECT + col2 * 98 FROM tab0 AS cor0
----
3234
8036
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col1 * + cor0.col2 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col1 * 1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 * - 36 AS col0 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT col2 + + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - ( 24 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-360
SELECT + col1 + CAST( - ( - col0 ) AS SIGNED ) FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-360
SELECT + col1 + CAST ( - ( - col0 ) AS INTEGER ) FROM tab1
----
29
74
93
query I rowsort
SELECT - 88 * + col2 AS col0 FROM tab2 AS cor0
----
-2288
-2376
-3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-362
SELECT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-362
SELECT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) + + col2 * ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * + col1 col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + ( col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - + ( + col2 ) + + col2 * col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL 32 * tab0.col1 + - col2 FROM tab0
----
2719
2830
3103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-368
SELECT + ( ( + col2 ) ) + CAST( NULL AS SIGNED ) * + col2 * col0 + + ( - col2 ) * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-368
SELECT + ( ( + col2 ) ) + CAST ( NULL AS INTEGER ) * + col2 * col0 + + ( - col2 ) * - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 68 + tab0.col0 * cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
9 values hashing to 4ed329a24fdd79e8e1cefa8886be9937
onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT ALL - 26 DIV col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - 26 / col0 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT - - cor0.col0 + + col0 DIV 57 col2 FROM tab0 cor0
----
24
35
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-371
SELECT - - cor0.col0 + + col0 / 57 col2 FROM tab0 cor0
----
24
35
90
query I rowsort
SELECT ALL 76 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT - + 63 * col2 AS col1 FROM tab0 AS cor0
----
-2079
-5166
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + col1 col1 FROM tab0
----
4558
4823
5141
query I rowsort
SELECT 29 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT - col1 * col1 DIV + col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-376
SELECT - col1 * col1 / + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT 44 * + col2 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT DISTINCT + 80 * + col1 AS col2 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT + 73 * - 8 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 407ab4149bd3c7d34041ebb8e67e9eb8
query I rowsort
SELECT ALL ( - 15 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT DISTINCT col1 * - col2 * col1 AS col0 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col0 FROM tab1
----
-28
query I rowsort
SELECT col1 * 78 AS col1 FROM tab2
----
1326
2418
4602
query I rowsort
SELECT DISTINCT 3 + col1 * col0 FROM tab0
----
2067
3398
8102
onlyif mysql # use DIV operator for integer division
query I rowsort label-386
SELECT - 52 DIV col0 AS col1 FROM tab2
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-386
SELECT - 52 / col0 AS col1 FROM tab2
----
-7
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT + - col2 DIV - col1 + + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-387
SELECT + - col2 / - col1 + + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 23 ) * + col1 - col2 col2 FROM tab2 AS cor0
----
-1383
-429
-740
onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT DISTINCT + col1 + - 98 DIV + col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + col1 + - 98 / + col2 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT DISTINCT - 59 DIV col0 - col1 FROM tab1 AS cor0
----
-10
-13
-45
skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT - 59 / col0 - col1 FROM tab1 AS cor0
----
-10
-13
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-391
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) + cor0.col0 * + col2 - - col1 * col0 * + col2 FROM tab2 AS cor0
----
121758
54115
6055
skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) + cor0.col0 * + col2 - - col1 * col0 * + col2 FROM tab2 AS cor0
----
121758
54115
6055
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 col0 FROM tab1 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * - col1 - col0 col2 FROM tab1 AS cor0
----
-234
-301
-445
query I rowsort
SELECT ALL cor0.col1 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-395
SELECT DISTINCT - 83 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT - 83 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT - ( col2 ) * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 37 * - col1 FROM tab2
----
1147
2183
629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col2 + col2 col0 FROM tab0
----
37
7462
858
query I rowsort
SELECT 93 + 28 * + col2 AS col1 FROM tab2
----
1157
821
849
query I rowsort
SELECT + 1 + 31 AS col0 FROM tab0
----
32
32
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-401
SELECT col1 * - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-401
SELECT col1 * - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col2 - ( col0 ) * col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT - col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL cor0.col2 * 56 FROM tab1, tab2 AS cor0
----
9 values hashing to 7ea964627ba7d45095a0e294fb501473
query I rowsort
SELECT + cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col1 * 29 AS col1 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT + cor0.col0 * 65 - col0 AS col1 FROM tab2 AS cor0
----
448
4992
5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT ( ( col2 ) ) DIV col2 - col1 * col1 AS col0 FROM tab1 cor0
----
-168
-675
-99
skipif mysql # not compatible
query I rowsort label-408
SELECT ( ( col2 ) ) / col2 - col1 * col1 AS col0 FROM tab1 cor0
----
-168
-675
-99
query I rowsort
SELECT 81 * ( col0 ) FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT + + ( ( - col2 - - 97 - + cor0.col2 - col0 - - col2 - ( - col1 - 8 - 57 ) ) ) + col2 + + 60 FROM tab0 AS cor0
----
224
284
query I rowsort
SELECT ( + col2 ) * col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - + col2 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT 12 * cor0.col2 + col1 FROM tab1 cor0
----
1165
674
694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT CAST( col1 AS SIGNED ) + + col0 * 83 AS col0 FROM tab1 AS cor0
----
275
5322
6653
skipif mysql # not compatible
query I rowsort label-414
SELECT CAST ( col1 AS INTEGER ) + + col0 * 83 AS col0 FROM tab1 AS cor0
----
275
5322
6653
query I rowsort
SELECT ALL 89 + - ( - col1 * 44 ) + + col0 * col0 AS col2 FROM tab1 AS cor0
----
1242
4625
7061
onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT + 85 DIV col1 + - col1 FROM tab1 cor0
----
-2
-23
-7
skipif mysql # not compatible
query I rowsort label-416
SELECT + 85 / col1 + - col1 FROM tab1 cor0
----
-2
-23
-7
query I rowsort
SELECT col1 * col2 * cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - + col2 * col0 + + 39 + - col1 FROM tab1 AS cor0
----
-149
-3619
-7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-419
SELECT - - 51 + col2 DIV 50 AS col1 FROM tab0 AS cor0
----
51
51
52
skipif mysql # not compatible
query I rowsort label-419
SELECT - - 51 + col2 / 50 AS col1 FROM tab0 AS cor0
----
51
51
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT - - 73 * + col1 FROM tab2 cor0
----
1241
2263
4307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - col1 * 88 AS col0 FROM tab1 AS cor0
----
-1144
-2288
-880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 + - cor0.col0 * - cor0.col1 * 73 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab1e69f6af20d179f1acf9c75cba0102
query I rowsort
SELECT - col2 * 96 FROM tab2 cor0
----
-2496
-2592
-3648
query I rowsort
SELECT ALL - cor0.col1 * - ( 1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 * 64 FROM tab2 AS cor0
----
448
4992
5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL col1 DIV ( 62 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-428
SELECT ALL col1 / ( 62 ) FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 84 col1 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT + 96 * col0 + + 19 AS col0 FROM tab1
----
307
6163
7699
query I rowsort
SELECT + cor0.col0 * 8 + cor0.col1 FROM tab0 AS cor0
----
278
377
803
query I rowsort
SELECT ALL + col1 * + 89 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT ALL - cor0.col2 * + col1 - - cor0.col0 DIV - col0 AS col2 FROM tab0 cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - cor0.col2 * + col1 - - cor0.col0 / - col0 AS col2 FROM tab0 cor0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT col1 * tab1.col2 * + tab1.col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + cor0.col2 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col1 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + 60 * + col0 AS col0 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT col0 + - col2 * 7 FROM tab0
----
-207
-485
28
query I rowsort
SELECT DISTINCT 32 + col0 * col0 FROM tab0
----
1257
608
7953
query I rowsort
SELECT DISTINCT - 84 FROM tab2, tab1 cor0, tab0 AS cor1
----
-84
query I rowsort
SELECT - 55 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
234
3426
906
query I rowsort
SELECT ALL 7 AS col1 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT + col0 + + col0 + - col2 AS col0 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL + 71 * 64 * col0 AS col2 FROM tab1 AS cor0
----
13632
290816
363520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-447
SELECT DISTINCT CAST( + ( col0 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT CAST ( + ( col0 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - ( 34 ) + col0 * - ( 94 + col0 ) FROM tab2 AS cor0
----
-13450
-13701
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT DISTINCT - - col0 + 55 DIV col1 + 89 * + col2 DIV cor0.col2 FROM tab0 cor0
----
113
124
178
skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - - col0 + 55 / col1 + 89 * + col2 / cor0.col2 FROM tab0 cor0
----
113
124
178
query I rowsort
SELECT ALL 80 * - col0 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1896
-2765
-7031
query I rowsort
SELECT ALL + 2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL - - 63 - col1 * col1 FROM tab1 AS cor0
----
-106
-37
-613
query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab2 AS cor0
----
25
query I rowsort
SELECT ALL + 49 + 15 * - col2 AS col2 FROM tab0 AS cor0
----
-1181
-446
34
query I rowsort
SELECT - + 30 * + col1 AS col0 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT DISTINCT + + col1 DIV cor0.col0 - ( col2 * col1 ) FROM tab1 AS cor0
----
-1248
-1396
-570
skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + + col1 / cor0.col0 - ( col2 * col1 ) FROM tab1 AS cor0
----
-1248
-1396
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-457
SELECT DISTINCT col2 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT col2 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 20 * - 72 * col2 AS col1 FROM tab0
----
-118080
-1440
-47520
query I rowsort
SELECT DISTINCT + + col1 + 32 AS col1 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT + - col0 + col2 + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT ALL col2 * + 61 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT ALL - col0 * - col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT + 4 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - cor0.col1 * + 27 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT DISTINCT + col2 - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + 75 * - col2 AS col1 FROM tab1
----
-4050
-4275
-7200
query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab2, tab1 AS cor0
----
54
query I rowsort
SELECT + col1 - - ( col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT - col1 + + col1 * + col2 - col2 FROM tab0
----
-1
2719
7289
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 18 col0 FROM tab1
----
-8
5
8
query I rowsort
SELECT + col0 + - col1 + + col1 * cor0.col0 FROM tab1 AS cor0
----
1107
55
694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-472
SELECT DISTINCT ( col2 ) * + col0 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT ( col2 ) * + col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 57 * - col2 AS col2 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT 15 + col1 AS col2 FROM tab1 cor0
----
25
28
41
query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) FROM tab0
----
0
query I rowsort
SELECT col1 * + 79 * + col1 FROM tab1
----
13351
53404
7900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-477
SELECT DISTINCT tab0.col0 * + CAST( NULL AS SIGNED ) + tab0.col1 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT tab0.col0 * + CAST ( NULL AS INTEGER ) + tab0.col1 AS col0 FROM tab0
----
NULL
query I rowsort
SELECT - col2 + col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT col0 * 93 FROM tab2
----
651
7254
7347
query I rowsort
SELECT ALL tab0.col2 + - 85 AS col2 FROM tab0
----
-3
-52
-84
query I rowsort
SELECT + cor0.col1 + 63 FROM tab1, tab2 AS cor0
----
9 values hashing to 56d50c9e217c34df2654875017d211e2
query I rowsort
SELECT - + col2 + 10 + + col1 AS col0 FROM tab0 cor0
----
106
19
63
query I rowsort
SELECT col0 * 45 AS col1 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT 51 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL - 0 * col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + - 3 FROM tab0 cor0
----
-3
-3
-3
query I rowsort
SELECT + 88 - col2 AS col2 FROM tab2 AS cor0
----
50
61
62
query I rowsort
SELECT DISTINCT - 75 + col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2103
-264
-3077
query I rowsort
SELECT ALL 20 * cor0.col0 + + ( + col1 ) FROM tab0 AS cor0
----
1871
566
797
query I rowsort
SELECT DISTINCT - + col2 * col2 * - col0 + - col1 * - 60 FROM tab0 AS cor0
----
31296
5855
603896
query I rowsort
SELECT - col0 * - 44 + col1 * col1 + col1 FROM tab2 AS cor0
----
1300
3782
6972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-493
SELECT ALL - col2 * CAST( + 77 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4158
-4389
-7392
skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - col2 * CAST ( + 77 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4158
-4389
-7392
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT DISTINCT + + col1 + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + col1 + col1 * col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT + + col0 * 65 AS col2 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col2 + - col2 * col2 * - col1 FROM tab1 AS cor0
----
119712
32433
75762
onlyif mysql # use DIV operator for integer division
query I rowsort label-500
SELECT ALL + col0 + + 92 DIV col2 FROM tab0 AS cor0
----
127
26
90
skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + col0 + + 92 / col2 FROM tab0 AS cor0
----
127
26
90
query I rowsort
SELECT ALL - 98 * + cor0.col1 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT ALL cor0.col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT ALL - + col1 + col0 DIV col2 AS col2 FROM tab1 cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - + col1 + col0 / col2 AS col2 FROM tab1 cor0
----
-13
-26
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT DISTINCT - tab2.col2 DIV - col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT - tab2.col2 / - col1 FROM tab2
----
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-505
SELECT col1 * + col2 - CAST( NULL AS SIGNED ) * 38 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-505
SELECT col1 * + col2 - CAST ( NULL AS INTEGER ) * 38 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col2 + 95 AS col0 FROM tab1
----
3011
3344
9311
query I rowsort
SELECT - 59 * col2 AS col2 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT ALL col0 DIV 39 FROM tab0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-509
SELECT ALL col0 / 39 FROM tab0
----
0
0
2
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col1 - - 46 FROM tab1
----
56
59
72
query I rowsort
SELECT DISTINCT tab0.col2 - - 32 AS col0 FROM tab0
----
114
33
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-513
SELECT DISTINCT col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-514
SELECT CAST( NULL AS SIGNED ) / + 80 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-514
SELECT CAST ( NULL AS INTEGER ) / + 80 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + ( col0 ) * col2 * - col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT ALL - 21 + - tab2.col1 * col2 AS col2 FROM tab2
----
-1555
-667
-858
query I rowsort
SELECT ALL - col0 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + 35 * - col0 + col2 AS col1 FROM tab2 cor0
----
-218
-2704
-2727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-519
SELECT ALL ( + col1 ) * - col2 + - CAST( - col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-788
4550
5595
skipif mysql # not compatible
query I rowsort label-519
SELECT ALL ( + col1 ) * - col2 + - CAST ( - col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-788
4550
5595
onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT DISTINCT - 67 DIV - col0 col0 FROM tab0 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 67 / - col0 col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + cor0.col1 * - 5 + cor0.col2 FROM tab0 AS cor0
----
-373
-397
-484
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 81 col2 FROM tab2 AS cor0
----
567
6318
6399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT - CAST( NULL AS DECIMAL ) * 50 * - col2 + 42 col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-523
SELECT - CAST ( NULL AS REAL ) * 50 * - col2 + 42 col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 45 + col2 FROM tab2 AS cor0
----
-18
-19
-7
query I rowsort
SELECT col1 + ( col2 ) + col0 AS col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT col1 + + col1 * + col2 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - col2 * - 70 AS col0 FROM tab0
----
2310
5740
70
query I rowsort
SELECT ALL - 1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT col1 * col1 + + col2 AS col0 FROM tab2
----
327
3507
988
query I rowsort
SELECT - col1 + 61 + col0 FROM tab0
----
-1
-1
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-531
SELECT ALL CAST( + col2 AS SIGNED ) + - col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-531
SELECT ALL CAST ( + col2 AS INTEGER ) + - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT 27 * col2 - col1 AS col1 FROM tab0
----
-70
2123
805
query I rowsort
SELECT DISTINCT + ( + 64 ) * col1 + col0 * col2 AS col2 FROM tab0
----
13122
6243
6296
query I rowsort
SELECT - 32 FROM tab2, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT - 81 FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL + col1 + col2 * col2 * + col1 FROM tab1 AS cor0
----
119821
32500
75842
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 * + col2 col1 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT DISTINCT - col2 - - col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col0 * 30 * + col2 AS col2 FROM tab2 AS cor0
----
5670
60840
90060
query I rowsort
SELECT + cor0.col1 - col1 * + col2 AS col2 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-543
SELECT ALL - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-543
SELECT ALL - col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL + + col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - - 87 * col2 + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
2566
4649
6864
query I rowsort
SELECT ALL 12 + - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-106
-22
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT ALL - 40 DIV col2 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-136
-54
-9
skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - 40 / col2 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-136
-54
-9
query I rowsort
SELECT ALL - cor0.col2 - + col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - - col0 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT + col2 DIV + col1 AS col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-553
SELECT + col2 / + col1 AS col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT DISTINCT tab0.col2 + - 88 * + col1 AS col2 FROM tab0
----
-7535
-7926
-8535
onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT 46 * col1 DIV col2 - col1 FROM tab1
----
-2
-4
-7
skipif mysql # not compatible
query I rowsort label-555
SELECT 46 * col1 / col2 - col1 FROM tab1
----
-2
-4
-7
query I rowsort
SELECT - 89 * + col0 AS col0 FROM tab1
----
-267
-5696
-7120
query I rowsort
SELECT DISTINCT 38 + - col0 AS col0 FROM tab0
----
-51
14
3
query I rowsort
SELECT ALL - col0 + col2 + col1 AS col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT ALL + + col0 * col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * col0 * col1 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT ALL + col0 * col0 - cor0.col2 * col0 FROM tab0 AS cor0
----
-216
1190
623
query I rowsort
SELECT DISTINCT + + col0 * - 69 AS col2 FROM tab1 cor0
----
-207
-4416
-5520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT ALL - + col1 * - CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - + col1 * - CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * - 57 AS col0 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT - + col0 + - col1 * - col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + col1 * 17 AS col1 FROM tab1 AS cor0
----
170
221
442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + col0 col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT tab0.col1 * - 9 AS col2 FROM tab0
----
-774
-819
-873
query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * ( col2 ) + - col2 col2 FROM tab2 cor0
----
2106
2187
3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-571
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + cor0.col1 col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + cor0.col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col1 - - ( - 82 * col2 ) FROM tab0
----
-2620
-6633
15
query I rowsort
SELECT DISTINCT tab2.col1 + + col0 * + col2 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + col0 * + col2 * - 56 FROM tab0
----
-1960
-408688
-44352
query I rowsort
SELECT - col0 + + col2 * col0 + 10 * - col2 AS col2 FROM tab0
----
-10
438
6389
query I rowsort
SELECT - - col1 + ( + cor0.col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 + 78 col2 FROM tab0 AS cor0
----
-1147
-498
-7843
onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT 44 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-578
SELECT 44 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 + col0 + + 85 AS col1 FROM tab1
----
213
245
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT DISTINCT 38 + col0 FROM tab1
----
102
118
41
query I rowsort
SELECT 82 + col0 AS col2 FROM tab1
----
146
162
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT DISTINCT col0 DIV - col1 + 11 + ( col0 + - 69 ) * 76 col0 FROM tab2
----
-4701
694
767
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT col0 / - col1 + 11 + ( col0 + - 69 ) * 76 col0 FROM tab2
----
-4701
694
767
query I rowsort
SELECT DISTINCT tab2.col1 + col0 * - col0 AS col0 FROM tab2
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + col0 col2 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT DISTINCT + 39 DIV + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
13
skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT + 39 / + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT tab1.col0 DIV + col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-589
SELECT tab1.col0 / + col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
query I rowsort
SELECT + col1 * 52 * + 83 FROM tab0
----
371176
392756
418652
query I rowsort
SELECT - - col1 * 46 - - 61 AS col2 FROM tab1 AS cor0
----
1257
521
659
query I rowsort
SELECT + + col1 + cor0.col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + ( - 7 ) FROM tab1
----
-7
query I rowsort
SELECT 32 + + tab0.col1 FROM tab0
----
118
123
129
query I rowsort
SELECT ALL + ( cor0.col2 ) - - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + col0 * col1 + + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + ( 50 ) - cor0.col0 AS col0 FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT DISTINCT ( 42 ) FROM tab2 AS cor0
----
42
query I rowsort
SELECT col0 * col2 + col1 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT DISTINCT + col0 + + 86 DIV col0 FROM tab0 AS cor0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + col0 + + 86 / col0 FROM tab0 AS cor0
----
27
37
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-602
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 38 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 38 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT col1 * col1 - ( col2 ) DIV col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-604
SELECT col1 * col1 - ( col2 ) / col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 95 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT + 25 + col0 FROM tab0 AS cor0
----
114
49
60
query I rowsort
SELECT 76 + - col0 FROM tab2
----
-2
-3
69
query I rowsort
SELECT col1 * col2 + 33 AS col0 FROM tab0 AS cor0
----
130
2871
7495
query I rowsort
SELECT + 21 * - col2 AS col1 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT - 40 + + col1 FROM tab2 AS cor0
----
-23
-9
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-611
SELECT - 48 * + col0 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
175104
368640
7776
skipif mysql # not compatible
query I rowsort label-611
SELECT - 48 * + col0 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
175104
368640
7776
query I rowsort
SELECT ALL - col1 * ( 44 ) + col0 AS col2 FROM tab1 AS cor0
----
-1141
-376
-492
query I rowsort
SELECT ALL - 25 * - ( cor0.col2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 541a35e17cf52bffd955be6ba6319bc4
query I rowsort
SELECT + cor1.col0 * + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6387e809cb1e467e8e7184dc79f3a43b
query I rowsort
SELECT + - ( ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 * + 52 * - 68 FROM tab1
----
-10608
-226304
-282880
query I rowsort
SELECT DISTINCT - 4 + 48 FROM tab2, tab1, tab1 cor0
----
44
query I rowsort
SELECT + 62 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL - col2 DIV 77 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL - col2 / 77 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT 0 * cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 29 FROM tab0, tab2 AS cor0
----
-29
query I rowsort
SELECT DISTINCT 47 * + ( - col0 + ( col0 ) ) FROM tab0
----
0
query I rowsort
SELECT - - col0 + + col1 * col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
13600
2031
6464
query I rowsort
SELECT DISTINCT + + 12 AS col1 FROM tab1 AS cor0
----
12
query I rowsort
SELECT 75 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0 WHERE ( NULL ) <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col1 col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL + - 96 * + col2 FROM tab0 AS cor0
----
-3168
-7872
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-631
SELECT DISTINCT + - col1 + col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
1235
1378
560
skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + - col1 + col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT ALL + col0 * - col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - ( col0 ) * col2 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - 66 * - col0 + col2 * - col2 FROM tab1 AS cor0
----
-2718
-3936
975
query I rowsort
SELECT 21 * - col1 FROM tab1
----
-210
-273
-546
query I rowsort
SELECT - ( + 41 * col1 ) FROM tab0
----
-3526
-3731
-3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT col0 + col2 - col2 DIV - 4 AS col2 FROM tab1
----
135
200
70
skipif mysql # not compatible
query I rowsort label-637
SELECT col0 + col2 - col2 / - 4 AS col2 FROM tab1
----
135
200
70
query I rowsort
SELECT ALL 4 + - col0 AS col0 FROM tab0
----
-20
-31
-85
query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT 48 * - col0 AS col1 FROM tab1
----
-144
-3072
-3840
query I rowsort
SELECT - col1 * + col0 * ( + col1 ) - col1 FROM tab2 AS cor0
----
-22848
-271577
-6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT DISTINCT 64 + tab2.col2 DIV - 85 + + col0 * col0 * + 17 AS col2 FROM tab2
----
103492
106161
897
skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 64 + tab2.col2 / - 85 + + col0 * col0 * + 17 AS col2 FROM tab2
----
103492
106161
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + col0 col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT - col1 - - col2 * + ( col1 ) FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT col1 + 38 AS col1 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT + col2 - col1 * - 93 AS col2 FROM tab0 cor0
----
8031
8545
9022
query I rowsort
SELECT - 9 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT DISTINCT + 52 * + col2 * + 48 FROM tab1
----
134784
142272
239616
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab2
----
-76
-76
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-650
SELECT + CAST( - 98 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
skipif mysql # not compatible
query I rowsort label-650
SELECT + CAST ( - 98 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
onlyif mysql # use DIV operator for integer division
query I rowsort label-651
SELECT DISTINCT col1 DIV + col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT col1 / + col2 FROM tab0
----
1
2
97
query I rowsort
SELECT col2 * 41 AS col2 FROM tab2
----
1066
1107
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT - col1 DIV + 80 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-653
SELECT - col1 / + 80 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - ( 31 ) FROM tab2
----
-1829
-527
-961
query I rowsort
SELECT col0 + ( - cor0.col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + col1 - - ( col0 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col2 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col1 * col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - col1 + - col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL tab2.col1 * - col1 + + col0 - + col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + col1 - 44 AS col0 FROM tab2
----
-13
-27
15
query I rowsort
SELECT 2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-663
SELECT CAST( NULL AS SIGNED ) * + col1 - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-663
SELECT CAST ( NULL AS INTEGER ) * + col1 - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 68 * + cor0.col2 + - col0 AS col2 FROM tab1 cor0
----
3669
3812
6448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT ALL col0 * + CAST( NULL AS SIGNED ) - col2 / + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-665
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) - col2 / + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * - 91 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT tab2.col2 + ( + tab2.col2 ) * + tab2.col1 + col2 AS col1 FROM tab2
----
1586
722
891
query I rowsort
SELECT + 5 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
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 DISTINCT + 22 * 35 + col2 + - col1 FROM tab2 AS cor0
----
737
766
791
query I rowsort
SELECT - + col0 + col1 + col1 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT ALL col0 * 57 FROM tab2 cor0
----
399
4446
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT - col0 DIV + 85 + col2 * - 7 - + col2 AS col2 FROM tab2 AS cor0
----
-208
-216
-304
skipif mysql # not compatible
query I rowsort label-674
SELECT - col0 / + 85 + col2 * - 7 - + col2 AS col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT DISTINCT + ( 44 ) FROM tab0 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT col2 DIV col0 + col1 + + 83 FROM tab1 AS cor0
----
127
93
97
skipif mysql # not compatible
query I rowsort label-676
SELECT col2 / col0 + col1 + + 83 FROM tab1 AS cor0
----
127
93
97
query I rowsort
SELECT ALL - 84 * col0 + - tab0.col2 + col1 AS col2 FROM tab0
----
-1963
-2844
-7467
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT DISTINCT - ( - col1 ) * cor0.col1 * + col2 + cor0.col1 * col2 DIV - col1 FROM tab2 AS cor0
----
10944
25920
90480
skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - ( - col1 ) * cor0.col1 * + col2 + cor0.col1 * col2 / - col1 FROM tab2 AS cor0
----
10944
25920
90480
query I rowsort
SELECT ALL 75 * - 41 + col2 FROM tab0 AS cor0
----
-2993
-3042
-3074
query I rowsort
SELECT DISTINCT - + 35 * + 35 + col1 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1322
-613109
-94879
query I rowsort
SELECT ALL + ( col0 ) + + cor0.col2 + - col1 * - 74 AS col2 FROM tab2 AS cor0
----
1375
2328
4470
query I rowsort
SELECT + col0 * cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 * + col1 + - col0 col1 FROM tab1 AS cor0
----
-1237
-2317
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-684
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + col2 col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - 68 * - 3 AS col2 FROM tab0 AS cor0
----
204
query I rowsort
SELECT ALL ( col0 ) + + col0 + - col0 * + col0 FROM tab1 AS cor0
----
-3
-3968
-6240
query I rowsort
SELECT + - 21 + + 34 * col1 FROM tab0 AS cor0
----
2903
3073
3277
query I rowsort
SELECT + ( col0 ) + cor0.col0 * - col2 * cor0.col1 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT - 97 * - col1 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
275286
723814
9409
query I rowsort
SELECT + + 73 + + col0 * + ( ( col1 ) ) FROM tab1 cor0
----
1113
151
713
query I rowsort
SELECT ALL 50 + col2 * 67 * cor0.col2 FROM tab1 AS cor0
----
195422
217733
617522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-693
SELECT DISTINCT col2 - + CAST( + 29 * + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-176
-2236
-2253
skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT col2 - + CAST ( + 29 * + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-176
-2236
-2253
query I rowsort
SELECT DISTINCT - col0 + - 45 AS col1 FROM tab1 AS cor0
----
-109
-125
-48
query I rowsort
SELECT ALL + 10 * + 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ddb66901f1839b341c2a605ca52d596
query I rowsort
SELECT ALL col0 * 70 - + col1 FROM tab2 AS cor0
----
459
5401
5513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 * + cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - - col2 * + col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT cor0.col0 + col0 + - col1 FROM tab1 AS cor0
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT + + col2 DIV + col2 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-701
SELECT + + col2 / + col2 + - cor0.col2 / col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT ALL + col1 * col0 DIV + tab1.col2 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + col1 * col0 / + tab1.col2 FROM tab1
----
1
10
11
query I rowsort
SELECT + - col2 * col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
1
33
82
query I rowsort
SELECT + col1 + col2 + + col0 FROM tab0
----
133
143
262
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 / - tab1.col0 )
----
query I rowsort
SELECT col1 * col0 * col0 AS col1 FROM tab1
----
234
40960
83200
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + tab2.col2 )
----
query I rowsort
SELECT ALL + tab1.col0 + col2 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col1 + - col0 * + tab0.col1 * + col1 FROM tab0
----
-177590
-329412
-737100
query I rowsort
SELECT + + 16 + + col1 AS col2 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT + 36 + col0 FROM tab0
----
125
60
71
query I rowsort
SELECT col0 * + col0 + col0 * - tab2.col1 * col1 FROM tab2
----
-16590
-265434
-6678
query I rowsort
SELECT col1 * + tab0.col1 + + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT col1 * - tab0.col1 * tab0.col1 + + col0 AS col2 FROM tab0
----
-636032
-753482
-912638
query I rowsort
SELECT DISTINCT + + col1 * - col0 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 + - col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 * + col2 * col1 + + col2 * col2 FROM tab0 AS cor0
----
3493
626707
96807
query I rowsort
SELECT ALL col0 * + tab0.col0 FROM tab0 WHERE tab0.col2 BETWEEN - col1 AND NULL
----
query I rowsort
SELECT ALL tab2.col2 * col1 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT - col1 * col1 - - col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT col0 * + col1 - col1 AS col2 FROM tab2
----
1326
186
4543
query I rowsort
SELECT - tab1.col1 / + col0 AS col0 FROM tab1 WHERE NOT NULL <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT col0 DIV + col0 + + col2 * - col2 + - col0 col1 FROM tab2
----
-1522
-735
-753
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-725
SELECT col0 / + col0 + + col2 * - col2 + - col0 col1 FROM tab2
----
-1522
-735
-753
query I rowsort
SELECT - col1 * + col2 * - tab2.col2 + tab2.col0 FROM tab2
----
22606
24627
39962
query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 10 * - col1 AS col2 FROM tab2 AS cor0
----
170
310
590
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT + col1 * + tab0.col1 - col2 * col1 AS col2 FROM tab0
----
4558
819
9312
query I rowsort
SELECT DISTINCT - - 92 FROM tab1, tab1 cor0
----
92
query I rowsort
SELECT cor0.col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL col1 * + col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col2 / + col0 < NULL
----
query I rowsort
SELECT col0 * - col1 + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT col0 - col2 * - tab2.col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE NULL < tab1.col1
----
query I rowsort
SELECT col2 * col1 * tab1.col1 + tab1.col0 FROM tab1
----
16304
36507
5764
query I rowsort
SELECT DISTINCT + col0 - - col0 * cor0.col2 * col0 AS col1 FROM tab2 cor0
----
1330
158262
237237
query I rowsort
SELECT + col0 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0 + + col0 / col1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( col0 ) AND + col0 * - cor0.col1
----
query I rowsort
SELECT - col1 FROM tab2 WHERE NULL < ( + col1 )
----
query I rowsort
SELECT + tab1.col0 + - tab1.col1 * col1 AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT - tab0.col0 * tab0.col2 + + col2 + col1 FROM tab0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT DISTINCT col1 DIV + col0 - - tab2.col2 AS col2 FROM tab2
----
26
31
38
skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT col1 / + col0 - - tab2.col2 AS col2 FROM tab2
----
26
31
38
query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col1
----
query I rowsort
SELECT DISTINCT - tab2.col2 - + col0 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col1 + tab2.col1 FROM tab2 WHERE NOT col0 IN ( col1 + + col1 )
----
0
query I rowsort
SELECT ALL - col1 + - tab0.col0 * - col0 FROM tab0 WHERE NULL >= tab0.col0 * - col2
----
query I rowsort
SELECT - col0 - tab1.col1 * col0 * col1 AS col0 FROM tab1
----
-13600
-2031
-6464
query I rowsort
SELECT ALL col2 - + tab2.col1 AS col2 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-754
SELECT + col2 * - col1 DIV col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-754
SELECT + col2 * - col1 / col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col0 + 56 FROM tab1, tab2 AS cor0
----
9 values hashing to dfe2534881c1784ea964001a3705ecf9
query I rowsort
SELECT col2 + cor0.col0 * - 87 AS col2 FROM tab2 AS cor0
----
-582
-6760
-6835
query I rowsort
SELECT + - 12 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-177
-252
-366
query I rowsort
SELECT ALL col0 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT DISTINCT - + col2 - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT col1 + col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + - cor0.col1 + + col0 * ( col1 ) AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - 53 + col1 * + col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
244015
678989
9356
onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT col2 DIV col2 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-763
SELECT col2 / col2 AS col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - cor0.col1 + + ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - - col2 * - 16 * + 83 + col0 * - col1 FROM tab0 AS cor0
----
-116995
-45888
-4723
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
query I rowsort
SELECT - + cor0.col2 + - col2 * col0 * ( - cor0.col1 ) FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT ALL - 18 * - col2 FROM tab0
----
1476
18
594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-769
SELECT + CAST( + col1 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-769
SELECT + CAST ( + col1 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col1 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT - + col0 * + 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT DISTINCT + + 96 AS col0 FROM tab0 cor0
----
96
query I rowsort
SELECT - col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + ( + col1 ) - - col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + cor0.col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col2 + col1 * - ( - col0 ) AS col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * cor0.col2 + + 77 FROM tab2 AS cor0
----
-1457
-569
-760
query I rowsort
SELECT DISTINCT col2 - - col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - 32 * col1 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT 14 + col2 FROM tab2 AS cor0
----
40
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-782
SELECT DISTINCT col0 + - col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT col0 + - col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 99 * tab0.col0 - + col1 FROM tab0
----
2290
3368
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab0.col0 ) * + col2 - - col1 col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL ( - 4 + - col1 ) AS col1 FROM tab2
----
-21
-35
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 99 ) col1 FROM tab2
----
99
99
99
query I rowsort
SELECT ALL ( 75 ) AS col2 FROM tab0
----
75
75
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT DISTINCT + col2 DIV - cor0.col2 - col0 FROM tab1 cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + col2 / - cor0.col2 - col0 FROM tab1 cor0
----
-4
-65
-81
query I rowsort
SELECT + cor0.col1 + + 17 * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a429cf3ba042d2c669df081c08efae6b
query I rowsort
SELECT ALL + 0 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT DISTINCT col2 + + col1 * col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT col2 + + col1 * col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-794
SELECT DISTINCT - 9 - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - 9 - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL + 66 * + col1 * col1 FROM tab2
----
19074
229746
63426
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-796
SELECT - ( col0 + + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-796
SELECT - ( col0 + + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-798
SELECT ALL col1 * col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
2
225
skipif mysql # not compatible
query I rowsort label-798
SELECT ALL col1 * col1 / + col0 AS col1 FROM tab1 AS cor0
----
1
2
225
query I rowsort
SELECT + 91 * cor0.col0 FROM tab2 cor0
----
637
7098
7189
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT col0 + - col1 * tab0.col2 DIV col0 col2 FROM tab0
----
-94
33
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-800
SELECT col0 + - col1 * tab0.col2 / col0 col2 FROM tab0
----
-94
33
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-801
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + col2 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + col2 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + 75 * 26 AS col0 FROM tab2 AS cor0
----
1950
1950
1950
query I rowsort
SELECT - + 25 + + col2 FROM tab1 AS cor0
----
29
32
71
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 * + 32 AS col1 FROM tab0 cor0
----
1119
2766
735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-805
SELECT DISTINCT - - CAST( + 7 AS SIGNED ) + col0 * - col1 FROM tab1 AS cor0
----
-1033
-633
-71
skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - - CAST ( + 7 AS INTEGER ) + col0 * - col1 FROM tab1 AS cor0
----
-1033
-633
-71
query I rowsort
SELECT ALL - col1 * col1 + - col1 * col1 AS col2 FROM tab2
----
-1922
-578
-6962
onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT - col0 - - tab2.col2 * col0 DIV + tab2.col0 AS col1 FROM tab2
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-807
SELECT - col0 - - tab2.col2 * col0 / + tab2.col0 AS col1 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT - tab1.col0 * - 43 * - col1 + tab1.col2 + + ( col1 ) * col2 DIV - col2 AS col1 FROM tab1
----
-27473
-3326
-44637
skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - tab1.col0 * - 43 * - col1 + tab1.col2 + + ( col1 ) * col2 / - col2 AS col1 FROM tab1
----
-27473
-3326
-44637
query I rowsort
SELECT DISTINCT tab2.col0 + - 54 * - 82 AS col1 FROM tab2
----
4435
4506
4507
query I rowsort
SELECT col0 * col2 + - tab1.col0 * - col1 AS col1 FROM tab1
----
240
4288
8720
query I rowsort
SELECT + 46 + + col1 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT ALL + - col1 * + col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col1 * + col0 * + col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + - 77 * + col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT - col2 + ( - col0 ) * ( col0 ) AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 60 * col1 + cor0.col2 * - 72 col1 FROM tab0 AS cor0
----
-126216
-203772
-491844
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT ( col2 ) DIV - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-817
SELECT ( col2 ) / - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * - 84 + + col2 AS col0 FROM tab0 cor0
----
-1983
-2939
-7394
query I rowsort
SELECT ALL + 54 * + 28 AS col0 FROM tab1 AS cor0
----
1512
1512
1512
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT ALL CAST( NULL AS DECIMAL ) * + 69 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-820
SELECT ALL CAST ( NULL AS REAL ) * + 69 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT ALL - + 57 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-57
0
skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - + 57 / col2 AS col1 FROM tab0 AS cor0
----
-1
-57
0
query I rowsort
SELECT DISTINCT + + 82 AS col2 FROM tab2 AS cor0
----
82
query I rowsort
SELECT DISTINCT + col2 + + 29 AS col1 FROM tab1 cor0
----
125
83
86
query I rowsort
SELECT DISTINCT + col0 * - 99 FROM tab1 AS cor0
----
-297
-6336
-7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT - ( col1 ) DIV + col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-825
SELECT - ( col1 ) / + col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT DISTINCT + col1 + 8 AS col2 FROM tab2 AS cor0
----
25
39
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT ALL - - col2 DIV cor0.col2 + + col1 DIV - col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - - col2 / cor0.col2 + + col1 / - col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - + ( - 97 ) + - col0 * + col2 * - col2 FROM tab0 AS cor0
----
132
26233
598533
query I rowsort
SELECT - cor0.col1 * - 29 AS col0 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT + - cor0.col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - + 18 FROM tab1 AS cor0
----
-18
query I rowsort
SELECT DISTINCT + 10 + col0 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT - cor0.col0 * - col1 * - 15 AS col2 FROM tab0 AS cor0
----
-121485
-30960
-50925
query I rowsort
SELECT + col1 * - col1 + + 29 AS col2 FROM tab0 AS cor0
----
-7367
-8252
-9380
query I rowsort
SELECT ALL + + col1 + - col2 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * + col1 + - 0 col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - 8 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT DISTINCT + 8 * col1 AS col0 FROM tab2 AS cor0
----
136
248
472
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + col2 + col2 * - CAST ( + col0 AS REAL ) FROM tab1
----
-105
-3527
-7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT 38 * col2 + + col1 DIV 30 + col2 * - col0 AS col1 FROM tab2
----
-1039
-1558
838
skipif mysql # not compatible
query I rowsort label-842
SELECT 38 * col2 + + col1 / 30 + col2 * - col0 AS col1 FROM tab2
----
-1039
-1558
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( - 38 AS REAL ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38
query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab1
----
81
query I rowsort
SELECT DISTINCT + - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-82
query I rowsort
SELECT + + col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + cor0.col2 * + 72 * cor0.col1 AS col0 FROM tab2 AS cor0
----
110448
46512
60264
query I rowsort
SELECT - col1 + - 14 * 21 AS col0 FROM tab1 AS cor0
----
-304
-307
-320
query I rowsort
SELECT col0 + - 32 AS col2 FROM tab0 AS cor0
----
-8
3
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col0 * + 64 FROM tab1 AS cor0
----
-192
-4096
-5120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col0 ) + col1 * - 43 + + col0 col2 FROM tab1 AS cor0
----
-1124
-4462
-6879
query I rowsort
SELECT + col2 + 5 * + col1 AS col1 FROM tab2 AS cor0
----
123
182
321
query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - tab0.col2 * + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 38 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
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-858
SELECT + col0 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-858
SELECT + col0 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - tab1.col2 * 57 * col1 FROM tab1
----
-32490
-71136
-80028
query I rowsort
SELECT ALL col1 + - col1 * + col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - 25 + col2 * col2 FROM tab0 cor0
----
-24
1064
6699
query I rowsort
SELECT ALL - col0 * 63 FROM tab1 AS cor0
----
-189
-4032
-5040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * col1 col1 FROM tab1
----
1638
630
819
query I rowsort
SELECT DISTINCT - cor0.col2 * 9 AS col0 FROM tab0, tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT - 97 + + 13 FROM tab2, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT - col2 * ( col0 ) * col0 - - ( col0 ) AS col2 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT + col1 + + ( + tab0.col2 ) * - col1 + + col0 * - col1 FROM tab0
----
-15470
-3395
-4816
query I rowsort
SELECT + - ( - col1 ) * col0 * + 4 - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1716
3130
5408
query I rowsort
SELECT ALL 49 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + 48 FROM tab0, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT + col0 DIV tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-871
SELECT + col0 / tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab1.col2 - ( col1 ) * - tab1.col0 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-873
SELECT DISTINCT - 56 - col1 * + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT - 56 - col1 * + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT + 6 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-874
SELECT + 6 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-875
SELECT CAST( NULL AS SIGNED ) * + col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-875
SELECT CAST ( NULL AS INTEGER ) * + col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + col2 col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + ( 23 ) + col0 * - col2 AS col1 FROM tab1 cor0
----
-139
-3625
-7657
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
-17
-31
-59
query I rowsort
SELECT + col1 * 21 FROM tab0 AS cor0
----
1806
1911
2037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-881
SELECT 6 * - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-881
SELECT 6 * - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col1 ) * col0 + 83 * + col0 FROM tab1
----
171
4672
5600
query I rowsort
SELECT - 13 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT + - col2 + ( ( + cor0.col0 ) ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + - col2 * - col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col2 * - 19 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT ALL - col0 * 59 + - cor0.col2 FROM tab2 AS cor0
----
-440
-4628
-4699
query I rowsort
SELECT col2 + ( + col0 ) FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col2 * - col0 * col0 col1 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT ALL + - 53 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query I rowsort
SELECT DISTINCT col1 * 26 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT ALL - - col1 * + 75 + col0 * - col2 * ( - col0 * col0 ) FROM tab2 AS cor0
----
11586
12342777
18736757
query I rowsort
SELECT ALL + col0 * col2 * + col0 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
1162
233572
614569
query I rowsort
SELECT DISTINCT col0 + + 74 AS col0 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT DISTINCT + col1 * col2 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
16128
36450
5643
query I rowsort
SELECT ALL - col0 * + ( 60 ) AS col1 FROM tab2
----
-420
-4680
-4740
query I rowsort
SELECT + cor0.col1 + + ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + col2 + 18 * 48 * + col1 FROM tab1 AS cor0
----
11328
22518
8697
query I rowsort
SELECT col1 + 52 * col1 AS col1 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT - 10 * + 22 FROM tab2 AS cor0
----
-220
-220
-220
query I rowsort
SELECT ALL 39 * 52 * + cor0.col1 + + col0 * col0 * + col1 AS col1 FROM tab0 cor0
----
223944
315541
905359
query I rowsort
SELECT DISTINCT - col1 - - 92 FROM tab1 AS cor0
----
66
79
82
query I rowsort
SELECT ALL + 43 + + 4 * col2 FROM tab1 cor0
----
259
271
427
query I rowsort
SELECT ALL + 9 AS col0 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT - + 87 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-38
5997
6154
onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT DISTINCT - col0 * 80 DIV col2 AS col0 FROM tab0 cor0
----
-2800
-58
-86
skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT - col0 * 80 / col2 AS col0 FROM tab0 cor0
----
-2800
-58
-86
query I rowsort
SELECT col2 + + 61 AS col1 FROM tab0
----
143
62
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT - col2 + col0 DIV tab2.col1 FROM tab2
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-908
SELECT - col2 + col0 / tab2.col1 FROM tab2
----
-25
-27
-34
query I rowsort
SELECT 91 + + 96 FROM tab0, tab1 AS cor0
----
9 values hashing to a7bb30de8514a761681e9509fad6402a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-910
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-911
SELECT ALL - col1 * - col1 + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - col1 * - col1 + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - + 82 AS col2 FROM tab0 AS cor0
----
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT - + col2 + col0 * + ( + col2 * col2 ) + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
207943
737264
8697
skipif mysql # not compatible
query I rowsort label-913
SELECT - + col2 + col0 * + ( + col2 * col2 ) + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
207943
737264
8697
query I rowsort
SELECT ALL - 99 * col0 AS col1 FROM tab0 AS cor0
----
-2376
-3465
-8811
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT + - 21 * + col2 - + 23 DIV col0 FROM tab1 AS cor0
----
-1141
-1197
-2016
skipif mysql # not compatible
query I rowsort label-915
SELECT + - 21 * + col2 - + 23 / col0 FROM tab1 AS cor0
----
-1141
-1197
-2016
query I rowsort
SELECT - col1 + col2 + + 20 AS col0 FROM tab1 AS cor0
----
103
48
67
query I rowsort
SELECT ALL - - col1 + - col1 * + ( + ( - col2 ) ) FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT - + col2 * + col2 + col0 DIV - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1056
-35
-6643
skipif mysql # not compatible
query I rowsort label-918
SELECT - + col2 * + col2 + col0 / - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1056
-35
-6643
query I rowsort
SELECT - - 65 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2981
3314
9281
query I rowsort
SELECT DISTINCT + 84 + 27 * col0 - - col1 AS col0 FROM tab1
----
1822
191
2257
skipif mysql # not compatible
query I rowsort
SELECT col1 * col2 * - ( - 68 * col2 ) + - CAST ( col0 AS REAL ) / + col0 + col0 AS col0 FROM tab2 AS cor0
----
1536738
1669342
2712189
query I rowsort
SELECT ALL col0 * 90 AS col1 FROM tab0
----
2160
3150
8010
query I rowsort
SELECT + col2 + col1 * - col1 AS col2 FROM tab2
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + 95 * col0 FROM tab1 cor0
----
285
6080
7600
query I rowsort
SELECT + col2 * + col0 + - col1 + + col1 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - col2 * - 68 FROM tab1
----
3672
3876
6528
query I rowsort
SELECT + ( + col1 ) * + col2 * + col2 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + cor0.col1 * 59 + + col0 FROM tab2 AS cor0
----
1082
1836
3559
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col1 * - col1 + cor0.col0 FROM tab0 AS cor0
----
7444
8459
9479
query I rowsort
SELECT + + ( col1 ) + - col1 * + ( col1 * - 58 ) AS col0 FROM tab1 AS cor0
----
39234
5810
9815
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 95 + - col1 AS col0 FROM tab0 cor0
----
-2
4
9
query I rowsort
SELECT col0 * col1 + - 26 FROM tab0 AS cor0
----
2038
3369
8073
query I rowsort
SELECT ALL - cor0.col0 * - 96 + col1 FROM tab2 AS cor0
----
703
7547
7601
query I rowsort
SELECT col1 + - ( + ( col0 ) ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + col0 * 99 + 71 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
526969
58608
5950
onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT + col2 * - col2 - cor0.col0 DIV + col1 AS col1 FROM tab2 cor0
----
-1448
-677
-729
skipif mysql # not compatible
query I rowsort label-939
SELECT + col2 * - col2 - cor0.col0 / + col1 AS col1 FROM tab2 cor0
----
-1448
-677
-729
query I rowsort
SELECT ALL + col2 - - col0 AS col1 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT ALL + col0 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + col0 / - col0 AS col2 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT - + col0 DIV + col0 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1090
-2
-6725
skipif mysql # not compatible
query I rowsort label-942
SELECT - + col0 / + col0 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1090
-2
-6725
query I rowsort
SELECT - - col1 + 9 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT DISTINCT - + col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 * + col0 - ( col1 ) AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + col0 + + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-947
SELECT - + col1 * CAST( NULL AS DECIMAL ) - 51 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-947
SELECT - + col1 * CAST ( NULL AS REAL ) - 51 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 - 30 AS col0 FROM tab0 AS cor0
----
56
61
67
query I rowsort
SELECT ALL + col2 * + ( - col2 ) + - col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT - col0 - - ( - col1 ) FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * - 61 + - col1 * col0 * col0 FROM tab2 AS cor0
----
-107134
-3410
-362555
query I rowsort
SELECT - + 93 + col0 FROM tab1 AS cor0
----
-13
-29
-90
query I rowsort
SELECT ALL 69 * 21 * cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
124647
131941
140554
query I rowsort
SELECT + cor0.col2 + - col1 * - col0 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-955
SELECT CAST( NULL AS DECIMAL ) / - 88 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-955
SELECT CAST ( NULL AS REAL ) / - 88 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 89 FROM tab2, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-957
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) + 24 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-957
SELECT ALL col0 * + CAST ( NULL AS REAL ) + 24 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - ( col1 ) AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 - + 16 AS col2 FROM tab1 AS cor0
----
-19
-80
-96
query I rowsort
SELECT 92 * + col1 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT - col1 + - 43 * col1 AS col2 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab1 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-963
SELECT - CAST( NULL AS SIGNED ) - + 7 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-963
SELECT - CAST ( NULL AS INTEGER ) - + 7 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-964
SELECT CAST( NULL AS SIGNED ) - 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-964
SELECT CAST ( NULL AS INTEGER ) - 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 92 * + tab0.col2 AS col0 FROM tab0
----
3036
7544
92
query I rowsort
SELECT col0 * + 13 AS col1 FROM tab1
----
1040
39
832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-967
SELECT + CAST( col0 AS SIGNED ) * + tab2.col1 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-967
SELECT + CAST ( col0 AS INTEGER ) * + tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + ( col1 ) * + 11 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT - - col0 * col0 + + 81 + - col0 FROM tab0 AS cor0
----
1271
633
7913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col0 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + 42 AS col1 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT - 82 - tab2.col2 * - col1 AS col1 FROM tab2
----
1452
564
755
query I rowsort
SELECT DISTINCT cor1.col2 + + 31 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
113
32
64
query I rowsort
SELECT - 61 * + tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 279894020b0205c1e491a444893c80a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT - col1 DIV + ( col2 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-975
SELECT - col1 / + ( col2 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT ( 49 ) FROM tab2, tab1 cor0
----
49
query I rowsort
SELECT + col2 + 99 * - 5 AS col0 FROM tab1 AS cor0
----
-399
-438
-441
query I rowsort
SELECT - col2 * 41 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT ALL + - col0 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + - col2 * ( + 64 ) FROM tab0 AS cor0
----
-2112
-5248
-64
query I rowsort
SELECT DISTINCT col1 + + 31 * - col2 FROM tab0 AS cor0
----
-2451
-937
66
query I rowsort
SELECT ALL - col0 * 2 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - + col2 + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - 31 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT - col2 + + 51 * - cor0.col0 FROM tab2 AS cor0
----
-384
-4004
-4067
onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT ALL - + col2 - 43 * col1 DIV + col1 FROM tab2 AS cor0
----
-69
-70
-81
skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - + col2 - 43 * col1 / + col1 FROM tab2 AS cor0
----
-69
-70
-81
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( col0 AS REAL ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab0 cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 79 col2 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT + col2 + col1 * - col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL - - 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 + col1 * col1 FROM tab2
----
1922
578
6962
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - 55 + col1 * 71 AS col2 FROM tab2 AS cor0
----
1152
2146
4134
query I rowsort
SELECT + col1 * + cor0.col1 + 55 AS col0 FROM tab1 cor0
----
155
224
731
onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT - - cor0.col1 + - col1 + - col0 DIV - ( col1 ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-998
SELECT - - cor0.col1 + - col1 + - col0 / - ( col1 ) FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col0 + col1 + col1 * - col2 AS col1 FROM tab1
----
-1155
-1375
-496
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - col2 * - col1 / col2 - col1 * - col0 IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT DISTINCT col2 * col2 DIV + tab0.col0 AS col1 FROM tab0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT col2 * col2 / + tab0.col0 AS col1 FROM tab0
----
0
45
75
query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE + col1 - col1 <> ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - col1 NOT IN ( + col0 + col0 / col0 )
----
query I rowsort
SELECT DISTINCT - col1 + + col1 + tab1.col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT - col1 DIV - col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1006
SELECT - col1 / - col0 col0 FROM tab0
----
1
2
3
query I rowsort
SELECT + col0 * col0 FROM tab1 WHERE ( + col1 ) NOT IN ( + col0 * - tab1.col1 + col2 * col0 + col2 )
----
4096
6400
9
query I rowsort
SELECT col0 * col0 + col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - col1 + + col0 + tab0.col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 + col1 * col2 + col0 FROM tab0
----
2776
35
7460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1011
SELECT - tab0.col2 + + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1011
SELECT - tab0.col2 + + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 + + col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL + ( - col0 * - tab2.col2 ) + - col1 * + col1 AS col0 FROM tab2
----
-1453
-772
2713
query I rowsort
SELECT col1 - + col2 * + col1 AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - 4 - col0 AS col1 FROM tab2
----
-11
-82
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT col2 DIV + col1 - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1016
SELECT col2 / + col1 - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL 90 + + col2 + ( col2 ) * tab0.col1 FROM tab0
----
188
2961
7634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 col1 FROM tab1 AS cor0
----
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT ALL + 36 + col2 DIV col2 FROM tab0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + 36 + col2 / col2 FROM tab0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT + 36 + col1 DIV - col2 FROM tab1 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-1020
SELECT + 36 + col1 / - col2 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT 85 AS col2 FROM tab1 cor0
----
85
85
85
query I rowsort
SELECT + 25 * col0 - - col0 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT ALL 11 + - col2 FROM tab1 AS cor0
----
-43
-46
-85
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT ( 37 ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT - 54 DIV - col1 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-1026
SELECT - 54 / - col1 FROM tab1
----
2
4
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1027
SELECT ALL + - cor0.col0 DIV + col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL + - cor0.col0 / + col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + - col0 + - col2 * 42 FROM tab2 AS cor0
----
-1141
-1170
-1675
query I rowsort
SELECT + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT - col0 * col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1030
SELECT - col0 * col2 / col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( ( col2 ) ) * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab2
----
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT DISTINCT + - col1 + + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + - col1 + + col1 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT - ( col0 ) DIV + col1 + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1034
SELECT - ( col0 ) / + col1 + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + 6 AS col0 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT - - ( 34 ) AS col0 FROM tab1 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT DISTINCT - + col0 * - col2 + - col1 DIV col1 AS col1 FROM tab0 cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - + col0 * - col2 + - col1 / col1 AS col1 FROM tab0 cor0
----
34
7297
791
query I rowsort
SELECT ALL + 91 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
108
122
150
query I rowsort
SELECT DISTINCT - 15 * 69 + col0 + ( - col1 ) FROM tab1 AS cor0
----
-1058
-968
-981
query I rowsort
SELECT - col2 * - col0 + 0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 41 + cor0.col2 + 90 * 99 FROM tab2 AS cor0
----
8977
8978
8989
query I rowsort
SELECT + cor0.col2 + col0 AS col1 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT - col0 * - col0 + CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1043
SELECT - col0 * - col0 + CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT cor0.col1 * cor0.col2 + ( col1 ) + - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1592
662
867
skipif mysql # not compatible
query I rowsort label-1044
SELECT cor0.col1 * cor0.col2 + ( col1 ) + - col1 / + col1 AS col2 FROM tab2 AS cor0
----
1592
662
867
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) + + col0 * col1 + col0 col2 FROM tab0 AS cor0
----
2055
3429
8106
query I rowsort
SELECT DISTINCT + col1 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + ( col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 97 - + cor0.col0 * - 7 * - col1 FROM tab0 AS cor0
----
-14351
-23668
-56596
query I rowsort
SELECT ALL + col0 * cor0.col1 + 53 * col2 AS col1 FROM tab1 AS cor0
----
2940
3661
6128
query I rowsort
SELECT col0 * + col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - cor0.col1 - - col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT ALL col0 - + col2 DIV - tab1.col1 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL col0 - + col2 / - tab1.col1 FROM tab1
----
5
69
87
query I rowsort
SELECT ALL col1 * - 0 - col2 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + cor0.col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + cor0.col0 + col1 * - col0 + col2 FROM tab1 AS cor0
----
-21
-519
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * + col1 col1 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 39 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - 78 * + col1 + col0 FROM tab1
----
-2025
-716
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT - col0 DIV + col2 col2 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1063
SELECT - col0 / + col2 col2 FROM tab1 AS cor0
----
-1
0
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0 WHERE NOT NULL <> NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1065
SELECT CAST( 93 AS SIGNED ) col2 FROM tab2
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1065
SELECT CAST ( 93 AS INTEGER ) col2 FROM tab2
----
93
93
93
query I rowsort
SELECT 32 * + col1 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT DISTINCT - - 48 + 23 * + col1 FROM tab2 cor0
----
1405
439
761
query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 38 * col0 AS col0 FROM tab1
----
114
2432
3040
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT 26 * col0 - + col2 FROM tab1 AS cor0
----
1607
1984
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT ALL + col0 * col0 DIV - col1 + col2 FROM tab2 cor0
----
-329
-77
26
skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + col0 * col0 / - col1 + col2 FROM tab2 cor0
----
-329
-77
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + col2 * + col1 + col1 + col2 FROM tab1 AS cor0
----
1357
1484
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT 52 DIV col1 FROM tab2
----
0
1
3
skipif mysql # not compatible
query I rowsort label-1075
SELECT 52 / col1 FROM tab2
----
0
1
3
query I rowsort
SELECT + 79 * - col1 FROM tab2 AS cor0
----
-1343
-2449
-4661
query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - ( col2 ) + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col2 - tab1.col2 * col0 AS col0 FROM tab1
----
-216
-3705
-7776
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 >= NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 - + col2 * col1 AS col0 FROM tab0
----
-2022
-27
-75
query III rowsort
SELECT * FROM tab1 WHERE NULL > ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT col0 DIV col2 + col2 AS col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-1085
SELECT col0 / col2 + col2 AS col2 FROM tab0
----
33
36
83
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 FROM tab0
----
15
69
96
query I rowsort
SELECT + col1 * col0 * tab2.col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - col1 * + col0 * col2 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 * col2 <> col0 - col2
----
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT ALL - col1 * + col0 + - col2 + + col1 * - col0 AS col1 FROM tab0
----
-16280
-4161
-6791
query I rowsort
SELECT ALL col2 * tab0.col2 * + col0 AS col1 FROM tab0
----
26136
35
598436
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND col0
----
query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + col0 * col0 / col0 + col2 IN ( col2 + + col0 )
----
query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT ( + col2 + - col2 / col2 ) > ( NULL )
----
query I rowsort
SELECT ALL col1 * - col2 * + col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT col0 * col2 * col2 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col1 FROM tab0 WHERE NOT ( + col0 + - col2 ) > NULL
----
query I rowsort
SELECT col1 * + col1 + + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT + col2 + col0 * col0 AS col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + + col1 + - col2 - - col2 AS col0 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( cor0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - ( 39 ) * + col2 * 6 + col2 FROM tab2 AS cor0
----
-6058
-6291
-8854
query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab2 AS cor0
----
-60
query I rowsort
SELECT DISTINCT + ( 20 ) + + col1 * + col1 FROM tab2 AS cor0
----
309
3501
981
query I rowsort
SELECT - + 43 + 23 FROM tab2 AS cor0
----
-20
-20
-20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1110
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1111
SELECT + col1 * col1 + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1111
SELECT + col1 * col1 + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 42 * - col0 * - cor0.col0 - - 23 AS col2 FROM tab2 AS cor0
----
-2035
-255505
-262099
query I rowsort
SELECT ALL cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 13 - 67 col2 FROM tab0 cor0
----
-80
-80
-80
query I rowsort
SELECT 84 + col2 * col0 FROM tab2 AS cor0
----
2112
273
3086
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 56 * cor0.col1 + cor0.col1 col2 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) * + 11 + col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164
query I rowsort
SELECT ALL + col1 * 61 + cor0.col0 AS col1 FROM tab0 AS cor0
----
5270
5640
5952
query I rowsort
SELECT ALL cor0.col0 + ( col2 * 53 ) AS col1 FROM tab1 AS cor0
----
2865
3085
5168
query I rowsort
SELECT col2 * - col2 + col0 * + ( + col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
-888
3151
4304
query I rowsort
SELECT + + col1 * col0 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT - - col0 - col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col1 + + 43 AS col2 FROM tab0 AS cor0
----
129
134
140
query I rowsort
SELECT DISTINCT ( - 44 ) AS col1 FROM tab0 cor0
----
-44
query I rowsort
SELECT ALL - col1 * - col0 + + col0 * + ( + col2 ) FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL col0 + - col0 - col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT ALL - - col2 + col2 DIV - ( col0 ) col0 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - - col2 + col2 / - ( col0 ) col0 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT + + ( - col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 * - col2 + + ( + col2 ) FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - cor0.col1 + col0 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1181
-1427
-516
query I rowsort
SELECT DISTINCT + - ( + col2 ) + - 26 + 96 AS col1 FROM tab0 AS cor0
----
-12
37
69
query I rowsort
SELECT ALL col1 * col2 + - col1 - cor0.col0 AS col2 FROM tab0 cor0
----
-35
2728
7282
onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT - - col0 DIV + 98 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1133
SELECT - - col0 / + 98 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL 6 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT DISTINCT + col2 + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT + col2 + col1 / col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT - + cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT col1 DIV - ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1138
SELECT col1 / - ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col2 * 11 AS col1 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT ALL - ( col2 ) * - 36 FROM tab1
----
1944
2052
3456
query I rowsort
SELECT DISTINCT + - col1 + 78 * col0 * - cor0.col0 FROM tab2 AS cor0
----
-3853
-474611
-486815
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1142
SELECT col1 * - CAST( NULL AS SIGNED ) * - tab1.col2 + + col1 * - col0 + + 72 * + tab1.col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1142
SELECT col1 * - CAST ( NULL AS INTEGER ) * - tab1.col2 + + col1 * - col0 + + 72 * + tab1.col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL col2 - - col0 * col0 FROM tab0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * col1 col0 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT col0 DIV - tab2.col0 col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1146
SELECT col0 / - tab2.col0 col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL 5 * + 17 AS col2 FROM tab2 AS cor0
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( cor0.col2 AS REAL ) col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + ( - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
7
78
79
query I rowsort
SELECT ALL - 69 + + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1370bb7931960b042e18e06757a20c7c
query I rowsort
SELECT + 95 * - 93 FROM tab2
----
-8835
-8835
-8835
query I rowsort
SELECT DISTINCT + ( 35 ) * col1 + - ( - col2 * col0 ) FROM tab0
----
10483
3430
3802
query I rowsort
SELECT - col0 + + ( - col1 + - col0 ) AS col0 FROM tab2
----
-175
-215
-45
query I rowsort
SELECT DISTINCT col1 + - col1 * - tab0.col2 + + 18 * + 59 AS col1 FROM tab0
----
1256
3986
8615
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 + col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1159
SELECT + CAST( NULL AS SIGNED ) - + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1159
SELECT + CAST ( NULL AS INTEGER ) - + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) * - col0 col2 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col1 FROM tab1 cor0
----
-37
query I rowsort
SELECT - ( - col2 ) + + col0 * col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT + - 75 + col2 + col0 FROM tab1 AS cor0
----
-18
101
46
query I rowsort
SELECT DISTINCT + col1 * col0 + 78 FROM tab0 AS cor0
----
2142
3473
8177
query I rowsort
SELECT ALL cor0.col0 + - 58 FROM tab0 AS cor0
----
-23
-34
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1166
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 + 20 AS col2 FROM tab1 AS cor0
----
-6
10
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT DISTINCT + - col1 DIV 89 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + - col1 / 89 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 10 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT DISTINCT + + col2 * 70 * - col0 FROM tab1 AS cor0
----
-11340
-255360
-537600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1171
SELECT DISTINCT cor0.col1 * CAST( col1 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
156
650
90
skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT cor0.col1 * CAST ( col1 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT + + col1 + - col1 * 39 FROM tab0 cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL col2 * 19 * col2 FROM tab0 AS cor0
----
127756
19
20691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col0 * - col1 + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-2055
-3429
-8106
query I rowsort
SELECT + - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 34 * - col1 * tab1.col2 FROM tab1
----
-19380
-42432
-47736
query I rowsort
SELECT ALL - - 54 + col0 * 5 FROM tab0 AS cor0
----
174
229
499
query I rowsort
SELECT - + col2 * col0 - + col0 * col2 FROM tab0 AS cor0
----
-14596
-1584
-70
query I rowsort
SELECT ( tab2.col2 ) + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT 53 DIV 85 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1182
SELECT 53 / 85 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT col2 - cor0.col0 AS col1 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - col0 * + 2 * col0 FROM tab0 AS cor0
----
-1152
-15842
-2450
query I rowsort
SELECT + col1 + + ( col0 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - cor0.col0 * cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 91af1085835c3ef572d2dbd91480f658
query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 AS col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT 73 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT - 62 * col0 AS col0 FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT - col0 DIV col1 col2 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1191
SELECT - col0 / col1 col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + col2 + - col1 * 48 FROM tab1
----
-1194
-423
-528
query I rowsort
SELECT + 53 * - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e1c7d663b413e265a33470caa79171ba
query I rowsort
SELECT DISTINCT + col2 * ( + 16 ) AS col0 FROM tab0
----
1312
16
528
query I rowsort
SELECT ALL - ( + col2 ) * - col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - 38 + col1 * - col0 FROM tab0
----
-2102
-3433
-8137
query I rowsort
SELECT DISTINCT + + col0 * 71 AS col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT - 96 + 58 * - col0 * 42 FROM tab2 AS cor0
----
-17148
-190104
-192540
query I rowsort
SELECT DISTINCT + + ( col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT ( ( - cor0.col0 ) ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 * 7 AS col0 FROM tab2 AS cor0
----
-182
-189
-266
onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT DISTINCT + 64 DIV 42 AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT + 64 / 42 AS col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - col2 + + cor0.col2 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + col1 * - col0 + col2 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT ALL - 99 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1207
SELECT CAST( NULL AS SIGNED ) * 61 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1207
SELECT CAST ( NULL AS INTEGER ) * 61 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab2.col2 + col0 * col1 * col0 FROM tab2
----
106135
1546
358982
query I rowsort
SELECT - ( - col0 ) * + col1 + - 37 FROM tab1
----
1003
41
603
query I rowsort
SELECT - 47 * + 65 AS col2 FROM tab0 AS cor0
----
-3055
-3055
-3055
query I rowsort
SELECT DISTINCT + col1 * col1 * + 63 FROM tab0
----
465948
521703
592767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col2 * + col0 col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - + 30 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-192
-3678
-7710
onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT ( cor0.col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1214
SELECT ( cor0.col2 ) / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2, tab2 AS cor0
----
89
query I rowsort
SELECT col2 * col0 + + col2 AS col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT cor0.col1 + col2 * 92 AS col0 FROM tab0 AS cor0
----
189
3122
7635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1218
SELECT DISTINCT - col0 * CAST( + col2 AS SIGNED ) * cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702
skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - col0 * CAST ( + col2 AS INTEGER ) * cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702
query I rowsort
SELECT col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col1 * - 63 + + col0 * col1 FROM tab1 AS cor0
----
-1560
10
221
query I rowsort
SELECT - col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - col0 - + tab0.col2 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL + 72 - col1 FROM tab1
----
46
59
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1224
SELECT DISTINCT + col2 DIV + col2 + ( + col2 ) FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + col2 / + col2 + ( + col2 ) FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT col1 * 87 + + col2 + col2 * cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
12499
28671
95665
onlyif mysql # use DIV operator for integer division
query I rowsort label-1226
SELECT - col0 + col2 DIV col0 + + 50 AS col0 FROM tab2
----
-28
-29
46
skipif mysql # not compatible
query I rowsort label-1226
SELECT - col0 + col2 / col0 + + 50 AS col0 FROM tab2
----
-28
-29
46
query I rowsort
SELECT ALL col0 * + col1 + - col2 - - ( col0 ) AS col1 FROM tab2
----
1384
197
4654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col0 + col2 col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT + 37 FROM tab2 cor0
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1230
SELECT ALL 84 * col1 - - CAST( - col1 AS SIGNED ) FROM tab0
----
7138
7553
8051
skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 84 * col1 - - CAST ( - col1 AS INTEGER ) FROM tab0
----
7138
7553
8051
query I rowsort
SELECT 29 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT ALL + + col2 + ( 65 * col0 ) FROM tab2 cor0
----
482
5096
5173
onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT col2 + ( - col1 ) DIV col2 + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1058
-6643
-97
skipif mysql # not compatible
query I rowsort label-1233
SELECT col2 + ( - col1 ) / col2 + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1058
-6643
-97
query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - col2 * 5 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT ALL col0 + ( 92 ) AS col0 FROM tab1
----
156
172
95
query I rowsort
SELECT DISTINCT - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * 60 col1 FROM tab2 AS cor0
----
-427
-4758
-4819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( 69 ) col1 FROM tab2 cor0
----
100
128
86
query I rowsort
SELECT - col2 + ( ( col2 ) ) + + 9 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT col1 * - 69 FROM tab1 AS cor0
----
-1794
-690
-897
query I rowsort
SELECT + - col2 * + col0 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT cor0.col1 + ( cor0.col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - col0 * + 60 AS col2 FROM tab1 AS cor0
----
180
3840
4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - cor0.col2 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT ALL - col1 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL - col1 + + col1 / cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ALL + + 90 AS col2 FROM tab2 cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1252
SELECT DISTINCT CAST( - ( + col2 ) AS SIGNED ) + CAST( 98 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2
41
44
skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT CAST ( - ( + col2 ) AS INTEGER ) + CAST ( 98 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT 30 AS col2 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT ( - 52 ) * col1 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + col1 * col2 col2 FROM tab2 cor0
----
1593
705
896
query I rowsort
SELECT + + 99 AS col1 FROM tab1 AS cor0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - ( - col2 ) + - 87 * + 1 AS col1 FROM tab2 AS cor0
----
-49
-60
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1259
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 + - 71 col0 FROM tab2 cor0
----
218
3410
890
query I rowsort
SELECT DISTINCT 13 FROM tab0, tab0 cor0
----
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT - 90 DIV col1 - - tab0.col1 col0 FROM tab0
----
85
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1262
SELECT - 90 / col1 - - tab0.col1 col0 FROM tab0
----
85
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT - 56 + col2 * ( + cor0.col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-2
1
40
skipif mysql # not compatible
query I rowsort label-1263
SELECT - 56 + col2 * ( + cor0.col1 ) / col1 AS col0 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT ALL - 4 AS col0 FROM tab0 cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT + + ( col0 ) * - 58 FROM tab1 AS cor0
----
-174
-3712
-4640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL + + 11 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT 96 * + col0 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT ALL - 8 * col1 FROM tab1 cor0
----
-104
-208
-80
query I rowsort
SELECT - + col0 + + col1 * col2 * + col0 FROM tab0 cor0
----
3360
664029
68088
query I rowsort
SELECT + 14 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT + 94 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 - - 39 col0 FROM tab0 AS cor0
----
7435
8320
9448
query I rowsort
SELECT - - 21 * col2 * - 83 FROM tab1 AS cor0
----
-167328
-94122
-99351
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + 62 + - col1 FROM tab1 AS cor0
----
36
49
52
query I rowsort
SELECT + 42 * cor0.col1 AS col2 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT 94 * - col0 + - 14 AS col2 FROM tab2
----
-672
-7346
-7440
query I rowsort
SELECT col1 * + col0 + - col1 FROM tab2
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT - CAST( + 4 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
skipif mysql # not compatible
query I rowsort label-1281
SELECT - CAST ( + 4 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1282
SELECT DISTINCT + CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1283
SELECT - - CAST( NULL AS DECIMAL ) + - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1283
SELECT - - CAST ( NULL AS REAL ) + - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - cor0.col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + 94 + cor0.col2 FROM tab0 AS cor0
----
127
176
95
query I rowsort
SELECT 19 * - 48 + - col1 AS col1 FROM tab2 AS cor0
----
-929
-943
-971
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab0 AS cor0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 98 col0 FROM tab1 cor0
----
98
query I rowsort
SELECT ALL + col0 + + col1 + - col1 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + col2 + 60 + - 44 AS col0 FROM tab0
----
17
49
98
query I rowsort
SELECT ALL col0 * 93 * - ( + col2 ) + col1 * col1 AS col0 FROM tab0
----
-66260
-670433
6154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( 83 ) + - tab1.col2 AS col1 FROM tab1
----
-13
26
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL ( + col0 ) FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1298
SELECT - col1 DIV + ( - col1 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1298
SELECT - col1 / + ( - col1 ) FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT 24 AS col0 FROM tab0 cor0
----
24
24
24
query I rowsort
SELECT ALL + 14 * cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to d8b39284e767e0071868a83e461c2814
query I rowsort
SELECT + cor0.col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - 77 * + col2 AS col1 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT DISTINCT - col1 - + col0 * + 87 AS col2 FROM tab1 AS cor0
----
-287
-5578
-6973
query I rowsort
SELECT ALL + col1 * cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - col0 + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT + col2 DIV + col0 + + cor0.col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-1308
SELECT + col2 / + col0 + + cor0.col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT col2 * + col1 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - ( col2 ) + col1 AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - + col2 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1312
SELECT col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 55 FROM tab0 AS cor0
----
-1320
-1925
-4895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1314
SELECT + - col0 + CAST( - 86 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110
-121
-175
skipif mysql # not compatible
query I rowsort label-1314
SELECT + - col0 + CAST ( - 86 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110
-121
-175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - cor2.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT ALL col1 * col2 DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL col1 * col2 / col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 2 * - col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - tab2.col0 * 95 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 80eaf4a722514718af6e55a429edb7e7
query I rowsort
SELECT DISTINCT - ( + col0 ) + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + ( - col2 ) - col2 * - 97 * 99 AS col2 FROM tab2 AS cor0
----
249652
259254
364876
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - + cor0.col2 * - ( cor0.col0 + cor0.col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
1474560
17496
415872
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT DISTINCT col0 + - col1 DIV col1 AS col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT col0 + - col1 / col1 AS col2 FROM tab0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - 88 ) - - col2 col2 FROM tab1
----
-1048
-2234
-823
query I rowsort
SELECT + tab1.col1 * + col1 AS col2 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + ( col1 ) + ( col2 ) * + col1 * col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT DISTINCT + 59 * col0 AS col0 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT - ( + col1 ) * - 4 AS col2 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT - + col2 + col2 + 11 AS col1 FROM tab2 AS cor0
----
11
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1334
SELECT ( 37 ) + - col2 + CAST( ( col1 ) + ( 61 ) AS SIGNED ) * - col2 AS col2 FROM tab2
----
-2474
-2965
-3109
skipif mysql # not compatible
query I rowsort label-1334
SELECT ( 37 ) + - col2 + CAST ( ( col1 ) + ( 61 ) AS INTEGER ) * - col2 AS col2 FROM tab2
----
-2474
-2965
-3109
query I rowsort
SELECT 31 * + col1 FROM tab0
----
2666
2821
3007
onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT col0 DIV 93 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1336
SELECT col0 / 93 FROM tab0
----
0
0
0
query I rowsort
SELECT - + col0 * col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT + + col1 + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2
----
-66
query I rowsort
SELECT + ( + tab1.col2 + col2 ) * col1 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ( 84 * tab0.col2 ) FROM tab0
----
2772
6888
84
query I rowsort
SELECT DISTINCT - 54 * col1 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1346
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT + + 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT col2 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 col0 FROM tab1 AS cor0
----
-49
-49
-49
query I rowsort
SELECT - - 87 + col0 FROM tab0 AS cor0
----
111
122
176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1351
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1352
SELECT ALL CAST( NULL AS DECIMAL ) / 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-1352
SELECT ALL CAST ( NULL AS REAL ) / col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - 67 + col0 AS col1 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT DISTINCT + - ( - 79 ) FROM tab2 AS cor0
----
79
query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col2 * col0 * + col1 AS col1 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1358
SELECT + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT ALL col0 DIV 19 FROM tab2
----
0
4
4
skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL col0 / 19 FROM tab2
----
0
4
4
query I rowsort
SELECT col0 - 53 FROM tab1
----
-50
11
27
query I rowsort
SELECT 47 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + col2 + + ( - col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT - + col2 * col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + 81 * 51 AS col0 FROM tab2 AS cor0
----
4131
4131
4131
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1365
SELECT + + CAST( NULL AS SIGNED ) * - col2 * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1365
SELECT + + CAST ( NULL AS INTEGER ) * - col2 * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 31 AS col1 FROM tab1 AS cor0
----
31
31
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1367
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 + col1 * + 8 AS col1 FROM tab0
----
712
811
817
query I rowsort
SELECT 22 * col2 FROM tab1
----
1188
1254
2112
query I rowsort
SELECT ALL - tab2.col1 + col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + + cor0.col2 * ( 25 ) + + col1 AS col1 FROM tab2 cor0
----
706
709
967
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT col2 DIV 95 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1375
SELECT col2 / 95 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT DISTINCT + col0 DIV + 57 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + col0 / + 57 FROM tab1 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT DISTINCT + col0 DIV + col1 col0 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + col0 / + col1 col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
24
35
89
query I rowsort
SELECT + col1 * - col0 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT col2 + + ( 38 ) AS col0 FROM tab1
----
134
92
95
query I rowsort
SELECT DISTINCT + cor0.col0 + 62 * + col2 FROM tab1 AS cor0
----
3351
3598
6032
query I rowsort
SELECT + col1 * + col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 * - col2 col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 + col2 FROM tab2 cor0
----
-1449
-591
-779
query I rowsort
SELECT ALL + col0 * cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT col2 DIV ( col1 ) + + col0 FROM tab1 cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-1386
SELECT col2 / ( col1 ) + + col0 FROM tab1 cor0
----
5
69
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( cor0.col1 ) col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + col0 * cor0.col0 * ( + col0 * + col1 ) AS col2 FROM tab1 AS cor0
----
2621440
6656000
702
query I rowsort
SELECT ALL + + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1390
SELECT DISTINCT cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 12 col0 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT ALL col2 + - 59 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1285
1399
568
query I rowsort
SELECT ALL + - col1 * col0 + + col2 FROM tab2 cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT ALL + - CAST( NULL AS DECIMAL ) * - cor0.col2 + col1 / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + - CAST ( NULL AS REAL ) * - cor0.col2 + col1 / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - cor0.col0 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 80 - - col2 FROM tab1
----
134
137
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col1 * + col0 * + col2 + col0 AS col2 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT col1 + + col1 * + 60 FROM tab1
----
1586
610
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT col1 DIV - tab0.col0 AS col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1401
SELECT col1 / - tab0.col0 AS col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT 10 * tab1.col0 FROM tab1
----
30
640
800
query I rowsort
SELECT 2 + col2 + + tab0.col0 * - col2 FROM tab0
----
-32
-7214
-757
query I rowsort
SELECT DISTINCT col0 * - col1 + col0 * tab1.col0 FROM tab1
----
-69
3456
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT col1 + + col1 + + tab0.col1 DIV - col1 col1 FROM tab0
----
171
181
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1405
SELECT col1 + + col1 + + tab0.col1 / - col1 col1 FROM tab0
----
171
181
193
query I rowsort
SELECT - ( - col1 ) * + col2 + + 73 * + 31 * col1 AS col0 FROM tab2
----
135051
39117
70990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col2 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + - col0 * 29 * 35 FROM tab2 AS cor0
----
-7098
-79092
-80106
skipif mysql # not compatible
query I rowsort
SELECT - col2 * col1 + CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT + 52 + + col1 * col2 DIV - 40 FROM tab2 AS cor0
----
14
32
36
skipif mysql # not compatible
query I rowsort label-1410
SELECT + 52 + + col1 * col2 / - 40 FROM tab2 AS cor0
----
14
32
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT DISTINCT col2 * col2 + - tab1.col1 DIV - col2 AS col0 FROM tab1
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT col2 * col2 + - tab1.col1 / - col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - 67 AS col2 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT + col2 * + col2 + + 27 * - col1 * 11 AS col0 FROM tab0
----
-20303
-24453
-28808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 73 col0 FROM tab1
----
-219
-4672
-5840
query I rowsort
SELECT + col0 + 74 FROM tab1
----
138
154
77
query I rowsort
SELECT - col1 + + 53 * + 15 + tab0.col2 * - col2 FROM tab0
----
-380
-6020
697
query I rowsort
SELECT ALL - cor0.col1 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT DISTINCT - + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - + col1 / - cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col2 + 43 AS col2 FROM tab2 AS cor0
----
69
70
81
query I rowsort
SELECT - + ( col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 + ( + col1 + + col0 ) col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - 26 + - col2 + col2 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT ALL 63 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-163
-4022
-5027
query I rowsort
SELECT + ( 97 ) * - col0 + ( col1 ) * cor0.col0 * + 77 FROM tab0 AS cor0
----
156600
258020
614990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + - col0 col0 FROM tab2 AS cor0
----
-38
-39
33
query I rowsort
SELECT tab0.col1 * + col1 + col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ALL - col2 + col0 * - col1 + + col1 * - 67 * 67 AS col2 FROM tab0
----
-388151
-416680
-438829
query I rowsort
SELECT 14 + col0 * - col2 FROM tab1 AS cor0
----
-148
-3634
-7666
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1430
SELECT - 27 + + col1 - col2 * CAST( 22 AS SIGNED ) * + col1 AS col2 FROM tab0
----
-164100
-2064
-62377
skipif mysql # not compatible
query I rowsort label-1430
SELECT - 27 + + col1 - col2 * CAST ( 22 AS INTEGER ) * + col1 AS col2 FROM tab0
----
-164100
-2064
-62377
query I rowsort
SELECT + + 67 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-11
-12
60
query I rowsort
SELECT ALL + ( - 49 ) - col2 FROM tab1
----
-103
-106
-145
query I rowsort
SELECT 0 + - tab1.col1 * + col1 + ( + col2 + col1 ) * - col0 FROM tab1
----
-4388
-8889
-916
onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT + col2 DIV ( col1 * col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1434
SELECT + col2 / ( col1 * col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ( 45 ) FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT col2 + cor0.col1 * ( - col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + - col2 col1 FROM tab2 AS cor0
----
15
26
27
query I rowsort
SELECT DISTINCT + col2 - + cor0.col0 * - col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT col1 DIV cor0.col2 + + col0 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1440
SELECT col1 / cor0.col2 + + col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - col0 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + 38 + col1 * + ( col1 ) FROM tab2 AS cor0
----
327
3519
999
onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT ALL - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - col2 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - col1 - cor0.col0 * + ( + col1 * col2 + + ( 82 ) ) FROM tab0 AS cor0
----
-6362
-671507
-70166
query I rowsort
SELECT ALL + 20 AS col2 FROM tab2 AS cor0
----
20
20
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1446
SELECT DISTINCT - + col1 + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - + col1 + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * col1 + - col1 * + col2 AS col0 FROM tab2 cor0
----
-620
3068
697
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - col0 * - col1 + 2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1419
271
4654
query I rowsort
SELECT ALL col0 * - col2 + 0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1452
SELECT ALL CAST( col2 * + col0 AS SIGNED ) AS col2 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL CAST ( col2 * + col0 AS INTEGER ) AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col2 - - 79 FROM tab2
----
105
106
117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 - - col2 * col0 col2 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab1
----
32
32
32
query I rowsort
SELECT + col1 * 93 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT + - col0 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( - col1 ) + col2 col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1460
SELECT ALL col0 + CAST( - col0 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL col0 + CAST ( - col0 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - cor0.col1 + 89 * + 94 FROM tab1 AS cor0
----
8340
8353
8356
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT ALL - + col0 DIV 73 + col2 FROM tab1 AS cor0
----
54
57
95
skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - + col0 / 73 + col2 FROM tab1 AS cor0
----
54
57
95
query I rowsort
SELECT cor0.col0 + ( + 25 ) FROM tab1 AS cor0
----
105
28
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT DISTINCT - + col0 * - 96 + - col0 * col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
666
7408
7454
skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - + col0 * - 96 + - col0 * col2 / + col1 AS col0 FROM tab2 AS cor0
----
666
7408
7454
query I rowsort
SELECT ALL + col0 - ( col1 ) * - col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT ALL - + col1 * col0 * + col0 + - col0 DIV col1 col2 FROM tab2 AS cor0
----
-106101
-1519
-358957
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - + col1 * col0 * + col0 + - col0 / col1 col2 FROM tab2 AS cor0
----
-106101
-1519
-358957
query I rowsort
SELECT - col1 + 51 AS col1 FROM tab2 AS cor0
----
-8
20
34
query I rowsort
SELECT ALL - cor0.col0 * 22 * 78 + + col0 AS col0 FROM tab1 AS cor0
----
-109760
-137200
-5145
query I rowsort
SELECT + - 55 + col0 FROM tab2 AS cor0
----
-48
23
24
query I rowsort
SELECT - ( cor0.col2 ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + + col1 * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + col1 * - col2 + - col2 + - col0 FROM tab1 cor0
----
-1424
-1461
-691
onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT ALL + cor0.col2 DIV col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + cor0.col2 / col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + + 52 * col0 AS col2 FROM tab1 AS cor0
----
156
3328
4160
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT col0 DIV col1 + col2 DIV col0 AS col0 FROM tab2
----
1
3
4
skipif mysql # not compatible
query I rowsort label-1477
SELECT col0 / col1 + col2 / col0 AS col0 FROM tab2
----
1
3
4
query I rowsort
SELECT + + col1 - + cor0.col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT + + cor0.col2 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * + col0 col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - + 76 + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59
query I rowsort
SELECT - col0 + cor0.col0 * 9 AS col2 FROM tab1 AS cor0
----
24
512
640
query I rowsort
SELECT ALL + + col2 - col2 * 4 * 68 FROM tab0 AS cor0
----
-22222
-271
-8943
skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col0 / - col1 + CAST ( 61 AS REAL ) FROM tab1 AS cor0
----
61
67
67
query I rowsort
SELECT DISTINCT - 28 * + col0 + 82 * col0 AS col2 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT DISTINCT col0 - + ( col2 * 12 ) FROM tab0
----
-372
-895
23
query I rowsort
SELECT ALL ( col2 ) - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT ALL + + cor0.col1 DIV - col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + + cor0.col1 / - col0 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab1 AS cor0
----
-50
query I rowsort
SELECT ( + 31 ) AS col1 FROM tab1
----
31
31
31
query I rowsort
SELECT ALL - col2 * col2 + col0 AS col1 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT 1 * - col2 + tab1.col0 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT col2 DIV - col1 + + 2 * col0 AS col1 FROM tab0 cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-1493
SELECT col2 / - col1 + + 2 * col0 AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL + 23 AS col1 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + col1 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - 84 * + col2 - + ( ( col1 ) * + 18 ) AS col1 FROM tab1 AS cor0
----
-4968
-5004
-8298
query I rowsort
SELECT - + col1 * col2 + 29 AS col2 FROM tab0 AS cor0
----
-2809
-68
-7433
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT ALL CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL ( col0 ) + + col1 DIV col2 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL ( col0 ) + + col1 / col2 FROM tab0
----
132
26
90
query I rowsort
SELECT + - col1 + ( - 1 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col0 + 20 AS col1 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT DISTINCT col1 * col0 + col2 + - col0 AS col0 FROM tab1
----
1056
129
633
onlyif mysql # use DIV operator for integer division
query I rowsort label-1503
SELECT DISTINCT - 58 DIV tab0.col2 + - cor1.col2 * 9 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to d57cb5acfe5b55c1b6d583ac59a8b1a5
skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT - 58 / tab0.col2 + - cor1.col2 * 9 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to d57cb5acfe5b55c1b6d583ac59a8b1a5
query I rowsort
SELECT - col0 * - col0 + - col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT DISTINCT 94 FROM tab0, tab1, tab2 AS cor0
----
94
query I rowsort
SELECT - 79 * - tab0.col1 AS col0 FROM tab0
----
6794
7189
7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 42 + col1 + col2 col0 FROM tab0 AS cor0
----
-1372
-3565
-889
query I rowsort
SELECT col2 + col1 + 16 FROM tab0 AS cor0
----
114
135
189
query I rowsort
SELECT ALL - cor0.col2 * 30 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT ALL + col1 + 97 - 38 * + col0 FROM tab2 cor0
----
-138
-2808
-2888
query I rowsort
SELECT ALL - col2 + - 51 AS col2 FROM tab0 AS cor0
----
-133
-52
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1512
SELECT - CAST( NULL AS SIGNED ) * 59 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1512
SELECT - CAST ( NULL AS INTEGER ) * 59 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1514
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - CAST ( NULL AS REAL ) * col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT 84 * cor0.col1 FROM tab0 AS cor0
----
7224
7644
8148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1517
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col0 + cor0.col1 col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col0 * - col1 * - ( col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + col1 * - col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT 59 - col0 FROM tab0
----
-30
24
35
query I rowsort
SELECT + col1 * + 31 + col0 FROM tab2 AS cor0
----
1907
606
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1523
SELECT + - col1 * - col2 - - col0 * CAST( col2 + + col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
102714
12555
240838
skipif mysql # not compatible
query I rowsort label-1523
SELECT + - col1 * - col2 - - col0 * CAST ( col2 + + col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
102714
12555
240838
query I rowsort
SELECT ALL - + 33 + + col2 AS col2 FROM tab0 AS cor0
----
-32
0
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT DISTINCT - 46 + - 83 * col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-33
-34
673
skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - 46 + - 83 * col1 / - col0 AS col1 FROM tab1 AS cor0
----
-33
-34
673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT - + 78 DIV + col1 + col2 FROM tab2 AS cor0
----
25
25
34
skipif mysql # not compatible
query I rowsort label-1526
SELECT - + 78 / + col1 + col2 FROM tab2 AS cor0
----
25
25
34
query I rowsort
SELECT - ( + 47 ) + + col0 * 55 FROM tab1 cor0
----
118
3473
4353
query I rowsort
SELECT + col0 + 94 FROM tab1 AS cor0
----
158
174
97
query I rowsort
SELECT ALL + cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 28 + - col0 FROM tab2 cor0
----
-50
-51
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT ALL + ( - col1 ) DIV - col0 + 27 AS col0 FROM tab1 AS cor0
----
27
27
35
skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + ( - col1 ) / - col0 + 27 AS col0 FROM tab1 AS cor0
----
27
27
35
query I rowsort
SELECT DISTINCT col1 - - tab0.col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + 8 * - col1 AS col1 FROM tab1
----
-104
-208
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col0 FROM tab0, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT 33 * + 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 69e6cbfe3abedc4830222d0265f9c05f
query I rowsort
SELECT DISTINCT + ( + tab2.col0 + 51 ) AS col0 FROM tab2
----
129
130
58
query I rowsort
SELECT DISTINCT + col1 * col0 * tab1.col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1538
SELECT tab1.col2 DIV + col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1538
SELECT tab1.col2 / + col0 FROM tab1
----
0
1
18
query I rowsort
SELECT - col1 * 10 AS col0 FROM tab0
----
-860
-910
-970
query I rowsort
SELECT - cor0.col1 * 91 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 586f63d5d30e33788eea0e6d049506d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT DISTINCT cor1.col2 DIV - 71 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT cor1.col2 / - 71 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-1
0
query I rowsort
SELECT ALL - col0 + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - ( 38 ) AS col0 FROM tab2 AS cor0
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT - + col2 + + 15 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1544
SELECT - + col2 + + 15 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 3 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT DISTINCT col2 * ( col0 + col2 ) AS col1 FROM tab2
----
2704
4446
918
query I rowsort
SELECT ALL + 84 FROM tab2, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - col1 * ( + col0 * - col0 ) FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL col1 * ( ( col1 ) ) FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 + + 93 col2 FROM tab2
----
190
query I rowsort
SELECT 9 + col1 + col1 FROM tab0
----
181
191
203
query I rowsort
SELECT - ( - col1 ) * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT - + col0 - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 * - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL + 3 - ( col2 ) * + col2 AS col2 FROM tab2
----
-1441
-673
-726
query I rowsort
SELECT DISTINCT + 18 * col0 FROM tab0 AS cor0
----
1602
432
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT ALL col2 DIV - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL col2 / - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - 68 * - col2 AS col2 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT ALL + - col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT + 14 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2902
-3235
-9202
query I rowsort
SELECT ALL - - col2 + col2 * + col1 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT + 60 - - col0 FROM tab0 AS cor0
----
149
84
95
query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 * col2 AS col0 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT tab2.col1 - col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT 92 + + tab0.col1 * + col2 * + col2 FROM tab0
----
189
611976
93746
query I rowsort
SELECT DISTINCT - ( col1 ) + - 22 AS col2 FROM tab1
----
-32
-35
-48
query I rowsort
SELECT + col0 + - col2 * + 31 FROM tab0
----
-2453
-999
4
query I rowsort
SELECT col2 - - col2 * ( ( - col1 ) + 57 ) * col2 FROM tab0
----
-228534
-31548
-39
query I rowsort
SELECT DISTINCT ( tab1.col1 ) + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - ( - col0 ) * - 86 + + ( + col1 ) + - col0 FROM tab0 AS cor0
----
-2002
-2948
-7652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-98
query I rowsort
SELECT DISTINCT - 48 * + 63 FROM tab0, tab1 cor0, tab2 cor1
----
-3024
query I rowsort
SELECT ALL + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 + col1 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + + col0 + - 43 FROM tab0 AS cor0
----
-19
-8
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) + cor0.col0 * + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) + cor0.col0 * + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - - col1 + col0 + - 39 AS col2 FROM tab0 cor0
----
141
71
93
query I rowsort
SELECT - - col1 + 84 * + col2 AS col2 FROM tab2 AS cor0
----
2243
2299
3209
query I rowsort
SELECT + col1 + + col2 * 61 AS col1 FROM tab1 AS cor0
----
3320
3487
5869
onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1581
SELECT col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + 58 * col2 FROM tab0
----
1914
4756
58
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 + 25 FROM tab1 AS cor0
----
108
53
72
query I rowsort
SELECT ALL + + cor0.col1 * - 51 * 23 FROM tab2 AS cor0
----
-19941
-36363
-69207
query I rowsort
SELECT DISTINCT - + col2 * 84 FROM tab2 cor0
----
-2184
-2268
-3192
query I rowsort
SELECT ALL col2 * + col2 * tab2.col0 FROM tab2
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1588
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( + col2 ) / 75 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT CAST ( NULL AS REAL ) + ( + col2 ) / 75 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 + 37 FROM tab0
----
-1188
-539
-7884
query I rowsort
SELECT + col2 * 79 FROM tab0
----
2607
6478
79
query I rowsort
SELECT ( col1 ) + - col0 * col0 AS col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT 55 * ( col1 ) + tab2.col1 + 97 AS col1 FROM tab2
----
1049
1833
3401
query I rowsort
SELECT ALL - - col2 * 46 FROM tab1 AS cor0
----
2484
2622
4416
query I rowsort
SELECT ALL + + 68 * - cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-449
-5278
-5334
query I rowsort
SELECT ALL ( + cor0.col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 31 * + col1 FROM tab2 AS cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT DISTINCT - - col1 DIV + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - - col1 / + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
31
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1598
SELECT DISTINCT - - 48 * - col1 + CAST( + 39 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - - 48 * - col1 + CAST ( + 39 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - 90 * - col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT - - col0 * col0 + - 10 AS col2 FROM tab2 AS cor0
----
39
6074
6231
query I rowsort
SELECT DISTINCT + col1 * col0 + 38 FROM tab1 AS cor0
----
1078
116
678
query I rowsort
SELECT 35 - ( + tab1.col0 ) FROM tab1
----
-29
-45
32
query I rowsort
SELECT + ( - col1 ) * col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 + col1 * + col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT 79 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
41
52
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 + + col1 col2 FROM tab2 AS cor0
----
-14
-28
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT ALL 66 + col1 DIV + col0 FROM tab1 AS cor0
----
66
66
74
skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL 66 + col1 / + col0 FROM tab1 AS cor0
----
66
66
74
query I rowsort
SELECT - col2 * cor0.col1 * col2 - - col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT DISTINCT - col0 + ( - 39 ) * col1 - - 22 AS col1 FROM tab2 AS cor0
----
-1194
-2357
-720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1612
SELECT ALL - - col0 * + CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - - col0 * + CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 56 + - 90 col1 FROM tab1 AS cor0
----
1366
470
638
query I rowsort
SELECT - 12 AS col1 FROM tab0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT col0 + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - col0 + + 5 FROM tab1 AS cor0
----
-59
-75
2
query I rowsort
SELECT DISTINCT - + col1 * 18 + - col1 FROM tab1 AS cor0
----
-190
-247
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT + - col2 DIV + 95 + + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1619
SELECT + - col2 / + 95 + + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + col0 * 28 FROM tab1 AS cor0
----
-1856
-5440
-78
query I rowsort
SELECT ALL - 33 + - cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a9608acb7037aba8cdfa2c469ca51bce
query I rowsort
SELECT - - 58 AS col1 FROM tab1 AS cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT DISTINCT - 72 + + col0 DIV col2 AS col1 FROM tab1 cor0
----
-71
-72
skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT - 72 + + col0 / col2 AS col1 FROM tab1 cor0
----
-71
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT ALL - tab2.col0 * + col1 * + col2 + + col0 DIV 65 FROM tab2
----
-119651
-51033
-5859
skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - tab2.col0 * + col1 * + col2 + + col0 / 65 FROM tab2
----
-119651
-51033
-5859
query I rowsort
SELECT DISTINCT col1 + col2 - - col1 FROM tab0
----
195
205
264
query I rowsort
SELECT + - col2 - col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT cor0.col1 + 12 * col0 FROM tab1 AS cor0
----
62
778
973
query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1629
SELECT ALL - 97 * - 10 - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - 97 * - 10 - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT 17 DIV + col1 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1630
SELECT 17 / + col1 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - + 82 * - col1 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT ALL - col0 + - 12 * - col0 FROM tab0 AS cor0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - ( col1 ) col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + 78 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL col0 + + 27 AS col1 FROM tab0
----
116
51
62
query I rowsort
SELECT ALL + col2 * 10 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT - ( col0 ) - + col2 * 10 AS col2 FROM tab0 AS cor0
----
-354
-45
-909
query I rowsort
SELECT DISTINCT + col0 * + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT col0 + ( + col1 + + col1 ) * + col0 FROM tab1 AS cor0
----
1344
159
2160
query I rowsort
SELECT ALL + ( col1 ) * cor0.col2 - ( - 5 ) FROM tab1 AS cor0
----
1253
1409
575
query I rowsort
SELECT - ( + col0 ) + col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT ALL + 75 DIV - 69 - - col1 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + 75 / - 69 - - col1 AS col2 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT DISTINCT - col1 + - col2 DIV + cor0.col0 col1 FROM tab0 cor0
----
-87
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - col1 + - col2 / + cor0.col0 col1 FROM tab0 cor0
----
-87
-91
-97
query I rowsort
SELECT DISTINCT + + 72 + + col2 AS col1 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT col0 * + col0 + + col0 AS col1 FROM tab0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ( 21 ) * + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ad9248ca478f9f31c9328b84537d14c
query I rowsort
SELECT DISTINCT col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col2 * col0 + + ( col2 ) AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col2 + - ( - 66 ) * col1 AS col2 FROM tab1 AS cor0
----
1662
603
762
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT col2 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 44 * col0 col0 FROM tab2 AS cor0
----
-277
-3373
-3459
query I rowsort
SELECT - col0 * + 55 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT - cor0.col1 * 68 FROM tab2 AS cor0
----
-1156
-2108
-4012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 60 AS col0 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT + col2 * + 98 + + col2 AS col2 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT ALL col2 * 78 + + 77 * - col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 + + col2 * col2 - col0 AS col2 FROM tab0 AS cor0
----
-33
1098
6717
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + col2 * + cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 99 + + 56 * - col0 FROM tab1 AS cor0
----
-3485
-4381
-69
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col2 AS REAL ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - + col0 * 85 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-622
-6656
-6753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1667
SELECT - - ( + col1 ) * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-1667
SELECT - - ( + col1 ) * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 47 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT + CAST( 99 AS SIGNED ) AS col1 FROM tab1
----
99
99
99
skipif mysql # not compatible
query I rowsort label-1669
SELECT + CAST ( 99 AS INTEGER ) AS col1 FROM tab1
----
99
99
99
query I rowsort
SELECT ( 84 + col1 ) FROM tab1
----
110
94
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col1 FROM tab2
----
80
80
80
query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab0
----
36
query I rowsort
SELECT ALL + col2 + col0 * + 82 AS col2 FROM tab0 AS cor0
----
2001
2871
7380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col0 * + col1 col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + 88 AS col0 FROM tab0
----
88
88
88
query I rowsort
SELECT ( 9 ) AS col2 FROM tab1
----
9
9
9
query I rowsort
SELECT ALL + ( + col0 * - col0 ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL 78 * col0 FROM tab1
----
234
4992
6240
query I rowsort
SELECT ALL 37 * col2 FROM tab0
----
1221
3034
37
query I rowsort
SELECT - 31 + col2 * cor0.col1 FROM tab0 AS cor0
----
2807
66
7431
query I rowsort
SELECT ALL + col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT - tab2.col0 * - 13 FROM tab2
----
1014
1027
91
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 ALL tab2.col1 - 69 FROM tab2
----
-10
-38
-52
query I rowsort
SELECT ALL - col2 + col0 * - 62 - + col1 AS col1 FROM tab0
----
-1607
-2268
-5691
onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT + 82 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
82
skipif mysql # not compatible
query I rowsort label-1687
SELECT + 82 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT DISTINCT col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT DISTINCT CAST( 88 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
88
skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT CAST ( 88 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT - - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1691
SELECT - - col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - tab0.col2 - tab0.col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT - + col0 * ( - cor0.col2 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + ( + col0 ) * + ( col2 ) FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + ( - col1 ) + col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 * + 34 * col2 + col2 FROM tab1
----
124089
261216
5562
query I rowsort
SELECT col2 + + col1 * col0 + + col2 FROM tab2
----
1419
271
4654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT ALL + col2 + - CAST( NULL AS DECIMAL ) * + ( col1 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL + col2 + - CAST ( NULL AS REAL ) * + ( col1 ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT DISTINCT + col0 + - ( - col0 ) DIV col1 AS col1 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + col0 + - ( - col0 ) / col1 AS col1 FROM tab2
----
7
79
83
query I rowsort
SELECT DISTINCT tab0.col1 + - ( - col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT ALL 16 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL col0 * 4 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT + 19 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + + col1 * ( - cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 4 * - col1 + col1 FROM tab1
----
130
50
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT ALL 73 DIV + 16 FROM tab1
----
4
4
4
skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL 73 / + 16 FROM tab1
----
4
4
4
query I rowsort
SELECT ( + col2 * - col0 + + col1 ) AS col0 FROM tab0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT - 43 + col1 DIV + col2 FROM tab0
----
-41
-42
54
skipif mysql # not compatible
query I rowsort label-1708
SELECT - 43 + col1 / + col2 FROM tab0
----
-41
-42
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT DISTINCT + CAST( col1 + col2 AS SIGNED ) * + 75 * col0 FROM tab0
----
1154775
214200
257250
skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + CAST ( col1 + col2 AS INTEGER ) * + 75 * col0 FROM tab0
----
1154775
214200
257250
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 19 col1 FROM tab0 AS cor0
----
1691
456
665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * col1 col0 FROM tab0 cor0
----
7568
8008
8536
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * + col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + 23 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT ( col1 ) * col0 DIV col2 AS col2 FROM tab1 AS cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-1715
SELECT ( col1 ) * col0 / col2 AS col2 FROM tab1 AS cor0
----
1
10
11
query I rowsort
SELECT ALL 78 * col0 AS col0 FROM tab1 AS cor0
----
234
4992
6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-1717
SELECT + - col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1717
SELECT + - col0 / + col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT DISTINCT - col2 * cor0.col0 DIV - col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - col2 * cor0.col0 / - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + col2 * 38 * col1 FROM tab0 AS cor0
----
107877
283638
3687
query I rowsort
SELECT + col2 + + cor0.col0 * - 15 FROM tab1 AS cor0
----
-1104
-903
9
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT ALL - col1 + + col0 * CAST( NULL AS SIGNED ) + - ( - col2 * col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - col1 + + col0 * CAST ( NULL AS INTEGER ) + - ( - col2 * col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col2 + tab1.col2 ) FROM tab1
----
108
114
192
query I rowsort
SELECT ALL - col2 * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + tab1.col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + 49 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND cor0.col1
----
query I rowsort
SELECT + - 54 * + col1 AS col0 FROM tab1 cor0
----
-1404
-540
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT col1 DIV + col1 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1729
SELECT col1 / + col1 AS col0 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1730
SELECT + + col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT + + col2 + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + ( cor0.col2 ) * col1 + col0 + ( col2 ) FROM tab0 AS cor0
----
133
2895
7633
query I rowsort
SELECT - col1 * col1 * col0 + - 0 * + col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL - 58 * + col0 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT DISTINCT ( - 72 ) + + col1 * + 80 AS col0 FROM tab2 AS cor0
----
1288
2408
4648
query I rowsort
SELECT - col1 * 38 FROM tab2 AS cor0
----
-1178
-2242
-646
query I rowsort
SELECT ALL + + ( 6 ) + - cor0.col0 AS col2 FROM tab0 cor0
----
-18
-29
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT ALL - ( - col0 ) * cor0.col2 + - 47 DIV col1 FROM tab2 AS cor0
----
188
2028
3000
skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - ( - col0 ) * cor0.col2 + - 47 / col1 FROM tab2 AS cor0
----
188
2028
3000
query I rowsort
SELECT ALL - + col2 * + col0 - - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - cor0.col2 + + 8 FROM tab2 cor0
----
-18
-19
-30
query I rowsort
SELECT ALL - col1 * 24 + - col1 FROM tab1
----
-250
-325
-650
query I rowsort
SELECT DISTINCT - tab2.col0 + + ( - tab2.col2 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - 48 * col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
query I rowsort
SELECT ALL + cor0.col0 * 27 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6b06849cc78be4a23c5213e55998d3e2
query I rowsort
SELECT ALL + + col2 * 59 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT - col1 + + 13 FROM tab1 AS cor0
----
-13
0
3
query I rowsort
SELECT DISTINCT + 17 + 9 * col1 FROM tab2 AS cor0
----
170
296
548
query I rowsort
SELECT 24 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT DISTINCT + col2 + col0 DIV col0 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + col2 + col0 / col0 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT col0 + + 47 AS col1 FROM tab1
----
111
127
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + tab1.col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( col0 ) + col0 * + col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + ( - 7 ) * col0 * 57 FROM tab2 AS cor0
----
-2793
-31122
-31521
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT - + col0 * col0 + col2 * + 67 FROM tab2 AS cor0
----
-3695
-4342
1760
query I rowsort
SELECT ALL - col2 + ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - - ( + 47 ) FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT - ( - col2 ) + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 96 * - 98 * col0 FROM tab1 AS cor0
----
-28224
-602112
-752640
query I rowsort
SELECT col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - col1 + - col1 * - 3 AS col2 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT - cor0.col0 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1765
SELECT - cor0.col0 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 * col2 * + ( - col0 + col2 ) FROM tab1 AS cor0
----
-22743
147456
148716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 67 col2 FROM tab1 AS cor0
----
131
147
70
query I rowsort
SELECT + - col2 * col0 + + 15 * col1 FROM tab0 AS cor0
----
-5933
1420
498
query I rowsort
SELECT DISTINCT - col1 * - 37 * 14 + - col2 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
11808
16247
32590
query I rowsort
SELECT DISTINCT col2 * col1 + 20 FROM tab0 AS cor0
----
117
2858
7482
onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT cor0.col2 * col1 DIV + 36 FROM tab2 cor0
----
17
23
42
skipif mysql # not compatible
query I rowsort label-1772
SELECT cor0.col2 * col1 / + 36 FROM tab2 cor0
----
17
23
42
query I rowsort
SELECT + + col2 * 75 + 57 FROM tab0 AS cor0
----
132
2532
6207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT ALL + - cor0.col0 * - CAST( NULL AS SIGNED ) + - col1 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + - cor0.col0 * - CAST ( NULL AS INTEGER ) + - col1 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT DISTINCT col0 + ( ( cor0.col2 ) ) * col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT col0 + ( ( cor0.col2 ) ) * col1 / + col2 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + cor0.col1 + - ( cor0.col0 ) + - cor0.col2 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT ALL + cor0.col2 + - 42 FROM tab0 AS cor0
----
-41
-9
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT DISTINCT + + cor0.col1 DIV - col0 + col1 col0 FROM tab2 AS cor0
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + + cor0.col1 / - col0 + col1 col0 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col1 ) * + col1 col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + - col2 * ( cor0.col0 + col1 ) FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1782
SELECT DISTINCT - - col0 * + col2 + col2 + CAST( - 77 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
139
1977
2963
skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - - col0 * + col2 + col2 + CAST ( - 77 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
139
1977
2963
query I rowsort
SELECT + ( - col2 ) * col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT 37 + 66 * col1 FROM tab2 cor0
----
1159
2083
3931
query I rowsort
SELECT ALL - col2 + col1 * col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + col0 * col0 * + cor0.col0 + col0 * + col1 FROM tab1 AS cor0
----
105
262784
513040
query I rowsort
SELECT ALL + tab0.col1 + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col1 + + 4 AS col2 FROM tab2
----
21
35
63
query I rowsort
SELECT ALL col0 + ( - col1 ) * + col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL - 25 AS col1 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1, tab1 AS cor0
----
85
query I rowsort
SELECT ALL 12 * + col2 FROM tab1 AS cor0
----
1152
648
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT - col2 - cor0.col2 * + cor0.col2 FROM tab2 cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col1 + 4 col0 FROM tab0 AS cor0
----
2068
3399
8103
query I rowsort
SELECT + - col2 + + col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 82 AS col0 FROM tab0 cor0
----
-82
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 AS col2 FROM tab1, tab0 cor0
----
109
67
80
query I rowsort
SELECT ALL - 78 * col0 FROM tab2
----
-546
-6084
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 * + col0 col2 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ALL col2 - - col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 * col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT + 15 + tab0.col0 AS col0 FROM tab0
----
104
39
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 1 - + col0 * col2 col2 FROM tab0 AS cor0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - - 64 - + cor0.col0 * - 19 * col1 FROM tab2 AS cor0
----
25581
4187
87502
query I rowsort
SELECT DISTINCT - + ( + col2 ) * col1 - 87 FROM tab1 cor0
----
-1335
-1491
-657
onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT ALL col2 + col2 + 25 DIV col0 AS col1 FROM tab2 AS cor0
----
52
57
76
skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL col2 + col2 + 25 / col0 AS col1 FROM tab2 AS cor0
----
52
57
76
query I rowsort
SELECT DISTINCT + - col0 - - col0 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT 90 FROM tab0 cor0
----
90
query I rowsort
SELECT col1 FROM tab2 WHERE - col2 NOT IN ( - col0 * col1 * - tab2.col2 )
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT col2 DIV + tab1.col2 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 / + tab1.col2 col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 / col2 AND col0
----
query I rowsort
SELECT ALL col1 + + col0 * tab1.col2 AS col1 FROM tab1
----
188
3658
7693
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - tab2.col2 >= ( col0 * - col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - col0
----
query I rowsort
SELECT DISTINCT + 29 FROM tab2, tab1, tab2 AS cor0
----
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT ALL col1 DIV col2 - - 35 AS col0 FROM tab1
----
35
35
35
skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL col1 / col2 - - 35 AS col0 FROM tab1
----
35
35
35
query I rowsort
SELECT 61 + col2 FROM tab2
----
87
88
99
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT + tab2.col0 * col0 + - col2 AS col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT ALL - col0 - col2 * + col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT col2 * tab0.col2 + col2 + col1 * tab0.col0 FROM tab0
----
14905
3186
3397
query I rowsort
SELECT + col0 * + col2 + + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col2 + - col2 * + col0 + - col1 FROM tab1 WHERE col1 BETWEEN NULL AND col2 + col1 + col1 * col2
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 * col2 < col0 + + col1
----
7
78
79
query I rowsort
SELECT col1 * col0 AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT - col1 * tab2.col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT tab1.col2 + - col1 * col0 + tab1.col0 AS col0 FROM tab1
----
-21
-519
-864
query I rowsort
SELECT DISTINCT col0 * col1 - col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * col2 )
----
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT + tab0.col0 * col0 * + col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 + col1 )
----
query I rowsort
SELECT ALL col2 * col2 * + col1 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT DISTINCT col1 DIV - col1 + + col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT col1 / - col1 + + col2 FROM tab0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT ALL col0 DIV col1 + col2 col0 FROM tab1
----
102
54
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL col0 / col1 + col2 col0 FROM tab1
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT + tab0.col0 + - col0 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1837
SELECT + tab0.col0 + - col0 / + col1 FROM tab0
----
24
35
89
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( col1 )
----
query I rowsort
SELECT ALL + col1 - - col0 * tab2.col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - 8 + 67 FROM tab0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT - col2 + + 1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1842
SELECT - col2 + + 1 / col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT - 43 DIV - col2 FROM tab0 AS cor0
----
0
1
43
skipif mysql # not compatible
query I rowsort label-1845
SELECT - 43 / - col2 FROM tab0 AS cor0
----
0
1
43
query I rowsort
SELECT ALL + 34 * col1 AS col0 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT - 9 * + col2 FROM tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT + - 56 * col1 AS col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT + 40 * + col0 FROM tab1 AS cor0
----
120
2560
3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + cor0.col0 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1850
SELECT + cor0.col0 / - cor0.col1 AS col0 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT col0 * 79 + 69 * col0 FROM tab0 AS cor0
----
13172
3552
5180
query I rowsort
SELECT ALL cor0.col2 + 47 FROM tab2 AS cor0
----
73
74
85
query I rowsort
SELECT ALL cor0.col1 + - col0 * col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + col0 * - col2 + col2 * col1 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col1 * cor0.col0 + cor0.col0 * col0 * col1 FROM tab2 AS cor0
----
107440
1736
363558
query I rowsort
SELECT - + col1 * col1 - - col2 * col2 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT ALL + col0 * col1 + 87 * + col1 * + 81 AS col2 FROM tab0 cor0
----
608106
649376
686954
query I rowsort
SELECT ALL + col1 * + col0 - - col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col1 * ( cor0.col0 ) * - cor0.col1 + col0 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT DISTINCT col1 + + ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + - col1 * + ( col2 ) * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col0 * col1 + cor0.col0 * col2 AS col0 FROM tab0 cor0
----
-1272
-3360
-801
query I rowsort
SELECT - col1 * + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - ( col0 ) * - col0 + + col1 * 3 AS col0 FROM tab0 AS cor0
----
-318
-7648
-934
query I rowsort
SELECT - ( + col1 ) * col1 + + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - + col2 * 37 + col1 AS col1 FROM tab0 AS cor0
----
-1135
-2943
60
query I rowsort
SELECT - cor0.col0 * + col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 0 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 + - col0 + col1 AS col1 FROM tab0 AS cor0
----
63
84
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT DISTINCT + + col0 * + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + + col0 * + col0 / + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - col1 * - col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
-208
-40950
-83187
query I rowsort
SELECT col2 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1876
SELECT + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1876
SELECT + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 91 + + col0 ) * col1 col1 FROM tab2
----
-2890
-3038
-9971
query I rowsort
SELECT ( col0 ) + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL col1 * + ( + col2 + col2 ) * col0 FROM tab1
----
199680
72960
8424
query I rowsort
SELECT col1 * 52 * + 75 FROM tab2
----
120900
230100
66300
query I rowsort
SELECT - - col2 * col1 - - col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72
query I rowsort
SELECT 39 * + ( cor0.col2 ) FROM tab2 cor0
----
1014
1053
1482
query I rowsort
SELECT col2 + - 77 FROM tab0 AS cor0
----
-44
-76
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT DISTINCT 31 - - tab2.col0 DIV + col1 FROM tab2
----
31
32
35
skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 31 - - tab2.col0 / + col1 FROM tab2
----
31
32
35
query I rowsort
SELECT + ( 15 ) FROM tab1 AS cor0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT - - 82 * - 24 + col2 + - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1871
-1910
-1913
skipif mysql # not compatible
query I rowsort label-1887
SELECT - - 82 * - 24 + col2 + - col1 / - cor0.col1 FROM tab1 AS cor0
----
-1871
-1910
-1913
query I rowsort
SELECT + + ( + col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT col2 + col0 + col2 AS col0 FROM tab0
----
253
37
90
query I rowsort
SELECT - col1 * + tab0.col0 + col1 + col1 AS col2 FROM tab0
----
-1892
-3201
-7917
query I rowsort
SELECT col0 + + col0 - - col2 * - tab1.col0 FROM tab1
----
-156
-3520
-7520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * - tab1.col2 - col0 col2 FROM tab1
----
-168
-3776
-7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT DISTINCT - col0 DIV + col0 + - col2 - col1 FROM tab2
----
-56
-59
-86
skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - col0 / + col0 + - col2 - col1 FROM tab2
----
-56
-59
-86
query I rowsort
SELECT col2 * col0 - + col0 * + col0 * + col1 FROM tab0 AS cor0
----
-118790
-48744
-713513
query I rowsort
SELECT col0 * + col1 - col2 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IN ( cor0.col2 )
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IN ( cor0.col2 )
----
2
5
7
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * col1 + - col1 AND ( col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col1 - col0 )
----
query I rowsort
SELECT - cor0.col0 * - col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT col0 * - col2 * col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL + cor0.col1 * + col2 + col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT DISTINCT col0 + col2 DIV + col1 + cor0.col0 FROM tab2 AS cor0
----
14
156
160
skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT col0 + col2 / + col1 + cor0.col0 FROM tab2 AS cor0
----
14
156
160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - col0 col2 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT + col2 * col0 + col1 * + col1 * cor0.col1 - + col1 FROM tab2 cor0
----
207348
29949
7898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + col2 + - col2 * - col0 * col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT ALL + + col2 * - col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + col0 - col0 * col1 FROM tab0
----
-2040
-3360
-8010
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2, tab1 cor3
----
3645 values hashing to 40a052eaf1d698dbf3ba319dc3e245ee
query I rowsort
SELECT - cor1.col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL - col1 + + 36 FROM tab1 cor0
----
10
23
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT DISTINCT - - cor0.col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - - cor0.col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL - col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - - col2 + - 10 FROM tab0 AS cor0
----
-9
23
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT ALL + col1 + cor0.col2 DIV - 15 AS col0 FROM tab0 AS cor0
----
84
86
97
skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + col1 + cor0.col2 / - 15 AS col0 FROM tab0 AS cor0
----
84
86
97
query I rowsort
SELECT DISTINCT + cor0.col1 * 85 + 7 AS col1 FROM tab1 AS cor0
----
1112
2217
857
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 * 44 AS col2 FROM tab0 AS cor0
----
-1089
-1541
-3998
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col2 ) col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + cor0.col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - 21 ) * col0 AS col2 FROM tab2 AS cor0
----
147
1638
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT 58 DIV col1 FROM tab1 cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-1924
SELECT 58 / col1 FROM tab1 cor0
----
2
4
5
query I rowsort
SELECT + + col2 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - cor0.col1 + 24 FROM tab2 AS cor0
----
-35
-7
7
query I rowsort
SELECT ALL + 91 * col0 FROM tab1 AS cor0
----
273
5824
7280
query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * col0 * 26 FROM tab1 AS cor0
----
106496
166400
234
query I rowsort
SELECT ALL ( - 58 ) * - col0 AS col1 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + - col0 * + col0 + ( col1 ) FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT col2 - - cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT cor0.col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + col1 + - 67 + col2 AS col2 FROM tab0
----
106
31
52
query I rowsort
SELECT DISTINCT - 69 + cor0.col1 FROM tab1 AS cor0
----
-43
-56
-59
query I rowsort
SELECT col2 + col0 * ( tab1.col1 ) AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT col0 * - 49 FROM tab0 AS cor0
----
-1176
-1715
-4361
onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT col0 DIV ( 66 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1938
SELECT col0 / ( 66 ) FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + - col2 * - ( col1 + col0 ) AS col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT + - cor0.col2 * + cor0.col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - tab0.col1 + col0 * - col2 FROM tab0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT 41 + col1 + - col1 DIV col0 FROM tab1
----
51
54
59
skipif mysql # not compatible
query I rowsort label-1942
SELECT 41 + col1 + - col1 / col0 FROM tab1
----
51
54
59
query I rowsort
SELECT - 52 + + col0 * tab0.col2 AS col2 FROM tab0
----
-17
7246
740
query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + ( ( + col2 ) ) FROM tab2
----
2054
216
3040
query I rowsort
SELECT + + cor0.col1 + 79 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT + cor0.col1 + + 15 AS col0 FROM tab1 AS cor0
----
25
28
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 50 col1 FROM tab0 AS cor0
----
-36
-41
-47
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 47 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - 17 + - col1 * + col0 FROM tab1 AS cor0
----
-1057
-657
-95
query I rowsort
SELECT col1 + col2 * - col0 AS col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - col1 + - 29 * + col0 AS col1 FROM tab1
----
-113
-1866
-2333
onlyif mysql # use DIV operator for integer division
query I rowsort label-1953
SELECT ALL - col2 + col2 DIV ( col1 ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - col2 + col2 / ( col1 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col0 - - col0 * ( - 13 ) AS col1 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT + col2 * + col1 + - ( col1 ) * col1 FROM tab0 AS cor0
----
-4558
-819
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT - ( + cor0.col2 ) DIV - col1 + + col2 col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1956
SELECT - ( + cor0.col2 ) / - col1 + + col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT cor0.col0 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT + 56 + cor0.col0 * ( 93 ) DIV + col2 FROM tab0 AS cor0
----
123
156
3311
skipif mysql # not compatible
query I rowsort label-1958
SELECT + 56 + cor0.col0 * ( 93 ) / + col2 FROM tab0 AS cor0
----
123
156
3311
query I rowsort
SELECT - 7 * + col0 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT DISTINCT - 19 FROM tab1, tab2 cor0
----
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1961
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col0 * + col0 - + col1 AS col2 FROM tab1
----
-17
4086
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 49 * col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 49 * col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - col0 * + ( + col0 ) + + 28 FROM tab0 AS cor0
----
-1197
-548
-7893
query I rowsort
SELECT + ( - 89 ) FROM tab0 AS cor0
----
-89
-89
-89
query I rowsort
SELECT - col2 * col2 + 1 + col2 AS col1 FROM tab2 AS cor0
----
-1405
-649
-701
onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT ALL + + col2 * cor0.col2 DIV + col1 AS col0 FROM tab2 cor0
----
11
23
84
skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + + col2 * cor0.col2 / + col1 AS col0 FROM tab2 cor0
----
11
23
84
query I rowsort
SELECT + col1 + col0 * 43 FROM tab1 AS cor0
----
155
2762
3453
query I rowsort
SELECT ALL ( col1 ) + 9 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
130
260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + + col1 col1 FROM tab1 AS cor0
----
102
115
99
query I rowsort
SELECT ALL cor0.col2 + col2 * col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL ( - col0 ) * col0 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87
query I rowsort
SELECT + - ( col2 ) * ( col2 * col0 ) AS col2 FROM tab1 cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + cor0.col2 * - col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab0 AS cor0
----
73
query I rowsort
SELECT ALL + ( col0 ) - + col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT 42 AS col1 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT - + col1 * - col0 + + 78 FROM tab1 AS cor0
----
1118
156
718
query I rowsort
SELECT - col2 * + tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1981
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1981
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + + 76 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + cor0.col2 + - ( 63 ) * - col0 AS col0 FROM tab0 AS cor0
----
1545
2206
5689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1985
SELECT ALL - col1 - CAST( col1 AS SIGNED ) * + col2 col0 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - col1 - CAST ( col1 AS INTEGER ) * + col2 col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - col2 + - col0 + + 77 * - col1 AS col1 FROM tab1 AS cor0
----
-1177
-2059
-891
query I rowsort
SELECT DISTINCT + - col1 * - ( col1 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1988
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT - + 77 * + cor0.col0 FROM tab1 cor0
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col1 * ( + 8 ) AS col2 FROM tab2 cor0
----
297
6377
6556
query I rowsort
SELECT DISTINCT - 26 - - col0 AS col2 FROM tab2 AS cor0
----
-19
52
53
query I rowsort
SELECT ALL + + col2 - - ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 * + 3 AS col0 FROM tab2 AS cor0
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL - + col2 + col1 * col2 DIV + ( col0 ) AS col1 FROM tab1 AS cor0
----
-49
-81
414
skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - + col2 + col1 * col2 / + ( col0 ) AS col1 FROM tab1 AS cor0
----
-49
-81
414
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL - col1 DIV 80 + + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - col1 / 80 + + col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT + 23 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT ALL - - col2 + 71 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT + 23 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2001
SELECT - ( - cor1.col1 ) * CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2001
SELECT - ( - cor1.col1 ) * CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + tab2.col0 + + col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 * tab0.col2 - col0 AS col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col1 + 37 * col1 FROM tab0
----
3268
3458
3686
query I rowsort
SELECT ALL + 14 * col1 + - col1 AS col2 FROM tab0
----
1118
1183
1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT ALL ( col1 ) DIV + col0 + col2 FROM tab2
----
26
31
38
skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL ( col1 ) / + col0 + col2 FROM tab2
----
26
31
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT - 69 * col1 DIV col0 AS col0 FROM tab0
----
-191
-247
-70
skipif mysql # not compatible
query I rowsort label-2007
SELECT - 69 * col1 / col0 AS col0 FROM tab0
----
-191
-247
-70
query I rowsort
SELECT - col0 * + col0 + col1 + + ( + 49 ) FROM tab0
----
-1079
-441
-7781
query I rowsort
SELECT + ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - 79 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT col2 * - col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + - col1 * col1 + - col1 * col0 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - col2 * + col1 + 37 * + col2 FROM tab1
----
1539
2304
594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - ( 72 ) * col0 col0 FROM tab1
----
-138
-3968
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT DISTINCT - - col1 DIV 58 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - - col1 / 58 FROM tab2 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2019
SELECT tab0.col1 + + CAST( NULL AS SIGNED ) * col0 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2019
SELECT tab0.col1 + + CAST ( NULL AS INTEGER ) * col0 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 * - cor0.col1 + 70 FROM tab2 AS cor0
----
-1273
-147
-4532
query I rowsort
SELECT ALL + col1 + + 69 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT + col1 + col1 + + tab2.col1 AS col0 FROM tab2
----
177
51
93
query I rowsort
SELECT ALL - 5 + col0 + col2 * col1 FROM tab0
----
127
2857
7546
query I rowsort
SELECT ALL + ( - 56 ) + + col0 AS col1 FROM tab0 cor0
----
-21
-32
33
query I rowsort
SELECT ALL cor0.col1 + col0 * - 38 FROM tab0 AS cor0
----
-1233
-3291
-826
query I rowsort
SELECT + - col2 * cor0.col1 + + col0 * + 26 * - col0 AS col2 FROM tab1 AS cor0
----
-107066
-1638
-167648
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT ALL tab0.col1 * + col0 + + tab0.col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col0 * - col2 + 91 FROM tab2
----
-1937
-2911
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT DISTINCT + - cor0.col2 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT + - cor0.col2 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 * + cor0.col2 * col1 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - col2 * - ( 62 ) * - col2 FROM tab1 AS cor0
----
-180792
-201438
-571392
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT DISTINCT + col1 + - CAST( + col2 AS SIGNED ) * cor0.col1 col2 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT + col1 + - CAST ( + col2 AS INTEGER ) * cor0.col1 col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT cor0.col2 - 95 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1139
-2416
-893
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT ALL - - CAST( NULL AS SIGNED ) / + 60 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 60 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col0 * - col2 + ( cor0.col0 ) * col2 * - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-14507
-2135
-49080
query I rowsort
SELECT ALL ( + 52 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2808
-2964
-4992
query I rowsort
SELECT DISTINCT - - 47 * col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT + - 80 AS col1 FROM tab1 cor0
----
-80
-80
-80
query I rowsort
SELECT ALL col1 * 17 + cor0.col1 FROM tab0 cor0
----
1548
1638
1746
query I rowsort
SELECT + col1 + cor0.col1 + col0 * ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
233492
538
614426
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT + 41 DIV + 86 + col0 * + ( - cor0.col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-2044
SELECT + 41 / + 86 + col0 * + ( - cor0.col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + 88 * col1 FROM tab0 cor0
----
7568
8008
8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT DISTINCT + + ( col0 ) DIV - cor0.col0 col1 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + + ( col0 ) / - cor0.col0 col1 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + + col1 col2 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT + - 41 - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
1184
535
7880
query I rowsort
SELECT - ( + col1 ) + col0 * cor0.col2 + ( + col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
14067
145
7734
query I rowsort
SELECT col1 + ( - col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 57 - 24 AS col1 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT - col1 - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT tab2.col1 + - ( + col1 ) * + 19 + - col0 AS col0 FROM tab2
----
-1140
-385
-565
onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT - col1 + - col2 DIV + col2 - col0 FROM tab0 AS cor0
----
-111
-133
-181
skipif mysql # not compatible
query I rowsort label-2056
SELECT - col1 + - col2 / + col2 - col0 FROM tab0 AS cor0
----
-111
-133
-181
query I rowsort
SELECT - col2 * col1 * col0 + - ( cor0.col2 ) FROM tab1 cor0
----
-36537
-4266
-99936
onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT - 51 DIV 48 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2058
SELECT - 51 / 48 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + tab2.col0 col2 FROM tab2
----
609
6786
6873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT - 10 DIV - col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2061
SELECT - 10 / - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT 97 * col2 AS col1 FROM tab0
----
3201
7954
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT col2 DIV ( + col2 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2063
SELECT col2 / ( + col2 ) FROM tab0
----
1
1
1
query I rowsort
SELECT col2 * ( + 58 ) FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT 59 + col2 AS col1 FROM tab0
----
141
60
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * - col0 col2 FROM tab0
----
-1068
-288
-420
query I rowsort
SELECT DISTINCT 86 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
86
query I rowsort
SELECT + col0 + - 5 AS col0 FROM tab1
----
-2
59
75
query I rowsort
SELECT ALL - - col2 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - + col0 * col2 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab0
----
-98
query I rowsort
SELECT ALL 51 * col0 AS col2 FROM tab1
----
153
3264
4080
query I rowsort
SELECT 56 FROM tab0, tab1, tab0 cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT + 80 * col0 + tab1.col1 FROM tab1
----
266
5130
6413
query I rowsort
SELECT DISTINCT 62 * + col0 FROM tab1
----
186
3968
4960
query I rowsort
SELECT - + col1 * col2 * 12 AS col1 FROM tab2 AS cor0
----
-10044
-18408
-7752
query I rowsort
SELECT - col0 + 7 * col2 FROM tab1 AS cor0
----
335
375
592
query I rowsort
SELECT col0 * + col0 + + 19 + - col0 * col2 FROM tab0 AS cor0
----
-197
1209
642
query I rowsort
SELECT ALL col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col2 + ( col2 ) * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 + - col0 * + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT col2 - 92 AS col0 FROM tab2 AS cor0
----
-54
-65
-66
query I rowsort
SELECT + col0 * 33 - 90 * col0 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT ALL - col0 * + 20 AS col2 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT - + col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - col1 * 46 + + col0 AS col1 FROM tab1 AS cor0
----
-1193
-396
-518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 33 + 23 + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1169
-5192
536
query I rowsort
SELECT + ( 59 ) FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT col2 * 39 * cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
1366
284704
30921
query I rowsort
SELECT 30 + cor0.col2 FROM tab1 cor0
----
126
84
87
query I rowsort
SELECT - cor1.col1 + - 87 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620dff5820a669fbfdef113295c09284
query I rowsort
SELECT ALL + 82 + col2 + col0 AS col1 FROM tab1
----
139
203
258
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT + CAST( col1 AS SIGNED ) * col2 DIV 16 AS col0 FROM tab0 AS cor0
----
177
466
6
skipif mysql # not compatible
query I rowsort label-2094
SELECT + CAST ( col1 AS INTEGER ) * col2 / 16 AS col0 FROM tab0 AS cor0
----
177
466
6
query I rowsort
SELECT col2 * - 18 FROM tab1 cor0
----
-1026
-1728
-972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 77 + col0 col0 FROM tab2 AS cor0
----
111
181
194
query I rowsort
SELECT ALL + col0 + + col0 * + col2 * col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT + + col0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( tab0.col2 ) ) col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - 52 FROM tab0, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT DISTINCT - + col1 * + col1 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - + col1 * + col1 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + + col2 + col1 * + 93 FROM tab0 AS cor0
----
8031
8545
9022
query I rowsort
SELECT ALL - col2 * col2 + - col2 - - 13 * col2 FROM tab1 AS cor0
----
-2268
-2565
-8064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - ( col0 ) * 59 + col0 + - col2 FROM tab0 AS cor0
----
-1425
-2031
-5244
query I rowsort
SELECT ALL + 50 * - col1 AS col1 FROM tab1 AS cor0
----
-1300
-500
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL - col0 DIV col0 + - ( - cor0.col1 + + col2 ) FROM tab2 AS cor0
----
-22
3
32
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - col0 / col0 + - ( - cor0.col1 + + col2 ) FROM tab2 AS cor0
----
-22
3
32
query I rowsort
SELECT ALL + 18 + cor0.col2 * + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f85e7300df7f2a344aa6ebe84682bc12
query I rowsort
SELECT col0 + 35 AS col1 FROM tab1
----
115
38
99
query I rowsort
SELECT DISTINCT - + ( + col0 ) + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - col0 * col2 * - col1 + - col1 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + - col0 - + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - 6 + + col1 - 86 AS col0 FROM tab0 cor0
----
-1
-6
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT - - 28 / + ( + cor1.col1 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2114
SELECT - - 28 / + ( + cor1.col1 ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - ( 0 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col2 * col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 82 FROM tab1, tab1 cor0
----
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT ALL - col1 * CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - col1 * CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 14 + col2 * + col1 * - col1 FROM tab2 AS cor0
----
-10996
-25961
-90520
query I rowsort
SELECT DISTINCT 99 + + col2 AS col2 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT ALL + 74 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1
query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2124
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * - col0 + + ( + col2 + - col0 ) AS col0 FROM tab1
----
-1024
-27
-647
query I rowsort
SELECT + col2 + + col0 + + col2 FROM tab2
----
130
155
61
query I rowsort
SELECT - col2 * - ( + ( col0 ) + col0 ) AS col0 FROM tab1
----
15360
324
7296
query I rowsort
SELECT + col2 * 79 + + tab0.col2 * col2 + 40 FROM tab0
----
120
13242
3736
query I rowsort
SELECT DISTINCT - ( + col1 * - col0 ) + - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT - 11 + - col1 FROM tab2
----
-28
-42
-70
query I rowsort
SELECT tab0.col0 + 43 AS col2 FROM tab0
----
132
67
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - col1 - tab0.col1 AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + ( 3 ) + + col1 AS col1 FROM tab1
----
13
16
29
query I rowsort
SELECT col2 * + col1 * + col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + 13 AS col1 FROM tab0 AS cor0
----
13
13
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2137
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * + cor0.col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * + cor0.col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 3 + col0 * col0 col1 FROM tab2 AS cor0
----
28
5850
6004
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 - + col1 * + col0 ) BETWEEN + col1 * - tab0.col2 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT + col0 * col2 DIV col1 + + col2 AS col1 FROM tab2
----
214
33
60
skipif mysql # not compatible
query I rowsort label-2140
SELECT + col0 * col2 / col1 + + col2 AS col1 FROM tab2
----
214
33
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT ALL col0 DIV + tab2.col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL col0 / + tab2.col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT + col1 * - col2 FROM tab0 WHERE - col0 < col0 - + col2
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * - col0 FROM tab0 WHERE NOT NULL NOT IN ( + tab0.col1 )
----
query I rowsort
SELECT - col2 + col0 * + col1 * - tab0.col1 AS col2 FROM tab0
----
-177537
-329316
-737091
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * col0 - col0 * col0 ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col0 + tab1.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT DISTINCT tab0.col1 DIV + col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT tab0.col1 / + col0 AS col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * - col2 col1 FROM tab1
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab0.col2 col1 FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col1 )
----
query I rowsort
SELECT DISTINCT + col0 - + col0 AS col2 FROM tab2
----
0
query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL IN ( + col2 + col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col1 * col1 * + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT DISTINCT - col0 * col2 DIV col1 FROM tab0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - col0 * col2 / col1 FROM tab0
----
-80
-9
0
query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 - col1 * - col2 FROM tab2
----
-3146
-776
613
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT ALL col0 DIV - col1 AS col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL col0 / - col1 AS col2 FROM tab1
----
-6
-6
0
query I rowsort
SELECT ALL + col2 * - col2 + - col0 * col1 AS col0 FROM tab2
----
-2787
-5278
-946
query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN NULL AND col2
----
query I rowsort
SELECT ALL col1 - + col0 * col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col1 * - col0 * col0 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col0 * + col1 - col0 FROM tab0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT DISTINCT + col2 DIV - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + col2 / - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col0 * - col1 + - col0 AS col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col0 * + tab2.col1 - + col1 AS col2 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + tab1.col0 * - col2 + - col2 * col2 * col2 FROM tab1
----
-157626
-188841
-892416
query I rowsort
SELECT col1 * col0 FROM tab2 WHERE NOT NULL IN ( col0 * - tab2.col2 * tab2.col0 + col0 * + tab2.col1 )
----
query I rowsort
SELECT DISTINCT - col0 * - tab1.col2 FROM tab1 WHERE ( col1 ) IN ( - col0 * col0 + + col1 )
----
query I rowsort
SELECT ALL tab2.col1 + - col2 / + col0 FROM tab2 WHERE ( NULL ) < col0 * - col0
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) NOT IN ( - tab2.col1 - - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT DISTINCT + col0 DIV - col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + col0 / - col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * col1 + + col1 * + col1 - col0 AS col0 FROM tab1 cor0
----
-604
-951
595
query I rowsort
SELECT ALL col0 + cor0.col0 - col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT ALL - col1 * ( col1 * col0 ) FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT col0 * + col0 * col0 FROM tab2 AS cor0
----
343
474552
493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 + + cor0.col2 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2
query I rowsort
SELECT + 55 * - col1 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT - 64 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 30 * + col1 col2 FROM tab2 AS cor0
----
1692
431
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT - 77 DIV - 91 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2178
SELECT - 77 / - 91 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( 77 ) AS col1 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL + 60 + col1 AS col2 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT ALL - col0 * - col2 * + col2 FROM tab1
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT 31 DIV + col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2182
SELECT 31 / + col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT - + col2 DIV + col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2183
SELECT - + col2 / + col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT + col1 + ( - col1 ) DIV col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-2184
SELECT + col1 + ( - col1 ) / col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT col0 + - ( + 62 ) * col2 FROM tab1 AS cor0
----
-3345
-3470
-5872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT col0 + - ( ( col2 ) + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2186
SELECT col0 + - ( ( col2 ) + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - ( col0 * + col1 ) FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT col1 * tab1.col0 + + 16 FROM tab1
----
1056
656
94
query I rowsort
SELECT ALL tab2.col2 + 79 FROM tab2, tab0 AS cor0
----
9 values hashing to 188d19e577d242e7173c43bd8e9fd1cc
query I rowsort
SELECT ALL + col2 * ( - col2 ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 17 col1 FROM tab0 AS cor0
----
-18
-7
-72
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
skipif mysql # not compatible
query I rowsort
SELECT col1 * + CAST ( col1 AS REAL ) * - tab1.col2 - col2 / + col1 AS col1 FROM tab1
----
-16231
-36506
-5705
query I rowsort
SELECT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ( + col1 ) + - col1 * + col0 AS col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 + + 32 AS col2 FROM tab2
----
110
111
39
query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0
----
-4
query I rowsort
SELECT - ( tab1.col1 ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2, tab0 cor0
----
22
query I rowsort
SELECT ALL + + 81 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL 99 * col2 AS col0 FROM tab0
----
3267
8118
99
query I rowsort
SELECT ALL 8 AS col1 FROM tab0
----
8
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2204
SELECT - col0 * - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2204
SELECT - col0 * - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - col0 * - col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - 78 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT DISTINCT tab1.col0 + - col1 + 37 FROM tab1
----
104
14
91
query I rowsort
SELECT + col1 + - ( - col2 ) AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + - col2 * - ( + cor0.col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 + - ( + col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT ALL - col0 + 89 DIV 94 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - col0 + 89 / 94 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col2 * + col1 * + col2 col0 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col2 * 99 + - cor0.col1 FROM tab0 cor0
----
-196
-3353
-8209
query I rowsort
SELECT - - col1 + col1 * + ( col1 + - cor0.col0 ) FROM tab2 AS cor0
----
-1037
-1062
775
query I rowsort
SELECT - cor0.col0 + + col1 * 28 AS col0 FROM tab0 AS cor0
----
2384
2459
2681
query I rowsort
SELECT DISTINCT + col2 + col2 + + col0 FROM tab1
----
111
178
272
query I rowsort
SELECT col1 * + col0 + - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT col2 + col0 * - tab2.col0 FROM tab2
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col0 + + col2 * col2 col1 FROM tab2
----
120328
52478
6588
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT - col2 + col2 DIV col0 FROM tab2
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-2223
SELECT - col2 + col2 / col0 FROM tab2
----
-24
-26
-38
query I rowsort
SELECT DISTINCT col1 * - col1 + col1 * - col2 FROM tab1
----
-1417
-2080
-670
query I rowsort
SELECT col2 * + col0 + col0 * tab2.col2 FROM tab2
----
378
4056
6004
query I rowsort
SELECT - tab2.col2 + - col2 AS col0 FROM tab2
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 * col0 * - col1 + - col0 + + col1 * col0 FROM tab2 AS cor0
----
124176
52298
6069
query I rowsort
SELECT cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT col2 + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT col2 + col1 / + col2 AS col0 FROM tab0 AS cor0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT col2 DIV + col1 + col2 * col1 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2231
SELECT col2 / + col1 + col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + cor0.col0 * col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + cor0.col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col2 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT - col1 DIV col1 - + tab1.col0 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-2237
SELECT - col1 / col1 - + tab1.col0 FROM tab1
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + col0 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT - + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2240
SELECT - + col2 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - + 41 + col0 * col1 AS col2 FROM tab1 AS cor0
----
37
599
999
query I rowsort
SELECT + + cor0.col2 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col1 * + col1 + cor0.col0 * + col2 FROM tab2 AS cor0
----
1150
3291
5509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * - cor0.col1 + col0 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col2 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + ( - col2 ) * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT - col0 DIV - tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2248
SELECT - col0 / - tab2.col0 FROM tab2
----
1
1
1
query I rowsort
SELECT + - 4 + - col2 - - col1 * col0 FROM tab1 AS cor0
----
20
579
940
query I rowsort
SELECT - ( + col0 ) + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 22 + col0 AS col0 FROM tab2 AS cor0
----
-15
56
57
query I rowsort
SELECT DISTINCT - 61 + + col0 FROM tab0 AS cor0
----
-26
-37
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT ALL - + 67 + cor0.col1 + col0 DIV col2 FROM tab1 cor0
----
-41
-54
-56
skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - + 67 + cor0.col1 + col0 / col2 FROM tab1 cor0
----
-41
-54
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT DISTINCT + col2 - + cor0.col2 DIV - cor0.col1 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + col2 - + cor0.col2 / - cor0.col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT ALL - 92 * - col0 + col2 * col0 FROM tab2 AS cor0
----
10270
833
9204
query I rowsort
SELECT DISTINCT - 89 * col2 FROM tab2
----
-2314
-2403
-3382
query I rowsort
SELECT ALL 76 * - col1 FROM tab2 cor0
----
-1292
-2356
-4484
query I rowsort
SELECT ALL + - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT cor0.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 DISTINCT - 23 * col1 + - col0 * col2 + col1 col2 FROM tab0 AS cor0
----
-2169
-2684
-9300
query I rowsort
SELECT + col1 + - col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2888
3202
9133
query I rowsort
SELECT - col2 * col1 + col1 * - col2 + col1 FROM tab2 AS cor0
----
-1275
-1643
-3009
query I rowsort
SELECT + col2 * col0 * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT + col1 * col1 + - col1 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * col1 + - col1 col2 FROM tab0
----
2322
2457
2619
query I rowsort
SELECT 2 * + col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT 84 * + cor0.col2 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT ALL + 53 + col2 AS col1 FROM tab1 AS cor0
----
107
110
149
query I rowsort
SELECT - - 27 * col2 AS col0 FROM tab2 cor0
----
1026
702
729
query I rowsort
SELECT + col2 + col1 * col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL - 46 * col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-2481
-2558
-4336
query I rowsort
SELECT DISTINCT + + col0 * col1 * col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + cor0.col2 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab2, tab1 AS cor0
----
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT 97 + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2276
SELECT 97 + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 27 + - 58 FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT cor1.col0 + + 38 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
116
117
45
query I rowsort
SELECT DISTINCT - col2 + 89 FROM tab1 AS cor0
----
-7
32
35
query I rowsort
SELECT ( 68 ) FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT - 11 * - cor2.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c52af63b649c2609d2fcb478b130dfb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 + + col1 col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + + ( + col1 ) + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col1 + 50 AS col0 FROM tab1
----
60
63
76
query I rowsort
SELECT DISTINCT 76 FROM tab1, tab0 AS cor0
----
76
query I rowsort
SELECT + ( + ( - col2 ) ) + + ( col0 ) * - tab0.col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + + 67 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-15
34
66
query I rowsort
SELECT + col2 + + 1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
86
91
97
query I rowsort
SELECT ALL 46 * col1 FROM tab1
----
1196
460
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT + 35 DIV col0 + + col2 FROM tab1
----
57
65
96
skipif mysql # not compatible
query I rowsort label-2292
SELECT + 35 / col0 + + col2 FROM tab1
----
57
65
96
query I rowsort
SELECT + col2 + tab0.col2 * + 82 AS col0 FROM tab0
----
2739
6806
83
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 7 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT + 88 + col1 AS col2 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT + 76 AS col1 FROM tab1 cor0
----
76
76
76
query I rowsort
SELECT + cor0.col1 * - col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT col1 * col0 * + tab2.col2 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + col0 + - 98 FROM tab0
----
-63
-74
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2301
SELECT tab1.col0 + CAST( - col2 AS SIGNED ) * - col1 + + 81 * tab1.col2 AS col1 FROM tab1
----
5251
5781
9104
skipif mysql # not compatible
query I rowsort label-2301
SELECT tab1.col0 + CAST ( - col2 AS INTEGER ) * - col1 + + 81 * tab1.col2 AS col1 FROM tab1
----
5251
5781
9104
query I rowsort
SELECT DISTINCT - ( + 32 ) FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
-32
query I rowsort
SELECT DISTINCT - - col2 + + col1 * 87 * cor0.col2 AS col2 FROM tab2 AS cor0
----
133484
56240
72846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - 90 col0 FROM tab2 AS cor0
----
2340
2430
3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT + col2 * col2 - + col2 DIV + col1 AS col0 FROM tab1 cor0
----
2914
3244
9209
skipif mysql # not compatible
query I rowsort label-2305
SELECT + col2 * col2 - + col2 / + col1 AS col0 FROM tab1 cor0
----
2914
3244
9209
query I rowsort
SELECT + + 49 + col1 * - col2 FROM tab2 AS cor0
----
-1485
-597
-788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2307
SELECT CAST( 47 AS SIGNED ) col2 FROM tab2 AS cor0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2307
SELECT CAST ( 47 AS INTEGER ) col2 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT - col1 * col0 * col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
-12272
-5830
-624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT ALL CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - col1 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT 46 * - col2 + cor0.col0 FROM tab1 cor0
----
-2481
-2558
-4336
query I rowsort
SELECT col2 * + 68 * tab2.col0 AS col1 FROM tab2
----
12852
137904
204136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2313
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2313
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 * - col2 * col0 + col1 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT - + col1 + - 62 AS col2 FROM tab0 AS cor0
----
-148
-153
-159
query I rowsort
SELECT - col2 + 68 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
3644
3829
6445
query I rowsort
SELECT ( + 25 ) + col2 * - col1 + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT + 83 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT DISTINCT 72 * 94 AS col2 FROM tab2, tab0 AS cor0
----
6768
query I rowsort
SELECT ALL - col1 + + 94 AS col1 FROM tab0 AS cor0
----
-3
3
8
query I rowsort
SELECT ALL - cor0.col2 * - ( 56 ) + - col2 * ( - 12 ) FROM tab1 AS cor0
----
3672
3876
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-2322
SELECT - cor0.col0 DIV ( + 58 ) FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2322
SELECT - cor0.col0 / ( + 58 ) FROM tab1 cor0
----
-1
-1
0
query I rowsort
SELECT cor2.col0 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - col2 + + col0 * 25 AS col1 FROM tab2 cor0
----
148
1924
1937
query I rowsort
SELECT DISTINCT + col0 * - col2 + 91 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-668
-7125
57
query I rowsort
SELECT DISTINCT col1 + - col2 * + col2 AS col1 FROM tab2 cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 * - CAST ( 35 AS REAL ) + col0 col2 FROM tab0 cor0
----
1260
3204
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2328
SELECT + - CAST( + col2 AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2328
SELECT + - CAST ( + col2 AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) + + col1 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - + col0 + 10 * col0 AS col1 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT ALL - ( + 10 ) * col1 FROM tab1 AS cor0
----
-100
-130
-260
onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ALL 4 DIV - col1 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL 4 / - col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 - ( 2 ) AS col1 FROM tab1
----
11
24
8
query I rowsort
SELECT + col1 * tab1.col1 + 74 AS col0 FROM tab1
----
174
243
750
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab0.col2 + 24 col0 FROM tab0
----
122
143
197
query I rowsort
SELECT DISTINCT col0 + - tab0.col0 * col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 - col1 * - col0 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab0, tab1 AS cor0
----
87
query I rowsort
SELECT + 76 - - col1 FROM tab1 AS cor0
----
102
86
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT + + col0 + col1 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2340
SELECT + + col0 + col1 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT DISTINCT + col2 DIV col1 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + col2 / col1 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT + - col1 DIV col2 + col2 col2 FROM tab0 AS cor0
----
-96
31
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2342
SELECT + - col1 / col2 + col2 col2 FROM tab0 AS cor0
----
-96
31
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2343
SELECT DISTINCT 31 * + col1 * - CAST( NULL AS DECIMAL ) - 29 * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT 31 * + col1 * - CAST ( NULL AS REAL ) - 29 * + col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + 47 col2 FROM tab2 cor0
----
-12
16
30
query I rowsort
SELECT - 65 * tab1.col2 AS col0 FROM tab1
----
-3510
-3705
-6240
query I rowsort
SELECT DISTINCT tab2.col1 * + ( - col0 + 15 ) * col1 AS col1 FROM tab2
----
-18496
-219303
7688
query I rowsort
SELECT 21 * - col1 + + tab1.col1 AS col2 FROM tab1
----
-200
-260
-520
query I rowsort
SELECT + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * - col0 - - col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + col0 * + col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT + 85 + col1 FROM tab1 AS cor0
----
111
95
98
query I rowsort
SELECT + 54 * col0 * col2 AS col0 FROM tab0 AS cor0
----
1890
394092
42768
query I rowsort
SELECT + ( + col0 ) + + 46 AS col0 FROM tab0 cor0
----
135
70
81
query I rowsort
SELECT + 20 * + col1 * 54 FROM tab1 AS cor0
----
10800
14040
28080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2355
SELECT DISTINCT - col0 * + tab2.col0 * - CAST( + 1 AS SIGNED ) + - col1 - 73 AS col1 FROM tab2
----
-55
5952
6151
skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT - col0 * + tab2.col0 * - CAST ( + 1 AS INTEGER ) + - col1 - 73 AS col1 FROM tab2
----
-55
5952
6151
query I rowsort
SELECT ALL + 85 * - col1 + col2 * col2 - col2 * - 61 FROM tab0
----
-4208
-8183
3991
onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT DISTINCT - col0 DIV - 83 + + col1 DIV - col0 + + col1 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - col0 / - 83 + + col1 / - col0 + + col1 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT ALL - - cor0.col2 - ( - 74 ) * col2 * + col1 AS col1 FROM tab2 AS cor0
----
113542
47842
61965
query I rowsort
SELECT cor0.col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col1 + + col0 + 29 * + col1 FROM tab0
----
2604
2819
2945
onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT ALL + col1 - tab1.col1 DIV 69 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + col1 - tab1.col1 / 69 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT 68 * col1 AS col0 FROM tab2
----
1156
2108
4012
query I rowsort
SELECT - cor0.col2 * 42 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b5c65be4eb3a857f9dc00223508cc62
query I rowsort
SELECT - col2 * - col0 - + 1 FROM tab1 AS cor0
----
161
3647
7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT ALL + col1 * - col0 + + 34 * + col2 + + col0 DIV + col0 FROM tab2
----
-3717
-50
702
skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + col1 * - col0 + + 34 * + col2 + + col0 / + col0 FROM tab2
----
-3717
-50
702
query I rowsort
SELECT DISTINCT - col0 + - 98 FROM tab0 AS cor0
----
-122
-133
-187
query I rowsort
SELECT - col1 * - 11 FROM tab2 cor0
----
187
341
649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 10 - col1 col1 FROM tab0 AS cor0
----
154
253
799
query I rowsort
SELECT - col1 + ( 69 * col0 ) FROM tab0 AS cor0
----
1570
2318
6050
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT ALL + + ( + cor1.col1 ) * - 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7bc6d89ade4de51eb078005606e6352e
query I rowsort
SELECT DISTINCT + col2 + 65 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-5557
-5833
-6304
query I rowsort
SELECT DISTINCT + col2 * col0 - 77 AS col2 FROM tab0 AS cor0
----
-42
715
7221
query I rowsort
SELECT ALL - col2 + - col0 * 92 FROM tab2 AS cor0
----
-671
-7202
-7306
query I rowsort
SELECT DISTINCT + - col0 * - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT cor0.col0 * cor0.col0 + 26 * - cor0.col1 * + col1 FROM tab2 AS cor0
----
-1273
-24937
-84422
onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT DISTINCT + col2 DIV 43 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + col2 / 43 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT - cor0.col1 + cor0.col0 * 94 + col2 AS col1 FROM tab2 AS cor0
----
654
7299
7447
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - 32 + col2 col1 FROM tab2
----
-2266
-2277
-2278
query I rowsort
SELECT ALL + ( col2 ) * col1 AS col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 + - col0 col2 FROM tab2 AS cor0
----
11
12
83
query I rowsort
SELECT ALL - + col0 * + col2 + col1 * - 27 AS col2 FROM tab1 AS cor0
----
-3918
-8031
-864
query I rowsort
SELECT ALL + - 38 * - col1 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT ALL + ( col1 ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - cor0.col2 * - 85 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT ALL ( 7 ) DIV + col1 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL ( 7 ) / + col1 AS col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 67 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + col1 + - col0 * + col1 FROM tab0 cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab1.col2 ) col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT ALL + - ( cor0.col2 ) DIV - 69 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + - ( cor0.col2 ) / - 69 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( - 11 ) col2 FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT + col1 * - 15 AS col2 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT ALL + 45 FROM tab1, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * + col1 col1 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT ( - 88 ) * cor0.col1 * - 33 AS col2 FROM tab0 AS cor0
----
249744
264264
281688
query I rowsort
SELECT DISTINCT - 45 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2793
52
7417
onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT ALL + col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 * - col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - cor0.col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT 18 + col0 FROM tab2 cor0
----
25
96
97
query I rowsort
SELECT DISTINCT - - col2 + col0 * 90 AS col1 FROM tab2 AS cor0
----
657
7046
7148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * - cor0.col1 + 73 col0 FROM tab2 AS cor0
----
-1270
-144
-4529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 * col1 col0 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT DISTINCT + 85 + col1 * 6 + col2 AS col2 FROM tab2 AS cor0
----
225
298
465
query I rowsort
SELECT ALL - 40 AS col0 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + 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 + col1 + ( + col2 ) * + col1 col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL 18 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + col0 + + cor0.col2 col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT - cor0.col0 * - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2417
SELECT - cor0.col0 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * col0 + col1 - + col1 * 43 * col2 AS col2 FROM tab1 cor0
----
-20404
-47251
-60337
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2419
SELECT + - col0 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-2419
SELECT + - col0 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT DISTINCT - col0 * - cor0.col1 * col1 + + cor0.col2 DIV - col2 - + col1 FROM tab1 AS cor0
----
13506
2001
6389
skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - col0 * - cor0.col1 * col1 + + cor0.col2 / - col2 - + col1 FROM tab1 AS cor0
----
13506
2001
6389
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT ALL ( col1 ) + - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 + + col0 * col1 AS col2 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT + 61 + - col2 * col1 FROM tab2 AS cor0
----
-1473
-585
-776
query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT col1 * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT col2 * col1 + 49 FROM tab1
----
1297
1453
619
query I rowsort
SELECT + col2 * col0 + col0 * col1 FROM tab1
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT ( - col0 * + tab0.col2 ) AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT + col1 * + tab1.col2 DIV - col2 col2 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2431
SELECT + col1 * + tab1.col2 / - col2 col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + 38 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT - col1 * tab2.col0 DIV 44 AS col2 FROM tab2
----
-104
-30
-4
skipif mysql # not compatible
query I rowsort label-2433
SELECT - col1 * tab2.col0 / 44 AS col2 FROM tab2
----
-104
-30
-4
query I rowsort
SELECT - 95 + + col2 * 19 FROM tab1 AS cor0
----
1729
931
988
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 45 + tab1.col2 * col2 + col2 FROM tab1
----
3015
3351
9357
onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT + col0 DIV ( + col2 ) AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2437
SELECT + col0 / ( + col2 ) AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT col2 + - cor0.col0 * - col0 + col2 FROM tab0 AS cor0
----
1227
642
8085
query I rowsort
SELECT DISTINCT ( 91 ) * - cor0.col1 * col1 AS col0 FROM tab0 cor0
----
-673036
-753571
-856219
query I rowsort
SELECT - col0 + + 26 + - col2 AS col2 FROM tab1 AS cor0
----
-150
-31
-95
query I rowsort
SELECT col0 + col0 + col2 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col1 * + col2 - col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT + - col1 + col2 * col1 + - cor0.col0 FROM tab1 AS cor0
----
1155
1375
496
query I rowsort
SELECT + 6 + cor0.col0 FROM tab0 AS cor0
----
30
41
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT DISTINCT - 75 * col1 + col2 DIV 92 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275
skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - 75 * col1 + col2 / 92 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT 49 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT - col0 + col0 * + col2 + - col2 FROM tab0 AS cor0
----
-1
7127
735
query I rowsort
SELECT - 68 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT ALL col1 * - 87 FROM tab1
----
-1131
-2262
-870
query I rowsort
SELECT ALL + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col0 + col2 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2007
-3359
-7928
query I rowsort
SELECT + col2 * + col1 * - 56 FROM tab2 AS cor0
----
-36176
-46872
-85904
onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT col2 DIV CAST( col2 + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-2455
SELECT col2 / CAST ( col2 + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-9
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT col2 * CAST( NULL AS SIGNED ) * + 97 + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2456
SELECT col2 * CAST ( NULL AS INTEGER ) * + 97 + col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT ALL + - cor0.col1 DIV + ( - col1 ) FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + - cor0.col1 / + ( - col1 ) FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT ALL col0 DIV - col0 + cor0.col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL col0 / - col0 + cor0.col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ALL - col0 * + 76 * + col0 - col0 FROM tab1 AS cor0
----
-311360
-486480
-687
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT DISTINCT - col2 DIV + ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - col2 / + ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT - + col1 + - ( 7 ) * col1 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT ALL + - col2 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + + 33 * cor0.col1 FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT - 43 * col1 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT ALL + col0 * + 81 AS col1 FROM tab2 cor0
----
567
6318
6399
query I rowsort
SELECT DISTINCT - col0 * col1 * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 12 + + 98 AS col1 FROM tab0 AS cor0
----
110
110
110
query I rowsort
SELECT DISTINCT - - ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2469
SELECT DISTINCT + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82
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 - + 95 + - col2 AS col1 FROM tab0 AS cor0
----
-128
-177
-96
query I rowsort
SELECT DISTINCT col2 + ( col1 ) * ( + 8 ) FROM tab2 AS cor0
----
174
275
498
query I rowsort
SELECT - col1 * col0 - + col1 AS col0 FROM tab2
----
-1360
-248
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2474
SELECT - col1 + - CAST( 27 AS SIGNED ) * col2 FROM tab0
----
-124
-2305
-977
skipif mysql # not compatible
query I rowsort label-2474
SELECT - col1 + - CAST ( 27 AS INTEGER ) * col2 FROM tab0
----
-124
-2305
-977
query I rowsort
SELECT col2 * + 72 - + tab0.col0 FROM tab0
----
2352
37
5815
query I rowsort
SELECT ALL 74 + col1 FROM tab2 AS cor0
----
105
133
91
query I rowsort
SELECT + col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL col1 - + 50 FROM tab2 AS cor0
----
-19
-33
9
query I rowsort
SELECT ALL - 12 + 50 AS col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT + - col0 * col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + 9 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL col2 + - col0 * + col0 + col2 AS col2 FROM tab2
----
-6032
-6165
5
query I rowsort
SELECT + 67 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + + ( col1 ) - - col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - ( - tab0.col2 + tab0.col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ( - tab1.col0 + col1 * - col2 ) AS col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL cor0.col1 + ( + col0 ) * cor0.col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2488
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) 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-2488
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * + 18 AS col0 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT DISTINCT - col1 * - col0 * col0 + + col2 * col1 FROM tab0 AS cor0
----
118922
52374
728273
onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT ALL - - col1 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - - col1 / ( col0 ) FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + + tab0.col0 * - col0 * + col0 col1 FROM tab0
----
-15888
-46270
-713068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2493
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col2 - - col0 * - ( col0 ) AS col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT ALL 72 + col1 * + col0 FROM tab2
----
1415
289
4674
query I rowsort
SELECT ALL cor0.col2 * + col1 + cor0.col2 * col0 - - 50 FROM tab2 AS cor0
----
1076
3612
3698
query I rowsort
SELECT DISTINCT + col1 + + 47 * + col1 FROM tab0 cor0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT - - cor0.col0 - + col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + + col2 + + 6 AS col0 FROM tab1 AS cor0
----
102
60
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 + + ( col0 ) col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * col1 - col2 * col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT DISTINCT col1 + + 85 AS col2 FROM tab1 AS cor0
----
111
95
98
query I rowsort
SELECT + cor1.col1 * - ( 41 ) FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 245588c0f06bec9ab1fff652cc3a8899
query I rowsort
SELECT ALL ( 54 ) + col1 FROM tab0
----
140
145
151
query I rowsort
SELECT - ( + 32 ) FROM tab0
----
-32
-32
-32
query I rowsort
SELECT 35 * col0 FROM tab2
----
245
2730
2765
query I rowsort
SELECT - col1 * + col0 + col2 * col2 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT - + 45 + cor0.col0 FROM tab1 AS cor0
----
-42
19
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT - + col0 * col1 + CAST( 46 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
-3349
-4327
-546
skipif mysql # not compatible
query I rowsort label-2510
SELECT - + col0 * col1 + CAST ( 46 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
-3349
-4327
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT tab1.col1 DIV - tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2511
SELECT tab1.col1 / - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( col1 ) * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + + 17 col1 FROM tab0
----
19
19
19
query I rowsort
SELECT ALL 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL col0 + + col0 * + col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ( + 68 ) * + col0 FROM tab0
----
1632
2380
6052
query I rowsort
SELECT + cor0.col0 + + col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT ALL + + col0 * col1 + CAST( col1 AS SIGNED ) + col2 FROM tab1 cor0
----
1149
158
707
skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + + col0 * col1 + CAST ( col1 AS INTEGER ) + col2 FROM tab1 cor0
----
1149
158
707
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + - col2 - - ( - cor0.col1 + cor0.col2 ) FROM tab1 AS cor0
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * cor0.col1 - + col1 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - - col0 * - col2 + + ( 52 ) FROM tab2 AS cor0
----
-137
-1976
-2950
query I rowsort
SELECT + + col1 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - tab0.col1 * col1 * + 94 + col0 * + 99 + col0 FROM tab0
----
-692824
-769514
-880946
onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT col1 + col2 DIV col0 + - col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2524
SELECT col1 + col2 / col0 + - col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * - col0 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT + col0 DIV col0 col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2526
SELECT + col0 / col0 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col0 + - ( + 23 ) AS col2 FROM tab2 AS cor0
----
-16
55
56
query I rowsort
SELECT ALL - + col2 + 8 * + 73 FROM tab0 cor0
----
502
551
583
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT DISTINCT + cor0.col0 * col2 + col2 DIV + col2 + 24 * col0 FROM tab0 AS cor0
----
1369
876
9435
skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + cor0.col0 * col2 + col2 / + col2 + 24 * col0 FROM tab0 AS cor0
----
1369
876
9435
query I rowsort
SELECT ALL 87 * cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43e812f295563e16ec5f372043a8e684
query I rowsort
SELECT - col2 - + cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + cor0.col2 * + 93 AS col1 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT ( 82 ) AS col1 FROM tab1
----
82
82
82
query I rowsort
SELECT col2 * - col1 + + col1 * col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 - col0 * col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + ( + cor0.col1 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - - CAST ( NULL AS REAL ) + ( + cor0.col1 ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT + - 64 + - col2 DIV col1 FROM tab2 AS cor0
----
-64
-64
-66
skipif mysql # not compatible
query I rowsort label-2537
SELECT + - 64 + - col2 / col1 FROM tab2 AS cor0
----
-64
-64
-66
query I rowsort
SELECT col1 + - 62 AS col1 FROM tab0 AS cor0
----
24
29
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 - + ( - 48 ) col2 FROM tab1
----
112
128
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT - ( - col2 ) * cor0.col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2540
SELECT - ( - col2 ) * cor0.col0 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 42 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT ( 36 ) * col0 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT - col1 * + 78 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT - ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - ( + col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + cor0.col0 * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + 36 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - + col2 * col1 - ( 88 ) AS col2 FROM tab2 AS cor0
----
-1622
-734
-925
query I rowsort
SELECT col0 + - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + 14 * + 51 AS col2 FROM tab0
----
714
query I rowsort
SELECT DISTINCT - col2 * - col2 * 89 FROM tab0 AS cor0
----
598436
89
96921
query I rowsort
SELECT col1 + col1 * cor0.col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 + - col2 * ( - col0 ) FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col2 + ( + cor0.col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT col2 + col0 * col0 AS col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT + + cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2557
SELECT - - 89 DIV - 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2557
SELECT - - 89 / - 99 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ( 66 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
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 - 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT tab0.col0 * tab0.col0 - col2 DIV - 39 FROM tab0
----
1225
576
7923
skipif mysql # not compatible
query I rowsort label-2561
SELECT tab0.col0 * tab0.col0 - col2 / - 39 FROM tab0
----
1225
576
7923
query I rowsort
SELECT + col2 + - col1 + col0 AS col2 FROM tab1
----
111
163
31
query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + col0 * col2 * col2 + col1 * col2 * + col0 FROM tab2
----
10962
165110
172380
query I rowsort
SELECT + col1 + 92 AS col0 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT + 99 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT - col2 * cor0.col2 DIV col1 FROM tab1 cor0
----
-112
-324
-708
skipif mysql # not compatible
query I rowsort label-2567
SELECT - col2 * cor0.col2 / col1 FROM tab1 cor0
----
-112
-324
-708
query I rowsort
SELECT ALL + col2 * col0 + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col1 + tab2.col0 * + col1 FROM tab2
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2570
SELECT - CAST( + 46 AS SIGNED ) + col2 col1 FROM tab0
----
-13
-45
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2570
SELECT - CAST ( + 46 AS INTEGER ) + col2 col1 FROM tab0
----
-13
-45
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2571
SELECT CAST( 31 AS SIGNED ) AS col2 FROM tab2
----
31
31
31
skipif mysql # not compatible
query I rowsort label-2571
SELECT CAST ( 31 AS INTEGER ) AS col2 FROM tab2
----
31
31
31
query I rowsort
SELECT DISTINCT col2 * ( + col2 ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT - ( + col0 * - col1 ) + + col2 AS col0 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT ALL ( - col2 ) * - col2 + col2 DIV col2 AS col0 FROM tab0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL ( - col2 ) * - col2 + col2 / col2 AS col0 FROM tab0
----
1090
2
6725
query I rowsort
SELECT col0 + + col1 * - col2 * ( col1 ) AS col1 FROM tab2
----
-10903
-25940
-90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT col0 DIV 47 col1 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2576
SELECT col0 / 47 col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT 57 + col2 AS col0 FROM tab0 AS cor0
----
139
58
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT + 74 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2578
SELECT + 74 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT DISTINCT + - 87 DIV col0 FROM tab2 AS cor0
----
-1
-12
skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + - 87 / col0 FROM tab2 AS cor0
----
-1
-12
query I rowsort
SELECT + col0 + - col2 * col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT ALL + col2 DIV 76 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + col2 / 76 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + 95 * col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT ALL - 10 * col1 * + 96 AS col1 FROM tab2 AS cor0
----
-16320
-29760
-56640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT DISTINCT - 51 * col1 + CAST( NULL AS SIGNED ) * + col0 + col0 * + 8 * col2 col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - 51 * col1 + CAST ( NULL AS INTEGER ) * + col0 + col0 * + 8 * col2 col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 88 * + col0 * - ( + col2 + + tab2.col2 ) FROM tab2
----
-33264
-356928
-528352
onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT ALL + col2 + col1 DIV 69 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + col2 + col1 / 69 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT col1 DIV + col2 + - 87 FROM tab1 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-2592
SELECT col1 / + col2 + - 87 FROM tab1 AS cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT ALL - col1 DIV cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - col1 / cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT DISTINCT 68 - + col2 AS col2 FROM tab2 AS cor0
----
30
41
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT DISTINCT col2 DIV + col1 + col2 * + col1 FROM tab1 AS cor0
----
1255
1406
575
skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT col2 / + col1 + col2 * + col1 FROM tab1 AS cor0
----
1255
1406
575
query I rowsort
SELECT - col0 * 30 AS col1 FROM tab1 AS cor0
----
-1920
-2400
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT - col2 DIV - ( col1 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2597
SELECT - col2 / - ( col1 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * 45 FROM tab1 cor0
----
1170
450
585
query I rowsort
SELECT 98 + col0 * col2 AS col0 FROM tab1
----
260
3746
7778
query I rowsort
SELECT DISTINCT 37 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + col2 col0 FROM tab1
----
139
142
181
query I rowsort
SELECT + ( + tab0.col2 * 32 ) FROM tab0
----
1056
2624
32
query I rowsort
SELECT DISTINCT ( col0 * + 79 ) AS col1 FROM tab1
----
237
5056
6320
query I rowsort
SELECT 21 * col1 + 16 AS col0 FROM tab0
----
1822
1927
2053
query I rowsort
SELECT DISTINCT - col2 + + 1 * + col1 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ( 4 ) + + col0 AS col2 FROM tab1 AS cor0
----
68
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT ALL cor0.col0 DIV cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL cor0.col0 / cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT cor0.col0 * + ( col0 ) + ( + col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT DISTINCT col1 + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2610
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT ALL - col1 * col1 DIV - col2 col1 FROM tab1 cor0
----
1
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - col1 * col1 / - col2 col1 FROM tab1 cor0
----
1
1
12
query I rowsort
SELECT - cor0.col1 - - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * 4 AS col0 FROM tab0 AS cor0
----
-7264
-7953
-9405
query I rowsort
SELECT + 37 * - col2 + col0 FROM tab1 AS cor0
----
-1995
-2045
-3472
onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT 98 DIV 17 FROM tab2 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-2616
SELECT 98 / 17 FROM tab2 AS cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT ALL col0 * + 89 + + col0 DIV + col2 col1 FROM tab1 AS cor0
----
267
5697
7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL col0 * + 89 + + col0 / + col2 col1 FROM tab1 AS cor0
----
267
5697
7120
query I rowsort
SELECT ALL col2 * - col0 * col0 + col2 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT - 12 * - col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT DISTINCT 53 * 45 FROM tab1 AS cor0
----
2385
query I rowsort
SELECT ALL col0 - - ( - col1 ) AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + - ( ( col0 ) ) * ( + 64 ) * - col2 AS col1 FROM tab1 cor0
----
10368
233472
491520
query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - 95 + + 84 AS col1 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT DISTINCT + ( - col0 ) + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL 97 + col0 AS col1 FROM tab0 AS cor0
----
121
132
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT DISTINCT - col1 - - col2 DIV + col1 FROM tab1 cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - col1 - - col2 / + col1 FROM tab1 cor0
----
-24
-5
-6
query I rowsort
SELECT DISTINCT - col0 * + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT 27 + - col0 FROM tab2 AS cor0
----
-51
-52
20
query I rowsort
SELECT ALL + + col2 * col2 + - cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2865
3256
9200
query I rowsort
SELECT - + ( - col2 ) + cor0.col0 * + col1 * - col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT ALL - 9 AS col2 FROM tab2
----
-9
-9
-9
query I rowsort
SELECT + - 76 FROM tab2 AS cor0
----
-76
-76
-76
query I rowsort
SELECT - cor0.col0 * + 22 FROM tab1 AS cor0
----
-1408
-1760
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2635
SELECT + - col1 * - col2 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-2635
SELECT + - col1 * - col2 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - 93 + col0 AS col0 FROM tab1 AS cor0
----
-13
-29
-90
query I rowsort
SELECT + + cor0.col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 60 * + col1 + 62 AS col1 FROM tab2
----
-1798
-3478
-958
onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT col0 + + col0 DIV tab2.col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2639
SELECT col0 + + col0 / tab2.col0 FROM tab2
----
79
8
80
query I rowsort
SELECT - + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + - cor0.col2 * 15 + + col0 FROM tab0 cor0
----
-1141
-471
20
query I rowsort
SELECT DISTINCT + col1 + 67 * 16 * + col2 AS col2 FROM tab1 AS cor0
----
102925
57914
61114
query I rowsort
SELECT + 21 * - ( col2 ) FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT DISTINCT + - 98 * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
18522
198744
294196
onlyif mysql # use DIV operator for integer division
query I rowsort label-2646
SELECT DISTINCT ( col1 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT ( col1 ) / - col1 AS col2 FROM tab2 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 + col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 59 col0 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT ALL ( - col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - cor0.col0 * 3 AS col1 FROM tab1, tab2, tab0 AS cor0
----
-105
-267
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT - ( - 88 ) AS col2 FROM tab0 cor0
----
88
88
88
query I rowsort
SELECT - ( + col2 ) * + col0 * - 88 FROM tab1 AS cor0
----
14256
321024
675840
query I rowsort
SELECT ALL - 14 + col2 * - col0 FROM tab2 AS cor0
----
-203
-2042
-3016
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT CAST( + ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2655
SELECT CAST ( + ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 13 + - col0 FROM tab2
----
-65
-66
6
query I rowsort
SELECT + col1 * cor0.col1 * + ( - col0 ) + + cor0.col0 + + 73 * + col2 FROM tab2 AS cor0
----
-19978
-269542
-4749
query I rowsort
SELECT - ( col1 ) * col0 + - col1 + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 + cor0.col2 + col1 AS col1 FROM tab2 cor0
----
144
72
89
query I rowsort
SELECT - col0 + 28 AS col0 FROM tab1 AS cor0
----
-36
-52
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT 82 DIV - 34 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-2661
SELECT 82 / - 34 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT - - col1 + ( - col1 + + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT DISTINCT + 9 DIV cor0.col0 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 9 / cor0.col0 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + 13 * - cor0.col0 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT + 51 * + col0 FROM tab1 AS cor0
----
153
3264
4080
query I rowsort
SELECT DISTINCT - col0 + + col0 * + col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + + col1 + col1 * 88 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT DISTINCT - col0 - col1 * col0 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT - - col2 DIV col1 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - - col2 / col1 FROM tab2 cor0
----
0
2
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 + cor0.col2 FROM tab2 AS cor0
----
107
6169
6296
query I rowsort
SELECT ALL - + 77 FROM tab1 cor0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT - - 60 + col1 + + 68 FROM tab2 AS cor0
----
145
159
187
query I rowsort
SELECT 52 * + col2 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT ALL + - col1 * + col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col0 * ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * + col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ( col1 * 39 ) + + col1 FROM tab0
----
3440
3640
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 87 FROM tab2 cor0
----
87
query I rowsort
SELECT ALL - - 57 + - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1191
-1347
-513
query I rowsort
SELECT + - 39 FROM tab2 cor0
----
-39
-39
-39
query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) * col1 * + 74 AS col2 FROM tab1
----
103950
42237
92448
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT tab1.col0 * 57 FROM tab1
----
171
3648
4560
query I rowsort
SELECT DISTINCT ( + col1 ) + col2 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2688
SELECT ALL - - CAST( NULL AS SIGNED ) col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 * - ( + 30 ) col2 FROM tab2
----
2366
237
2408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + + tab0.col2 col1 FROM tab0
----
164
2
66
query I rowsort
SELECT 51 + tab0.col1 * - tab0.col0 FROM tab0
----
-2013
-3344
-8048
query I rowsort
SELECT DISTINCT ( - 55 ) + - col2 * + col1 FROM tab2 AS cor0
----
-1589
-701
-892
query I rowsort
SELECT ALL 90 * cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
4437
547586
561728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + 91 + ( col2 ) FROM tab0 AS cor0
----
124
173
92
query I rowsort
SELECT DISTINCT - 83 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + 76 col2 FROM tab0 cor0
----
-6
43
75
query I rowsort
SELECT + - col1 * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL - 17 * + col0 AS col1 FROM tab2
----
-119
-1326
-1343
query I rowsort
SELECT ALL + + 73 + - col0 AS col0 FROM tab1 AS cor0
----
-7
70
9
query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 77 AS col1 FROM tab1
----
77
77
77
query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab1
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL - + col1 * col1 + - cor0.col0 DIV - 30 FROM tab1 cor0
----
-167
-676
-98
skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - + col1 * col1 + - cor0.col0 / - 30 FROM tab1 cor0
----
-167
-676
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT ALL col0 DIV + CAST( col1 * col2 AS SIGNED ) + ( + tab0.col2 ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL col0 / + CAST ( col1 * col2 AS INTEGER ) + ( + tab0.col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col1 + tab1.col2 * - col2 AS col0 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT ALL tab1.col1 + 85 + + col2 AS col1 FROM tab1
----
152
165
194
query I rowsort
SELECT tab0.col1 + + 21 AS col2 FROM tab0
----
107
112
118
query I rowsort
SELECT + col1 + + 22 + + 63 AS col0 FROM tab2
----
102
116
144
query I rowsort
SELECT DISTINCT + col1 * 11 * col0 AS col1 FROM tab0 AS cor0
----
22704
37345
89089
onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT col0 + + 51 DIV col0 AS col1 FROM tab2 AS cor0
----
14
78
79
skipif mysql # not compatible
query I rowsort label-2711
SELECT col0 + + 51 / col0 AS col1 FROM tab2 AS cor0
----
14
78
79
query I rowsort
SELECT - 82 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT + 16 + 0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * ( - col0 ) col1 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL + + col1 * - col0 - - col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - - 90 AS col2 FROM tab0 AS cor0
----
90
query I rowsort
SELECT ALL + 53 - - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1195
-1351
-517
query I rowsort
SELECT ALL - col1 + - col2 * col2 * ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
-119821
-32500
-75842
query I rowsort
SELECT - 25 - col2 AS col0 FROM tab1 AS cor0
----
-121
-79
-82
query I rowsort
SELECT DISTINCT - col1 * - 60 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col0 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 70 + - cor0.col0 * + col0 + cor0.col2 FROM tab1 cor0
----
-3969
-6234
115
onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT ALL col0 - - cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL col0 - - cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT - + ( + col0 ) + + col2 * ( col0 ) * - col0 FROM tab0 cor0
----
-1260
-19032
-649611
query I rowsort
SELECT ALL - col1 * col2 * + 83 - + col1 FROM tab1
----
-103597
-116558
-47320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab1, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT + col1 * 73 + cor0.col0 DIV ( + col2 ) FROM tab1 AS cor0
----
1898
731
949
skipif mysql # not compatible
query I rowsort label-2728
SELECT + col1 * 73 + cor0.col0 / ( + col2 ) FROM tab1 AS cor0
----
1898
731
949
query I rowsort
SELECT DISTINCT col2 + col2 - - col1 * - col1 AS col0 FROM tab0
----
-7330
-8117
-9407
query I rowsort
SELECT ALL + col2 - + tab0.col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 19 * col1 AS col2 FROM tab1
----
190
247
494
query I rowsort
SELECT DISTINCT - - 64 + col2 * + col0 FROM tab2 AS cor0
----
2092
253
3066
query I rowsort
SELECT + col1 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col1 * - 9 * - col0 FROM tab2 AS cor0
----
12087
1953
41418
query I rowsort
SELECT col1 + - 41 * - col2 - - col1 FROM tab2 AS cor0
----
1169
1184
1592
query I rowsort
SELECT col0 * + 75 + col1 * + col0 * + 85 AS col0 FROM tab2 AS cor0
----
120080
18970
397020
query I rowsort
SELECT ALL 71 * + col2 FROM tab1
----
3834
4047
6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT ALL - 81 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 81 / tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + cor0.col1 + + ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - 32 * ( col1 ) + col2 FROM tab2 AS cor0
----
-1862
-506
-965
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2741
SELECT ALL + - CAST( NULL AS SIGNED ) * - 3 * + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 3 * + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT - CAST( NULL AS SIGNED ) * + col1 + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2742
SELECT - CAST ( NULL AS INTEGER ) * + col1 + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 21 * + cor0.col0 FROM tab2 cor0
----
147
1638
1659
query I rowsort
SELECT 98 AS col2 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT - ( + cor0.col1 ) * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2746
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - 38 ) FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT ALL + ( - col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + 17 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1513
408
595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( ( col1 ) ) * + 56 col2 FROM tab0
----
4902
5187
5529
query I rowsort
SELECT + 2 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2066
3397
8101
query I rowsort
SELECT - - col2 * col0 + + 98 AS col0 FROM tab0 AS cor0
----
133
7396
890
query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
-8
query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 AS col0 FROM tab1 cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT col1 + col2 DIV - 21 FROM tab0 AS cor0
----
85
88
97
skipif mysql # not compatible
query I rowsort label-2756
SELECT col1 + col2 / - 21 FROM tab0 AS cor0
----
85
88
97
query I rowsort
SELECT ALL col2 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + - col2 * + col0 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-213
-3641
-7696
query I rowsort
SELECT ALL col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT - - col2 * col2 + - 53 FROM tab1 AS cor0
----
2863
3196
9163
query I rowsort
SELECT 7 + + col1 AS col0 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT 37 * tab2.col0 * col0 FROM tab2
----
1813
225108
230917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT CAST( 78 AS SIGNED ) * + col2 AS col1 FROM tab1
----
4212
4446
7488
skipif mysql # not compatible
query I rowsort label-2763
SELECT CAST ( 78 AS INTEGER ) * + col2 AS col1 FROM tab1
----
4212
4446
7488
query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab1 cor0
----
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2765
SELECT ALL 62 * + tab2.col0 + + CAST( col0 + col0 AS SIGNED ) * - 16 AS col2 FROM tab2
----
210
2340
2370
skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL 62 * + tab2.col0 + + CAST ( col0 + col0 AS INTEGER ) * - 16 AS col2 FROM tab2
----
210
2340
2370
query I rowsort
SELECT ALL - 20 + + col0 FROM tab1
----
-17
44
60
query I rowsort
SELECT + 29 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) * cor0.col2 + + 4 col0 FROM tab1 AS cor0
----
1252
1408
574
query I rowsort
SELECT DISTINCT - - 35 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT col0 DIV 84 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2770
SELECT col0 / 84 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 36 + 17 * + tab2.col1 AS col0 FROM tab2
----
253
491
967
query I rowsort
SELECT ALL + col2 + ( col1 ) * ( 0 ) FROM tab1
----
54
57
96
query I rowsort
SELECT ( - 78 ) FROM tab2 AS cor0
----
-78
-78
-78
query I rowsort
SELECT + - 48 + + 94 + col0 FROM tab0 AS cor0
----
135
70
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2775
SELECT CAST( NULL AS DECIMAL ) * + 88 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2775
SELECT CAST ( NULL AS REAL ) * + 88 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - 35 AS col1 FROM tab0 AS cor0
----
-1155
-2870
-35
query I rowsort
SELECT DISTINCT + col1 * 13 * - col0 AS col0 FROM tab0 cor0
----
-105287
-26832
-44135
onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL - col0 DIV + 80 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col0 / + 80 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col2 + ( col0 ) AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 + ( col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - - col0 * - ( - 19 ) FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT - + col0 * - col1 + 42 * cor0.col0 FROM tab0 AS cor0
----
11837
3072
4865
onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT DISTINCT + col0 * col2 + col1 DIV + col1 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT + col0 * col2 + col1 / + col1 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT + col0 * + col0 + + 32 * col1 FROM tab2 cor0
----
1041
6785
7972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 21 + 70 col1 FROM tab2 AS cor0
----
616
637
868
query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT - - col1 DIV ( - col1 ) FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2788
SELECT - - col1 / ( - col1 ) FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 * 32 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864
query I rowsort
SELECT - - col0 * col2 + col0 + col0 * ( + col1 + col0 ) * + 77 FROM tab0 AS cor0
----
1240927
204096
355810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 58 col0 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT ( + col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - 48 * - 78 FROM tab0 AS cor0
----
3744
query I rowsort
SELECT - - 2 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + + ( col2 ) * col0 + - ( - col2 ) FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT - 43 + 10 * col1 DIV col0 FROM tab0 AS cor0
----
-16
-33
-8
skipif mysql # not compatible
query I rowsort label-2796
SELECT - 43 + 10 * col1 / col0 FROM tab0 AS cor0
----
-16
-33
-8
query I rowsort
SELECT ALL 8 * col1 AS col0 FROM tab2 AS cor0
----
136
248
472
query I rowsort
SELECT col1 * col2 + col0 * col1 AS col0 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT ALL - + 55 FROM tab0 cor0
----
-55
-55
-55
query I rowsort
SELECT ( col0 ) + - col0 - - col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 38 * col1 AS col0 FROM tab2
----
1178
2242
646
query I rowsort
SELECT DISTINCT col1 * col2 + - 32 FROM tab0 AS cor0
----
2806
65
7430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) + col1 * + col2 col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL col0 + col2 * + col2 - col2 * - col1 FROM tab0
----
133
14275
3951
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * 64 + - 21 AS col1 FROM tab0 AS cor0
----
2091
43
5227
query I rowsort
SELECT - 36 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT 28 * + col2 * - col1 FROM tab2
----
-18088
-23436
-42952
query I rowsort
SELECT ALL - tab1.col2 - 21 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 240a57934367a19aa2542510557b8ba2
query I rowsort
SELECT ALL 68 * col2 + ( - ( col0 ) ) AS col0 FROM tab2
----
1690
1829
2505
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + 12 * col0 + col1 FROM tab1
----
62
778
973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT - 48 * col2 AS col1 FROM tab1
----
-2592
-2736
-4608
query I rowsort
SELECT - col1 * + 99 AS col2 FROM tab1
----
-1287
-2574
-990
query I rowsort
SELECT col1 * + 56 AS col0 FROM tab1
----
1456
560
728
query I rowsort
SELECT col1 * + 59 AS col1 FROM tab0
----
5074
5369
5723
query I rowsort
SELECT + col1 + 11 AS col0 FROM tab2
----
28
42
70
query I rowsort
SELECT DISTINCT + col0 * - col0 + ( col2 ) + 42 FROM tab2
----
-6016
-6161
20
query I rowsort
SELECT + cor0.col1 * + ( col1 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT + + cor0.col1 DIV 18 AS col0 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + + cor0.col1 / 18 AS col0 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT - col0 + 98 FROM tab1 AS cor0
----
18
34
95
query I rowsort
SELECT ALL + col1 * col2 + + cor0.col0 * cor0.col0 * + 96 AS col0 FROM tab1 AS cor0
----
2268
393786
615648
query I rowsort
SELECT DISTINCT + col2 + 97 * col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL col2 * 11 - col0 FROM tab1 AS cor0
----
563
591
976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT col2 DIV col1 - - col1 AS col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-2828
SELECT col2 / col1 - - col1 AS col1 FROM tab1
----
15
20
28
query I rowsort
SELECT + 25 + col0 AS col0 FROM tab0
----
114
49
60
query I rowsort
SELECT ALL ( + ( cor0.col2 ) ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT ALL + + col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT - ( + col0 ) DIV - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2832
SELECT - ( + col0 ) / - col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - + 62 AS col0 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col2 - cor0.col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT 5 + 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
94
query I rowsort
SELECT DISTINCT - 63 * cor0.col2 - - col2 * - 87 * col1 AS col0 FROM tab2 AS cor0
----
-135096
-58596
-74520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT DISTINCT + ( col1 ) * CAST( - 86 AS SIGNED ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1131
-2262
-870
skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + ( col1 ) * CAST ( - 86 AS INTEGER ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT - - 49 * col2 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT + col2 - + 67 FROM tab0
----
-34
-66
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT DISTINCT + 49 * col2 + + cor0.col0 DIV ( col2 ) FROM tab0 AS cor0
----
1617
4019
84
skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + 49 * col2 + + cor0.col0 / ( col2 ) FROM tab0 AS cor0
----
1617
4019
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col1 + + col0 - - col0 col0 FROM tab1 cor0
----
-512
-72
-880
query I rowsort
SELECT ALL + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + ( + cor0.col1 ) + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT 65 DIV + cor0.col0 + col1 FROM tab0 AS cor0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-2845
SELECT 65 / + cor0.col0 + col1 FROM tab0 AS cor0
----
88
91
98
query I rowsort
SELECT + 46 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + 26 + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 17194cb49bd07f2251848dc94845ba24
query I rowsort
SELECT - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - 31 FROM tab0, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT ALL + 83 DIV + 65 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + 83 / + 65 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0, tab0 AS cor0
----
39
query I rowsort
SELECT ALL - 50 AS col2 FROM tab0
----
-50
-50
-50
query I rowsort
SELECT ALL ( + col0 + + tab1.col0 * col0 ) AS col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT - ( 42 ) + col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT + cor0.col0 DIV - cor0.col1 + 3 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c1dc79f06e2f198b7d64b70a4308a4af
skipif mysql # not compatible
query I rowsort label-2855
SELECT + cor0.col0 / - cor0.col1 + 3 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c1dc79f06e2f198b7d64b70a4308a4af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 - 53 col2 FROM tab2, tab1 AS cor0
----
-15
-26
-27
query I rowsort
SELECT - ( - col0 ) * tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 42 * + tab2.col1 FROM tab2
----
1302
2478
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 * + col0 + + cor0.col1 * ( 70 ) col1 FROM tab2 AS cor0
----
-115522
-3689
-49844
query I rowsort
SELECT - col1 + ( - 39 ) FROM tab2 AS cor0
----
-56
-70
-98
query I rowsort
SELECT - + col0 + + ( + 41 ) + col0 * + 26 FROM tab2 AS cor0
----
1991
2016
216
query I rowsort
SELECT ALL - + 75 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT + col0 * 53 + col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT ALL tab0.col2 + - 88 FROM tab0
----
-55
-6
-87
query I rowsort
SELECT ALL + col1 + + col0 * - col2 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + col1 * - col0 - 76 AS col2 FROM tab0 AS cor0
----
-2140
-3471
-8175
query I rowsort
SELECT + col1 + + ( + col1 ) * col0 + + col1 FROM tab1 cor0
----
1066
130
660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT DISTINCT cor0.col0 + - CAST( NULL AS SIGNED ) * col0 * col2 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT cor0.col0 + - CAST ( NULL AS INTEGER ) * col0 * col2 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) * col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT - col1 + - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - - col0 * col0 + + col2 + - col0 FROM tab0 AS cor0
----
1191
585
7914
query I rowsort
SELECT DISTINCT 73 * - cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-219
-4672
-5840
query I rowsort
SELECT ALL 40 - 53 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT - col1 + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - ( - col1 ) * - col0 + - col2 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col0 - 74 * + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-16051
-340470
-99303
query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT ALL - + 79 * ( - cor0.col1 ) FROM tab1 AS cor0
----
1027
2054
790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT ALL + - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT ALL - - col0 DIV - 92 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - - col0 / - 92 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 44 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1144
-1188
-1672
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col1 FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col2 * 27 FROM tab0
----
-2214
-27
-891
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 71 * + 62 FROM tab0, tab0 AS cor0
----
9 values hashing to b9b4cbd687ab89765596d447306c467e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT 6 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2888
SELECT 6 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col0 * col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT ALL CAST( col2 + col0 AS SIGNED ) FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL CAST ( col2 + col0 AS INTEGER ) FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT ALL + cor0.col2 * + col1 DIV + col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + cor0.col2 * + col1 / + col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - cor0.col0 + + cor0.col1 * 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 tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - + cor0.col2 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL 60 * + col0 AS col1 FROM tab0
----
1440
2100
5340
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT + col1 + CAST( - 56 AS SIGNED ) AS col2 FROM tab1 cor0
----
-30
-43
-46
skipif mysql # not compatible
query I rowsort label-2896
SELECT + col1 + CAST ( - 56 AS INTEGER ) AS col2 FROM tab1 cor0
----
-30
-43
-46
query I rowsort
SELECT DISTINCT tab1.col1 - col0 AS col1 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - + cor0.col1 * cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2901
SELECT + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - 11 col2 FROM tab1
----
-561
-561
-561
query I rowsort
SELECT DISTINCT - col0 + 13 FROM tab2 cor0
----
-65
-66
6
query I rowsort
SELECT - col0 * col2 - + cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL + col1 * 0 DIV + tab1.col1 + + ( col2 + - col2 ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + col1 * 0 / + tab1.col1 + + ( col2 + - col2 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 * col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT - - col0 * col1 + ( - col2 ) FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT + col1 DIV + col1 + 11 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
1068
31219
82083
skipif mysql # not compatible
query I rowsort label-2909
SELECT + col1 / + col1 + 11 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
1068
31219
82083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2910
SELECT DISTINCT + + col2 * - col1 + - CAST( ( col0 ) AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT + + col2 * - col1 + - CAST ( ( col0 ) AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL col0 * - col2 + - col1 * + tab0.col2 AS col1 FROM tab0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT DISTINCT + - col1 DIV + col0 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + - col1 / + col0 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT ALL + col0 * cor0.col1 + 17 AS col2 FROM tab2 AS cor0
----
1360
234
4619
query I rowsort
SELECT ALL + + cor0.col2 - - col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - - ( + col2 ) + ( cor0.col2 + - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT - ( - cor0.col1 ) - 25 AS col0 FROM tab0 cor0
----
61
66
72
query I rowsort
SELECT DISTINCT - ( - col0 ) * - 5 - col2 AS col1 FROM tab1 cor0
----
-377
-496
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT ALL - col2 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - col2 / + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 0 + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + ( col0 ) + - 45 AS col0 FROM tab2 cor0
----
-38
33
34
query I rowsort
SELECT ALL - 66 * + col0 + - 48 * + 25 FROM tab2 AS cor0
----
-1662
-6348
-6414
query I rowsort
SELECT + col1 * - col2 + - ( + 99 ) * - cor0.col0 * - col0 FROM tab2 AS cor0
----
-5688
-603850
-618505
query I rowsort
SELECT ALL - tab2.col0 + - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 72844961641a3f6d21e0110ae40f640c
query I rowsort
SELECT ALL - col0 * + 26 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT - col1 * col1 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL - - col1 * 67 FROM tab2 AS cor0
----
1139
2077
3953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2927
SELECT col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-2927
SELECT col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT ALL col0 DIV 23 FROM tab1 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL col0 / 23 FROM tab1 AS cor0
----
0
2
3
query I rowsort
SELECT ALL + - cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( + ( + cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2931
SELECT ALL + CAST( NULL AS SIGNED ) / col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 35 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
35
query I rowsort
SELECT + cor0.col0 * col1 - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT ALL + + 61 * col2 AS col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT - 36 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2936
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col2 * 91 FROM tab2 cor0
----
2366
2457
3458
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT DISTINCT - ( - cor0.col0 ) DIV col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - ( - cor0.col0 ) / col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + + col1 * 66 AS col0 FROM tab1 AS cor0
----
1716
660
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL col0 DIV + ( col0 * - 79 ) AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL col0 / + ( col0 * - 79 ) AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col0 ) * col0 + - ( col0 ) * col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
18432
641601
query I rowsort
SELECT ALL - col1 * + 38 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL - col2 * - 24 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT + - 71 * 83 AS col1 FROM tab0 AS cor0
----
-5893
-5893
-5893
query I rowsort
SELECT + ( tab1.col1 + col2 ) * - tab1.col1 FROM tab1
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 65 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT col0 + col0 + col0 AS col1 FROM tab1 cor0
----
192
240
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT - col0 * - CAST( NULL AS SIGNED ) / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2950
SELECT - col0 * - CAST ( NULL AS INTEGER ) / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + + ( col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + 49 FROM tab0 AS cor0
----
135
140
146
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT DISTINCT - col2 + 52 * 77 + + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
3923
3972
4004
skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - col2 + 52 * 77 + + col1 / + col1 AS col2 FROM tab0 AS cor0
----
3923
3972
4004
query I rowsort
SELECT col1 + col2 * - 9 FROM tab0
----
-211
-647
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2955
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL - ( + 96 ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT + tab0.col1 + + 39 * + ( + col2 ) * + 39 AS col0 FROM tab0
----
124813
1618
50279
query I rowsort
SELECT DISTINCT - + col0 + col0 * + ( col2 ) FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL col2 * col0 + + col0 * - col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * ( col1 ) AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + tab0.col2 * + col2 * 25 AS col0 FROM tab0
----
168100
25
27225
onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT cor0.col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-2962
SELECT cor0.col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - cor0.col0 * col1
----
query I rowsort
SELECT DISTINCT col0 * col1 + + col2 FROM tab1
----
1136
132
697
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + col0
----
query I rowsort
SELECT + col2 * - col0 + + col1 AS col2 FROM tab1
----
-136
-3638
-7667
query III rowsort
SELECT * FROM tab1 WHERE - tab1.col1 IN ( + col0 * - col2 )
----
query I rowsort
SELECT ALL - col1 + col0 * col0 - + col1 AS col2 FROM tab1 WHERE + col1 >= ( + col1 * + col1 + - col1 )
----
query I rowsort
SELECT col2 * - col0 + col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT col1 * - col1 + col0 AS col2 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) >= col1
----
query I rowsort
SELECT DISTINCT tab0.col2 * col2 - + col0 * + col1 FROM tab0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT tab1.col1 * - col1 + + col0 AS col1 FROM tab1
----
-36
-673
-89
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 >= NULL
----
query I rowsort
SELECT - col2 * col0 + col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + col1 * col1 + - col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT - col1 * col2 - col1 AS col1 FROM tab1 cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT DISTINCT + cor0.col1 DIV + col1 AS col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT + cor0.col1 / + col1 AS col0 FROM tab2 cor0
----
1
query I rowsort
SELECT + cor0.col2 * + col2 + - col1 AS col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col1 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT - 65 * - col1 - 74 DIV + col1 AS col0 FROM tab0
----
5590
5915
6305
skipif mysql # not compatible
query I rowsort label-2984
SELECT - 65 * - col1 - 74 / + col1 AS col0 FROM tab0
----
5590
5915
6305
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT 86 DIV + col1 AS col0 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-2985
SELECT 86 / + col1 AS col0 FROM tab1
----
3
6
8
query I rowsort
SELECT ALL - 12 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * ( col0 ) - col2 * col2 AS col2 FROM tab1 AS cor0
----
-10256
-2994
-3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + cor0.col1 col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT - - col0 * col1 DIV + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-2990
SELECT - - col0 * col1 / + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col1 - ( 77 ) FROM tab0 AS cor0
----
-163
-168
-174
query I rowsort
SELECT + cor0.col2 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - col2 + + 18 * - col1 AS col0 FROM tab1 AS cor0
----
-237
-330
-522
query I rowsort
SELECT ALL col2 * col1 - - 78 * + col0 FROM tab0 cor0
----
14404
2827
4710
query I rowsort
SELECT col1 * + col1 + 8 AS col1 FROM tab1 AS cor0
----
108
177
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + 21 * - cor0.col1 * + cor0.col2 col0 FROM tab2 AS cor0
----
-12223
-17360
-27612
query I rowsort
SELECT - + col1 + - 84 * 2 AS col1 FROM tab2 cor0
----
-185
-199
-227
query I rowsort
SELECT DISTINCT - - col1 * + 17 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL < NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN ( - col0 + col1 ) AND NULL
----
query I rowsort
SELECT col2 + + col1 * tab2.col1 * col2 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT + col0 - + tab2.col1 * - col0 * col0 FROM tab2
----
106176
1526
359034
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT ALL - col2 - col2 FROM tab2 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT + col0 / col1 + - col1 / + col0 + tab0.col0 * + tab0.col0 FROM tab0 WHERE NULL BETWEEN NULL AND col0
----
query I rowsort
SELECT col0 + col2 * + col0 AS col2 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col0 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + tab0.col1 + - col2 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 89 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL ) < + col2
----
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + + 96 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2828
-7457
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + col2 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( col1 * + col1 * - col1 ) IN ( - col2 / - col0 - col0 * - col2 )
----
86
91
97
query I rowsort
SELECT ALL - - col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + col1 + + 44 - + 43 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT cor0.col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3019
SELECT cor0.col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 80 - + col2 * tab0.col0 AS col1 FROM tab0
----
-712
-7218
45
query I rowsort
SELECT - ( - tab1.col1 ) + - tab1.col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT DISTINCT col0 DIV - col1 + + tab1.col1 + + col2 AS col2 FROM tab1
----
103
61
80
skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT col0 / - col1 + + tab1.col1 + + col2 AS col2 FROM tab1
----
103
61
80
query I rowsort
SELECT col0 + ( col1 ) + + col1 AS col1 FROM tab1
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL - col2 - + ( + col2 ) * col0 AS col1 FROM tab1
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT + col2 * + 81 + - col1 DIV col2 FROM tab1 AS cor0
----
4374
4617
7776
skipif mysql # not compatible
query I rowsort label-3026
SELECT + col2 * + 81 + - col1 / col2 FROM tab1 AS cor0
----
4374
4617
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - cor0.col2 * 58 - - col1 FROM tab0 AS cor0
----
-1828
-4665
39
query I rowsort
SELECT DISTINCT + col1 + col1 + + col0 FROM tab2 cor0
----
113
196
69
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 + col1 AS col1 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - cor0.col2 - - col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL col2 * - col2 + 62 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
-2210
-2396
-3721
query I rowsort
SELECT DISTINCT 52 FROM tab2, tab2 cor0
----
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 2 + col1 col1 FROM tab1
----
-104
-179
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT + - CAST( NULL AS SIGNED ) + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3036
SELECT + - CAST ( NULL AS INTEGER ) + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - cor0.col0 + + col0 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 68 + col0 AS col0 FROM tab2
----
146
147
75
query I rowsort
SELECT ALL + col1 + cor0.col1 * col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT - col2 DIV col1 + + 74 col1 FROM tab2
----
72
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3041
SELECT - col2 / col1 + + 74 col1 FROM tab2
----
72
74
74
query I rowsort
SELECT 85 * tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 64a7dde4f696a68101de3ee394be0e20
query I rowsort
SELECT DISTINCT + - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + col0 * col1 * + cor0.col1 + - 5 * col2 AS col2 FROM tab0 cor0
----
177339
329310
736599
query I rowsort
SELECT DISTINCT 34 - col0 AS col1 FROM tab1 AS cor0
----
-30
-46
31
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL col2 * col0 * - col1 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL ( + col2 ) + col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL 88 + col0 * col0 FROM tab1 AS cor0
----
4184
6488
97
query I rowsort
SELECT - 27 + - col0 FROM tab0 AS cor0
----
-116
-51
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT ALL - - col0 DIV - cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - - col0 / - cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL 81 * col1 AS col0 FROM tab0 cor0
----
6966
7371
7857
onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT DISTINCT - col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - col0 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT 0 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 + cor0.col2 * col1 * col0 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT col2 * + col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + 91 FROM tab0 cor0
----
91
query I rowsort
SELECT ( + 49 ) FROM tab1 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT ALL + + cor0.col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + + cor0.col2 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + 55 * col2 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT ALL - col0 * - col1 * col2 - + col1 FROM tab0
----
3298
664027
68026
query I rowsort
SELECT - - 72 + col2 AS col0 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT ALL 18 * 31 + col1 * col0 AS col2 FROM tab1
----
1198
1598
636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col1 * col1 * + col0 col0 FROM tab0 AS cor0
----
-176928
-328090
-729088
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT DISTINCT + col1 DIV + col1 + - col1 + - col0 FROM tab2
----
-136
-37
-95
skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + col1 / + col1 + - col1 + - col0 FROM tab2
----
-136
-37
-95
query I rowsort
SELECT 30 + + col2 FROM tab0
----
112
31
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT DISTINCT 65 DIV 64 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 65 / 64 FROM tab0
----
1
query I rowsort
SELECT + ( + col2 ) * col1 * col0 AS col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT 21 DIV col0 + + col2 * + col1 AS col2 FROM tab2
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-3071
SELECT 21 / col0 + + col2 * + col1 AS col2 FROM tab2
----
1534
646
840
query I rowsort
SELECT 91 * 88 AS col2 FROM tab0
----
8008
8008
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * 63 col1 FROM tab1
----
1575
1575
1575
query I rowsort
SELECT + ( + ( col0 ) + + col0 ) FROM tab0
----
178
48
70
query I rowsort
SELECT + 86 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT - + ( - 50 ) DIV cor0.col1 - col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-5
skipif mysql # not compatible
query I rowsort label-3076
SELECT - + ( - 50 ) / cor0.col1 - col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT + 21 + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-76
19
20
skipif mysql # not compatible
query I rowsort label-3077
SELECT + 21 + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-76
19
20
query I rowsort
SELECT + col1 + - col1 + cor0.col2 * - 27 AS col1 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT ALL + - col1 * - col2 + col0 + col1 * - col2 * cor0.col0 FROM tab1 AS cor0
----
-2805
-35846
-98512
query I rowsort
SELECT ALL - 81 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT + - col0 * col1 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + 9 * - 63 AS col2 FROM tab2
----
-567
-567
-567
query I rowsort
SELECT ALL 25 * ( col1 * col0 + tab1.col1 ) FROM tab1
----
16250
2600
26325
skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( ( + col2 ) AS REAL ) * CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-36537
-4266
-99936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT CAST( NULL AS SIGNED ) * - 19 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3085
SELECT CAST ( NULL AS INTEGER ) * - 19 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT col2 DIV + cor0.col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3086
SELECT col2 / + cor0.col0 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT - - cor0.col0 * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT - + col1 + + 67 * - col0 AS col2 FROM tab1 AS cor0
----
-227
-4298
-5373
query I rowsort
SELECT DISTINCT 1 * + 12 AS col1 FROM tab0, tab1 AS cor0
----
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3092
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT 85 * + col0 AS col2 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT - ( - col0 ) * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - - col2 * 83 AS col1 FROM tab1 AS cor0
----
4482
4731
7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT + 68 DIV + col2 FROM tab0 AS cor0
----
0
2
68
skipif mysql # not compatible
query I rowsort label-3096
SELECT + 68 / + col2 FROM tab0 AS cor0
----
0
2
68
query I rowsort
SELECT DISTINCT - col0 - 94 FROM tab0 AS cor0
----
-118
-129
-183
onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT + col1 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3098
SELECT + col1 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
10
12
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - 57 col0 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 FROM tab2, tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) - - col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - - col1 + - col2 * + col2 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT col0 - + 94 FROM tab1
----
-14
-30
-91
query I rowsort
SELECT 22 * col1 + col0 FROM tab2
----
1376
453
689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3107
SELECT DISTINCT - CAST( ( - col2 ) AS SIGNED ) col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - CAST ( ( - col2 ) AS INTEGER ) col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ( 12 ) + col1 AS col0 FROM tab1
----
22
25
38
query I rowsort
SELECT cor0.col2 + + cor0.col2 * - 45 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c2a4fab6d7a81d242e5fd681a1c4ba24
query I rowsort
SELECT - ( col0 ) * + tab2.col2 + col1 AS col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT - ( + 42 ) FROM tab1
----
-42
-42
-42
query I rowsort
SELECT - + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT DISTINCT tab0.col0 DIV col0 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT tab0.col0 / col0 AS col0 FROM tab0
----
1
query I rowsort
SELECT - col0 + - 37 * - col0 FROM tab1 AS cor0
----
108
2304
2880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col1 col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT ALL - + col2 + + col0 * + col2 DIV col2 - 88 * col1 AS col0 FROM tab0 AS cor0
----
-7577
-8001
-8502
skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - + col2 + + col0 * + col2 / col2 - 88 * col1 AS col0 FROM tab0 AS cor0
----
-7577
-8001
-8502
query I rowsort
SELECT tab1.col0 * + col1 + - col0 * - ( + col2 ) AS col1 FROM tab1
----
240
4288
8720
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT ( col2 ) + ( - ( + col0 ) ) AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL tab2.col2 + + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + col0 + 30 * col0 * col2 AS col2 FROM tab1
----
109504
230480
4863
query I rowsort
SELECT col0 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT DISTINCT + col2 + col0 * + 84 * - col1 + + col0 DIV 92 AS col2 FROM tab0 AS cor0
----
-173343
-285179
-680234
skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + col2 + col0 * + 84 * - col1 + + col0 / 92 AS col2 FROM tab0 AS cor0
----
-173343
-285179
-680234
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - 17 col2 FROM tab2 AS cor0
----
10
21
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT col2 + - col0 DIV - ( - col2 ) FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT col2 + - col0 / - ( - col2 ) FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 * CAST ( - col0 AS REAL ) + col2 * - 81 AS col2 FROM tab2 AS cor0
----
-1735
-1970
2496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 * cor0.col0 col0 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + + 17 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3133
SELECT + col2 + col2 DIV - col2 col2 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3133
SELECT + col2 + col2 / - col2 col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT + 97 + col2 * col1 FROM tab1 AS cor0
----
1345
1501
667
query I rowsort
SELECT DISTINCT + + 20 FROM tab1 AS cor0
----
20
query I rowsort
SELECT ALL + 93 * cor1.col1 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to f4eeb2d2bf692021f3b80eb37cb53359
query I rowsort
SELECT ALL - ( col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + cor0.col1 + col0 * ( - col0 ) AS REAL ) col0 FROM tab2 cor0
----
126
469950
491696
query I rowsort
SELECT + - col0 * + 69 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT DISTINCT + col1 * - CAST( + cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + col1 * - CAST ( + cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 + - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col1 * + 92 AS col1 FROM tab2 cor0
----
1564
2852
5428
query I rowsort
SELECT tab2.col2 + col0 * + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + tab2.col2 * - col1 + 86 FROM tab2
----
-1448
-560
-751
query I rowsort
SELECT + 71 AS col2 FROM tab0
----
71
71
71
query I rowsort
SELECT - 57 + 81 * - col1 FROM tab1 AS cor0
----
-1110
-2163
-867
query I rowsort
SELECT 61 AS col2 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT ALL - 24 - - col2 AS col2 FROM tab1 AS cor0
----
30
33
72
query I rowsort
SELECT DISTINCT col2 * 43 AS col0 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT ALL ( 86 ) * col2 * col0 + col1 FROM tab1 cor0
----
13958
313738
660493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col1 FROM tab1 AS cor0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + col1 col0 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3154
SELECT + - CAST( + col2 AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3154
SELECT + - CAST ( + col2 AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ( + col2 ) + col0 * 19 FROM tab1 AS cor0
----
111
1273
1616
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - ( 99 ) + cor0.col1 FROM tab1 AS cor0
----
-73
-86
-89
query I rowsort
SELECT col1 - 84 FROM tab2
----
-25
-53
-67
query I rowsort
SELECT DISTINCT col0 - - col0 * col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL 38 * + col2 FROM tab2 AS cor0
----
1026
1444
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3162
SELECT ALL - - col1 * + col0 + - col0 + - CAST( + 83 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-174
-4736
-5680
skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - - col1 * + col0 + - col0 + - CAST ( + 83 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-174
-4736
-5680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * - col0 + col0 col2 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 * - col0 FROM tab0
----
-16198
-4128
-6790
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - ( tab1.col2 ) FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
-54
-57
-96
query I rowsort
SELECT ALL + col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT + CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-3169
SELECT + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + 13 col2 FROM tab0 AS cor0
----
1102
14
6737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL 80 + + col1 + col0 * - 55 AS col2 FROM tab2
----
-274
-4151
-4248
query I rowsort
SELECT - 6 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT - 72 DIV col1 + - ( col0 * - cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-3174
SELECT - 72 / col1 + - ( col0 * - cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 86 AS REAL ) + tab0.col2 FROM tab0
----
-4
-53
-85
query I rowsort
SELECT + 66 * 63 AS col2 FROM tab1
----
4158
4158
4158
query I rowsort
SELECT DISTINCT + ( 21 ) FROM tab2
----
21
query I rowsort
SELECT DISTINCT - ( col0 + tab2.col2 * col1 ) AS col0 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT cor0.col0 + + ( 91 ) FROM tab2, tab1 AS cor0
----
155
171
94
query I rowsort
SELECT + 20 AS col1 FROM tab1
----
20
20
20
query I rowsort
SELECT 46 * col0 + - ( col1 ) FROM tab0 AS cor0
----
1018
1513
4003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col2 * col2 col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT 68 * - col1 AS col2 FROM tab0 AS cor0
----
-5848
-6188
-6596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 + + col2 col1 FROM tab2
----
1586
722
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab0, tab2 AS cor0, tab1, tab0 cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2 AS cor0, tab1, tab0 cor1
----
NULL
query I rowsort
SELECT ALL - col2 + + 76 FROM tab2 AS cor0
----
38
49
50
query I rowsort
SELECT + + cor0.col1 + - 49 AS col2 FROM tab0 AS cor0
----
37
42
48
query I rowsort
SELECT + + cor0.col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3190
SELECT + col1 + - CAST( NULL AS DECIMAL ) * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3190
SELECT + col1 + - CAST ( NULL AS REAL ) * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 92 + col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT - CAST( NULL AS SIGNED ) * - col2 - - col2 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-3193
SELECT - CAST ( NULL AS INTEGER ) * - col2 - - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + ( - col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 99 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT + col0 + - col2 * col0 + - col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT ALL + col0 * - CAST( + col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + col0 * - CAST ( + col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - col1 * - ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT 68 FROM tab0, tab0 cor0
----
68
query I rowsort
SELECT DISTINCT - + col1 + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + + ( col1 ) * cor0.col0 + + ( col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT - col2 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT 10 FROM tab0 cor0
----
10
10
10
query I rowsort
SELECT 98 FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT - + 50 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3206
SELECT - + 50 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 35 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
35
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + - ( col0 ) FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT col2 * col2 * col0 + col2 AS col1 FROM tab1
----
207993
737376
8802
query I rowsort
SELECT ALL + col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT + + ( col1 ) DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3211
SELECT + + ( col1 ) / + col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT - col0 DIV 76 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3213
SELECT - col0 / 76 AS col1 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT DISTINCT - + col0 * - col0 + - 2 DIV + col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - + col0 * - col0 + - 2 / + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 + - ( 16 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1221
-442
81
query I rowsort
SELECT - + col1 * - 10 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT ALL - col1 + 90 * - col0 FROM tab2 AS cor0
----
-661
-7079
-7127
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT ALL col1 DIV col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL col1 / col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - ( col0 * + col2 ) + col0 + + col0 AS col1 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT - 95 - - col1 FROM tab1
----
-69
-82
-85
query I rowsort
SELECT DISTINCT - col2 + - col2 + - col1 FROM tab2
----
-111
-85
-93
query I rowsort
SELECT ALL col2 * + col2 + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + - 82 * + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1356
-2515
-4812
query I rowsort
SELECT DISTINCT ( + 33 ) + col2 AS col0 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL + col2 + cor0.col2 - - col2 AS col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT - + 88 + - 8 FROM tab0 AS cor0
----
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT CAST( - 78 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
skipif mysql # not compatible
query I rowsort label-3228
SELECT CAST ( - 78 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3229
SELECT + col0 DIV + 20 FROM tab0
----
1
1
4
skipif mysql # not compatible
query I rowsort label-3229
SELECT + col0 / + 20 FROM tab0
----
1
1
4
query I rowsort
SELECT ALL - col2 * col2 - col2 * ( col2 ) FROM tab0 AS cor0
----
-13448
-2
-2178
query I rowsort
SELECT DISTINCT + - col0 + - 96 AS col2 FROM tab0 AS cor0
----
-120
-131
-185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + + 66 + - col2 FROM tab0 AS cor0
----
-16
33
65
query I rowsort
SELECT col2 * ( + col1 * - tab0.col1 ) AS col2 FROM tab0
----
-244068
-679042
-9409
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 DISTINCT - col1 * + col1 + 66 FROM tab1
----
-103
-34
-610
query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab1, tab1 AS cor0
----
-76
query I rowsort
SELECT col0 + - col2 * - 51 FROM tab0
----
1707
4271
86
query I rowsort
SELECT ALL + col0 + + 46 AS col1 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT DISTINCT tab1.col1 * col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - col0 + - 33 AS col0 FROM tab2
----
-111
-112
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 col2 FROM tab2 cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - 9 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-147
-213
-288
query I rowsort
SELECT 6 + - col1 * - col1 FROM tab0 AS cor0
----
7402
8287
9415
onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT DISTINCT 11 + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
11
13
skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT 11 + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
11
13
query I rowsort
SELECT DISTINCT 72 * - col0 + - col2 * + col0 * - col1 FROM tab2 AS cor0
----
114036
45346
5355
query I rowsort
SELECT + + col0 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + + col0 - - col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3250
SELECT ALL - col1 - - col1 DIV cor0.col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - col1 - - col1 / cor0.col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT + + 96 * 48 + + col1 FROM tab2 AS cor0
----
4625
4639
4667
query I rowsort
SELECT ALL + - ( 0 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 35 * - ( + col2 ) * 32 AS col2 FROM tab0 cor0
----
-1120
-36960
-91840
query I rowsort
SELECT + + 37 + - col2 AS col2 FROM tab1 AS cor0
----
-17
-20
-59
query I rowsort
SELECT DISTINCT - + 66 * col0 AS col0 FROM tab2 cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL + 88 * cor0.col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT ALL - col0 + ( ( - col0 ) ) * - col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - + col2 * 86 * cor0.col0 FROM tab2 cor0
----
-16254
-174408
-258172
query I rowsort
SELECT ALL - col0 + + 98 FROM tab2 AS cor0
----
19
20
91
query I rowsort
SELECT - 79 + col0 AS col2 FROM tab0 cor0
----
-44
-55
10
query I rowsort
SELECT + - col1 + 50 FROM tab1 AS cor0
----
24
37
40
query I rowsort
SELECT - 78 - col2 FROM tab2 AS cor0
----
-104
-105
-116
query I rowsort
SELECT ALL col1 * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * - 70 col2 FROM tab1 AS cor0
----
-236
-4490
-5613
query I rowsort
SELECT - 61 + cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1022
-350
-3542
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 + - col1 col2 FROM tab1 AS cor0
----
21
34
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT + - 67 DIV col1 FROM tab1 AS cor0
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-3268
SELECT + - 67 / col1 FROM tab1 AS cor0
----
-2
-5
-6
query I rowsort
SELECT + + col1 - - col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT - + cor0.col0 * col2 DIV col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3270
SELECT - + cor0.col0 * col2 / col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3271
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - 20 * col1 AS col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT ALL col1 + col1 * ( + col1 ) AS col0 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT + - col1 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT - 36 * - cor0.col1 - + CAST( - 27 AS SIGNED ) * + col1 FROM tab1 cor0
----
1638
630
819
skipif mysql # not compatible
query I rowsort label-3275
SELECT - 36 * - cor0.col1 - + CAST ( - 27 AS INTEGER ) * + col1 FROM tab1 cor0
----
1638
630
819
query I rowsort
SELECT DISTINCT + - cor0.col2 * - 85 FROM tab0 cor0
----
2805
6970
85
query I rowsort
SELECT 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT - + ( 57 ) * + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b1e807eeef9377dda7f27d358d84877
query I rowsort
SELECT - - col1 + + 19 * + col2 AS col1 FROM tab0 AS cor0
----
116
1649
713
onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT + 66 DIV - col1 FROM tab2
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3280
SELECT + 66 / - col1 FROM tab2
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - col2 + - col2 + col1 AS col0 FROM tab0
----
-73
20
95
query I rowsort
SELECT ALL + col2 * + tab2.col0 - ( 46 * - col0 ) FROM tab2
----
511
5616
6636
query I rowsort
SELECT + col1 + - col1 + + ( - tab0.col0 ) AS col2 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT 18 DIV col1 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3284
SELECT 18 / col1 AS col1 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 * tab1.col2 + col2 AS col2 FROM tab1
----
-36366
-4104
-99648
query I rowsort
SELECT - + col0 + col0 * + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
7300
854
97
query I rowsort
SELECT + col0 * + 76 + 24 AS col1 FROM tab1 AS cor0
----
252
4888
6104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 87 + 43 col2 FROM tab1 AS cor0
----
304
5611
7003
query I rowsort
SELECT + col2 + + 1 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - + cor0.col1 + ( cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL 59 * col1 + - col0 AS col1 FROM tab0
----
5050
5280
5688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 + cor1.col1 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-54
-67
23
query I rowsort
SELECT + col0 * - cor0.col0 - - 87 AS col1 FROM tab1 AS cor0
----
-4009
-6313
78
query I rowsort
SELECT - col2 * - 3 FROM tab1 cor0
----
162
171
288
query I rowsort
SELECT - + 17 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
364
452
567
query I rowsort
SELECT col1 + ( + col0 * + col2 ) FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT col1 + ( col2 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col2 * 51 * ( + cor0.col0 ) FROM tab1 AS cor0
----
-186048
-391680
-8262
query I rowsort
SELECT DISTINCT - col2 * - 24 + col2 + col2 AS col1 FROM tab1 AS cor0
----
1404
1482
2496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + col0 col0 FROM tab0 cor0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL + col1 * col2 DIV - col0 AS col0 FROM tab2
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + col1 * col2 / - col0 AS col0 FROM tab2
----
-119
-19
-8
query I rowsort
SELECT ALL 8 + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 73c5a2412b9073c01f8f1eb60725236b
query I rowsort
SELECT ALL ( 13 * + col1 ) AS col2 FROM tab2
----
221
403
767
query I rowsort
SELECT DISTINCT ( col1 * tab1.col2 ) AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - - 9 + col0 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT DISTINCT + 36 - + cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
-46
3
35
query I rowsort
SELECT - ( - col0 ) * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT DISTINCT + + ( col0 ) + + CAST( NULL AS SIGNED ) * - 42 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + + ( col0 ) + + CAST ( NULL AS INTEGER ) * - 42 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT DISTINCT ( col0 ) + CAST( col1 AS SIGNED ) * + col1 * col1 AS col0 FROM tab0 AS cor0
----
636080
753660
912708
skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT ( col0 ) + CAST ( col1 AS INTEGER ) * + col1 * col1 AS col0 FROM tab0 AS cor0
----
636080
753660
912708
onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT ALL - col0 DIV col1 + - col1 AS col2 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - col0 / col1 + - col1 AS col2 FROM tab1 AS cor0
----
-16
-19
-26
query I rowsort
SELECT DISTINCT + + col2 * col0 + + col2 + col0 * col1 AS col2 FROM tab2 AS cor0
----
433
4383
6656
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
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-3315
SELECT + col1 / col0 col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - - col2 * + col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - col1 + + col2 FROM tab2 WHERE NOT + col0 BETWEEN - col1 * - col2 * + col0 AND col2 + - col1
----
-33
-4
21
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN NULL AND NULL OR - col0 * col1 * + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col0 * + tab1.col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 39 * + tab2.col2 AS col0 FROM tab2
----
1014
1053
1482
query I rowsort
SELECT ALL - col0 * - col2 + col0 AS col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - + col1 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + 0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + + col2 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10
-13
-26
query I rowsort
SELECT ALL col1 * - col2 * + col1 + + col0 AS col0 FROM tab1
----
-16144
-36501
-5636
query I rowsort
SELECT - col2 + + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL col2 * + col1 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ALL col0 + tab1.col1 - - col1 FROM tab1
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT + col0 DIV + col0 - + tab2.col0 AS col0 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-3331
SELECT + col0 / + col0 - + tab2.col0 AS col0 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT DISTINCT col1 + - col0 + col0 AS col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT DISTINCT + col1 + col0 - + col1 * col2 DIV col1 FROM tab2
----
11
111
58
skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + col1 + col0 - + col1 * col2 / col1 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL + col2 + + col1 + + col1 FROM tab2
----
144
72
89
query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 + - col0 / + col0 <> NULL
----
query I rowsort
SELECT col1 * + col0 * + col1 + col1 AS col2 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT DISTINCT - col2 + tab2.col1 + col0 * + col0 * - col0 FROM tab2
----
-339
-474519
-493060
query I rowsort
SELECT col0 * + col2 * + col1 AS col1 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT col1 * col2 * col0 + - col0 DIV + col1 AS col0 FROM tab1
----
36474
4212
99834
skipif mysql # not compatible
query I rowsort label-3339
SELECT col1 * col2 * col0 + - col0 / + col1 AS col0 FROM tab1
----
36474
4212
99834
query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE col0 + col2 IN ( + col1 )
----
query I rowsort
SELECT - col0 * col0 * tab0.col0 AS col2 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT - col0 * col2 * - tab1.col1 FROM tab1
----
36480
4212
99840
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( - col1 ) AND ( col2 )
----
query I rowsort
SELECT ALL col2 * col1 + tab0.col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col2 * - col1 * - col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL 19 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1362
236
4621
query I rowsort
SELECT DISTINCT + 84 * col0 AS col0 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT col1 * col2 * 11 AS col2 FROM tab1
----
13728
15444
6270
query I rowsort
SELECT 52 + + col2 * - col0 AS col1 FROM tab1
----
-110
-3596
-7628
query I rowsort
SELECT ALL - - 14 * col1 FROM tab0 cor0
----
1204
1274
1358
query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT DISTINCT + + col1 + + cor0.col1 DIV col2 + - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT + + col1 + + cor0.col1 / col2 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 23 * col1 + + 63 FROM tab0 AS cor0
----
2041
2156
2294
query I rowsort
SELECT DISTINCT col0 - - tab2.col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + - 19 * + col1 * cor0.col1 + - col2 AS col1 FROM tab2 cor0
----
-18286
-5529
-66165
query I rowsort
SELECT ALL - ( - cor1.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - + 91 + col0 * col0 FROM tab1 AS cor0
----
-82
4005
6309
query I rowsort
SELECT ALL 25 * col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + + 1 AS col2 FROM tab1 AS cor0
----
-168
-675
-99
query I rowsort
SELECT cor0.col0 * - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT tab1.col0 + - col2 DIV - col1 - tab1.col0 * col0 AS col2 FROM tab1
----
-4
-4027
-6313
skipif mysql # not compatible
query I rowsort label-3361
SELECT tab1.col0 + - col2 / - col1 - tab1.col0 * col0 AS col2 FROM tab1
----
-4
-4027
-6313
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col0 * + cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL col0 - col0 * col1 AS col1 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col2 col1 FROM tab1
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT col0 DIV col2 + + tab0.col2 * - col1 FROM tab0
----
-2838
-62
-7461
skipif mysql # not compatible
query I rowsort label-3366
SELECT col0 / col2 + + tab0.col2 * - col1 FROM tab0
----
-2838
-62
-7461
query I rowsort
SELECT DISTINCT col0 + col0 * col1 * + col2 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT - col1 * col0 + - col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT - col0 - + col0 * col0 AS col1 FROM tab0 WHERE NOT col1 BETWEEN col0 + - col0 AND col0 * col1
----
query I rowsort
SELECT - col1 + tab1.col2 * + tab1.col2 + - col1 FROM tab1
----
2864
3229
9190
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - col1 * col2 )
----
query I rowsort
SELECT + + 40 AS col0 FROM tab0 AS cor0
----
40
40
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3373
SELECT DISTINCT CAST( NULL AS SIGNED ) + 15 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 15 AS col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT - col1 * 68 DIV col1 AS col1 FROM tab1
----
-68
-68
-68
skipif mysql # not compatible
query I rowsort label-3374
SELECT - col1 * 68 / col1 AS col1 FROM tab1
----
-68
-68
-68
query I rowsort
SELECT - 69 * + col0 AS col0 FROM tab2
----
-483
-5382
-5451
query I rowsort
SELECT ALL - 18 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3377
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 86 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT + tab2.col2 + tab2.col0 + + col2 AS col0 FROM tab2
----
130
155
61
query I rowsort
SELECT ALL + ( col1 ) * - col2 + col0 * + col2 + + col2 * col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT - 49 DIV - col1 + ( + ( + tab1.col1 ) ) FROM tab1
----
14
16
27
skipif mysql # not compatible
query I rowsort label-3381
SELECT - 49 / - col1 + ( + ( + tab1.col1 ) ) FROM tab1
----
14
16
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT ALL + col0 + - col0 + + CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + col0 + - col0 + + CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 48 * - cor0.col1 + - col2 FROM tab2 AS cor0
----
-1515
-2858
-854
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT + col0 + - col0 DIV 92 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3384
SELECT + col0 + - col0 / 92 AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT ALL 10 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 10 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT + + 24 DIV col1 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3386
SELECT + + 24 / col1 FROM tab1 AS cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT DISTINCT cor0.col2 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT cor0.col2 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT col0 * - cor0.col2 + - 53 * + 83 - cor0.col1 * - col1 * + col0 FROM tab2 AS cor0
----
15430
2139
265091
query I rowsort
SELECT col2 * 48 + + 12 * col2 AS col0 FROM tab2
----
1560
1620
2280
query I rowsort
SELECT col2 + ( col2 ) * + col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL + col2 + - 20 + col0 FROM tab1 AS cor0
----
101
156
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3392
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + - 85 AS col0 FROM tab1 AS cor0
----
-21
-5
-82
query I rowsort
SELECT ALL + col2 - 0 * col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3395
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + - col0 + col2 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + - col0 + col2 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + - col1 - 70 FROM tab1 AS cor0
----
-1123
-174
-720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 30 col1 FROM tab1 AS cor0
----
-30
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - ( - ( col2 ) ) * + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-399
1536
2754
query I rowsort
SELECT ALL - col2 - 58 AS col1 FROM tab1 AS cor0
----
-112
-115
-154
query I rowsort
SELECT DISTINCT - - ( + cor0.col0 ) + col0 * - col1 * + col1 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT DISTINCT ( 49 ) + + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
2077
238
3051
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + 95 + + col0 AS col1 FROM tab0 cor0
----
119
130
184
query I rowsort
SELECT ALL + 43 * + col1 + - col0 FROM tab1 AS cor0
----
1115
366
479
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + 50 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2114
3445
8149
query I rowsort
SELECT DISTINCT + col1 * + 6 AS col2 FROM tab1
----
156
60
78
query I rowsort
SELECT DISTINCT 61 * - col0 AS col2 FROM tab0
----
-1464
-2135
-5429
query I rowsort
SELECT ALL ( + col0 * col2 ) AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT - CAST( - cor0.col2 AS SIGNED ) * + col2 FROM tab2 cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3411
SELECT - CAST ( - cor0.col2 AS INTEGER ) * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - - col2 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) + + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - 7 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT + - cor0.col1 * + col0 + + col2 DIV col1 FROM tab2 AS cor0
----
-1341
-217
-4602
skipif mysql # not compatible
query I rowsort label-3415
SELECT + - cor0.col1 * + col0 + + col2 / col1 FROM tab2 AS cor0
----
-1341
-217
-4602
query I rowsort
SELECT - 44 * col0 FROM tab1 cor0
----
-132
-2816
-3520
query I rowsort
SELECT - col2 * col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + - 14 + - col1 FROM tab0 AS cor0
----
-100
-105
-111
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT col2 DIV ( + col0 ) AS col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3419
SELECT col2 / ( + col0 ) AS col0 FROM tab2 cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT DISTINCT - col0 * + ( - col1 ) DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT - col0 * + ( - col1 ) / cor0.col1 AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT col2 DIV - ( col0 ) AS col0 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3421
SELECT col2 / - ( col0 ) AS col0 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT ALL + - col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT - + col0 DIV 54 col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3423
SELECT - + col0 / 54 col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL col2 + 89 * col0 AS col0 FROM tab2 AS cor0
----
650
6968
7069
query I rowsort
SELECT - col0 * 9 FROM tab2 AS cor0
----
-63
-702
-711
query I rowsort
SELECT ALL + col2 + tab1.col0 + col0 * col0 FROM tab1
----
4217
6576
66
query I rowsort
SELECT + col2 * 64 AS col0 FROM tab1 AS cor0
----
3456
3648
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT - - col1 DIV + 63 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3428
SELECT - - col1 / + 63 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - 9 * + cor0.col0 FROM tab2 cor0
----
-63
-702
-711
query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) * col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col0 + - ( col2 ) FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3432
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 + + col2 * col0 + - cor0.col0 FROM tab2 cor0
----
2009
213
2940
query I rowsort
SELECT - + col0 + 69 FROM tab2 AS cor0
----
-10
-9
62
query I rowsort
SELECT ALL - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - 38 * col0 AS col2 FROM tab0 cor0
----
1330
3382
912
query I rowsort
SELECT 13 * - col0 * 35 AS col0 FROM tab0 AS cor0
----
-10920
-15925
-40495
query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) FROM tab1
----
54
57
96
query I rowsort
SELECT ( 47 + col1 ) AS col0 FROM tab1
----
57
60
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT DISTINCT - 8 DIV - 4 col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - 8 / - 4 col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
2
query I rowsort
SELECT DISTINCT 8 * - col1 * tab0.col0 FROM tab0
----
-16512
-27160
-64792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT - + col2 - col0 DIV + ( - col2 ) col2 FROM tab0 AS cor0
----
-33
-81
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3443
SELECT - + col2 - col0 / + ( - col2 ) col2 FROM tab0 AS cor0
----
-33
-81
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT + tab1.col1 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3444
SELECT + tab1.col1 / + col2 AS col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT tab1.col2 * col1 * + col0 + 3 - col2 AS col2 FROM tab1
----
36426
4161
99747
query I rowsort
SELECT col0 + col2 - 21 FROM tab2
----
13
83
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT - col1 * + col2 + col1 * + col0 - col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-1327
-209
69
skipif mysql # not compatible
query I rowsort label-3448
SELECT - col1 * + col2 + col1 * + col0 - col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-1327
-209
69
query I rowsort
SELECT + 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT cor0.col1 + 93 AS col1 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT + cor0.col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL - col2 * - col0 + - col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT DISTINCT + tab1.col1 + - ( + cor0.col1 ) FROM tab1, tab2, tab2 cor0
----
9 values hashing to 17894375c29631326d468821c0c61127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT col2 * 20 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
1083
1204
2000
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL col0 + col0 * - col0 + col0 FROM tab0 AS cor0
----
-1155
-528
-7743
query I rowsort
SELECT - col2 + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col2 col1 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT - 26 - 68 FROM tab1
----
-94
-94
-94
query I rowsort
SELECT - 24 * + 57 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to cafd43eff051621ca4b0a15c7481e1d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab1
----
16
16
16
query I rowsort
SELECT col0 * ( col0 * col1 ) + + 0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - col1 * 6 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - + 86 + - col0 AS col0 FROM tab2 AS cor0
----
-164
-165
-93
query I rowsort
SELECT DISTINCT - ( + 62 ) FROM tab2 AS cor0
----
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT ALL + + ( col2 ) DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + + ( col2 ) / - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL + - 53 * col1 + + ( - col2 ) FROM tab0 AS cor0
----
-4591
-4905
-5142
query I rowsort
SELECT + - col2 * + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT - - 70 * - col0 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT ALL - 37 - + col0 FROM tab2 cor0
----
-115
-116
-44
query I rowsort
SELECT + + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 64 * col2 AS col2 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT ALL + 76 * - col1 + ( col2 ) + col1 * 58 FROM tab1 AS cor0
----
-123
-138
-414
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * cor0.col1 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT ALL col2 DIV + col1 + + col1 FROM tab1 cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL col2 / + col1 + + col1 FROM tab1 cor0
----
15
20
28
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3481
SELECT + + col1 DIV - 93 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3481
SELECT + + col1 / - 93 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3482
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 55 / cor0.col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 55 / cor0.col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 39 * col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT DISTINCT + 22 FROM tab1, tab2 AS cor0, tab2 cor1
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT - col1 - + CAST( + ( - col1 ) AS SIGNED ) * ( + col0 ) FROM tab1
----
1027
52
630
skipif mysql # not compatible
query I rowsort label-3485
SELECT - col1 - + CAST ( + ( - col1 ) AS INTEGER ) * ( + col0 ) FROM tab1
----
1027
52
630
query I rowsort
SELECT - + 32 * + 64 AS col2 FROM tab1 AS cor0
----
-2048
-2048
-2048
query I rowsort
SELECT - + col0 * - 20 AS col1 FROM tab1 cor0
----
1280
1600
60
query I rowsort
SELECT 39 * - 49 AS col1 FROM tab2 AS cor0
----
-1911
-1911
-1911
onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT - ( 0 ) DIV col1 + 99 AS col2 FROM tab0
----
99
99
99
skipif mysql # not compatible
query I rowsort label-3489
SELECT - ( 0 ) / col1 + 99 AS col2 FROM tab0
----
99
99
99
query I rowsort
SELECT ALL 12 + - tab2.col2 AS col0 FROM tab2
----
-14
-15
-26
query I rowsort
SELECT ALL col2 + - 58 * - col1 FROM tab2
----
1024
1825
3448
query I rowsort
SELECT + cor0.col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL 33 * 67 + - col0 * - col2 AS col2 FROM tab2
----
2400
4239
5213
query I rowsort
SELECT ALL 89 + + col1 * col0 AS col0 FROM tab2
----
1432
306
4691
query I rowsort
SELECT DISTINCT tab0.col1 * 36 AS col0 FROM tab0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT + 83 FROM tab2, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL + col2 DIV + col0 + + col0 * col2 DIV tab1.col1 FROM tab1
----
24
364
591
skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + col2 / + col0 + + col0 * col2 / tab1.col1 FROM tab1
----
24
364
591
query I rowsort
SELECT - col2 + + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT ALL + col2 DIV - col0 + - 58 FROM tab2
----
-58
-58
-61
skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + col2 / - col0 + - 58 FROM tab2
----
-58
-58
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3500
SELECT ALL + cor0.col0 DIV col0 + + cor0.col0 + + col2 col0 FROM tab0 AS cor0
----
172
37
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + cor0.col0 / col0 + + cor0.col0 + + col2 col0 FROM tab0 AS cor0
----
172
37
58
query I rowsort
SELECT col1 * + cor0.col0 + + 69 FROM tab2 AS cor0
----
1412
286
4671
query I rowsort
SELECT ALL - - col0 + 28 FROM tab1 AS cor0
----
108
31
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col0 ) + + col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL 58 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + col0 col0 FROM tab2
----
100
28
99
query I rowsort
SELECT ( col0 ) + - 51 FROM tab1
----
-48
13
29
query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
51
query I rowsort
SELECT ( - 28 ) FROM tab1, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT ALL - col2 * 8 AS col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT ALL + col0 * ( 41 ) + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1281
2032
2054
query I rowsort
SELECT ALL + + cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3513
SELECT - 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-3513
SELECT - col0 / CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - 14 + 70 AS col0 FROM tab1 cor0
----
1414
826
868
query I rowsort
SELECT - col1 * - 88 AS col1 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT DISTINCT - col1 * + 61 AS col0 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT ALL - + col0 + col2 * col1 + + col1 FROM tab1 cor0
----
1181
1427
516
query I rowsort
SELECT DISTINCT + col2 + + 93 FROM tab0 AS cor0
----
126
175
94
query I rowsort
SELECT ALL + + 52 + col2 * - cor0.col0 * - 38 AS col1 FROM tab1 AS cor0
----
138676
291892
6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3520
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 * - col1 + + col0 AS col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT ( - col0 ) * - col2 + 55 AS col1 FROM tab1 AS cor0
----
217
3703
7735
query I rowsort
SELECT - + ( 6 ) FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT - + 18 + ( - col2 ) * col2 FROM tab1 AS cor0
----
-2934
-3267
-9234
query I rowsort
SELECT - 11 + - col2 FROM tab0 AS cor0
----
-12
-44
-93
query I rowsort
SELECT ALL + col2 * cor0.col0 - + 74 FROM tab2 cor0
----
115
1954
2928
query I rowsort
SELECT + ( - col1 ) - col1 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT + + col2 DIV col0 + + 3 * + ( col2 ) + 65 FROM tab1 AS cor0
----
236
245
354
skipif mysql # not compatible
query I rowsort label-3528
SELECT + + col2 / col0 + + 3 * + ( col2 ) + 65 FROM tab1 AS cor0
----
236
245
354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT + col0 * + col1 - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3529
SELECT + col0 * + col1 - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col2 + + cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1368
-624
-675
query I rowsort
SELECT ALL + - col2 * - col0 + - 9 FROM tab0 AS cor0
----
26
7289
783
query I rowsort
SELECT + + 59 + col0 AS col0 FROM tab2 AS cor0
----
137
138
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT DISTINCT col0 + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT col0 + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 + - col2 * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT col2 + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + col0 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT cor0.col0 + ( col1 ) AS col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT DISTINCT col2 DIV + col1 + + col2 AS col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT col2 / + col1 + + col2 AS col1 FROM tab1
----
103
56
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT DISTINCT tab2.col2 DIV col0 + col2 AS col1 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT tab2.col2 / col0 + col2 AS col1 FROM tab2
----
26
30
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3540
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT 79 + - 84 AS col1 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT DISTINCT 15 - col1 * - tab0.col0 * + 61 AS col0 FROM tab0
----
125919
207110
494054
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT CAST( 60 AS SIGNED ) + col0 * - col2 FROM tab0
----
-7238
-732
25
skipif mysql # not compatible
query I rowsort label-3543
SELECT CAST ( 60 AS INTEGER ) + col0 * - col2 FROM tab0
----
-7238
-732
25
query I rowsort
SELECT DISTINCT + 65 * col2 - + col0 FROM tab1
----
3507
3641
6160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col0 - 13 FROM tab2
----
-20
-91
-92
query I rowsort
SELECT - 23 * - 2 FROM tab1
----
46
46
46
query I rowsort
SELECT + 91 * col2 + col2 * + 87 FROM tab0 AS cor0
----
14596
178
5874
query I rowsort
SELECT + - 19 * col1 AS col2 FROM tab1 AS cor0
----
-190
-247
-494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 + col1 col2 FROM tab1 cor0
----
29
32
45
query I rowsort
SELECT ALL cor0.col0 * - col1 + - col2 AS col1 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col0 + col1 - - 78 * 27 FROM tab2 AS cor0
----
2144
2202
2243
onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT DISTINCT + cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + cor0.col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 95 + + col2 FROM tab2 AS cor0
----
-57
-68
-69
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col1 AS col0 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + col1 * - col0 + - 31 FROM tab2 AS cor0
----
-1374
-248
-4633
query I rowsort
SELECT ALL + 41 + - col1 * col1 FROM tab0 AS cor0
----
-7355
-8240
-9368
query I rowsort
SELECT ALL ( 99 ) FROM tab2
----
99
99
99
query I rowsort
SELECT + - cor0.col0 * - col0 - 68 FROM tab2 AS cor0
----
-19
6016
6173
query I rowsort
SELECT ALL + col1 + - col1 * - 20 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT ALL - + 6 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT 36 + - cor0.col2 FROM tab1 AS cor0
----
-18
-21
-60
query I rowsort
SELECT - 82 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-108
-92
-95
query I rowsort
SELECT + col2 * - col2 + - 15 AS col2 FROM tab1 AS cor0
----
-2931
-3264
-9231
query I rowsort
SELECT - + col2 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT - cor0.col2 * + 9 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT - col1 * col2 * 20 AS col0 FROM tab0 AS cor0
----
-149240
-1940
-56760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col0 + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3569
SELECT col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL - - col2 + 28 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - - col2 + 28 / - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col2 + 94 AS col2 FROM tab0 AS cor0
----
12
61
93
query I rowsort
SELECT DISTINCT - - 35 + + col0 AS col1 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT ALL + col1 * 39 AS col0 FROM tab0 cor0
----
3354
3549
3783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3575
SELECT ALL col0 + - col1 * cor0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL col0 + - col1 * cor0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 56 + ( - col0 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-106
-3592
-7624
query I rowsort
SELECT DISTINCT - - 93 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
142662
60078
77841
query I rowsort
SELECT ALL + col0 * 35 + col0 AS col1 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3579
SELECT CAST( NULL AS DECIMAL ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3579
SELECT CAST ( NULL AS REAL ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT DISTINCT ( - col2 ) DIV + col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT ( - col2 ) / + col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL + 44 + - col2 * + col1 * ( col2 ) FROM tab2 AS cor0
----
-22555
-24504
-39840
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-3583
SELECT - ( col1 ) + + col1 DIV 87 AS col0 FROM tab0 AS cor0
----
-86
-90
-96
skipif mysql # not compatible
query I rowsort label-3583
SELECT - ( col1 ) + + col1 / 87 AS col0 FROM tab0 AS cor0
----
-86
-90
-96
query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL + col0 * + col0 + 28 * col2 AS col2 FROM tab0
----
10217
1253
1500
onlyif mysql # use DIV operator for integer division
query I rowsort label-3586
SELECT ALL - col2 DIV ( + col1 ) + + col0 + tab2.col1 AS col2 FROM tab2
----
137
38
94
skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - col2 / ( + col1 ) + + col0 + tab2.col1 AS col2 FROM tab2
----
137
38
94
query I rowsort
SELECT ALL col2 * - col0 + 83 AS col0 FROM tab2
----
-106
-1945
-2919
query I rowsort
SELECT DISTINCT + col0 + tab0.col2 + col2 FROM tab0
----
253
37
90
query I rowsort
SELECT DISTINCT + + ( col2 ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL + col2 * col0 DIV col1 AS col2 FROM tab0 cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + col2 * col0 / col1 AS col2 FROM tab0 cor0
----
0
80
9
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT 76 FROM tab0, tab2 AS cor0
----
76
query I rowsort
SELECT ALL - 72 * ( tab1.col2 ) * + tab1.col2 FROM tab1
----
-209952
-233928
-663552
query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 * - 58 + 97 AS col0 FROM tab1 AS cor0
----
-3035
-3209
-5471
query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT col1 + + col2 + 68 AS col1 FROM tab0
----
166
187
241
query I rowsort
SELECT tab2.col2 * col2 + col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL col0 * + col0 + col0 * col1 FROM tab0
----
16020
2640
4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 20 * - 19 col2 FROM tab0 AS cor0
----
-291
-345
-356
onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT ALL + col0 DIV 10 AS col2 FROM tab2 AS cor0
----
0
7
7
skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + col0 / 10 AS col2 FROM tab2 AS cor0
----
0
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab1
----
80
80
80
query I rowsort
SELECT DISTINCT col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT ALL + col1 DIV - col1 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + col1 / - col1 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - col0 * col0 + - 13 FROM tab1 AS cor0
----
-22
-4109
-6413
query I rowsort
SELECT DISTINCT + 11 + - col1 AS col1 FROM tab0 AS cor0
----
-75
-80
-86
query I rowsort
SELECT ALL col2 - - col2 * 16 * + 44 AS col1 FROM tab1 AS cor0
----
38070
40185
67680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT + cor0.col2 / + col0 + + CAST( NULL AS SIGNED ) / + 64 col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3610
SELECT + cor0.col2 / + col0 + + CAST ( NULL AS INTEGER ) / + 64 col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 62 * + col2 + 35 AS col1 FROM tab0 AS cor0
----
2081
5119
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT ALL - col2 * + 18 + + 66 * - col0 + + 52 DIV col1 FROM tab1 AS cor0
----
-1168
-5245
-7004
skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - col2 * + 18 + + 66 * - col0 + + 52 / col1 FROM tab1 AS cor0
----
-1168
-5245
-7004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT ALL - - col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - - col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT col1 * col0 * + cor0.col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
118860
50328
728109
query I rowsort
SELECT col2 * col1 + + col2 + tab0.col2 AS col1 FROM tab0
----
2904
7626
99
query I rowsort
SELECT 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + col2 col1 FROM tab0 AS cor0
----
152
255
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3620
SELECT ALL + + CAST( col1 AS SIGNED ) - - col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + + CAST ( col1 AS INTEGER ) - - col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - 77 + - col0 AS col0 FROM tab1 cor0
----
-141
-157
-80
query I rowsort
SELECT - - ( col2 ) * ( col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL col1 + 43 + - col2 * col2 AS col2 FROM tab2
----
-1384
-574
-655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + + 83 col0 FROM tab0
----
144
144
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL 7 DIV + col0 + col0 * - ( + col1 + + col2 ) FROM tab1
----
-238
-4288
-8720
skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL 7 / + col0 + col0 * - ( + col1 + + col2 ) FROM tab1
----
-238
-4288
-8720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3626
SELECT CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3626
SELECT CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - ( + tab1.col1 ) * col1 AS col2 FROM tab1
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT 95 + col0 DIV col1 + col2 * col0 * tab1.col1 AS col2 FROM tab1
----
36581
4307
99941
skipif mysql # not compatible
query I rowsort label-3628
SELECT 95 + col0 / col1 + col2 * col0 * tab1.col1 AS col2 FROM tab1
----
36581
4307
99941
query I rowsort
SELECT DISTINCT col1 + 65 * - col1 + + 89 FROM tab2
----
-1895
-3687
-999
query I rowsort
SELECT - 77 AS col1 FROM tab1
----
-77
-77
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + - col2 * - 17 col1 FROM tab0 AS cor0
----
-71
1306
473
query I rowsort
SELECT DISTINCT - ( + tab2.col0 + col2 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
33
query I rowsort
SELECT ALL 24 * col1 AS col2 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT ALL col1 + 17 * + tab2.col1 FROM tab2
----
1062
306
558
query I rowsort
SELECT col1 * 96 AS col1 FROM tab0
----
8256
8736
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT + CAST( 51 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
77
78
89
skipif mysql # not compatible
query I rowsort label-3637
SELECT + CAST ( 51 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
77
78
89
query I rowsort
SELECT col0 * + col2 + col2 FROM tab1 cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT DISTINCT col0 + - ( col0 + col1 ) * col2 FROM tab0
----
-14671
-3606
-97
query I rowsort
SELECT DISTINCT + + col1 * ( - col2 ) FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT - CAST( + col1 AS SIGNED ) DIV col2 + 9 + cor0.col2 * - col0 col0 FROM tab1 AS cor0
----
-153
-3639
-7671
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3642
SELECT - CAST ( + col1 AS INTEGER ) / col2 + 9 + cor0.col2 * - col0 col0 FROM tab1 AS cor0
----
-153
-3639
-7671
query I rowsort
SELECT - col1 + - col0 - + col1 * col0 AS col2 FROM tab0 AS cor0
----
-2174
-3527
-8279
query I rowsort
SELECT - + col1 * col1 - - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + col0 * col1 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3646
SELECT ALL - col1 * - 44 + col0 DIV col2 FROM tab0 AS cor0
----
3784
4005
4303
skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - col1 * - 44 + col0 / col2 FROM tab0 AS cor0
----
3784
4005
4303
query I rowsort
SELECT ALL + col1 * - 19 + ( + col0 ) * + col1 FROM tab2 AS cor0
----
-372
1020
3481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3648
SELECT DISTINCT - + col1 * CAST( + ( col1 ) + col1 AS SIGNED ) FROM tab1 cor0
----
-1352
-200
-338
skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - + col1 * CAST ( + ( col1 ) + col1 AS INTEGER ) FROM tab1 cor0
----
-1352
-200
-338
query I rowsort
SELECT tab1.col2 - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3650
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + col0 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + col0 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - col0 * 55 AS col0 FROM tab1 AS cor0
----
-162
-3456
-4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT ALL - col2 DIV col0 + + col1 AS col2 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - col2 / col0 + + col1 AS col2 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( col1 AS REAL ) AS col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT 51 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - ( 16 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT - CAST( NULL AS SIGNED ) * 65 + - col1 * 93 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3657
SELECT - CAST ( NULL AS INTEGER ) * 65 + - col1 * 93 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 71 + + col0 AS col0 FROM tab2 AS cor0
----
149
150
78
query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT - - cor0.col2 + - cor0.col1 DIV + 90 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3660
SELECT - - cor0.col2 + - cor0.col1 / + 90 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 * + col1 + + 85 FROM tab2 AS cor0
----
-1449
-561
-752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT ALL - cor0.col1 / col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - cor0.col1 / col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT DISTINCT 10 DIV - col2 + 54 * - 65 + col1 AS col1 FROM tab1 AS cor0
----
-3484
-3497
-3500
skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT 10 / - col2 + 54 * - 65 + col1 AS col1 FROM tab1 AS cor0
----
-3484
-3497
-3500
query I rowsort
SELECT - - ( cor0.col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 5 * col0 + ( col2 ) + col1 FROM tab1 cor0
----
387
509
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT + col1 + col0 DIV 34 AS col0 FROM tab0 AS cor0
----
86
93
98
skipif mysql # not compatible
query I rowsort label-3666
SELECT + col1 + col0 / 34 AS col0 FROM tab0 AS cor0
----
86
93
98
query I rowsort
SELECT DISTINCT + + 63 * col0 AS col0 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT + col1 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - 82 FROM tab1 cor0
----
-82
-82
-82
query I rowsort
SELECT - ( + col2 ) + - 7 AS col1 FROM tab0 AS cor0
----
-40
-8
-89
query I rowsort
SELECT + - col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT ALL + + col1 DIV col1 - col0 col1 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + + col1 / col1 - col0 col1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + 61 + col1 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
-22770
-271457
-6666
query I rowsort
SELECT - 7 * col0 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT ALL + - col2 + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - col2 * + col1 + + 67 AS col1 FROM tab2 AS cor0
----
-1467
-579
-770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 + - col2 col1 FROM tab0 AS cor0
----
-137
-56
-88
query I rowsort
SELECT + + col1 + ( + col0 ) * + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 37 + col1 * col0 AS col1 FROM tab0
----
2101
3432
8136
query I rowsort
SELECT - ( + col2 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - 12 * + col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT ALL + col1 + cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT + col2 * 45 AS col0 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT ALL + 5 + - 82 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT - col0 * 6 AS col2 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT + ( col0 ) - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + - ( ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ALL col0 DIV - 15 + col1 - - col1 AS col1 FROM tab1
----
16
21
52
skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL col0 / - 15 + col1 - - col1 AS col1 FROM tab1
----
16
21
52
query I rowsort
SELECT ALL - + ( 71 ) + col1 * + ( - col0 ) AS col1 FROM tab1 cor0
----
-1111
-149
-711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3692
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + + col1 + CAST( 38 AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + + col1 + CAST ( 38 AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT DISTINCT + tab2.col0 DIV - 68 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT + tab2.col0 / - 68 FROM tab2
----
-1
0
query I rowsort
SELECT 47 * - col1 FROM tab2
----
-1457
-2773
-799
query I rowsort
SELECT ALL 20 + 33 + + col0 AS col2 FROM tab0
----
142
77
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 94 col2 FROM tab0 AS cor0
----
12
61
93
query I rowsort
SELECT ALL + col1 - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab1 AS cor0
----
33
query I rowsort
SELECT DISTINCT + col1 * col0 + + col1 + ( col2 ) * - col0 FROM tab0 AS cor0
----
1358
3457
892
query I rowsort
SELECT ALL - - col1 + 23 AS col1 FROM tab2 AS cor0
----
40
54
82
query I rowsort
SELECT + 77 * col0 AS col0 FROM tab1 cor0
----
231
4928
6160
query I rowsort
SELECT ALL + 93 AS col1 FROM tab2
----
93
93
93
query I rowsort
SELECT ALL + col0 + - col1 + - 47 AS col0 FROM tab0
----
-109
-109
-49
query I rowsort
SELECT col2 + col1 + col1 FROM tab2
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT ALL + col0 DIV col1 + ( 17 * - tab2.col0 + 95 ) AS col0 FROM tab2
----
-1230
-1244
-24
skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + col0 / col1 + ( 17 * - tab2.col0 + 95 ) AS col0 FROM tab2
----
-1230
-1244
-24
query I rowsort
SELECT ALL - tab1.col1 * col1 + + ( 91 * col2 ) FROM tab1
----
4238
5087
8567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * - col2 col1 FROM tab0 AS cor0
----
-297
-738
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT ALL - + cor0.col1 - col1 DIV 67 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - + cor0.col1 - col1 / 67 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - - 54 + + col0 * + col0 FROM tab0 AS cor0
----
1279
630
7975
query I rowsort
SELECT ALL - col1 * col2 + ( col1 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 - cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - 64 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb
query I rowsort
SELECT ALL - col0 * col0 - 36 * + col1 AS col1 FROM tab0 AS cor0
----
-11197
-3672
-4717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + 27 col0 FROM tab2 AS cor0
----
53
54
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT + col0 DIV + cor0.col1 + col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-3719
SELECT + col0 / + cor0.col1 + col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT DISTINCT col2 + + ( ( - col1 ) ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - col0 * cor0.col1 + 90 AS col0 FROM tab1 AS cor0
----
1130
168
730
query I rowsort
SELECT ALL col0 * + col2 + 50 * - col2 AS col2 FROM tab0 cor0
----
-15
-858
3198
query I rowsort
SELECT DISTINCT - col1 - - col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - col1 * + col0 + 23 AS col0 FROM tab1 AS cor0
----
-1017
-55
-617
query I rowsort
SELECT ALL - col0 + + cor0.col0 + 36 AS col0 FROM tab0 AS cor0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT ALL col0 DIV + tab0.col0 + col0 * 80 * - tab0.col2 AS col1 FROM tab0
----
-2799
-583839
-63359
skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL col0 / + tab0.col0 + col0 * 80 * - tab0.col2 AS col1 FROM tab0
----
-2799
-583839
-63359
query I rowsort
SELECT col1 * - col2 - - 11 FROM tab2
----
-1523
-635
-826
query I rowsort
SELECT col1 + 49 AS col0 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT + col0 + 50 AS col1 FROM tab2 cor0
----
128
129
57
query I rowsort
SELECT DISTINCT 5 + + tab2.col1 AS col2 FROM tab2
----
22
36
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 19 col2 FROM tab1
----
1216
1520
57
query I rowsort
SELECT + col2 * + cor0.col2 * - col1 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - cor0.col0 - - 25 AS col0 FROM tab0 AS cor0
----
-10
-64
1
query I rowsort
SELECT - col0 * - col0 + + col2 + col1 FROM tab0 AS cor0
----
1323
695
8094
query I rowsort
SELECT DISTINCT + - 61 * + 36 + col0 * - col1 FROM tab2 AS cor0
----
-2413
-3539
-6798
query I rowsort
SELECT col2 + 48 * + col2 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT ALL - col1 * - 30 * tab0.col2 AS col1 FROM tab0
----
223860
2910
85140
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT + + col0 * ( + col2 ) + - ( + 63 ) DIV - col1 + - col0 AS col0 FROM tab1 cor0
----
161
3590
7604
skipif mysql # not compatible
query I rowsort label-3738
SELECT + + col0 * ( + col2 ) + - ( + 63 ) / - col1 + - col0 AS col0 FROM tab1 cor0
----
161
3590
7604
query I rowsort
SELECT + tab0.col1 + 44 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3357c7f728c4723520463521b0c3f01e
query I rowsort
SELECT + col2 * - ( tab0.col0 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ( - 85 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT col1 DIV ( - 62 + - col2 ) FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3742
SELECT col1 / ( - 62 + - col2 ) FROM tab0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3743
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3743
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 + + col1 * col2 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT + - col0 + cor0.col0 DIV col0 FROM tab2 cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-3745
SELECT + - col0 + cor0.col0 / col0 FROM tab2 cor0
----
-6
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 10 ) col2 FROM tab2
----
-10
-10
-10
query I rowsort
SELECT ALL - 0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + 2 FROM tab0, tab1, tab0 cor0, tab2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT DISTINCT - tab0.col0 * + tab0.col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3750
SELECT DISTINCT - col2 DIV 33 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - col2 / 33 FROM tab0
----
-1
-2
0
query I rowsort
SELECT col0 + col0 * col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT + + 11 AS col2 FROM tab0 AS cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT + col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3753
SELECT + col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
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-3754
SELECT col1 / col0 col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT 29 + cor0.col0 AS col2 FROM tab0 AS cor0
----
118
53
64
query I rowsort
SELECT 85 + + col1 FROM tab1
----
111
95
98
query I rowsort
SELECT 0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + col0 * - col1 + col2 * + col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT ALL - 13 * col2 FROM tab0 AS cor0
----
-1066
-13
-429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT + col1 + - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL - 2 * - col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT + col0 * col0 + - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
-43
4076
6374
query I rowsort
SELECT ALL col2 - ( cor0.col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor0.col2 * 66 FROM tab1 AS cor0
----
3564
3762
6336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3766
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - col0 * 14 AS col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT ALL + col2 * + tab2.col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL - 81 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab2 AS cor0
----
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT col0 * col0 DIV - col1 FROM tab2
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-3772
SELECT col0 * col0 / - col1 FROM tab2
----
-1
-103
-367
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT tab0.col1 * - CAST( 47 AS SIGNED ) AS col1 FROM tab0
----
-4042
-4277
-4559
skipif mysql # not compatible
query I rowsort label-3773
SELECT tab0.col1 * - CAST ( 47 AS INTEGER ) AS col1 FROM tab0
----
-4042
-4277
-4559
query I rowsort
SELECT + - col2 + 67 + + cor0.col0 FROM tab2 AS cor0
----
108
119
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 54 + - cor0.col2 col1 FROM tab0 AS cor0
----
-1329
-1891
-4888
query I rowsort
SELECT DISTINCT 33 + + 25 FROM tab0 AS cor0
----
58
query I rowsort
SELECT ALL - + col0 * - ( - col0 ) * - cor0.col0 FROM tab0 AS cor0
----
13824
42875
704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT ALL + CAST( 22 AS SIGNED ) * + cor0.col1 + - col1 DIV + 23 FROM tab2 cor0
----
1296
374
681
skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + CAST ( 22 AS INTEGER ) * + cor0.col1 + - col1 / + 23 FROM tab2 cor0
----
1296
374
681
onlyif mysql # use DIV operator for integer division
query I rowsort label-3779
SELECT + col0 DIV + col1 col0 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3779
SELECT + col0 / + col1 col0 FROM tab1
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3780
SELECT DISTINCT - col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL 28 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT col2 DIV col0 + - col2 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-3784
SELECT col2 / col0 + - col2 FROM tab1
----
-36
-57
-95
query I rowsort
SELECT - col1 + cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-100
-139
-193
query I rowsort
SELECT - 58 * + col2 + col2 AS col0 FROM tab0 cor0
----
-1881
-4674
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - 56 AS REAL ) col1 FROM tab0 cor0
----
-56
-56
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3788
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + + tab1.col2 / - ( + 23 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + + tab1.col2 / - ( + 23 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 53 * col2 + - 7 * + 99 FROM tab0 AS cor0
----
-640
1056
3653
query I rowsort
SELECT + - col2 * + col2 + 45 FROM tab2 AS cor0
----
-1399
-631
-684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT col1 + + col2 * col1 + + ( + 20 + - tab2.col2 ) * CAST( + col1 AS SIGNED ) FROM tab2
----
1239
357
651
skipif mysql # not compatible
query I rowsort label-3791
SELECT col1 + + col2 * col1 + + ( + 20 + - tab2.col2 ) * CAST ( + col1 AS INTEGER ) FROM tab2
----
1239
357
651
query I rowsort
SELECT - cor0.col1 - ( cor0.col0 + - cor0.col2 ) FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT ALL - 45 + - col1 * - col1 * 39 AS col0 FROM tab2
----
11226
135714
37434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4
query I rowsort
SELECT DISTINCT - - 74 + - col1 FROM tab2 AS cor0
----
15
43
57
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab1, tab2 AS cor0
----
54
query I rowsort
SELECT ALL + + 14 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-40
-43
-82
query I rowsort
SELECT ALL - + 75 + col0 * col2 AS col2 FROM tab2 cor0
----
114
1953
2927
query I rowsort
SELECT + col2 * - col2 + + 60 * - 66 FROM tab1 AS cor0
----
-13176
-6876
-7209
query I rowsort
SELECT cor0.col0 + + col0 * col1 - + col2 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT DISTINCT - + 99 FROM tab0 AS cor0
----
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col0 FROM tab2 AS cor0
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 0 + col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT + - col1 + - col1 * cor0.col1 DIV col0 FROM tab1 AS cor0
----
-11
-15
-251
skipif mysql # not compatible
query I rowsort label-3805
SELECT + - col1 + - col1 * cor0.col1 / col0 FROM tab1 AS cor0
----
-11
-15
-251
query I rowsort
SELECT ALL - col0 + - col1 * 23 FROM tab0 AS cor0
----
-2002
-2182
-2266
query I rowsort
SELECT + - 97 + col1 * - 50 FROM tab2 AS cor0
----
-1647
-3047
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT + + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3808
SELECT + + cor0.col0 / col0 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3809
SELECT col1 * + CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-3809
SELECT col1 * + CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL + col1 * 98 + cor0.col1 * col1 + 37 AS col2 FROM tab2 AS cor0
----
1992
4036
9300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - ( 82 ) col1 FROM tab1 AS cor0
----
-18
-2
-79
query I rowsort
SELECT ALL - cor0.col1 + col0 + 78 FROM tab1 AS cor0
----
132
145
55
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 * - col0 + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT ALL + col0 - 34 AS col2 FROM tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT - cor0.col2 * + ( 30 ) FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT + - cor0.col0 * 73 AS col0 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT DISTINCT + col0 * 96 - 52 FROM tab1 AS cor0
----
236
6092
7628
query I rowsort
SELECT ALL + col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - col1 + + 56 * - col0 FROM tab1 cor0
----
-194
-3594
-4493
query I rowsort
SELECT + 70 * col2 - col0 FROM tab2 AS cor0
----
1742
1883
2581
query I rowsort
SELECT ALL - col0 + + ( - cor0.col2 ) - col1 AS col2 FROM tab2 cor0
----
-134
-163
-65
query I rowsort
SELECT ALL ( + cor0.col2 ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 77 FROM tab1 cor0
----
-77
-77
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT ALL - CAST( NULL AS SIGNED ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - CAST ( NULL AS INTEGER ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - col1 * 11 AS col0 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT col1 * + ( col2 ) + + col0 * - ( col2 ) + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT col2 + CAST( + 61 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
237
3961
4976
skipif mysql # not compatible
query I rowsort label-3828
SELECT col2 + CAST ( + 61 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
237
3961
4976
query I rowsort
SELECT - col1 * + 73 - - ( cor0.col0 * 22 ) FROM tab1 AS cor0
----
-1832
678
811
query I rowsort
SELECT DISTINCT + col1 + col1 * + 17 AS col2 FROM tab0
----
1548
1638
1746
query I rowsort
SELECT - + col0 + 71 + + 81 * col0 AS col0 FROM tab1 AS cor0
----
311
5191
6471
query I rowsort
SELECT - 47 * - col0 AS col1 FROM tab1
----
141
3008
3760
query I rowsort
SELECT col0 + + tab0.col1 * col2 AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + - 44 + col2 FROM tab1 AS cor0
----
10
13
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT + col0 DIV + col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-3835
SELECT + col0 / + col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT col2 * tab0.col1 + col1 * col1 * + col1 FROM tab0
----
638894
761033
912770
query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT + tab2.col1 - - col1 * col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT cor0.col0 DIV - col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3839
SELECT cor0.col0 / - col0 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col2 * cor0.col1 col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
88
query I rowsort
SELECT - col0 + tab2.col0 * + col2 + + tab2.col0 FROM tab2 WHERE NOT col0 * + col1 <> ( col2 )
----
query I rowsort
SELECT + tab1.col0 + + col2 * col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL col1 - + tab2.col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + tab1.col0 - - tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL ( tab0.col2 * + col2 + + 92 ) FROM tab0
----
1181
6816
93
query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3848
SELECT DISTINCT 56 * + col0 + CAST( - 52 AS SIGNED ) FROM tab0
----
1292
1908
4932
skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT 56 * + col0 + CAST ( - 52 AS INTEGER ) FROM tab0
----
1292
1908
4932
query I rowsort
SELECT ALL - col2 + col0 + - ( col2 ) FROM tab1
----
-105
-112
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT + ( col2 ) + + col1 DIV col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-3850
SELECT + ( col2 ) + + col1 / col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT - - ( + col0 ) + col0 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
13848
42910
705058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * - col2 col2 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
44
query I rowsort
SELECT col0 * + cor0.col0 * + col1 - col0 * col1 AS col2 FROM tab1 AS cor0
----
156
40320
82160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col0 ) + col2 col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT 0 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - - col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 + + ( col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 49 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT + - col1 + - col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT + + col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 59 AS col1 FROM tab1 cor0
----
-59
-59
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab1
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 78 ) * - col0 * + tab2.col0 col1 FROM tab2
----
3822
474552
486798
query I rowsort
SELECT + col2 + + ( col0 ) AS col0 FROM tab0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT CAST( NULL AS SIGNED ) * + col2 * + tab0.col1 + + 65 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3867
SELECT CAST ( NULL AS INTEGER ) * + col2 * + tab0.col1 + + 65 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT ALL col0 DIV - 70 + + col0 AS col2 FROM tab1
----
3
64
79
skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL col0 / - 70 + + col0 AS col2 FROM tab1
----
3
64
79
query I rowsort
SELECT col2 * col1 * col0 + + col2 FROM tab2
----
119678
51072
5886
query I rowsort
SELECT ALL 93 * - cor1.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to dd6d6bbf85225a01174cc645e36b80b2
query I rowsort
SELECT DISTINCT ( 97 ) AS col1 FROM tab2, tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT col0 * col1 * + 71 FROM tab0 cor0
----
146544
241045
575029
query I rowsort
SELECT ALL - col1 + + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + + col1 + col1 + - 88 AS col2 FROM tab2 AS cor0
----
-26
-54
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( + col2 ) * col0 col2 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT + col2 * CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3876
SELECT + col2 * CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + + ( + col0 ) + col2 * 88 FROM tab0 cor0
----
122
2895
7223
query I rowsort
SELECT DISTINCT - col2 - - 45 FROM tab1 AS cor0
----
-12
-51
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT DISTINCT col2 DIV + col2 + - col0 + + col2 DIV 4 AS col2 FROM tab1 AS cor0
----
-49
-55
11
skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT col2 / + col2 + - col0 + + col2 / 4 AS col2 FROM tab1 AS cor0
----
-49
-55
11
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 - cor0.col1 FROM tab0 cor0
----
-1322
-662
-8012
query I rowsort
SELECT - + 98 + - ( cor0.col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1632
-744
-935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 59 col1 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT ALL - - 52 + 94 * col2 FROM tab1 AS cor0
----
5128
5410
9076
query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1 AS cor0
----
-71
query I rowsort
SELECT ALL + - cor0.col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col1 * - col2 + + cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - cor0.col0 + 85 FROM tab1, tab1 AS cor0
----
21
5
82
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab0, tab2 AS cor0
----
-20
query I rowsort
SELECT 50 * + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to d2ff32563fae27ec65bd7fd9c8f1b456
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT col0 + - col0 * col2 AS col1 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + + ( col2 ) * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - col1 * + col1 * - 92 FROM tab2
----
26588
320252
88412
query I rowsort
SELECT - col1 * cor0.col0 + cor0.col2 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - 8 * + col0 AS col2 FROM tab2 cor0
----
-56
-624
-632
query I rowsort
SELECT ALL 41 * - col2 AS col1 FROM tab0 AS cor0
----
-1353
-3362
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT col0 DIV tab1.col2 col2 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3898
SELECT col0 / tab1.col2 col2 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT col2 + + 96 * - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
-18117
-194662
-288154
query I rowsort
SELECT - 74 + cor0.col2 + - ( cor0.col0 ) FROM tab0 AS cor0
----
-108
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * col0 col2 FROM tab2 AS cor0
----
406
4524
4582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 - col0 * - tab0.col2 * - col2 col1 FROM tab0
----
-26061
-598361
40
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col2 + + col2 * + cor0.col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + col2 * 22 + + col1 * - col2 + 46 FROM tab2 AS cor0
----
-197
-916
236
query I rowsort
SELECT col0 + col2 + + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - - cor0.col2 + ( col2 ) * col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col2 * + col1 + col1 * - col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3911
SELECT - col2 * - col1 * + CAST( + 65 AS SIGNED ) - col1 FROM tab0
----
184384
484939
6208
skipif mysql # not compatible
query I rowsort label-3911
SELECT - col2 * - col1 * + CAST ( + 65 AS INTEGER ) - col1 FROM tab0
----
184384
484939
6208
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( - tab1.col0 ) * col2 + + col0 col2 FROM tab1
----
219
3769
7856
query I rowsort
SELECT DISTINCT col1 + - tab2.col2 + 42 AS col2 FROM tab2
----
21
46
75
query I rowsort
SELECT + - col2 * ( col2 ) * + col1 + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + col1 - col0 * ( cor0.col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col2 + + 32 * + col2 AS col0 FROM tab2 AS cor0
----
1178
806
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3918
SELECT - col1 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3918
SELECT - col1 - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - ( 68 ) + col0 AS col1 FROM tab0 AS cor0
----
-68
-68
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT - col0 * col0 + 28 + col1 * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-10658
-238
-7556
skipif mysql # not compatible
query I rowsort label-3920
SELECT - col0 * col0 + 28 + col1 * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-10658
-238
-7556
onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT - tab2.col1 DIV + 7 FROM tab2
----
-2
-4
-8
skipif mysql # not compatible
query I rowsort label-3921
SELECT - tab2.col1 / + 7 FROM tab2
----
-2
-4
-8
query I rowsort
SELECT col0 - ( col0 ) * - col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT 81 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT DISTINCT ( - 34 ) FROM tab2
----
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT + CAST( NULL AS SIGNED ) + - 88 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3925
SELECT + CAST ( NULL AS INTEGER ) + - 88 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3926
SELECT DISTINCT + 55 DIV + col1 + 36 FROM tab2 AS cor0
----
36
37
39
skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + 55 / + col1 + 36 FROM tab2 AS cor0
----
36
37
39
query I rowsort
SELECT DISTINCT + 77 + col0 AS col0 FROM tab2 AS cor0
----
155
156
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL + - col1 + col0 + - ( - 58 * col1 + - cor0.col2 * cor0.col2 ) FROM tab1 AS cor0
----
10037
3883
4401
query I rowsort
SELECT ALL - 43 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-36
35
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT ALL col0 DIV col2 + + CAST( + cor0.col0 AS SIGNED ) * + cor0.col2 * - col2 FROM tab1 AS cor0
----
-207935
-737280
-8748
skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL col0 / col2 + + CAST ( + cor0.col0 AS INTEGER ) * + cor0.col2 * - col2 FROM tab1 AS cor0
----
-207935
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3932
SELECT DISTINCT + 50 DIV col1 + + col0 AS col2 FROM tab1 AS cor0
----
4
69
83
skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT + 50 / col1 + + col0 AS col2 FROM tab1 AS cor0
----
4
69
83
query I rowsort
SELECT col2 * - cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * col0 col2 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT ALL - + 36 FROM tab2 AS cor0
----
-36
-36
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * + cor0.col0 col1 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT ALL + 18 + col1 FROM tab1 AS cor0
----
28
31
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * col1 col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - - 41 * - col0 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT - CAST( NULL AS DECIMAL ) / cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3941
SELECT - CAST ( NULL AS REAL ) / cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT + - col2 + col2 DIV - col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-3943
SELECT + - col2 + col2 / - col2 FROM tab0 AS cor0
----
-2
-34
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT ( 45 ) DIV - col1 AS col1 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3944
SELECT ( 45 ) / - col1 AS col1 FROM tab2
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3945
SELECT + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 81 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL 84 + 64 FROM tab2, tab0 AS cor0
----
9 values hashing to 36fe9a243dc625516d8a332d544c71b9
query I rowsort
SELECT DISTINCT - + col1 + cor0.col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT + col0 DIV + 59 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3949
SELECT + col0 / + 59 FROM tab2 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + + ( + ( col0 ) ) * ( + col1 + + tab2.col1 ) col0 FROM tab2
----
2720
496
9322
onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT - cor0.col0 DIV + 79 + - col0 col0 FROM tab1 AS cor0
----
-3
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3951
SELECT - cor0.col0 / + 79 + - col0 col0 FROM tab1 AS cor0
----
-3
-64
-81
query I rowsort
SELECT DISTINCT + 30 + + col1 FROM tab0
----
116
121
127
query I rowsort
SELECT DISTINCT col2 * col0 * - tab2.col1 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + tab2.col0 * col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL + col2 * + 59 FROM tab0
----
1947
4838
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT DISTINCT col0 * ( - col0 ) DIV col2 AS col1 FROM tab0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT col0 * ( - col0 ) / col2 AS col1 FROM tab0
----
-1225
-17
-96
query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT DISTINCT - 56 DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - 56 / - col1 FROM tab0
----
0
query I rowsort
SELECT ( 24 ) - col0 FROM tab0
----
-11
-65
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 23 * + cor0.col0 FROM tab1, tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT - + 74 + + col2 * col2 AS col0 FROM tab1 cor0
----
2842
3175
9142
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1, tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 col2 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT + 60 DIV + col1 FROM tab1
----
2
4
6
skipif mysql # not compatible
query I rowsort label-3967
SELECT + 60 / + col1 FROM tab1
----
2
4
6
query I rowsort
SELECT - 16 * + tab1.col0 FROM tab1
----
-1024
-1280
-48
query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab1
----
5
query I rowsort
SELECT DISTINCT col2 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3971
SELECT col0 + CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3971
SELECT col0 + CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col0 * col0 + col1 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT col0 + col1 * tab1.col2 + - col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + cor0.col1 * ( - col2 * col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT 53 * col2 AS col1 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT - 76 * 56 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to aafa85a8bcad7337e326513ae3de65d0
query I rowsort
SELECT ALL 7 - 3 * tab2.col0 FROM tab2
----
-14
-227
-230
query I rowsort
SELECT + - 2 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-12800
-18
-8192
query I rowsort
SELECT 67 * 73 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b9a8dd60dc37444f2bace35c14705e6
skipif mysql # not compatible
query I rowsort
SELECT + col0 / col1 + CAST ( col0 AS REAL ) + col0 AS col0 FROM tab1 AS cor0
----
134
166
6
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3982
SELECT ALL CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - col0 + col0 * + 11 FROM tab1
----
30
640
800
query I rowsort
SELECT ALL 98 AS col2 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT 54 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + + 60 col2 FROM tab1
----
107
143
88
query I rowsort
SELECT ALL ( col0 ) * - ( - col2 ) + - col0 + col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col0 + tab0.col1 * 34 + col0 FROM tab0
----
2972
3272
3368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + + col1 * - col0 + - col0 col1 FROM tab0 AS cor0
----
-2112
-3465
-8277
query I rowsort
SELECT - col2 - + col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1, tab0 AS cor0
----
95
query I rowsort
SELECT 19 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + col0 + + 62 AS col2 FROM tab1 cor0
----
126
142
65
query I rowsort
SELECT ALL - col0 * col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT DISTINCT col1 * - 26 + col1 AS col2 FROM tab0 AS cor0
----
-2150
-2275
-2425
query I rowsort
SELECT col0 - - col0 * col2 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col0 + + 40 * col1 FROM tab1 AS cor0
----
1037
336
440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + - col2 * col0 col1 FROM tab0 AS cor0
----
-7262
-756
1
query I rowsort
SELECT ALL + col0 * 58 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-4000
SELECT + col1 + cor0.col2 DIV col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4000
SELECT + col1 + cor0.col2 / col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ( col2 ) + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + 31 + col0 FROM tab0 AS cor0
----
120
55
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4003
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + ( + 52 ) AS col1 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT DISTINCT ( cor0.col2 ) + - cor0.col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col2 * - col0 col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + + 1 + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT ALL ( col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - ( 64 ) - col0 * ( + cor0.col2 * col1 ) AS col1 FROM tab0 AS cor0
----
-3459
-664182
-68176
query I rowsort
SELECT + 8 + + col0 * col2 FROM tab2 AS cor0
----
197
2036
3010
query I rowsort
SELECT DISTINCT - ( col1 ) + col0 FROM tab0 cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - col1 + + 68 + 24 AS col1 FROM tab0 AS cor0
----
189
2930
7554
skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - col1 + + 68 + 24 AS col1 FROM tab0 AS cor0
----
189
2930
7554
query I rowsort
SELECT DISTINCT + 74 - col1 * - col2 FROM tab2 cor0
----
1608
720
911
query I rowsort
SELECT DISTINCT + col1 + 20 FROM tab2 AS cor0
----
37
51
79
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 79 AS REAL ) * + col2 AS col1 FROM tab1 AS cor0
----
4266
4503
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab2 AS cor0
----
-66
-66
-66
query I rowsort
SELECT 53 * + col1 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT DISTINCT col0 * + col2 + - 94 FROM tab2 AS cor0
----
1934
2908
95
query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab1
----
96
query I rowsort
SELECT col0 + - 43 AS col2 FROM tab2
----
-36
35
36
query I rowsort
SELECT DISTINCT 80 * 68 AS col2 FROM tab0
----
5440
query I rowsort
SELECT + col2 + + col0 + cor0.col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT DISTINCT col0 + col1 * - 23 AS col1 FROM tab0 AS cor0
----
-1954
-2004
-2196
query I rowsort
SELECT col1 * ( 57 ) + col1 FROM tab0 AS cor0
----
4988
5278
5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT + col2 DIV col1 col2 FROM tab2 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4025
SELECT + col2 / col1 col2 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT - col1 * 38 + 44 + col1 FROM tab1 AS cor0
----
-326
-437
-918
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT col0 * 88 AS col2 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT ALL col2 * - col0 + 67 AS col0 FROM tab1 AS cor0
----
-3581
-7613
-95
query I rowsort
SELECT DISTINCT - col2 * col2 * col1 AS col1 FROM tab1 cor0
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4032
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + - col0 + col0 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - 97 + col0 * + 7 FROM tab1
----
-76
351
463
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT - 28 DIV + col0 + + col0 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4035
SELECT - 28 / + col0 + + col0 FROM tab2
----
3
78
79
query I rowsort
SELECT ALL - col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 + 59 FROM tab0 AS cor0
----
145
150
156
query I rowsort
SELECT col2 + - 13 + col1 FROM tab2 cor0
----
42
45
72
query I rowsort
SELECT + ( - col0 ) + 1 AS col2 FROM tab1
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 - col2 * col2 col0 FROM tab2
----
-1389
-591
-671
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4041
SELECT - tab1.col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4041
SELECT - tab1.col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT + col0 / - CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4042
SELECT + col0 / - CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 23 AS col2 FROM tab1
----
-23
-23
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT + col2 DIV 13 AS col2 FROM tab1 AS cor0
----
4
4
7
skipif mysql # not compatible
query I rowsort label-4044
SELECT + col2 / 13 AS col2 FROM tab1 AS cor0
----
4
4
7
query I rowsort
SELECT 14 * - col0 + col0 * col1 * col1 FROM tab0
----
177168
328825
735763
query I rowsort
SELECT + + col1 * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT DISTINCT - 50 * + col1 + col1 * ( + col1 ) DIV col1 + 76 AS col1 FROM tab2 AS cor0
----
-1443
-2815
-757
skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - 50 * + col1 + col1 * ( + col1 ) / col1 + 76 AS col1 FROM tab2 AS cor0
----
-1443
-2815
-757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4049
SELECT CAST( + col0 AS SIGNED ) * + col0 + - ( - col2 ) AS col0 FROM tab2 cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-4049
SELECT CAST ( + col0 AS INTEGER ) * + col0 + - ( - col2 ) AS col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - ( + 46 ) FROM tab0 cor0
----
-46
query I rowsort
SELECT col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + - col1 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - - col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT 69 * - cor0.col1 + 29 FROM tab0 AS cor0
----
-5905
-6250
-6664
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 111df31a7673b6df0bd01dfa87fa60a8
query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
-1155
-1375
-496
query I rowsort
SELECT + - col0 * col0 + 89 AS col2 FROM tab2 AS cor0
----
-5995
-6152
40
query I rowsort
SELECT - 79 * + col1 + + col2 FROM tab2 cor0
----
-1305
-2422
-4635
query I rowsort
SELECT - - 37 + - cor0.col2 FROM tab1 AS cor0
----
-17
-20
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT cor0.col0 + + col2 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-4063
SELECT cor0.col0 + + col2 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col2 + + col0 - col0 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 79 + col0 FROM tab2 AS cor0
----
-1
-72
0
query I rowsort
SELECT ALL 74 * col1 FROM tab0
----
6364
6734
7178
query I rowsort
SELECT + cor0.col2 + - col2 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * - col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 + col2 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT DISTINCT col1 DIV - col2 + + cor0.col0 DIV col0 - col0 FROM tab0 AS cor0
----
-131
-25
-89
skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT col1 / - col2 + + cor0.col0 / col0 - col0 FROM tab0 AS cor0
----
-131
-25
-89
query I rowsort
SELECT col1 + + ( + col1 ) FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT ALL - col1 DIV col2 + col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - col1 / col2 + col0 / cor0.col0 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT ALL - col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * + col1 + 28 - + col0 AS col0 FROM tab2 AS cor0
----
-1584
-697
-816
query I rowsort
SELECT + ( - col1 ) + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + - ( + 23 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col2 FROM tab1
----
22
query I rowsort
SELECT DISTINCT + 30 * col2 FROM tab1
----
1620
1710
2880
query I rowsort
SELECT DISTINCT + col0 * 36 * - col2 + - ( + 90 ) - + col0 * - col0 * + 0 FROM tab2
----
-108162
-6894
-73098
query I rowsort
SELECT - 55 + 87 + col2 FROM tab1
----
128
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT + 63 DIV col1 col1 FROM tab2
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4082
SELECT + 63 / col1 col1 FROM tab2
----
1
2
3
query I rowsort
SELECT ALL + col0 * col0 * col0 + + col1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1457
262724
513261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col0 * - tab0.col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - tab1.col2 * col2 - col1 FROM tab1
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 - col2 col1 FROM tab0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT col2 + col1 DIV - tab2.col1 AS col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-4089
SELECT col2 + col1 / - tab2.col1 AS col0 FROM tab2
----
25
26
37
query I rowsort
SELECT DISTINCT - tab0.col0 * + col0 AS col1 FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT + col1 * col1 + + col2 DIV col0 AS col2 FROM tab1
----
100
170
694
skipif mysql # not compatible
query I rowsort label-4091
SELECT + col1 * col1 + + col2 / col0 AS col2 FROM tab1
----
100
170
694
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 col1 FROM tab1
----
20
26
52
query I rowsort
SELECT - - 45 * col1 + col0 FROM tab1 AS cor0
----
1173
514
665
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * col1 * - col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ( tab1.col0 ) * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - 20 + + 60 * col0 * - col1 AS col1 FROM tab0
----
-123860
-203720
-485960
query I rowsort
SELECT ALL + 23 * - col0 + col0 AS col0 FROM tab2
----
-154
-1716
-1738
onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT ALL 25 DIV - col0 + + col0 * - col2 FROM tab0
----
-35
-7298
-793
skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 25 / - col0 + + col0 * - col2 FROM tab0
----
-35
-7298
-793
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 + + col1 * + col0 FROM tab2
----
-115050
-49691
-5642
query I rowsort
SELECT - - ( + col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 76 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
173
2914
7538
query I rowsort
SELECT - - ( + cor0.col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + 77 * - col2 FROM tab2 cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - 26 * - col0 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE col2 IN ( - col1 )
----
query I rowsort
SELECT - tab1.col2 * tab1.col0 * + col1 + - col2 FROM tab1
----
-36537
-4266
-99936
query I rowsort
SELECT DISTINCT col1 * - col2 - + col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + col2 * col0 FROM tab0 WHERE + col0 + - col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col2 + col2 * - col2 AS col0 FROM tab2
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 - col2 col2 FROM tab0
----
34
7216
759
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT ALL - cor0.col0 + + col1 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT ALL - col1 + col2 + - col1 DIV - col2 col1 FROM tab0 AS cor0
----
-51
-8
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - col1 + col2 + - col1 / - col2 col1 FROM tab0 AS cor0
----
-51
-8
1
query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT ALL col1 * + col1 - col1 * col2 FROM tab0
----
4558
819
9312
query I rowsort
SELECT - tab1.col0 + col0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT ALL col2 * col2 * - col1 + col0 DIV + col0 FROM tab2
----
-22598
-24547
-39883
skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL col2 * col2 * - col1 + col0 / + col0 FROM tab2
----
-22598
-24547
-39883
query I rowsort
SELECT DISTINCT + col2 * - col2 * col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL tab1.col2 / col2 + col0 / tab1.col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
query I rowsort
SELECT ALL - col2 * - tab2.col2 FROM tab2 WHERE col0 + col2 = NULL
----
query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL IN ( col2 + - col0 )
----
query I rowsort
SELECT DISTINCT - col0 * col1 * col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT col2 * cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT - + col0 DIV col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-571
skipif mysql # not compatible
query I rowsort label-4127
SELECT - + col0 / col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-571
query I rowsort
SELECT + col1 + col1 * - col2 + col2 * tab2.col0 FROM tab2
----
-617
2373
553
query I rowsort
SELECT - col1 * col0 - + col2 * col1 FROM tab1 cor0
----
-1210
-1482
-2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT ALL - col0 DIV + col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - col0 / + col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL cor0.col2 * - col0 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-13800
-42840
-704880
query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 AS col2 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL col0 - + col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - cor0.col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT cor0.col0 * - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT cor0.col2 FROM tab2 cor0 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL + col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col2 + + col2 col2 FROM tab2
----
2080
243
3078
query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col2 * col2 + col1 AS col1 FROM tab0
----
132
26222
598527
query I rowsort
SELECT - tab2.col0 + + col0 - col2 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4143
SELECT DISTINCT - col1 + + col2 DIV + col0 AS col2 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - col1 + + col2 / + col0 AS col2 FROM tab0
----
-85
-91
-97
query I rowsort
SELECT + + col2 * 84 + + col1 AS col2 FROM tab0 AS cor0
----
181
2858
6979
query I rowsort
SELECT col2 * 84 AS col2 FROM tab0
----
2772
6888
84
query I rowsort
SELECT DISTINCT col2 * + 86 AS col2 FROM tab2
----
2236
2322
3268
query I rowsort
SELECT col2 * - 85 AS col2 FROM tab0
----
-2805
-6970
-85
query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT col2 + 45 AS col0 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT 5 * + col2 FROM tab0 cor0
----
165
410
5
query I rowsort
SELECT DISTINCT - cor0.col1 * - 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4988
5278
5626
query I rowsort
SELECT ALL ( - col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + col2 * col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) DIV + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) / + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT - ( 41 ) * col1 FROM tab1 cor0
----
-1066
-410
-533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT DISTINCT + col0 * + col1 * - CAST( + 31 AS SIGNED ) + col0 FROM tab2
----
-142584
-41554
-6720
skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + col0 * + col1 * - CAST ( + 31 AS INTEGER ) + col0 FROM tab2
----
-142584
-41554
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab1.col1 + col1 col1 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL + + col2 + - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 23 + col2 AS col1 FROM tab2 AS cor0
----
49
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT DISTINCT - + col1 DIV ( - col2 ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - + col1 / ( - col2 ) FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT tab0.col1 * - 87 AS col1 FROM tab0
----
-7482
-7917
-8439
query I rowsort
SELECT ALL - col1 + - 84 * 32 + + col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
-686
10819
3702
query I rowsort
SELECT - + col2 + 58 FROM tab1 AS cor0
----
-38
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4166
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col0 * + col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT cor0.col0 * ( + col0 ) + - col1 AS col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT + - col2 * - ( 87 ) * col2 AS col1 FROM tab2 AS cor0
----
125628
58812
63423
query I rowsort
SELECT - col0 * - col1 - col1 AS col0 FROM tab2 cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT - - CAST( 85 AS SIGNED ) * col2 + - col1 AS col2 FROM tab0 cor0
----
-12
2719
6879
skipif mysql # not compatible
query I rowsort label-4171
SELECT - - CAST ( 85 AS INTEGER ) * col2 + - col1 AS col2 FROM tab0 cor0
----
-12
2719
6879
query I rowsort
SELECT DISTINCT - col2 * + 49 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT DISTINCT + col1 + + 4 FROM tab2 cor0
----
21
35
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4174
SELECT - - CAST( NULL AS SIGNED ) * + col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4174
SELECT - - CAST ( NULL AS INTEGER ) * + col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - 80 FROM tab0 AS cor0
----
-47
-79
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 42 + col1 col2 FROM tab2 AS cor0
----
-263
-3217
-3301
query I rowsort
SELECT col2 * - cor0.col1 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT 83 * - cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT ALL col0 * - ( + col2 ) + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT DISTINCT + col0 * + 97 * + col1 - - col2 DIV cor0.col1 FROM tab1 AS cor0
----
100887
62085
7568
skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + col0 * + 97 * + col1 - - col2 / cor0.col1 FROM tab1 AS cor0
----
100887
62085
7568
query I rowsort
SELECT ALL + cor0.col1 + + 59 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT ALL + tab1.col0 * tab1.col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - 75 + + col2 AS col2 FROM tab1 AS cor0
----
-18
-21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT DISTINCT - + col1 + cor0.col1 DIV cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-1
-60
35
skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - + col1 + cor0.col1 / cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-1
-60
35
query I rowsort
SELECT + 60 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT - - ( - cor0.col0 ) + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 67 + - col0 FROM tab2 cor0
----
-145
-146
-74
query I rowsort
SELECT - 62 + + col0 FROM tab0 AS cor0
----
-27
-38
27
query I rowsort
SELECT + + col0 * col2 + 7 AS col0 FROM tab0 AS cor0
----
42
7305
799
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT DISTINCT + + col2 + col0 DIV 17 FROM tab2 AS cor0
----
27
30
42
skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + + col2 + col0 / 17 FROM tab2 AS cor0
----
27
30
42
query I rowsort
SELECT ALL + + col0 - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * + col2 * 93 AS col1 FROM tab0 cor0
----
-3255
-678714
-73656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT ALL + + col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + + col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 + col0 * + ( col2 ) FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col2 * - 0 + - col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 27 col2 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT DISTINCT + + cor0.col2 + - 96 FROM tab2 AS cor0
----
-58
-69
-70
query I rowsort
SELECT + col1 + + ( + 11 ) AS col1 FROM tab1 AS cor0
----
21
24
37
query I rowsort
SELECT - col1 * - 15 + col1 AS col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL col1 + + col1 * + col1 AS col2 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT 96 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL 34 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT DISTINCT + 34 FROM tab1
----
34
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT + - col2 + - col0 * col1 + cor0.col1 * col1 FROM tab2 AS cor0
----
-1092
-1147
717
query I rowsort
SELECT DISTINCT - 17 FROM tab0, tab0 cor0
----
-17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4207
SELECT DISTINCT CAST( + 68 AS SIGNED ) FROM tab2 AS cor0
----
68
skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT CAST ( + 68 AS INTEGER ) FROM tab2 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT ALL - CAST( + ( col1 ) AS SIGNED ) + col2 DIV - 6 AS col0 FROM tab0 AS cor0
----
-104
-91
-97
skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - CAST ( + ( col1 ) AS INTEGER ) + col2 / - 6 AS col0 FROM tab0 AS cor0
----
-104
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT + col2 DIV col1 + + col1 + - col2 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-4209
SELECT + col2 / col1 + + col1 + - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - ( + cor0.col0 ) * - col2 + col1 + + 12 FROM tab2 AS cor0
----
2099
232
3031
query I rowsort
SELECT DISTINCT 68 * + col2 AS col0 FROM tab0 AS cor0
----
2244
5576
68
query I rowsort
SELECT DISTINCT + 77 + 12 FROM tab2 AS cor0
----
89
query I rowsort
SELECT col2 * 40 + - col0 + 81 * 10 FROM tab1 AS cor0
----
2967
3026
4570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT - col2 DIV - ( col0 ) - col1 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-4214
SELECT - col2 / - ( col0 ) - col1 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT ( col1 ) - - col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ( + col0 ) * + tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT ( - col1 ) * col0 * col1 + col0 FROM tab1
----
-13440
-2025
-6336
query I rowsort
SELECT ALL + + col1 * + cor0.col2 + - ( - col1 ) * cor0.col1 + - col1 * - col0 FROM tab0 AS cor0
----
12298
12901
23842
query I rowsort
SELECT ALL - ( - col2 ) * - col1 + col0 + col1 FROM tab2 AS cor0
----
-1397
-550
-799
query I rowsort
SELECT - col1 * - col2 + 41 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2971
3621
5264
query I rowsort
SELECT ALL + 66 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT ( tab0.col1 ) + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - 2 * col1 + tab0.col2 FROM tab0
----
-100
-139
-193
onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT ( 53 ) * col1 DIV - ( + col1 ) FROM tab2
----
-53
-53
-53
skipif mysql # not compatible
query I rowsort label-4224
SELECT ( 53 ) * col1 / - ( + col1 ) FROM tab2
----
-53
-53
-53
query I rowsort
SELECT - ( - col1 ) * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - - 8 AS col1 FROM tab2 cor0
----
8
8
8
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 24 + - col2 AS col1 FROM tab2 AS cor0
----
-14
-2
-3
query I rowsort
SELECT - tab1.col1 + col1 * - col0 AS col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + col2 + 54 * - 61 FROM tab2 AS cor0
----
-3256
-3267
-3268
query I rowsort
SELECT ALL - + 57 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 1 * + 89 + col2 FROM tab2 AS cor0
----
115
116
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT col2 - - 50 DIV col1 col1 FROM tab1 AS cor0
----
55
62
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4234
SELECT col2 - - 50 / col1 col1 FROM tab1 AS cor0
----
55
62
99
query I rowsort
SELECT DISTINCT - 42 + - col0 FROM tab1 cor0
----
-106
-122
-45
query I rowsort
SELECT - + 93 - 67 FROM tab0 AS cor0
----
-160
-160
-160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4237
SELECT CAST( NULL AS SIGNED ) * - 37 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4237
SELECT CAST ( NULL AS INTEGER ) * - 37 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT ALL col2 DIV - 48 AS col0 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL col2 / - 48 AS col0 FROM tab1
----
-1
-1
-2
query I rowsort
SELECT ALL col0 + - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ( 50 ) AS col1 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT - - ( cor0.col1 ) DIV + cor0.col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4241
SELECT - - ( cor0.col1 ) / + cor0.col1 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT 64 DIV + 88 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4242
SELECT 64 / + 88 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 44 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT ALL + col1 * col0 + - cor0.col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + + 4 + col2 * - col2 FROM tab2 AS cor0
----
-1440
-672
-725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 26 col1 FROM tab1 cor0
----
106
29
90
query I rowsort
SELECT + col0 * + 13 FROM tab1
----
1040
39
832
query I rowsort
SELECT DISTINCT tab0.col2 - + col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + col2 - ( - col2 ) FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + - 36 + 75 AS col0 FROM tab2 AS cor0
----
39
query I rowsort
SELECT ALL + ( col2 ) - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - 95 + + col0 FROM tab0 AS cor0
----
-6
-60
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT + + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4253
SELECT + + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT + ( + col0 ) + - col0 * 51 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL ( 11 ) * col1 AS col2 FROM tab0
----
1001
1067
946
query I rowsort
SELECT DISTINCT 59 FROM tab0, tab1, tab0 AS cor0
----
59
query I rowsort
SELECT + 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - ( col0 ) + 82 * + col2 FROM tab0
----
2682
47
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col0 FROM tab2 AS cor0
----
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT DISTINCT + tab1.col2 DIV col2 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + tab1.col2 / col2 AS col0 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT ALL - 96 DIV - tab2.col0 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - 96 / - tab2.col0 FROM tab2
----
1
1
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT ALL - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT cor0.col0 * - 60 AS col2 FROM tab0 AS cor0
----
-1440
-2100
-5340
query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 12 + - col1 AS col0 FROM tab0
----
-103
-109
-98
query I rowsort
SELECT ALL + 71 AS col0 FROM tab1
----
71
71
71
query I rowsort
SELECT DISTINCT - + col1 * - col0 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT - - col1 + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col2 * ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col0 + ( 86 ) AS col0 FROM tab2 AS cor0
----
7
79
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT + col2 + 31 DIV + col1 AS col1 FROM tab1 AS cor0
----
55
60
98
skipif mysql # not compatible
query I rowsort label-4274
SELECT + col2 + 31 / + col1 AS col1 FROM tab1 AS cor0
----
55
60
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4275
SELECT col0 DIV - ( - ( col1 ) + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4275
SELECT col0 / - ( - ( col1 ) + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT + - col1 DIV - ( + col0 ) FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4276
SELECT + - col1 / - ( + col0 ) FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + col2 * + col1 * + col0 + + col1 FROM tab1
----
36490
4238
99853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4278
SELECT ALL CAST( 66 AS SIGNED ) AS col0 FROM tab2
----
66
66
66
skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL CAST ( 66 AS INTEGER ) AS col0 FROM tab2
----
66
66
66
query I rowsort
SELECT + - 78 + - ( col1 ) * col0 FROM tab1 AS cor0
----
-1118
-156
-718
query I rowsort
SELECT col0 * + 56 AS col0 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT ALL 22 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT + - ( - ( col2 ) ) * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT ALL + - col2 DIV - col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + - col2 / - col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * col1 + - col1 col0 FROM tab1 AS cor0
----
1315
1381
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT ALL 18 * cor0.col1 + + CAST( NULL AS SIGNED ) + - col2 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL 18 * cor0.col1 + + CAST ( NULL AS INTEGER ) + - col2 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT + col1 + ( tab0.col1 + + col0 ) FROM tab0
----
196
229
271
query I rowsort
SELECT ALL + col2 * + ( - col0 ) + - col1 AS col0 FROM tab1
----
-188
-3658
-7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4290
SELECT + col0 * - CAST( + col2 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-4290
SELECT + col0 * - CAST ( + col2 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT col0 - ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT cor0.col2 + 31 FROM tab2 AS cor0
----
57
58
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT col1 DIV ( ( col2 ) ) - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
96
skipif mysql # not compatible
query I rowsort label-4294
SELECT col1 / ( ( col2 ) ) - col2 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4295
SELECT DISTINCT - cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT ALL - col2 * cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - col2 * cor0.col2 / + col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col1 * - col2 * - col2 + col1 FROM tab0
----
194
611975
93740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - - col1 * + col2 * + cor0.col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - 8 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4301
SELECT ALL + - CAST( + col0 AS SIGNED ) * cor0.col1 + + col0 col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + - CAST ( + col0 AS INTEGER ) * cor0.col1 + + col0 col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 90 * col0 FROM tab2
----
630
7020
7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT + ( + col1 ) * col0 + - col1 * col2 DIV + col0 FROM tab1
----
-390
1025
632
skipif mysql # not compatible
query I rowsort label-4303
SELECT + ( + col1 ) * col0 + - col1 * col2 / + col0 FROM tab1
----
-390
1025
632
query I rowsort
SELECT ALL 72 * col0 FROM tab1 cor0
----
216
4608
5760
query I rowsort
SELECT ALL - col2 * 40 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT DISTINCT - + col2 + + 59 FROM tab0 AS cor0
----
-23
26
58
query I rowsort
SELECT + 33 + + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
151
67
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT + cor0.col1 DIV - 46 + col0 DIV + ( col1 ) AS col1 FROM tab0 cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4308
SELECT + cor0.col1 / - 46 + col0 / + ( col1 ) AS col1 FROM tab0 cor0
----
-1
-1
-2
query I rowsort
SELECT - 92 + + cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 1bbafeff1ca343d95b87a4c221c9fe08
query I rowsort
SELECT ALL 36 * - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 32295d3af4c14773cdb609573391733d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 49 * - col0 * + col1 FROM tab1 AS cor0
----
-31360
-3822
-50960
query I rowsort
SELECT ALL - col0 * - ( col0 ) * col0 + - 47 FROM tab0 AS cor0
----
13777
42828
704922
query I rowsort
SELECT col1 * - col2 + col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - 66 * col0 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT + 9 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT + col1 * col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4317
SELECT + col1 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 26 AS col0 FROM tab1 cor0
----
26
26
26
query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab2 AS cor0
----
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT + - col0 DIV - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-4320
SELECT + - col0 / - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT + cor0.col0 + - 16 * col2 FROM tab1 AS cor0
----
-1456
-848
-861
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col0 col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT col1 + + 87 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT + ( col1 ) + col0 * 31 FROM tab0
----
1182
2850
830
query I rowsort
SELECT col0 + + col0 * col2 * + col1 - col1 * - tab0.col0 AS col0 FROM tab0
----
672306
6825
70200
query I rowsort
SELECT + 7 - - col1 AS col0 FROM tab2
----
24
38
66
query I rowsort
SELECT ALL col0 * + 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT 18 * cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7e0133c96ed640160c5c8ffdf8c7bed2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col0 * 71 * - 26 FROM tab1 AS cor0
----
118144
147680
5538
query I rowsort
SELECT col0 + + 12 FROM tab2 AS cor0
----
19
90
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col0 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT col1 + ( col2 ) DIV col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4333
SELECT col1 + ( col2 ) / col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 + - 90 AS col0 FROM tab1
----
-64
-77
-80
query I rowsort
SELECT ALL col0 + tab2.col1 + - 98 * - col0 AS col0 FROM tab2
----
724
7781
7838
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT DISTINCT col1 DIV 48 + col1 DIV col0 AS col0 FROM tab0
----
2
4
skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT col1 / 48 + col1 / col0 AS col0 FROM tab0
----
2
4
query I rowsort
SELECT - ( col2 ) - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col0 * - col2 + - 24 AS col1 FROM tab1
----
-186
-3672
-7704
onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT ALL col2 DIV + col0 + - 86 + - col2 col1 FROM tab2
----
-110
-112
-124
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL col2 / + col0 + - 86 + - col2 col1 FROM tab2
----
-110
-112
-124
query I rowsort
SELECT DISTINCT - col2 - - 85 AS col2 FROM tab2 AS cor0
----
47
58
59
query I rowsort
SELECT + col2 * + tab0.col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL col0 + + 39 AS col2 FROM tab1
----
103
119
42
query I rowsort
SELECT ALL col1 + ( + 96 ) + + col1 AS col0 FROM tab1
----
116
122
148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * - col0 col0 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT - 82 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
102336
115128
46740
query I rowsort
SELECT DISTINCT - - 53 FROM tab0 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT - + 51 + - cor0.col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-43
-51
-51
skipif mysql # not compatible
query I rowsort label-4348
SELECT - + 51 + - cor0.col1 / - cor0.col0 FROM tab1 AS cor0
----
-43
-51
-51
query I rowsort
SELECT ( col0 ) + col2 * col1 * + col1 FROM tab0
----
244092
679131
9444
query I rowsort
SELECT + ( + col2 ) + - col2 * - col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + 4 * col1 AS col1 FROM tab2
----
124
236
68
query I rowsort
SELECT - tab2.col1 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT ( col0 + + col2 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - 82 * col2 FROM tab0 AS cor0
----
-2706
-6724
-82
query I rowsort
SELECT DISTINCT + 34 * + col0 AS col1 FROM tab2 AS cor0
----
238
2652
2686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 50 + - cor0.col1 * col0 col1 FROM tab0 AS cor0
----
-2014
-3345
-8049
query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - - 87 * col2 FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 11 + + col0 FROM tab1 AS cor0
----
-8
53
69
query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - ( + 51 ) FROM tab1
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 58 col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT - col1 * col1 + ( 73 ) * - col0 FROM tab0 AS cor0
----
-11964
-14778
-9148
query I rowsort
SELECT 78 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1326
1482
648
query I rowsort
SELECT 79 * + col2 - 51 AS col1 FROM tab1 AS cor0
----
4215
4452
7533
query I rowsort
SELECT ( + col0 + + col2 ) AS col1 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT - + col1 DIV col1 - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4368
SELECT - + col1 / col1 - col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 + ( 61 ) FROM tab2
----
-1262
-158123
-237097
onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT - - col0 + ( + col0 + + col2 ) DIV - ( + 58 ) FROM tab0 AS cor0
----
24
35
87
skipif mysql # not compatible
query I rowsort label-4370
SELECT - - col0 + ( + col0 + + col2 ) / - ( + 58 ) FROM tab0 AS cor0
----
24
35
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT - col1 + CAST( 79 AS SIGNED ) AS col1 FROM tab2 cor0
----
20
48
62
skipif mysql # not compatible
query I rowsort label-4371
SELECT - col1 + CAST ( 79 AS INTEGER ) AS col1 FROM tab2 cor0
----
20
48
62
query I rowsort
SELECT + col2 * - 8 * col1 FROM tab2 AS cor0
----
-12272
-5168
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT ALL col0 - + col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL col0 - + col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT + col0 * ( + 42 ) FROM tab2 AS cor0
----
294
3276
3318
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT DISTINCT - col2 DIV 73 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - col2 / 73 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0, tab1, tab1 AS cor0
----
42
query I rowsort
SELECT - col2 * - ( + col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL 16 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216
query I rowsort
SELECT 19 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab1, tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 40 FROM tab0, tab1 AS cor0
----
-40
query I rowsort
SELECT - col0 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + ( 65 ) * col2 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT DISTINCT - 66 * col1 FROM tab1 cor0
----
-1716
-660
-858
onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT ALL + ( col1 ) + - col1 DIV 57 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + ( col1 ) + - col1 / 57 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 88 ) col0 FROM tab2 AS cor0
----
88
query I rowsort
SELECT + cor0.col2 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 5 * - col1 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT DISTINCT + col0 * - tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT DISTINCT - col1 DIV col2 col1 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - col1 / col2 col1 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT col1 * - 89 * 86 FROM tab2
----
-130118
-237274
-451586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT - CAST( + col1 + + col0 AS SIGNED ) AS col0 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-4393
SELECT - CAST ( + col1 + + col0 AS INTEGER ) AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT col2 * col2 - tab1.col2 AS col0 FROM tab1
----
2862
3192
9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4395
SELECT ALL CAST( - 19 AS SIGNED ) AS col0 FROM tab2
----
-19
-19
-19
skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL CAST ( - 19 AS INTEGER ) AS col0 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT DISTINCT - 70 * col2 * + col1 FROM tab1
----
-39900
-87360
-98280
query I rowsort
SELECT ALL + 55 * col0 FROM tab1
----
165
3520
4400
query I rowsort
SELECT - 36 * + col2 AS col2 FROM tab2
----
-1368
-936
-972
query I rowsort
SELECT 22 * - tab1.col0 * - cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3954a227c3047c8de3c3aa422edaa651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 0 * - col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - col0 * 67 FROM tab1 cor0
----
201
4288
5360
query I rowsort
SELECT + col0 * col0 + - ( 56 ) * - col1 FROM tab2 AS cor0
----
1785
7193
9388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab0, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col2 * col0 + 56 + col0 AS col0 FROM tab2
----
2162
252
3137
onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT col2 * col2 DIV 16 FROM tab1 AS cor0
----
182
203
576
skipif mysql # not compatible
query I rowsort label-4405
SELECT col2 * col2 / 16 FROM tab1 AS cor0
----
182
203
576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4406
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
query I rowsort
SELECT ALL tab1.col0 + - 53 + 94 * col2 * ( + col1 + col1 ) AS col2 FROM tab1
----
107171
234651
263902
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab0, tab2 cor0, tab0 cor1
----
50
query I rowsort
SELECT ALL - + 88 * col0 FROM tab0 cor0
----
-2112
-3080
-7832
query I rowsort
SELECT + cor0.col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 25 + col0 FROM tab0 AS cor0
----
114
49
60
query I rowsort
SELECT ALL + 30 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
1470
182520
187230
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col1 - col2 AS col1 FROM tab0 AS cor0
----
244035
678960
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT ALL - - col0 DIV col0 col0 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - - col0 / col0 col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT - ( - col0 ) + tab2.col1 AS col1 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT - col2 DIV col2 col1 FROM tab0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - col2 / col2 col1 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT - 43 DIV + col1 + tab0.col0 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4418
SELECT - 43 / + col1 + tab0.col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL ( tab0.col0 ) * + tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - 57 - 2 FROM tab2
----
-59
-59
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT 23 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4421
SELECT 23 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 - - col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 40 * + col1 AS col1 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT ALL - - cor0.col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 44 - + col2 FROM tab0 AS cor0
----
-38
11
43
query I rowsort
SELECT - col1 - 61 AS col1 FROM tab1
----
-71
-74
-87
query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab1 cor0
----
-81
query I rowsort
SELECT + col1 + ( 84 + + cor0.col0 ) * col1 * col0 AS col2 FROM tab2 AS cor0
----
19778
218926
745583
query I rowsort
SELECT ALL + - col2 * col0 - + cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + 58 * col2 * + col1 AS col1 FROM tab2 AS cor0
----
37468
48546
88972
query I rowsort
SELECT - - cor0.col0 * + 68 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - + 15 * - col2 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
17
31
59
query I rowsort
SELECT ALL - col2 * 5 AS col2 FROM tab0 AS cor0
----
-165
-410
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL - ( + col0 ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - ( + col0 ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + 77 * + col1 col0 FROM tab2 AS cor0
----
1388
2394
4621
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col1 + col2 * col0
----
query I rowsort
SELECT ALL + col1 + - col2 * + col0 AS col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + - cor0.col2 - + cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT - + col0 + + col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT ALL - col0 * col2 + + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - col0 * col2 + + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - cor0.col2 DIV + col1 + + cor0.col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - cor0.col2 / + col1 + + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col2 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * col2 IN ( - cor0.col0 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col1 + col1 IN ( col0 / + cor0.col0 + - cor0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - cor0.col1 + - col0 >= NULL
----
query I rowsort
SELECT ALL - - col0 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT col0 + col0 + col1 AS col2 FROM tab0 cor0
----
134
167
269
query I rowsort
SELECT - col2 * tab1.col0 * + col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL + col2 + + col0 + col0 * + col2 FROM tab1 cor0
----
219
3769
7856
query I rowsort
SELECT col1 * + col2 + + col1 * - col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + col2 col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + tab0.col0 + - col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT col0 + - col0 * - col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col1 FROM tab2 WHERE NULL NOT IN ( - col0 + + col0 + - col1 ) AND ( NULL ) BETWEEN col1 AND ( + col1 + col2 * - col0 )
----
query I rowsort
SELECT - tab1.col1 * col1 * tab1.col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + col2 * 98 AS col0 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL + 21 FROM tab0, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4465
SELECT col1 * - CAST( col1 AS SIGNED ) * tab0.col0 - 5 AS col0 FROM tab0
----
-177509
-329320
-737014
skipif mysql # not compatible
query I rowsort label-4465
SELECT col1 * - CAST ( col1 AS INTEGER ) * tab0.col0 - 5 AS col0 FROM tab0
----
-177509
-329320
-737014
query I rowsort
SELECT DISTINCT 28 FROM tab0, tab2 AS cor0, tab2 cor1
----
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4467
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 cor0
----
NULL
query I rowsort
SELECT + col0 - - col0 * + col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - col0 * - 44 - + col0 FROM tab2
----
301
3354
3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT - col1 DIV 51 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4470
SELECT - col1 / 51 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( col1 ) * - col0 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT DISTINCT - col2 DIV + ( tab0.col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - col2 / + ( tab0.col1 ) FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT + CAST( NULL AS SIGNED ) * tab2.col1 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS INTEGER ) * tab2.col1 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 1 * - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - cor0.col0 - - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4476
SELECT ALL + CAST( - 77 AS SIGNED ) * col2 FROM tab1
----
-4158
-4389
-7392
skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + CAST ( - 77 AS INTEGER ) * col2 FROM tab1
----
-4158
-4389
-7392
query I rowsort
SELECT - - ( ( + tab0.col0 ) ) + cor0.col2 * + tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d49e2cda2ea37500dab558e3ed0df88e
query I rowsort
SELECT - 65 * col2 FROM tab0
----
-2145
-5330
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT col0 * ( - col0 ) + ( col0 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab0
----
-45
query I rowsort
SELECT + 58 + - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 639d0807e3c161f9477cc531a9afc1d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT col1 DIV col2 col0 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4483
SELECT col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + + 64 * cor0.col2 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT + 14 * + col2 + 30 FROM tab2 AS cor0
----
394
408
562
query I rowsort
SELECT col2 + - col1 * - col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + + ( - col2 ) * ( cor0.col0 ) + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL col0 + + tab1.col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT 54 FROM tab0, tab1, tab1 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT DISTINCT col0 * col0 + - col0 + col1 DIV + col0 AS col0 FROM tab2
----
46
6006
6162
skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT col0 * col0 + - col0 + col1 / + col0 AS col0 FROM tab2
----
46
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL col2 + col2 DIV col0 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL col2 + col2 / col0 FROM tab1
----
57
72
97
query I rowsort
SELECT ALL - col2 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col2 + + col0 + col1 * col0 col0 FROM tab1 cor0
----
-128
-1323
134
query I rowsort
SELECT col0 * col2 + col0 * + col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT - - col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col0 + - 17 FROM tab0 AS cor0
----
18
7
72
query I rowsort
SELECT DISTINCT col2 * + 85 FROM tab2 cor0
----
2210
2295
3230
onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT ALL col0 DIV + col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL col0 / + col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL - - col1 + 46 AS col0 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT DISTINCT cor0.col2 + - 95 FROM tab2 AS cor0
----
-57
-68
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT - cor0.col0 + + col0 DIV + 29 + col2 FROM tab1 AS cor0
----
-5
18
51
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - cor0.col0 + + col0 / + 29 + col2 FROM tab1 AS cor0
----
-5
18
51
query I rowsort
SELECT + col2 + cor0.col1 + + col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ALL cor0.col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 * - 40 AS col0 FROM tab2 cor0
----
-280
-3120
-3160
query I rowsort
SELECT DISTINCT col2 + col1 * + 9 * - col2 FROM tab2
----
-13780
-5776
-7506
query I rowsort
SELECT + col2 * - 6 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT ALL col0 * - 30 * + 45 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-120068
-32367
-47249
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4509
SELECT - cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4509
SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 8 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT ( 23 ) AS col2 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT ALL 63 * ( col1 ) * - 92 FROM tab0 AS cor0
----
-498456
-527436
-562212
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + - 99 + + ( col2 + col1 ) FROM tab2 AS cor0
----
-14
-41
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT DISTINCT col1 DIV ( 35 ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT col1 / ( 35 ) AS col2 FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4516
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + ( col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - 93 AS col2 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT col0 * 87 FROM tab0 AS cor0
----
2088
3045
7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * + col1 col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT ALL 59 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 59 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT 13 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
70
query I rowsort
SELECT ALL + col1 * cor0.col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT ALL + CAST( NULL AS SIGNED ) * tab0.col0 - tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + CAST ( NULL AS INTEGER ) * tab0.col0 - tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( tab1.col2 ) - tab1.col1 * 58 FROM tab1
----
-1562
-637
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + cor0.col0 + col2 * 31 col2 FROM tab2 AS cor0
----
-4984
-5200
795
query I rowsort
SELECT ALL cor0.col1 + + cor0.col0 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + - 76 - - col0 AS col0 FROM tab0 cor0
----
-41
-52
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT + CAST( 1 AS SIGNED ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4530
SELECT + CAST ( 1 AS INTEGER ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + 3 * - col2 AS col2 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab0 AS cor0
----
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT ALL - + CAST( + col1 AS SIGNED ) + - col2 * 85 AS col0 FROM tab2 AS cor0
----
-2269
-2326
-3247
skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - + CAST ( + col1 AS INTEGER ) + - col2 * 85 AS col0 FROM tab2 AS cor0
----
-2269
-2326
-3247
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + 22 * + cor0.col0 col1 FROM tab2 AS cor0
----
1803
1825
241
query I rowsort
SELECT cor0.col1 * - 90 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT DISTINCT 66 * - 68 + col2 FROM tab0 AS cor0
----
-4406
-4455
-4487
query I rowsort
SELECT ALL - ( + col1 ) * cor0.col0 + ( col0 ) - col1 * ( + col0 ) FROM tab0 cor0
----
-16109
-4104
-6755
query I rowsort
SELECT - 23 + col1 AS col0 FROM tab0 AS cor0
----
63
68
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT ALL col2 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL col2 / col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - 9 * col2 AS col0 FROM tab0
----
-297
-738
-9
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col2 * + 41 AS col0 FROM tab2
----
-1066
-1107
-1558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT ALL + CAST( 25 + - col1 AS SIGNED ) col1 FROM tab0
----
-61
-66
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL + CAST ( 25 + - col1 AS INTEGER ) col1 FROM tab0
----
-61
-66
-72
query I rowsort
SELECT DISTINCT + + col2 + - 46 AS col1 FROM tab2 AS cor0
----
-19
-20
-8
query I rowsort
SELECT 13 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + col2 + col1 * + 90 FROM tab1
----
1266
2394
957
query I rowsort
SELECT + 37 + - col2 * - col0 - - 60 FROM tab1
----
259
3745
7777
query I rowsort
SELECT ALL col0 * + 32 FROM tab2
----
224
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4554
SELECT - col2 / col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT + 48 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT DISTINCT - cor0.col0 DIV + col0 - 46 * - col0 AS col0 FROM tab1 cor0
----
137
2943
3679
skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - cor0.col0 / + col0 - 46 * - col0 AS col0 FROM tab1 cor0
----
137
2943
3679
onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT - + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4557
SELECT - + col1 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT ALL col2 * CAST( - col1 + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL col2 * CAST ( - col1 + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + ( 52 ) FROM tab0 AS cor0
----
1248
1820
4628
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 62 AS REAL ) * cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
-5308
-5553
-5979
query I rowsort
SELECT col1 * - tab1.col0 + + col0 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - cor0.col2 + + ( col1 ) * col2 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - col0 ) col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 65 + ( cor0.col0 ) FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT - ( + cor0.col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col1 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col0 * col0 * col2 + - col2 + col0 * col0 FROM tab2 AS cor0
----
-1301
-152126
-230955
query I rowsort
SELECT DISTINCT - + 21 * ( + col1 ) FROM tab2 AS cor0
----
-1239
-357
-651
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT - CAST( + col1 AS DECIMAL ) * + col2 + CAST( NULL AS SIGNED ) * - ( col0 * + ( + 25 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4572
SELECT - CAST ( + col1 AS REAL ) * + col2 + CAST ( NULL AS INTEGER ) * - ( col0 * + ( + 25 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT ( col1 ) DIV - 80 col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4573
SELECT ( col1 ) / - 80 col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL 54 + - col2 * ( 49 ) * + col0 AS col2 FROM tab0
----
-1661
-357548
-38754
onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT + 56 DIV + col1 + + col2 + + col1 AS col0 FROM tab1
----
113
72
82
skipif mysql # not compatible
query I rowsort label-4575
SELECT + 56 / + col1 + + col2 + + col1 AS col0 FROM tab1
----
113
72
82
query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - + ( + col2 ) + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + 33 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - 3 + + cor0.col1 FROM tab1 AS cor0
----
10
23
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT + col0 DIV - col2 - + col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-4580
SELECT + col0 / - col2 - + col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT ALL - - 32 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT DISTINCT col2 * col2 + - ( 99 ) * - col2 - 15 FROM tab0 cor0
----
14827
4341
85
query I rowsort
SELECT 18 * + col2 FROM tab0 AS cor0
----
1476
18
594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 12 col1 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT + - col2 + + ( + col2 + col1 ) * 96 AS col1 FROM tab0 AS cor0
----
11391
16526
9407
query I rowsort
SELECT - + col0 * - col2 + - col0 * col1 AS col1 FROM tab0 cor0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT DISTINCT - - col2 DIV 79 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - - col2 / 79 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col1 * - col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( - col2 ) col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT 13 + col2 AS col2 FROM tab0
----
14
46
95
query I rowsort
SELECT + - col0 + 2 FROM tab2 cor0
----
-5
-76
-77
query I rowsort
SELECT 69 + + col1 AS col0 FROM tab0 AS cor0
----
155
160
166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT - tab1.col0 * col2 * col2 - + col2 FROM tab1 WHERE ( NULL ) BETWEEN col2 AND NULL
----
query I rowsort
SELECT - col1 * col2 - tab2.col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT - tab2.col1 + col0 * col0 AS col1 FROM tab2
----
18
6025
6224
query I rowsort
SELECT col2 * tab2.col2 + + col1 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT - col0 * tab1.col2 + col0 AS col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - col1 col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT col1 + + col0 * col2 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - col1 * + tab2.col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT - 57 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - 5 * + col0 * col2 FROM tab0
----
-175
-36490
-3960
query I rowsort
SELECT DISTINCT - col0 * - col0 + + cor0.col1 AS col0 FROM tab0 cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4608
SELECT ALL 93 + + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 93 + + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT ALL - ( - col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - ( - col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT - col1 DIV col0 + col0 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4610
SELECT - col1 / col0 + col0 FROM tab2
----
3
78
79
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL >= ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT col0 + col2 * + col2 * col2 + col0 DIV - tab1.col2 AS col2 FROM tab1
----
157467
185256
884816
skipif mysql # not compatible
query I rowsort label-4612
SELECT col0 + col2 * + col2 * col2 + col0 / - tab1.col2 AS col2 FROM tab1
----
157467
185256
884816
query I rowsort
SELECT ALL col0 * - col1 * - col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL col1 + + col2 + col0 * col1 AS col0 FROM tab0
----
2183
3493
8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT col2 + col0 DIV + col1 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4616
SELECT col2 + col0 / + col1 AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + - tab1.col0 col0 FROM tab1
----
0
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT tab0.col0 * col1 + tab0.col1 * col1 AS col1 FROM tab0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT tab0.col1 DIV col1 - + col1 AS col0 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-4620
SELECT tab0.col1 / col1 - + col1 AS col0 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT ALL tab0.col0 - col1 * - col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT DISTINCT + col0 - - col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 + - col2 AS col1 FROM tab1
----
111
3655
7664
onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - col2 / col0 AS col1 FROM tab2
----
-3
0
query I rowsort
SELECT + col1 + col2 / - tab0.col0 AS col0 FROM tab0 WHERE NOT col2 = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col0 col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 FROM tab2 WHERE NULL <= col2
----
query I rowsort
SELECT DISTINCT - col1 + + col2 - + col1 AS col1 FROM tab0
----
-100
-139
-193
onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT tab1.col0 DIV col1 - col1 AS col2 FROM tab1
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-4629
SELECT tab1.col0 / col1 - col1 AS col2 FROM tab1
----
-26
-4
-7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + tab0.col1 + - col1 )
----
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT ( NULL ) >= ( NULL )
----
query I rowsort
SELECT DISTINCT tab0.col2 * col2 * col1 AS col0 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT col2 DIV tab2.col1 - tab2.col2 * tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3000
skipif mysql # not compatible
query I rowsort label-4633
SELECT col2 / tab2.col1 - tab2.col2 * tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3000
query I rowsort
SELECT + col0 * + col1 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + col1 + tab1.col2 + - col2 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT col1 * col1 DIV col0 col1 FROM tab1
----
1
2
225
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4636
SELECT col1 * col1 / col0 col1 FROM tab1
----
1
2
225
onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT - tab2.col1 DIV - 10 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-4637
SELECT - tab2.col1 / - 10 FROM tab2
----
1
3
5
query I rowsort
SELECT DISTINCT + ( 20 ) - col2 FROM tab2
----
-18
-6
-7
query I rowsort
SELECT + 14 + col1 + col2 AS col1 FROM tab1
----
123
81
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT ALL + ( - tab1.col2 ) * col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + ( - tab1.col2 ) * col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT ALL + cor1.col1 DIV + 80 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + cor1.col1 / + 80 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT col1 DIV + 30 AS col0 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4642
SELECT col1 / + 30 AS col0 FROM tab2
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 * - col2 col1 FROM tab2
----
1508
608
810
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-4645
SELECT - + col1 * col0 + 64 DIV ( - col0 ) - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2608
2817
8176
skipif mysql # not compatible
query I rowsort label-4645
SELECT - + col1 * col0 + 64 / ( - col0 ) - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2608
2817
8176
query I rowsort
SELECT DISTINCT + 89 * col2 + + 24 AS col1 FROM tab0
----
113
2961
7322
query I rowsort
SELECT - cor0.col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + col1 * - col1 * tab1.col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT col2 - cor0.col2 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - 35 + + col0 * + 66 AS col1 FROM tab1 AS cor0
----
163
4189
5245
query I rowsort
SELECT DISTINCT 48 * col1 * col1 + + 18 AS col0 FROM tab0 cor0
----
355026
397506
451650
query I rowsort
SELECT ( cor0.col0 ) * ( - col0 ) * - col1 + - cor0.col2 FROM tab1 AS cor0
----
180
40903
83104
query I rowsort
SELECT + - 87 + cor0.col1 FROM tab1 cor0
----
-61
-74
-77
query I rowsort
SELECT - ( - col0 ) * cor0.col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 7 col0 FROM tab0 AS cor0
----
-104
-93
-98
query I rowsort
SELECT + col1 + + 95 * col1 * + col0 FROM tab0 AS cor0
----
196166
322622
769496
query I rowsort
SELECT DISTINCT col0 * ( + 15 ) AS col0 FROM tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT ALL + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + + col2 col2 FROM tab2 AS cor0
----
0
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT cor2.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT ( 62 ) FROM tab1 AS cor0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT ALL - ( - col0 ) * col1 + + col1 * 69 DIV col0 FROM tab0 AS cor0
----
2311
3586
8169
skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - ( - col0 ) * col1 + + col1 * 69 / col0 FROM tab0 AS cor0
----
2311
3586
8169
query I rowsort
SELECT DISTINCT - col1 * col2 * - 78 AS col1 FROM tab1
----
109512
44460
97344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab2
----
42
42
42
query I rowsort
SELECT ALL - col0 * - col0 * col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 57 * col2 + 60 AS col0 FROM tab0 AS cor0
----
117
1941
4734
query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + 11 + + col1 AS col1 FROM tab1 AS cor0
----
21
24
37
query I rowsort
SELECT - - col2 * - col2 + + ( - col1 ) * + col0 * - 72 FROM tab2 AS cor0
----
14895
330668
95252
query I rowsort
SELECT ALL + 12 AS col0 FROM tab2
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + + cor0.col2 col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + col2 + 87 * cor0.col2 AS col2 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT DISTINCT + col2 * 46 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT ALL + col0 + ( 89 ) AS col2 FROM tab0 AS cor0
----
113
124
178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 49 * col2 col2 FROM tab2 AS cor0
----
1333
1354
1879
query I rowsort
SELECT ALL - col2 * col1 + ( cor0.col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL cor0.col0 * - 46 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT - col2 * - 8 + col1 AS col1 FROM tab1 AS cor0
----
458
466
781
query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL - 72 * + 11 + - col0 FROM tab2 AS cor0
----
-799
-870
-871
query I rowsort
SELECT DISTINCT - - ( + 6 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
60
63
query I rowsort
SELECT ALL + col0 - + 96 * + col2 FROM tab1 AS cor0
----
-5181
-5408
-9136
query I rowsort
SELECT + 76 + + col1 AS col0 FROM tab0 AS cor0
----
162
167
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT ALL - + col2 DIV col1 + col0 * - 74 FROM tab2 AS cor0
----
-518
-5772
-5848
skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - + col2 / col1 + col0 * - 74 FROM tab2 AS cor0
----
-518
-5772
-5848
query I rowsort
SELECT col0 * + 55 + cor0.col2 FROM tab1 AS cor0
----
219
3577
4496
query I rowsort
SELECT ALL + - 80 AS col2 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT ( + col0 ) * - col2 + + 4 AS col2 FROM tab0 AS cor0
----
-31
-7294
-788
query I rowsort
SELECT DISTINCT + col0 * - col1 * col0 - - ( 50 ) FROM tab0 AS cor0
----
-118775
-49486
-720761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col1 + cor0.col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab2 AS cor0
----
-53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT ALL - cor0.col0 * + ( col2 ) - - CAST( col2 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3534
-54
-7488
skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - cor0.col0 * + ( col2 ) - - CAST ( col2 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3534
-54
-7488
query I rowsort
SELECT ALL + col1 + ( - col1 ) * + 61 AS col2 FROM tab1 AS cor0
----
-1560
-600
-780
query I rowsort
SELECT + col2 - + col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT + ( col2 ) DIV - col2 + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + ( col2 ) / - col2 + col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT col0 * col1 + col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
10764
273
7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col1 col2 FROM tab0, tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - - 85 * col1 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT col1 * + col1 + - 74 * col0 AS col1 FROM tab2 AS cor0
----
-2291
-5557
443
query I rowsort
SELECT col0 * col2 + + col1 + - col2 * - 90 AS col2 FROM tab1
----
16333
5048
8788
query I rowsort
SELECT - 93 - + col2 * - ( + 49 ) FROM tab1 AS cor0
----
2553
2700
4611
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT col2 + - col0 * CAST( NULL AS SIGNED ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4708
SELECT col2 + - col0 * CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col0 + col1 + - col0 * - ( col2 ) FROM tab0
----
167
7478
902
query I rowsort
SELECT DISTINCT - col0 + 75 * col2 FROM tab2
----
1872
2018
2771
query I rowsort
SELECT + ( + col2 ) + + col1 + + ( - col0 ) AS col1 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 * + 20 AS col1 FROM tab0
----
1056
1925
9701
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 + 37 * col0 FROM tab0
----
-4005
1260
96
query I rowsort
SELECT + + col0 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - - col2 + + col2 * cor0.col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT + + col1 + 18 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
127
85
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT + - col0 + cor0.col2 DIV + col2 + - 18 FROM tab1 AS cor0
----
-20
-81
-97
skipif mysql # not compatible
query I rowsort label-4720
SELECT + - col0 + cor0.col2 / + col2 + - 18 FROM tab1 AS cor0
----
-20
-81
-97
query I rowsort
SELECT - col2 * - col1 - + col2 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 70 col1 FROM tab1
----
-1820
-700
-910
query I rowsort
SELECT 17 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL col2 + - 89 FROM tab2 AS cor0
----
-51
-62
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 * + col0 col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 82 * + ( col1 ) FROM tab0 AS cor0
----
7052
7462
7954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4728
SELECT - CAST( - col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-4728
SELECT - CAST ( - col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 + 38 - col1 * col0 * - tab1.col2 FROM tab1
----
36575
4304
99974
query I rowsort
SELECT + col1 * + 99 - col1 * col1 FROM tab1 AS cor0
----
1118
1898
890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col2 * + col0 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-648
2356
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4735
SELECT cor0.col0 - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-4735
SELECT cor0.col0 - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 34 * + col0 FROM tab2 cor0
----
238
2652
2686
query I rowsort
SELECT - 89 + col0 FROM tab2 AS cor0
----
-10
-11
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT - cor0.col1 + ( col1 ) DIV + 26 FROM tab1 AS cor0
----
-10
-13
-25
skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT - cor0.col1 + ( col1 ) / + 26 FROM tab1 AS cor0
----
-10
-13
-25
query I rowsort
SELECT - 44 + cor0.col1 FROM tab0 AS cor0
----
42
47
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4740
SELECT CAST( NULL AS DECIMAL ) + - 54 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( NULL AS REAL ) + - 54 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 19 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + 81 AS col2 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT + col0 * ( col2 * - col0 ) FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + col0 + + 91 FROM tab2 AS cor0
----
169
170
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 27 * - col0 * col0 col1 FROM tab1 AS cor0
----
-110656
-172880
-246
query I rowsort
SELECT + col2 + col0 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL 60 * col1 AS col0 FROM tab1
----
1560
600
780
query I rowsort
SELECT ( col1 ) + + ( col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT ALL cor0.col0 + + col0 * col2 - col1 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT DISTINCT col0 - - ( ( col2 ) * + col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT - - 10 DIV 67 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4752
SELECT - - 10 / 67 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4753
SELECT - tab0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4753
SELECT - tab0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 92 AS col0 FROM tab1 AS cor0
----
4968
5244
8832
query I rowsort
SELECT + 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL col1 * ( 36 ) FROM tab1
----
360
468
936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4757
SELECT ALL col2 * col0 + - CAST( 34 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
10086
1914
69
skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL col2 * col0 + - CAST ( 34 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
10086
1914
69
query I rowsort
SELECT DISTINCT - 42 * - col1 AS col2 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT 67 * + 79 AS col1 FROM tab2
----
5293
5293
5293
query I rowsort
SELECT ( 80 ) FROM tab1
----
80
80
80
query I rowsort
SELECT - 43 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT DISTINCT col1 + col0 + - col1 AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT ( - tab0.col1 ) DIV + col0 + - tab0.col2 FROM tab0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-4763
SELECT ( - tab0.col1 ) / + col0 + - tab0.col2 FROM tab0
----
-3
-36
-83
query I rowsort
SELECT + + 34 + col2 * + 84 FROM tab1 AS cor0
----
4570
4822
8098
query I rowsort
SELECT + + col0 + + col0 * + 30 AS col2 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT - + ( - col0 ) + - 75 * cor0.col1 AS col0 FROM tab0 cor0
----
-6426
-6736
-7240
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + - 19 AS col1 FROM tab0 AS cor0
----
-7415
-8300
-9428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - cor0.col1 * cor0.col0 col1 FROM tab1 cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT + ( - col2 ) * 54 DIV - 83 AS col0 FROM tab0 AS cor0
----
0
21
53
skipif mysql # not compatible
query I rowsort label-4769
SELECT + ( - col2 ) * 54 / - 83 AS col0 FROM tab0 AS cor0
----
0
21
53
query I rowsort
SELECT ALL - col1 + cor0.col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT ALL tab2.col0 + - tab2.col1 + - col1 DIV + col0 AS col0 FROM tab2
----
-28
19
62
skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL tab2.col0 + - tab2.col1 + - col1 / + col0 AS col0 FROM tab2
----
-28
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4773
SELECT col0 * col1 + col0 * + col0 - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
10764
273
7663
skipif mysql # not compatible
query I rowsort label-4773
SELECT col0 * col1 + col0 * + col0 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
10764
273
7663
query I rowsort
SELECT + col2 * - col1 + - col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT col2 + tab2.col0 * col0 AS col1 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL - col1 * - 59 + - 24 FROM tab0
----
5050
5345
5699
query I rowsort
SELECT tab2.col2 + tab2.col2 + col1 FROM tab2
----
111
85
93
query I rowsort
SELECT ALL + 34 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT DISTINCT col0 * + col2 + - col1 + col2 AS col2 FROM tab2
----
185
1995
3023
query I rowsort
SELECT + 51 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4781
SELECT + CAST( NULL AS SIGNED ) * cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4781
SELECT + CAST ( NULL AS INTEGER ) * cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 32 * cor0.col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-135
-156
228
query I rowsort
SELECT ALL + - col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT CAST( NULL AS SIGNED ) + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4784
SELECT CAST ( NULL AS INTEGER ) + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4785
SELECT ALL + 97 * cor0.col0 * + col0 + - CAST( NULL AS SIGNED ) + + col0 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + 97 * cor0.col0 * + col0 + - CAST ( NULL AS INTEGER ) + + col0 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col0 + + col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + 92 + col1 * - col0 FROM tab1 AS cor0
----
-548
-948
14
query I rowsort
SELECT - 26 * + 34 + col0 AS col2 FROM tab1 AS cor0
----
-804
-820
-881
query I rowsort
SELECT + ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - - col0 + - col0 + - cor0.col0 * 83 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT 32 AS col1 FROM tab1 cor0
----
32
32
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ALL - col0 * col1 - + 85 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1338
-215
-4601
skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - col0 * col1 - + 85 / - col1 AS col2 FROM tab2 AS cor0
----
-1338
-215
-4601
query I rowsort
SELECT ALL - - 49 * - col1 FROM tab2 AS cor0
----
-1519
-2891
-833
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * col1 col1 FROM tab1 AS cor0
----
1560
600
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + - 64 + + col0 col0 FROM tab1 AS cor0
----
-10
-87
3
query I rowsort
SELECT ALL - 2 * col0 + 52 FROM tab1 AS cor0
----
-108
-76
46
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 * 38 AS col1 FROM tab2 AS cor0
----
1019
1365
910
query I rowsort
SELECT + + col2 + cor0.col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - - col2 * col2 + + 41 AS col2 FROM tab2 AS cor0
----
1485
717
770
query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) * col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + col2 * + ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - - col0 + 39 FROM tab2 cor0
----
117
118
46
query I rowsort
SELECT DISTINCT + cor0.col2 * 52 AS col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT - col0 * + 5 + col1 AS col0 FROM tab2 AS cor0
----
-331
-378
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( + cor0.col0 * col2 ) col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab2.col1 + - col0 col0 FROM tab2
----
-45
40
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col0 ) col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - cor0.col2 * + ( cor0.col1 ) + + col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
241230
671580
9312
query I rowsort
SELECT DISTINCT - + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT col1 DIV + col1 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT col1 / + col1 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - + col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - - col0 + 81 * col2 AS col2 FROM tab2 AS cor0
----
2184
2194
3157
query I rowsort
SELECT cor0.col1 * ( 32 ) AS col2 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT + - col1 + 45 * + col0 AS col2 FROM tab1 cor0
----
109
2870
3587
query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce
query I rowsort
SELECT - col2 * + 93 AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT ALL - cor0.col2 * 60 FROM tab2, tab1 AS cor0
----
9 values hashing to faebb42060ddaf5dec7dbf1f01bae592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 21 col0 FROM tab0
----
1806
1911
2037
query I rowsort
SELECT ALL - col0 + 63 FROM tab1
----
-1
-17
60
query I rowsort
SELECT ALL tab2.col2 * 29 + 98 FROM tab2
----
1200
852
881
query I rowsort
SELECT + 13 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - cor1.col2 ) ) * - 11 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0d4bc6fbea5fedd85a6578eb3a34855c
query I rowsort
SELECT ALL col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col0 * - col0 * + 89 + - 16 AS col2 FROM tab1
----
-364560
-569616
-817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM tab1
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 51 + - col2 AS col1 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT - + col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT 24 * cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 34f703c7deea980a49ff48de24d80e35
query I rowsort
SELECT + 56 AS col2 FROM tab2
----
56
56
56
query I rowsort
SELECT DISTINCT 63 FROM tab2, tab1 cor0
----
63
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT + - ( + ( col2 ) ) FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT - CAST( - col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-4837
SELECT - CAST ( - col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 - + col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col1 * col0 - 21 * + col2 FROM tab0 AS cor0
----
-2757
-3416
-9821
query I rowsort
SELECT DISTINCT + tab2.col1 + col2 - 39 * + col2 * col2 FROM tab2
----
-26279
-28373
-56261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT DISTINCT - col2 + col0 * + col0 DIV - col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - col2 + col0 * + col0 / - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + - 17 + - col2 * + 90 AS col0 FROM tab1 cor0
----
-4877
-5147
-8657
query I rowsort
SELECT ALL + col1 + ( 74 + - col2 ) * col1 * col2 AS col1 FROM tab1
----
-27443
28106
9700
query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + ( 67 ) + - tab2.col2 - 56 AS col2 FROM tab2, tab1 AS cor0
----
-15
-16
-27
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT + col2 + - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-4850
SELECT + col2 + - col0 / + col2 AS col2 FROM tab0 AS cor0
----
-34
33
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col0 col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col2 * ( col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + 28 * 64 + + col2 AS col0 FROM tab2 AS cor0
----
1818
1819
1830
query I rowsort
SELECT ALL - - 94 AS col1 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT col1 + - col1 * 82 FROM tab2
----
-1377
-2511
-4779
query I rowsort
SELECT + col2 * - col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT ALL - ( - col1 ) DIV col2 + col2 * ( + col1 + col1 * - col2 ) FROM tab0 cor0
----
-604421
-90814
97
skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - ( - col1 ) / col2 + col2 * ( + col1 + col1 * - col2 ) FROM tab0 cor0
----
-604421
-90814
97
query I rowsort
SELECT ALL - 62 * - col0 + col0 * + col0 FROM tab1 AS cor0
----
11360
195
8064
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col2 AS col1 FROM tab2, tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT - ( col2 ) * col2 * + 44 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-289132
-43
-46827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * cor0.col2 - col1 * col1 * col0 FROM tab1 AS cor0
----
-12272
-5830
-624
skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * cor0.col2 - col1 * col1 * col0 FROM tab1 AS cor0
----
-12272
-5830
-624
query I rowsort
SELECT ALL col1 - 30 AS col0 FROM tab2 AS cor0
----
-13
1
29
query I rowsort
SELECT ALL - ( col0 ) + col1 * col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT 31 + + cor1.col1 FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to da4100141a1496a822431dbec8d0b59c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT col1 * col2 DIV + 60 FROM tab2 AS cor0
----
10
13
25
skipif mysql # not compatible
query I rowsort label-4867
SELECT col1 * col2 / + 60 FROM tab2 AS cor0
----
10
13
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 5 + cor0.col1 FROM tab1 AS cor0
----
15
18
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT DISTINCT + col2 DIV col1 + 5 FROM tab1 AS cor0
----
10
12
7
skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + col2 / col1 + 5 FROM tab1 AS cor0
----
10
12
7
query I rowsort
SELECT DISTINCT + tab2.col1 * ( col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT col2 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 * 92 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT DISTINCT - col1 * 49 FROM tab2 AS cor0
----
-1519
-2891
-833
query I rowsort
SELECT ALL + + cor0.col2 * + 22 AS col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT - cor0.col0 - col0 FROM tab1 cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT ALL col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT ALL - cor0.col2 * col2 + 25 DIV col0 - + col1 AS col1 FROM tab0 AS cor0
----
-1174
-6815
-98
skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - cor0.col2 * col2 + 25 / col0 - + col1 AS col1 FROM tab0 AS cor0
----
-1174
-6815
-98
query I rowsort
SELECT + col2 * 17 AS col1 FROM tab0 AS cor0
----
1394
17
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT ALL - col0 * col0 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - col0 * col0 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col2 + 60 AS col1 FROM tab0 cor0
----
-22
27
59
query I rowsort
SELECT - 99 * col2 * tab0.col1 FROM tab0
----
-280962
-738738
-9603
query I rowsort
SELECT - 57 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - 68 + col1 AS col2 FROM tab0
----
18
23
29
query I rowsort
SELECT DISTINCT col1 + - tab2.col0 - - 98 FROM tab2
----
122
36
79
query I rowsort
SELECT 94 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL - 46 * - tab0.col2 FROM tab0
----
1518
3772
46
query I rowsort
SELECT + col0 * + col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - col1 * + ( 81 ) - cor0.col2 AS col1 FROM tab0 AS cor0
----
-6999
-7453
-7858
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT + col0 - + col1 DIV ( col2 ) FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-4890
SELECT + col0 - + col1 / ( col2 ) FROM tab0
----
-62
22
88
query I rowsort
SELECT + col1 + 58 * 10 FROM tab0 AS cor0
----
666
671
677
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT DISTINCT + col1 + CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + col1 + CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT cor0.col1 * - ( + 75 + col1 ) AS col2 FROM tab0 AS cor0
----
-13846
-15106
-16684
query I rowsort
SELECT DISTINCT + col2 + 48 AS col1 FROM tab2 cor0
----
74
75
86
query I rowsort
SELECT - - col2 - - col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT - col0 DIV + ( - ( col0 ) * ( - col2 ) ) AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4897
SELECT - col0 / + ( - ( col0 ) * ( - col2 ) ) AS col0 FROM tab0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4898
SELECT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4898
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 69 FROM tab1
----
3726
3933
6624
query I rowsort
SELECT cor0.col0 - 35 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 82609e53ac5d97790ef64a5ce88b23da
query I rowsort
SELECT + 38 * col1 - - col1 AS col0 FROM tab2
----
1209
2301
663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT col2 * + col2 - + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4902
SELECT col2 * + col2 - + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 94 * col0 col2 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT ALL - 47 * + col2 AS col1 FROM tab1 AS cor0
----
-2538
-2679
-4512
query I rowsort
SELECT + 9 + + col2 * + col0 FROM tab2 AS cor0
----
198
2037
3011
query I rowsort
SELECT DISTINCT + + col0 + col0 * + ( - cor0.col1 ) FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - tab1.col2 * 73 AS col1 FROM tab1
----
-3942
-4161
-7008
query I rowsort
SELECT ALL ( + col0 ) + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + 36 * + col1 col1 FROM tab1 AS cor0
----
-23040
-2808
-37440
query I rowsort
SELECT + + col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - ( - col1 ) * 35 AS col0 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT ALL + - 30 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT + 45 + col0 * col0 FROM tab1 AS cor0
----
4141
54
6445
query I rowsort
SELECT ALL + col1 + + col1 * - 3 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL tab0.col1 * + col2 * + 94 FROM tab0
----
266772
701428
9118
query I rowsort
SELECT + col1 * - col0 + col1 AS col0 FROM tab1
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT - 92 DIV + col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4917
SELECT - 92 / + col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT cor0.col0 * ( + 84 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 22db354ec671f2524d0588c47f0b228e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
79
query I rowsort
SELECT DISTINCT + col1 * tab2.col1 FROM tab2
----
289
3481
961
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT - col2 DIV col2 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4923
SELECT - col2 / col2 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT col1 + col1 * ( col1 ) FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT col2 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4925
SELECT col2 / col0 AS col0 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + 65 * 38 FROM tab1 AS cor0
----
2470
query I rowsort
SELECT ( - 62 ) * col0 AS col0 FROM tab0 AS cor0
----
-1488
-2170
-5518
query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif mysql # not compatible
query I rowsort
SELECT col0 * ( col2 ) + + CAST ( - col0 AS REAL ) / col0 FROM tab1 AS cor0
----
161
3647
7679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT CAST( NULL AS SIGNED ) * - col1 + + col2 * ( + col2 * col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4930
SELECT CAST ( NULL AS INTEGER ) * - col1 + + col2 * ( + col2 * col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT - + 70 DIV col2 + - col1 FROM tab1 AS cor0
----
-11
-13
-27
skipif mysql # not compatible
query I rowsort label-4932
SELECT - + 70 / col2 + - col1 FROM tab1 AS cor0
----
-11
-13
-27
query I rowsort
SELECT DISTINCT - col2 * + 82 * col0 FROM tab1 AS cor0
----
-13284
-299136
-629760
query I rowsort
SELECT DISTINCT cor0.col0 + + 58 * + col2 FROM tab0 AS cor0
----
1938
4845
93
query I rowsort
SELECT - col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - cor0.col1 * col0 + col0 * + 11 * - col2 FROM tab2 AS cor0
----
-2296
-26910
-34365
query I rowsort
SELECT ALL - cor0.col1 + - 96 FROM tab0, tab1 cor0
----
9 values hashing to 7d90e326d5211cb0cadef817e07bc3dd
query I rowsort
SELECT + col1 + col0 * col0 AS col2 FROM tab0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT - col2 NOT IN ( col2 / col1 )
----
query I rowsort
SELECT + col1 * tab1.col2 + + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NULL IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT col2 * + col2 + - col0 * col0 DIV + col1 + tab2.col2 FROM tab2 WHERE col0 NOT BETWEEN ( NULL ) AND ( col1 )
----
1115
599
skipif mysql # not compatible
query I rowsort label-4943
SELECT col2 * + col2 + - col0 * col0 / + col1 + tab2.col2 FROM tab2 WHERE col0 NOT BETWEEN ( NULL ) AND ( col1 )
----
1115
599
query I rowsort
SELECT DISTINCT col0 - + tab1.col0 * + col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE ( NULL ) < + col1 + col2 + col2 * + col2
----
query I rowsort
SELECT DISTINCT col2 * - col2 - - tab1.col2 AS col0 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT col2 + - col1 * + col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - tab1.col0 + + col1 * col0 FROM tab1
----
576
75
960
query I rowsort
SELECT + col0 * col1 FROM tab2 WHERE - col2 NOT IN ( col2 )
----
1343
217
4602
query I rowsort
SELECT ALL + tab2.col2 + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT col1 + col0 * col0 * + col1 AS col2 FROM tab0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT col1 * - col0 - - col2 * col2 FROM tab2
----
-3926
101
512
query I rowsort
SELECT ALL - col0 FROM tab1 WHERE col1 + col2 < NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT + col2 DIV + col1 + - col2 + - col0 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
1224
18975
649440
skipif mysql # not compatible
query I rowsort label-4956
SELECT + col2 / + col1 + - col2 + - col0 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
1224
18975
649440
onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT DISTINCT col2 DIV col2 + col0 DIV - col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT col2 / col2 + col0 / - col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT - col2 + + col2 + - col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4958
SELECT - col2 + + col2 + - col2 / col0 FROM tab1 AS cor0
----
-1
-18
0
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE col1 - col2 >= col1
----
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND col1
----
query I rowsort
SELECT ALL col1 * col0 + col2 AS col1 FROM tab1 WHERE NOT col0 * - col0 + - col0 NOT IN ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col0 - - col1 * - col1 AS col1 FROM tab2
----
-210
-3403
-954
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * cor0.col0 ) < ( + col2 * - col2 - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT ALL col2 + 38 DIV - col1 FROM tab2 AS cor0
----
26
26
36
skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL col2 + 38 / - col1 FROM tab2 AS cor0
----
26
26
36
query I rowsort
SELECT DISTINCT + + col2 * 1 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col2 + 63 FROM tab1 AS cor0
----
117
120
159
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT DISTINCT col0 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT col0 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col0 + 81 col0 FROM tab1
----
1121
159
721
query I rowsort
SELECT - col0 + - 92 FROM tab1 AS cor0
----
-156
-172
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT DISTINCT - col1 + ( - cor0.col0 + cor0.col2 ) DIV - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - col1 + ( - cor0.col0 + cor0.col2 ) / - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - cor0.col0 + - 23 FROM tab0 AS cor0
----
-112
-47
-58
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL + ( 20 ) AS col1 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT 1 * 32 AS col0 FROM tab0 cor0
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT CAST( - 8 AS SIGNED ) DIV col0 AS col2 FROM tab1 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4977
SELECT CAST ( - 8 AS INTEGER ) / col0 AS col2 FROM tab1 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT - + col0 * 52 * col0 AS col0 FROM tab0 AS cor0
----
-29952
-411892
-63700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL - - col1 DIV 66 + + col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - - col1 / 66 + + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT col1 + 95 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT - 23 + - col1 FROM tab0 AS cor0
----
-109
-114
-120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( col0 ) + + col0 col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT ALL col1 + 41 DIV - col0 AS col1 FROM tab0 AS cor0
----
85
91
96
skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL col1 + 41 / - col0 AS col1 FROM tab0 AS cor0
----
85
91
96
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + ( col2 ) * col0 + - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT cor0.col0 * - 68 AS col0 FROM tab1, tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT DISTINCT col0 * - col1 * 29 - - col0 * tab2.col2 AS col1 FROM tab2
----
-131430
-35945
-6104
query I rowsort
SELECT - - col1 * + col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col1 * + col0 - 97 AS col0 FROM tab1 cor0
----
-1137
-175
-737
query I rowsort
SELECT ALL - 59 * + col0 FROM tab0 AS cor0
----
-1416
-2065
-5251
query I rowsort
SELECT + 38 + - col2 AS col2 FROM tab2 AS cor0
----
0
11
12
query I rowsort
SELECT DISTINCT - 63 + col1 AS col2 FROM tab2 AS cor0
----
-32
-4
-46
query I rowsort
SELECT + + col1 * - 6 FROM tab0 cor0
----
-516
-546
-582
onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT - col2 + 52 DIV + col1 FROM tab2 AS cor0
----
-26
-26
-35
skipif mysql # not compatible
query I rowsort label-4995
SELECT - col2 + 52 / + col1 FROM tab2 AS cor0
----
-26
-26
-35
query I rowsort
SELECT ALL cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4997
SELECT col0 + + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-4997
SELECT col0 + + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT DISTINCT + col2 * - col1 + - cor0.col1 DIV col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1594
-664
-869
skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + col2 * - col1 + - cor0.col1 / col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1594
-664
-869
query I rowsort
SELECT col1 + - 20 FROM tab0 AS cor0
----
66
71
77
query I rowsort
SELECT - - cor0.col2 * col1 - 13 FROM tab0 AS cor0
----
2825
7449
84
query I rowsort
SELECT + + col2 * ( 18 ) + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-208
-243
-760
query I rowsort
SELECT DISTINCT + col1 * 69 + col2 * col0 FROM tab1 AS cor0
----
1956
4338
8577
query I rowsort
SELECT ALL 74 - + col2 FROM tab0
----
-8
41
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5004
SELECT + tab0.col2 + - tab0.col2 * - CAST( - col0 AS SIGNED ) + col2 col0 FROM tab0
----
-33
-7134
-726
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5004
SELECT + tab0.col2 + - tab0.col2 * - CAST ( - col0 AS INTEGER ) + col2 col0 FROM tab0
----
-33
-7134
-726
query I rowsort
SELECT tab0.col1 + col0 * + 65 AS col2 FROM tab0
----
1646
2372
5876
query I rowsort
SELECT + tab1.col0 FROM tab1, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab1
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2, tab2 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT DISTINCT - col2 DIV - col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - col2 / - col2 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - ( cor0.col0 ) * cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5013
SELECT - CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5013
SELECT - CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 92 * col2 * col1 FROM tab1 AS cor0
----
114816
129168
52440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) col2 FROM tab0 AS cor0
----
2
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT ALL + + CAST( + 84 AS SIGNED ) * + col0 - 3 AS col1 FROM tab2 AS cor0
----
585
6549
6633
skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + + CAST ( + 84 AS INTEGER ) * + col0 - 3 AS col1 FROM tab2 AS cor0
----
585
6549
6633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5017
SELECT DISTINCT - + col0 * + col2 + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT - + col0 * + col2 + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col0 * + col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col0 + cor0.col2 * 7 AS col1 FROM tab2 AS cor0
----
104
182
187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT ALL + col1 + col1 * CAST( + col1 * col2 AS SIGNED ) + ( col2 ) FROM tab2 AS cor0
----
11037
26005
90591
skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + col1 + col1 * CAST ( + col1 * col2 AS INTEGER ) + ( col2 ) FROM tab2 AS cor0
----
11037
26005
90591
query I rowsort
SELECT + cor0.col0 + + col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT 68 + + col1 FROM tab2
----
127
85
99
query I rowsort
SELECT + col0 * + 45 + col1 * - tab1.col0 AS col1 FROM tab1
----
2240
2560
57
query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
54
57
96
query I rowsort
SELECT col2 * - 84 + - col2 AS col0 FROM tab1
----
-4590
-4845
-8160
query I rowsort
SELECT - 29 + col1 FROM tab2
----
-12
2
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT + ( col1 + + col2 * CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5028
SELECT + ( col1 + + col2 * CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + ( + 78 ) FROM tab0 AS cor0
----
111
160
79
query I rowsort
SELECT DISTINCT - - col0 * 75 + 15 - col2 FROM tab1 AS cor0
----
186
4758
5919
query I rowsort
SELECT DISTINCT col1 * - 81 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT col2 + 59 AS col1 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - - col1 * + col2 + + ( col0 * - col0 ) AS col2 FROM tab0 AS cor0
----
-1128
-459
2262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - 15 col2 FROM tab1 AS cor0
----
-25
-28
-41
query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 - + cor0.col2 * - col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT - col1 + ( + 15 ) + cor0.col1 AS col1 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT - cor0.col2 + + 63 FROM tab1 AS cor0
----
-33
6
9
query I rowsort
SELECT ALL + - col0 * + ( - col0 ) + col1 * col2 AS col1 FROM tab0 cor0
----
1322
15383
3414
query I rowsort
SELECT col2 * - col0 + tab2.col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col2 + + col1 * + 8 FROM tab2 AS cor0
----
174
275
498
query I rowsort
SELECT - 89 * - col2 FROM tab0
----
2937
7298
89
query I rowsort
SELECT + col1 + - ( 42 ) FROM tab1
----
-16
-29
-32
query I rowsort
SELECT - 75 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
-14175
-152100
-225150
query I rowsort
SELECT - col0 * + 12 + + cor0.col0 * - col0 FROM tab1 AS cor0
----
-45
-4864
-7360
query I rowsort
SELECT 63 * + col2 AS col1 FROM tab1 cor0
----
3402
3591
6048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5047
SELECT - CAST( 99 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-19
-35
-96
skipif mysql # not compatible
query I rowsort label-5047
SELECT - CAST ( 99 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT + 84 + + col0 * - col1 AS col0 FROM tab1 cor0
----
-556
-956
6
query I rowsort
SELECT + col1 * - ( + col2 + col1 ) AS col2 FROM tab0
----
-10234
-15743
-9506
query I rowsort
SELECT col0 * 3 AS col1 FROM tab1
----
192
240
9
query I rowsort
SELECT ALL + col0 * - 74 FROM tab2
----
-518
-5772
-5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT 5 * 37 DIV - col0 FROM tab0 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5052
SELECT 5 * 37 / - col0 FROM tab0 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + - col0 * + 82 AS col2 FROM tab1 AS cor0
----
-246
-5248
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 * col2 col1 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT + + cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * + cor0.col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL + col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - col2 col1 FROM tab2 AS cor0
----
18
29
30
query I rowsort
SELECT ALL - col0 + + col0 + cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( cor0.col0 * - cor0.col2 ) col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT - col0 * ( col0 * col1 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT - + cor0.col1 * col2 * + 4 + ( col2 ) FROM tab2 AS cor0
----
-2546
-3321
-6110
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-5066
SELECT DISTINCT + col0 + col1 DIV 37 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + col0 + col1 / 37 FROM tab1
----
3
64
80
query I rowsort
SELECT - + 87 * - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4b10b061c552fb03bd97a44401b3b33
query I rowsort
SELECT + 69 + col1 * col0 FROM tab1
----
1109
147
709
query I rowsort
SELECT - + col2 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + + ( - col2 ) + - 1 FROM tab2 cor0
----
-27
-28
-39
query I rowsort
SELECT ALL + + col0 * col0 + 22 AS col2 FROM tab1 AS cor0
----
31
4118
6422
query I rowsort
SELECT DISTINCT col2 - + col2 AS col1 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + - col1 col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL - + col0 DIV + col1 - + col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - + col0 / + col1 - + col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col0 * col2 * col0 - + 66 FROM tab2 AS cor0
----
1257
158118
237092
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) + + col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT - cor0.col2 * - cor0.col0 + col0 + - cor0.col1 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT ALL + col1 + 11 FROM tab0 AS cor0
----
102
108
97
query I rowsort
SELECT + ( + 43 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL - cor0.col2 + - col1 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col1 * col2 * + col2 + col2 + cor0.col1 * - 15 AS col1 FROM tab0 cor0
----
-1357
610601
92397
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4
query I rowsort
SELECT - col2 + col0 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
169
2080
3043
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT 5 + + col0 * - CAST( + col1 AS SIGNED ) * col1 col0 FROM tab2
----
-22826
-271513
-6722
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5085
SELECT 5 + + col0 * - CAST ( + col1 AS INTEGER ) * col1 col0 FROM tab2
----
-22826
-271513
-6722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT - - CAST( col2 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-5086
SELECT - - CAST ( col2 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT DISTINCT + col0 DIV col0 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT + col0 / col0 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL col1 + - 31 AS col0 FROM tab1 AS cor0
----
-18
-21
-5
query I rowsort
SELECT ALL - 30 FROM tab1, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT - 30 * col2 FROM tab2
----
-1140
-780
-810
query I rowsort
SELECT - + ( col1 ) - col1 * + 67 * - col0 AS col1 FROM tab1 AS cor0
----
42870
5200
69667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT + 32 * - 51 + col1 * CAST( col2 AS SIGNED ) * col1 + 50 AS col1 FROM tab0
----
242486
677460
7827
skipif mysql # not compatible
query I rowsort label-5092
SELECT + 32 * - 51 + col1 * CAST ( col2 AS INTEGER ) * col1 + 50 AS col1 FROM tab0
----
242486
677460
7827
query I rowsort
SELECT DISTINCT 56 FROM tab0, tab2 cor0
----
56
query I rowsort
SELECT ALL ( + col1 * - col1 ) + - col2 - col2 * - col0 AS col1 FROM tab2
----
-1479
-799
2675
onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT DISTINCT cor0.col0 + - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT cor0.col0 + - cor0.col1 / - col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort
SELECT 36 * + cor0.col1 + - CAST ( col1 AS REAL ) + col1 / cor0.col0 FROM tab0 AS cor0
----
3013
3186
3397
query I rowsort
SELECT DISTINCT + col0 * col0 + 97 + - cor0.col2 FROM tab0 AS cor0
----
1321
640
7936
query I rowsort
SELECT ALL + col2 * - col0 + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL - col2 * col0 + 86 * - col1 + col1 FROM tab1
----
-2372
-4498
-8785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + - col0 col0 FROM tab0
----
-61
-7
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT DISTINCT col2 DIV + ( 22 ) FROM tab1
----
2
4
skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT col2 / + ( 22 ) FROM tab1
----
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT 83 DIV + 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif mysql # not compatible
query I rowsort label-5103
SELECT 83 / + 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT + col0 + + 58 AS col1 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT col2 * + ( + ( + col0 ) * + col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
0
26112
598347
query I rowsort
SELECT DISTINCT + col1 * col0 + 37 FROM tab2 AS cor0
----
1380
254
4639
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5107
SELECT - CAST( 99 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
skipif mysql # not compatible
query I rowsort label-5107
SELECT - CAST ( 99 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 22 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 22 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + ( + 5 ) * col0 FROM tab2 cor0
----
-35
-390
-395
query I rowsort
SELECT ALL 95 * + col1 AS col2 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT DISTINCT - ( - col1 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col0 * 93 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - 39 * 2 FROM tab0 AS cor0
----
-78
-78
-78
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + + 41 * 61 AS col1 FROM tab2 AS cor0
----
2501
onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT col0 * col2 DIV - col2 col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5117
SELECT col0 * col2 / - col2 col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL 34 * - cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
-156494
-45700
-7405
query I rowsort
SELECT 62 * - col2 FROM tab1
----
-3348
-3534
-5952
query I rowsort
SELECT + col0 * + 66 AS col2 FROM tab2 AS cor0
----
462
5148
5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT col0 DIV tab0.col2 + + 14 DIV 92 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5121
SELECT col0 / tab0.col2 + + 14 / 92 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT DISTINCT + col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT + col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab1
----
86
86
86
query I rowsort
SELECT ALL + 24 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 * 50 - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
1976
600
819
query I rowsort
SELECT - col0 + - ( col1 + col1 ) FROM tab2 cor0
----
-113
-196
-69
query I rowsort
SELECT - col0 + + ( col0 ) * + col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - 81 + - col0 * - col1 FROM tab1
----
-3
559
959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL + 10 * 20 * col2 FROM tab0
----
16400
200
6600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 46 + col2 * + ( - col1 ) - col2 col0 FROM tab2 AS cor0
----
-364
1064
378
onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT ALL 77 + + col0 DIV tab0.col2 FROM tab0
----
112
77
78
skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL 77 + + col0 / tab0.col2 FROM tab0
----
112
77
78
query I rowsort
SELECT + ( - 87 ) AS col0 FROM tab1 cor0
----
-87
-87
-87
query I rowsort
SELECT - ( + 31 ) * col1 + - 0 - col1 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT ALL + ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 86 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # use DIV operator for integer division
query I rowsort label-5138
SELECT DISTINCT + col0 DIV col2 + - ( col2 + col2 ) * ( 26 + col2 ) AS col1 FROM tab0 AS cor0
----
-17711
-19
-3894
skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + col0 / col2 + - ( col2 + col2 ) * ( 26 + col2 ) AS col1 FROM tab0 AS cor0
----
-17711
-19
-3894
query I rowsort
SELECT col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + + col2 * + col1 + cor0.col0 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT - cor0.col2 DIV - col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5141
SELECT - cor0.col2 / - col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT col0 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT DISTINCT col0 DIV + col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT col0 / + col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 15 AS REAL ) + + col0 FROM tab0
----
20
74
9
query I rowsort
SELECT col0 + + tab0.col2 + - col1 AS col2 FROM tab0
----
-29
-61
80
query I rowsort
SELECT DISTINCT + tab0.col2 * - col0 + - tab0.col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT - cor0.col1 * col2 + cor0.col0 DIV ( + col2 ) + 75 AS col0 FROM tab1 AS cor0
----
-1173
-1329
-494
skipif mysql # not compatible
query I rowsort label-5150
SELECT - cor0.col1 * col2 + cor0.col0 / ( + col2 ) + 75 AS col0 FROM tab1 AS cor0
----
-1173
-1329
-494
query I rowsort
SELECT DISTINCT 88 + 3 AS col1 FROM tab2
----
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT - col1 DIV - tab1.col1 - - col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - col1 / - tab1.col1 - - col0 FROM tab1
----
4
65
81
query I rowsort
SELECT col0 - col1 * + 54 AS col1 FROM tab2
----
-1667
-3108
-839
query I rowsort
SELECT DISTINCT ( - col0 ) - - 2 FROM tab1
----
-1
-62
-78
query I rowsort
SELECT 12 * col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT col0 + + col2 * + 70 FROM tab2 cor0
----
1897
1898
2739
query I rowsort
SELECT ALL + + ( 95 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT col2 * col0 + - col1 * + col1 FROM tab1 AS cor0
----
-514
3548
7511
onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT - + col0 DIV ( + col2 ) FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5159
SELECT - + col0 / ( + col2 ) FROM tab0 cor0
----
-1
-35
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5160
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT DISTINCT + cor0.col1 * CAST( - 72 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-532512
-596232
-677448
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + cor0.col1 * CAST ( - 72 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-532512
-596232
-677448
query I rowsort
SELECT + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col1 + - 24 * col0 AS col2 FROM tab2
----
-137
-1813
-1879
query I rowsort
SELECT DISTINCT + col1 * 72 * + col2 AS col2 FROM tab1
----
101088
41040
89856
onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT tab1.col0 DIV + 86 + + ( col0 ) AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5165
SELECT tab1.col0 / + 86 + + ( col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + 76 + - ( + cor0.col1 ) * - col2 - ( col2 ) * col1 FROM tab2 AS cor0
----
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5167
SELECT CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5168
SELECT - CAST( NULL AS DECIMAL ) * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5168
SELECT - CAST ( NULL AS REAL ) * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - col0 * - 94 * + col2 AS col0 FROM tab0
----
3289
685930
74415
query I rowsort
SELECT col1 * + ( col1 + col1 ) AS col1 FROM tab2
----
1922
578
6962
query I rowsort
SELECT + col1 + + col1 + col2 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT + col0 - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT + cor0.col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col2 + tab0.col1 * + col1 + - col2 * + col0 AS col2 FROM tab0
----
6571
901
9373
query I rowsort
SELECT col0 + + 75 FROM tab1
----
139
155
78
query I rowsort
SELECT DISTINCT col1 - 27 FROM tab0
----
59
64
70
query I rowsort
SELECT DISTINCT col0 * + 29 * + col2 + - col0 - - col0 AS col1 FROM tab2
----
5481
58812
87058
query I rowsort
SELECT 79 + + ( col2 * 36 ) + cor0.col2 AS col0 FROM tab1 cor0
----
2077
2188
3631
query I rowsort
SELECT DISTINCT + 81 * + col2 AS col2 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT col0 + - 33 AS col2 FROM tab1 AS cor0
----
-30
31
47
query I rowsort
SELECT ALL 78 + + 99 * col0 * - col2 FROM tab2 AS cor0
----
-18633
-200694
-297120
query I rowsort
SELECT + ( + 45 ) FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT ALL + + cor0.col0 * col2 * col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + 53 + 86 AS col1 FROM tab2
----
139
139
139
query I rowsort
SELECT ( + col0 ) + col2 + + 42 AS col0 FROM tab2 AS cor0
----
146
159
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT ALL - ( col1 ) DIV - col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - ( col1 ) / - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 70 + 22 FROM tab2 AS cor0
----
92
query I rowsort
SELECT DISTINCT + - 77 * + col2 FROM tab2 AS cor0
----
-2002
-2079
-2926
onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT DISTINCT + col1 DIV 37 col1 FROM tab2 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + col1 / 37 col1 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - 24 + + col1 AS col1 FROM tab2 AS cor0
----
-7
35
7
query I rowsort
SELECT DISTINCT + + 83 * + 84 * - col2 FROM tab2 AS cor0
----
-181272
-188244
-264936
query I rowsort
SELECT cor0.col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 col2 FROM tab1 AS cor0
----
1274
2548
980
query I rowsort
SELECT - 10 + + col1 AS col2 FROM tab0 AS cor0
----
76
81
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5195
SELECT DISTINCT + 27 * col0 + - CAST( - 70 AS SIGNED ) AS col2 FROM tab0 cor0
----
1015
2473
718
skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + 27 * col0 + - CAST ( - 70 AS INTEGER ) AS col2 FROM tab0 cor0
----
1015
2473
718
onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT DISTINCT - + col0 * - col1 + - col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - + col0 * - col1 + - col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT - ( col2 ) + 18 * col2 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL + col0 * 36 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
147456
230400
324
query I rowsort
SELECT DISTINCT - - cor0.col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col1 * cor0.col0 + - 23 FROM tab1 AS cor0
----
-101
-1063
-663
query I rowsort
SELECT ALL + col2 * - 39 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + col1 * col2 * cor0.col2 FROM tab0 cor0
----
611884
93654
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT + col0 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5205
SELECT + col0 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 + 9 * col0 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT DISTINCT col0 - + ( ( + col1 ) * col2 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5208
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 - 15 col2 FROM tab2 AS cor0
----
11
12
23
query I rowsort
SELECT ALL + col1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - cor0.col0 + col2 * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + - 57 * col0 AS col1 FROM tab0 cor0
----
-1898
1470
2389
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col2 * - col2 col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col2 + - col1 * ( - col0 ) * - cor0.col1 FROM tab1 AS cor0
----
-13424
-1974
-6343
query I rowsort
SELECT ALL - col0 * - col1 - col1 FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - - col2 * + ( + 4 ) FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT ALL col0 * ( 3 + + tab2.col2 ) AS col0 FROM tab2
----
210
2262
3239
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to f2e58df61204c8a189e87d6816ea9159
query I rowsort
SELECT col1 + col0 * ( + col0 ) FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT 33 * col0 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-606
1040
1961
query I rowsort
SELECT DISTINCT - 34 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-10
1
55
query I rowsort
SELECT DISTINCT + - 92 * col2 AS col1 FROM tab0 cor0
----
-3036
-7544
-92
query I rowsort
SELECT + 56 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL + 71 * - col0 AS col2 FROM tab1
----
-213
-4544
-5680
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT cor2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
query I rowsort
SELECT ALL + + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col2 * - col2 + - col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + 2 FROM tab2 cor0
----
2
2
2
query I rowsort
SELECT + ( col0 ) + cor0.col0 * col2 AS col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT col0 + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col2 + + ( col0 ) + tab1.col0 * + tab1.col2 FROM tab1
----
219
3769
7856
query I rowsort
SELECT + col2 * + col2 * tab1.col2 AS col0 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT + 8 * + col1 AS col2 FROM tab2
----
136
248
472
query I rowsort
SELECT 92 * col1 * tab2.col0 FROM tab2
----
123556
19964
423384
query I rowsort
SELECT ( - col2 ) * + col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT ALL CAST( col2 AS SIGNED ) * + tab2.col2 AS col2 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL CAST ( col2 AS INTEGER ) * + tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT + - 81 FROM tab2 cor0
----
-81
-81
-81
query I rowsort
SELECT + cor0.col2 + - 25 * col0 FROM tab1 AS cor0
----
-1543
-1904
-21
query I rowsort
SELECT ALL + 66 * + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-11154
-44616
-6600
query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - tab1.col2 * - col2 + - col1 AS col0 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT col1 * - col1 - - col1 * 64 * - col1 FROM tab1
----
-10985
-43940
-6500
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + 34 FROM tab1 AS cor0
----
1282
1438
604
query I rowsort
SELECT DISTINCT - - ( col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT DISTINCT - cor0.col2 DIV - col2 + + 31 FROM tab1 AS cor0
----
32
skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - cor0.col2 / - col2 + + 31 FROM tab1 AS cor0
----
32
query I rowsort
SELECT col0 + + col2 * - tab1.col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + col1 + - cor0.col0 + col1 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT DISTINCT + cor0.col0 - + ( - col0 ) AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + + col0 - - 76 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT col1 * cor0.col1 + + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL cor0.col0 * 71 AS col1 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT - col0 * + col0 * + cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + col2 + - 83 FROM tab2 cor0
----
-45
-56
-57
query I rowsort
SELECT ALL + + col0 * cor0.col2 + 17 FROM tab2 AS cor0
----
2045
206
3019
query I rowsort
SELECT DISTINCT - col0 + - ( col2 ) * col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - col0 * - 46 AS col1 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT - - col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col0 + + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + col1 - 14 * col2 AS col1 FROM tab0 AS cor0
----
-1057
-376
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT DISTINCT + + col1 * col0 DIV cor0.col2 AS col2 FROM tab1 cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + + col1 * col0 / cor0.col2 AS col2 FROM tab1 cor0
----
1
10
11
query I rowsort
SELECT col0 * col1 + - col0 * cor0.col2 + col1 FROM tab1 AS cor0
----
-2998
-58
-6627
query I rowsort
SELECT col1 * - 55 FROM tab2 cor0
----
-1705
-3245
-935
query I rowsort
SELECT + + col1 - + 2 AS col1 FROM tab1 AS cor0
----
11
24
8
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT ALL col2 DIV - col2 col0 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL col2 / - col2 col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + - col0 + + cor0.col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT - col2 - + cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - col2 * + col2 + + col1 - - cor0.col0 AS col2 FROM tab0 cor0
----
-6544
-979
131
query I rowsort
SELECT - col0 - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT - - col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - - col1 + col2 * + cor0.col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - col0 * col2 * + col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col2 + - col1 + col0 * col1 AS col2 FROM tab0
----
2011
3299
8090
query I rowsort
SELECT - col2 * col0 * col2 + + col0 * - col0 + - col0 * col2 FROM tab0
----
-1295
-27504
-613655
query I rowsort
SELECT + col0 * - col1 + - col2 + col2 * col2 FROM tab1 AS cor0
----
2552
2784
8080
query I rowsort
SELECT - + col2 + - col0 + - cor0.col0 * - col0 * - cor0.col0 FROM tab0 cor0
----
-13881
-42911
-705140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col0 * col0 col0 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT + cor0.col2 * - col2 * - col0 + + col2 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
207993
737376
8802
skipif mysql # not compatible
query I rowsort label-5284
SELECT + cor0.col2 * - col2 * - col0 + + col2 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
207993
737376
8802
query I rowsort
SELECT + 30 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + col0 * cor0.col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT DISTINCT + + col1 DIV - col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT + + col1 / - col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT DISTINCT - 80 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2836
3169
9136
query I rowsort
SELECT ALL col2 * 5 FROM tab2
----
130
135
190
query I rowsort
SELECT + 24 AS col2 FROM tab2 AS cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL + 85 FROM tab2
----
85
85
85
query I rowsort
SELECT - - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * + ( + col1 * + col1 ) + + ( col0 ) FROM tab0
----
177528
329350
737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT ALL + CAST( 33 AS SIGNED ) DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + CAST ( 33 AS INTEGER ) / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - 47 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + 66 + col1 * + ( col0 + col2 ) AS col1 FROM tab1 AS cor0
----
1276
1548
2354
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - + cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - ( - 50 ) col2 FROM tab0 AS cor0
----
136
141
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT + col0 + - col1 * + col0 DIV - col0 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-5305
SELECT + col0 + - col1 * + col0 / - col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - col0 * 23 + + col0 AS col1 FROM tab2 cor0
----
-154
-1716
-1738
query I rowsort
SELECT 55 * - col1 FROM tab0 cor0
----
-4730
-5005
-5335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT + CAST( col0 AS SIGNED ) + col2 * + 15 AS col2 FROM tab2 AS cor0
----
412
468
649
skipif mysql # not compatible
query I rowsort label-5308
SELECT + CAST ( col0 AS INTEGER ) + col2 * + 15 AS col2 FROM tab2 AS cor0
----
412
468
649
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5309
SELECT + - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5309
SELECT + - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 88 * + 35 AS col2 FROM tab1 AS cor0
----
3080
query I rowsort
SELECT DISTINCT - - 99 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
3267
8118
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5312
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - + cor0.col1 * + col2 + + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT DISTINCT - CAST( + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col0 * col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col0 + + col1 + + col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT 65 * + col0 AS col0 FROM tab0 cor0
----
1560
2275
5785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5318
SELECT - CAST( NULL AS SIGNED ) + ( col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5318
SELECT - CAST ( NULL AS INTEGER ) + ( col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 48 * - ( col0 ) + + col2 FROM tab0 AS cor0
----
-1119
-1679
-4190
query I rowsort
SELECT col2 * 34 + + col0 AS col1 FROM tab0 AS cor0
----
1146
2877
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT CAST ( NULL AS REAL ) - + col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( - 73 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT ALL + ( - col1 ) + col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5324
SELECT CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 4 + - col1 FROM tab0 AS cor0
----
-82
-87
-93
skipif mysql # not compatible
query I rowsort
SELECT ALL - + col1 * col0 * - CAST ( - col1 AS REAL ) FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + 10 * + 40 AS col0 FROM tab0 AS cor0
----
-176
-7521
-825
query I rowsort
SELECT ( - col1 ) + + col1 * col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT - col2 + + 95 * 97 AS col1 FROM tab2 AS cor0
----
9177
9188
9189
onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT + col1 + - CAST( - col0 AS SIGNED ) DIV col2 AS col0 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-5330
SELECT + col1 + - CAST ( - col0 AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT col2 * - 61 FROM tab2 cor0
----
-1586
-1647
-2318
onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT - - col2 DIV - 22 + - col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-5332
SELECT - - col2 / - 22 + - col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT DISTINCT - - col1 * col1 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT DISTINCT + col1 DIV - 60 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + col1 / - 60 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + - col2 * - 71 AS col1 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT tab0.col0 - - col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col1 + - 99 * col0 AS col0 FROM tab1 AS cor0
----
-323
-6346
-7933
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + ( 51 ) * col0 col2 FROM tab2 AS cor0
----
384
4004
4067
query I rowsort
SELECT col2 * - col2 + col1 * col1 * col0 FROM tab2
----
21387
270842
5998
query I rowsort
SELECT col2 * - col1 - + col2 FROM tab2
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + 38 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + 38 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT - col1 DIV col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
957
skipif mysql # not compatible
query I rowsort label-5344
SELECT - col1 / col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
957
query I rowsort
SELECT DISTINCT + - 61 * col1 + col0 * ( - cor0.col0 * col1 ) + col2 FROM tab2 AS cor0
----
-107096
-3383
-362529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5346
SELECT DISTINCT - + col0 * 87 + - cor0.col2 * - CAST( NULL AS SIGNED ) - + 50 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - + col0 * 87 + - cor0.col2 * - CAST ( NULL AS INTEGER ) - + 50 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) * + col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) + + col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - col2 + ( + col1 ) * + col1 AS col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT - tab0.col1 + col1 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( 46 ) col0 FROM tab0
----
40
45
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT + col0 + - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5352
SELECT + col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT - + col1 * ( col2 ) AS col0 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( col0 ) col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5356
SELECT col1 DIV - 56 AS col1 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5356
SELECT col1 / - 56 AS col1 FROM tab2
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT - col1 DIV + ( + 47 ) col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5357
SELECT - col1 / + ( + 47 ) col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - col0 * - ( 60 ) FROM tab0 AS cor0
----
1440
2100
5340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 + col0 col1 FROM tab2 AS cor0
----
108
109
37
query I rowsort
SELECT DISTINCT tab0.col0 * col0 + ( - col1 ) * + tab0.col1 + 22 FROM tab0
----
-338
-6798
-8162
query I rowsort
SELECT ALL - - 9 * + cor0.col2 + - col1 FROM tab0 cor0
----
-88
211
647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 * col0 + + ( col2 ) * col2 col2 FROM tab0 cor0
----
-1119
-1464
-3219
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 19 col1 FROM tab1
----
29
32
45
query I rowsort
SELECT - 9 AS col1 FROM tab0
----
-9
-9
-9
query I rowsort
SELECT + cor0.col2 + + 75 FROM tab1, tab2 AS cor0
----
9 values hashing to aa32311f907061e523d687f4636d298e
query I rowsort
SELECT 10 + - col2 * 51 FROM tab1
----
-2744
-2897
-4886
query I rowsort
SELECT ALL - col2 * col1 + - col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT - 10 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col1 + - cor0.col1 col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - cor0.col2 * cor0.col0 * - 96 FROM tab2, tab2 AS cor0
----
9 values hashing to 0988f89ce6b6d94a17cb65d38cb6d5a4
query I rowsort
SELECT ALL + 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT - col0 - tab2.col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL - col0 * 80 AS col1 FROM tab2
----
-560
-6240
-6320
query I rowsort
SELECT + col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 * 17 AS col1 FROM tab1
----
1088
1360
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5376
SELECT - CAST( - col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5376
SELECT - CAST ( - col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 44 * ( + col0 ) FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT ( + col2 ) * col1 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT DISTINCT CAST( tab2.col1 + + col1 AS SIGNED ) * col2 AS col0 FROM tab2
----
1292
1674
3068
skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT CAST ( tab2.col1 + + col1 AS INTEGER ) * col2 AS col0 FROM tab2
----
1292
1674
3068
query I rowsort
SELECT - - col0 + col2 * 39 AS col1 FROM tab2 AS cor0
----
1060
1092
1561
query I rowsort
SELECT - - ( - col2 ) + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + col0 + - col2 * - 87 AS col1 FROM tab0 AS cor0
----
2847
52
7045
query I rowsort
SELECT - 28 + + col1 * + cor0.col0 * + ( + cor0.col2 ) AS col1 FROM tab0 cor0
----
3367
664090
68084
query I rowsort
SELECT 94 + + col0 AS col1 FROM tab2 AS cor0
----
101
172
173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col1 col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT + cor0.col2 + - col1 * ( - col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643
query I rowsort
SELECT + + col2 * - cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - col0 * + 31 + cor0.col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-10776
-2775
-4479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f0321cf9fd3eef0e3f1c9529425df9d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT ALL col0 * col1 - col0 DIV 51 FROM tab1 cor0
----
1039
639
78
skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL col0 * col1 - col0 / 51 FROM tab1 cor0
----
1039
639
78
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - ( - col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + + col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + ( + col1 * + col1 + - col2 ) FROM tab1
----
43
622
73
query I rowsort
SELECT - col2 + - 99 FROM tab0 AS cor0
----
-100
-132
-181
query I rowsort
SELECT DISTINCT - ( + 4 ) * + col2 + - col0 FROM tab2 AS cor0
----
-115
-182
-231
query I rowsort
SELECT ALL + - col1 * ( + col1 ) + 78 FROM tab1 AS cor0
----
-22
-598
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5399
SELECT + CAST( - col2 AS SIGNED ) * col2 + + 12 FROM tab1 AS cor0
----
-2904
-3237
-9204
skipif mysql # not compatible
query I rowsort label-5399
SELECT + CAST ( - col2 AS INTEGER ) * col2 + + 12 FROM tab1 AS cor0
----
-2904
-3237
-9204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col1 + col1 / cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col1 + col1 / cor0.col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab0 cor0
----
32
query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT 66 * + col1 AS col2 FROM tab1 cor0
----
1716
660
858
query I rowsort
SELECT ALL + 21 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1269
1425
591
query I rowsort
SELECT ALL 50 * col1 + + col0 FROM tab2 cor0
----
1557
3028
929
query I rowsort
SELECT ALL - col0 + - col1 + col0 * ( + 21 * col2 ) AS col2 FROM tab0 AS cor0
----
153078
16522
603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 + - col0 * col0 col0 FROM tab0 AS cor0
----
-1150
-501
-7846
onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT ALL - CAST( col2 AS SIGNED ) DIV col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - CAST ( col2 AS INTEGER ) / col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL + cor0.col0 * col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT ALL + 11 + cor0.col0 DIV + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
11
5
5
skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + 11 + cor0.col0 / + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
11
5
5
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + ( col2 * + col2 ) AS col2 FROM tab1 AS cor0
----
2240
3149
9047
onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT DISTINCT col0 + col0 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT col0 + col0 / col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col1 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT + + 58 AS col1 FROM tab1 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT - + 16 + + col1 FROM tab1 AS cor0
----
-3
-6
10
query I rowsort
SELECT ALL - - ( + col2 ) + 51 FROM tab1 AS cor0
----
105
108
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT + 41 DIV - tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-5417
SELECT + 41 / - tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT ALL - ( + ( - tab1.col1 ) ) * 44 AS col0 FROM tab1
----
1144
440
572
query I rowsort
SELECT DISTINCT cor0.col2 * + ( - col2 ) * col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - col0 + + 49 * - 22 AS col2 FROM tab0 AS cor0
----
-1102
-1113
-1167
query I rowsort
SELECT ALL + - col2 * col2 * 10 + + col0 FROM tab0 AS cor0
----
-10866
-67151
25
query I rowsort
SELECT ALL cor0.col1 + - 24 FROM tab0 cor0
----
62
67
73
query I rowsort
SELECT ALL + cor0.col1 * col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - col1 - col2 * - col2 AS col2 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT col2 + - ( 97 ) FROM tab0 AS cor0
----
-15
-64
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT DISTINCT + col2 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + col2 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 * ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 27 * col0 FROM tab2
----
189
2106
2133
query I rowsort
SELECT 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46
query I rowsort
SELECT - 94 * + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2542d908b6c2e05490962cfae004b164
query I rowsort
SELECT - cor0.col2 + - 22 AS col2 FROM tab1 cor0
----
-118
-76
-79
query I rowsort
SELECT + col2 * - 34 + - col1 FROM tab2 cor0
----
-1309
-943
-949
query I rowsort
SELECT DISTINCT + - col1 * ( + col0 ) - col1 * 18 AS col2 FROM tab0 cor0
----
-3612
-5141
-9737
query I rowsort
SELECT 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT DISTINCT + tab0.col2 + CAST( NULL AS DECIMAL ) / col0 + col2 * - 46 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + tab0.col2 + CAST ( NULL AS REAL ) / col0 + col2 * - 46 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT + tab0.col1 + - col2 * col2 DIV tab0.col1 + - col0 FROM tab0
----
-71
50
62
skipif mysql # not compatible
query I rowsort label-5437
SELECT + tab0.col1 + - col2 * col2 / tab0.col1 + - col0 FROM tab0
----
-71
50
62
query I rowsort
SELECT + cor0.col0 + col1 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT - + cor0.col2 DIV + 17 + - col1 + + ( + ( + col2 ) ) * - col0 col2 FROM tab2 AS cor0
----
-2088
-221
-3021
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5439
SELECT - + cor0.col2 / + 17 + - col1 + + ( + ( + col2 ) ) * - col0 col2 FROM tab2 AS cor0
----
-2088
-221
-3021
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col1 + 10 + 33 AS col1 FROM tab2
----
102
60
74
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1
----
60
query I rowsort
SELECT - 23 AS col1 FROM tab0
----
-23
-23
-23
query I rowsort
SELECT ALL + + ( - 71 ) * - col1 FROM tab0 cor0
----
6106
6461
6887
query I rowsort
SELECT - col0 + + ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * - col2 + cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * - col2 + cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 - + col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ( + cor0.col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * cor0.col0 + col1 col0 FROM tab0 AS cor0
----
-1867
-442
-673
query I rowsort
SELECT - 6 * col0 AS col0 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT ALL - 94 - col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1319
-19102
-649616
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5452
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 * 90 FROM tab0 AS cor0
----
7740
8190
8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 20 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col1 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT - + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5457
SELECT - + col0 / + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT col2 + + col0 * ( 42 + col1 * col2 ) FROM tab1 AS cor0
----
103296
39225
4392
query I rowsort
SELECT + + col0 * + col1 * - 61 FROM tab1 cor0
----
-39040
-4758
-63440
query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 * 37 FROM tab0 AS cor0
----
3206
3456
3624
onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT DISTINCT - + 50 + - col0 DIV - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - + 50 + - col0 / - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 2 col2 FROM tab0 AS cor0
----
-31
-80
1
query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT col0 + - 65 * ( + col1 + + col1 * 80 ) FROM tab1 AS cor0
----
-136887
-52586
-68365
query I rowsort
SELECT + + col1 * col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + col1 + col0 - 39 FROM tab0
----
141
71
93
query I rowsort
SELECT - col1 * 48 AS col2 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT ALL + col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + col1 + - cor0.col0 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5470
SELECT + - col0 * + CAST( NULL AS SIGNED ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5470
SELECT + - col0 * + CAST ( NULL AS INTEGER ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 + col2 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT ALL + - 97 AS col1 FROM tab0 AS cor0
----
-97
-97
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT - col1 DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5473
SELECT - col1 / - col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab0 AS cor0
----
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT + - col0 DIV col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5475
SELECT + - col0 / col2 FROM tab1 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT ALL - CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
-21
-21
-21
query I rowsort
SELECT 11 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT ( cor0.col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col0 * col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5480
SELECT - 73 DIV col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-5480
SELECT - 73 / col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT ALL - + col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - - col1 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col2 * 34 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT ALL - col1 * + 25 + + cor0.col1 + col2 FROM tab2 AS cor0
----
-1390
-370
-717
query I rowsort
SELECT - col1 + 51 FROM tab0 cor0
----
-35
-40
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5486
SELECT - cor0.col2 DIV col0 + ( col2 ) * 20 FROM tab0 AS cor0
----
1640
20
659
skipif mysql # not compatible
query I rowsort label-5486
SELECT - cor0.col2 / col0 + ( col2 ) * 20 FROM tab0 AS cor0
----
1640
20
659
query I rowsort
SELECT ALL + - col1 * col0 * col2 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT + col2 + + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5488
SELECT + col2 + + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 98 AS col1 FROM tab1 cor0
----
98
98
98
query I rowsort
SELECT + 74 * col1 AS col2 FROM tab2 AS cor0
----
1258
2294
4366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab1, tab0 AS cor0
----
55
query I rowsort
SELECT 73 + - col1 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT col2 * - col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - - 80 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
2139
2191
3057
query I rowsort
SELECT ALL - col2 * col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - + col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - ( - col1 * + col0 ) + + col2 * + tab2.col1 FROM tab2
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT - - CAST( + 37 AS SIGNED ) DIV col0 + 67 * + 90 FROM tab0 AS cor0
----
6030
6031
6031
skipif mysql # not compatible
query I rowsort label-5499
SELECT - - CAST ( + 37 AS INTEGER ) / col0 + 67 * + 90 FROM tab0 AS cor0
----
6030
6031
6031
query I rowsort
SELECT + 50 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT ALL 36 + + col2 DIV - col0 AS col2 FROM tab2
----
33
36
36
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL 36 + + col2 / - col0 AS col2 FROM tab2
----
33
36
36
query I rowsort
SELECT col1 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + cor0.col2 + + 60 + - col2 FROM tab1 cor0
----
60
60
60
query I rowsort
SELECT - + col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + 7 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT + 27 AS col0 FROM tab0
----
27
27
27
query I rowsort
SELECT ALL - 15 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT - + col0 * col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - 39 * 2 FROM tab2, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT col1 - ( 56 + - col2 ) DIV - col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-5510
SELECT col1 - ( 56 + - col2 ) / - col0 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col0 * + col2 + + col2 col0 FROM tab1 AS cor0
----
233519
514
614483
query I rowsort
SELECT ALL + tab1.col1 + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 FROM tab0
----
0
query I rowsort
SELECT ALL - col0 + col1 * + ( - col2 ) FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL - 71 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT - + col1 * + col1 + 64 FROM tab1 AS cor0
----
-105
-36
-612
query I rowsort
SELECT DISTINCT + 62 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-24
-29
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT ( - col0 ) DIV + ( - 21 ) AS col2 FROM tab1 cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-5518
SELECT ( - col0 ) / + ( - 21 ) AS col2 FROM tab1 cor0
----
0
3
3
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT + col1 + ( ( col2 ) ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - col2 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT col0 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-5522
SELECT col0 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
10
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT cor0.col2 + + ( col2 ) AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT col1 * col2 * + tab0.col1 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT + col0 + col1 * + ( tab1.col2 ) - col1 DIV + tab1.col0 FROM tab1
----
1328
1399
634
skipif mysql # not compatible
query I rowsort label-5528
SELECT + col0 + col1 * + ( tab1.col2 ) - col1 / + tab1.col0 FROM tab1
----
1328
1399
634
query I rowsort
SELECT DISTINCT col0 + tab1.col2 * - ( - 11 ) FROM tab1
----
1136
597
691
query I rowsort
SELECT DISTINCT - col2 + - 0 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT cor0.col1 + 53 AS col2 FROM tab0 AS cor0
----
139
144
150
query I rowsort
SELECT DISTINCT - - col0 * 40 AS col2 FROM tab2 AS cor0
----
280
3120
3160
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - ( - col2 ) AS REAL ) - 18 AS col1 FROM tab2 AS cor0
----
-44
-45
-56
query I rowsort
SELECT + - 64 - + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1153
-65
-6788
query I rowsort
SELECT ALL ( col2 ) * col2 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
2944
3296
9299
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT DISTINCT - 88 * - ( col2 ) + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - 88 * - ( col2 ) + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * - col0 col1 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT - CAST( NULL AS DECIMAL ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5538
SELECT - CAST ( NULL AS REAL ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * ( - col0 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT + ( + col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - col2 col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ( ( - col1 ) ) + ( col2 ) AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col0 * 35 + - cor0.col1 * 26 + col0 AS col2 FROM tab0 cor0
----
-3052
-3712
-5392
query I rowsort
SELECT ALL + 64 + - col1 FROM tab1 AS cor0
----
38
51
54
query I rowsort
SELECT ALL + + cor0.col0 * + col2 + + ( cor0.col1 ) FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL col2 * - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT - 23 * + col2 - 45 FROM tab1 AS cor0
----
-1287
-1356
-2253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5548
SELECT + CAST( NULL AS DECIMAL ) * col1 + - tab1.col0 + - col1 * col2 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5548
SELECT + CAST ( NULL AS REAL ) * col1 + - tab1.col0 + - col1 * col2 * col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT ALL - col0 DIV col0 - col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - col0 / col0 - col0 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT ALL + 60 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + - ( col0 ) * + col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - col1 * - col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT DISTINCT - - col2 * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - - col2 * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 * col2 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT 85 DIV - col2 + + col2 AS col1 FROM tab1 AS cor0
----
53
56
96
skipif mysql # not compatible
query I rowsort label-5555
SELECT 85 / - col2 + + col2 AS col1 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 9 * col0 * + cor0.col0 + col2 FROM tab1 AS cor0
----
135
36921
57696
onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT - col0 * tab2.col0 DIV + col0 + - col2 AS col0 FROM tab2
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-5558
SELECT - col0 * tab2.col0 / + col0 + - col2 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT ( + col0 + col0 ) AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL + col0 * + 33 - - col0 FROM tab0
----
1190
3026
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5561
SELECT ALL CAST( NULL AS SIGNED ) * - col0 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col2 + 98 FROM tab2 AS cor0
----
1632
744
935
query I rowsort
SELECT ALL - col1 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + cor0.col0 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + - col1 - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - 71 AS col1 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT - col0 * col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + - col0 * - col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 * 88 * - 31 FROM tab1
----
174592
218240
8184
onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5570
SELECT col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT col0 * col1 + - 97 AS col0 FROM tab2
----
120
1246
4505
query I rowsort
SELECT 16 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL 79 + + col1 AS col2 FROM tab2 AS cor0
----
110
138
96
query I rowsort
SELECT - 87 + - col1 * col2 AS col2 FROM tab2
----
-1621
-733
-924
query I rowsort
SELECT - 26 + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to dec24881da0ebb7521bcce50c977535d
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + 9 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT - ( 20 ) AS col2 FROM tab2 cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + + ( - 4 ) * cor0.col1 - col2 FROM tab0 AS cor0
----
-377
-389
-446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT DISTINCT + CAST( - 55 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1430
1485
2090
skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + CAST ( - 55 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1430
1485
2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT DISTINCT + cor1.col2 DIV - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + cor1.col2 / - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5582
SELECT - - col1 DIV col1 + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-5582
SELECT - - col1 / col1 + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT cor0.col0 + col2 * 79 AS col0 FROM tab0 cor0
----
114
2631
6567
query I rowsort
SELECT - col2 + + col2 * + 68 AS col1 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT - + 98 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT + col0 + - 36 FROM tab0 cor0
----
-1
-12
53
query I rowsort
SELECT + col2 * 91 + col1 FROM tab1 AS cor0
----
4940
5197
8749
query I rowsort
SELECT + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + ( - col0 + col1 ) col0 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT ALL col1 + - 52 + col2 AS col0 FROM tab1
----
15
28
57
query I rowsort
SELECT ALL - 27 * - 32 + col0 AS col0 FROM tab1
----
867
928
944
query I rowsort
SELECT ALL ( col0 ) + - tab2.col0 + - col0 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - 45 - 49 AS col0 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ALL + col2 * - 2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT 11 * - col1 * col2 FROM tab2 AS cor0
----
-16874
-7106
-9207
query I rowsort
SELECT DISTINCT + col2 * - col2 + + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-297
34
574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 53 ) + + col0 * 60 col1 FROM tab2 AS cor0
----
367
4627
4687
query I rowsort
SELECT ALL + 64 * - 17 FROM tab1 cor0
----
-1088
-1088
-1088
query I rowsort
SELECT - col2 - - col0 * col1 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL 40 + 27 AS col1 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT - col0 * col0 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-4736
-7440
-87
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT + 64 * + col1 AS col0 FROM tab0
----
5504
5824
6208
query I rowsort
SELECT - + col2 + cor0.col1 AS col2 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + col1 - + tab2.col2 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col0 * - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + col2 * - col1 + col2 + col1 * + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - col1 * - col1 + - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT col0 * + col2 + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT col2 + - col1 + cor0.col1 DIV + cor0.col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5615
SELECT col2 + - col1 + cor0.col1 / + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col2 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-604586
-62
-92862
query I rowsort
SELECT 9 * + col0 * - tab1.col1 FROM tab1
----
-5760
-702
-9360
query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab1
----
23
query I rowsort
SELECT + - col1 + + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT + - cor0.col1 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT 73 * col1 AS col2 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT - - ( + col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5623
SELECT + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5623
SELECT + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + col1 + + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + - cor0.col0 + - 82 * + col0 FROM tab2 cor0
----
-581
-6474
-6557
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT - - ( - 4 ) FROM tab0 AS cor0
----
-4
-4
-4
query I rowsort
SELECT + - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT ALL col2 DIV col1 col0 FROM tab2 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL col2 / col1 col0 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1798
-5015
-935
query I rowsort
SELECT - col2 * col0 * - col2 - col2 AS col2 FROM tab2 AS cor0
----
114038
5076
52702
query I rowsort
SELECT ALL - col1 + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT DISTINCT + col2 + cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + col2 + cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT DISTINCT + 34 * col2 * col0 FROM tab1
----
124032
261120
5508
query I rowsort
SELECT DISTINCT ( col2 ) * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT col2 + col1 * col2 AS col0 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT col1 DIV col0 + - col2 - + col2 * tab0.col2 AS col0 FROM tab0
----
-1119
-6805
0
skipif mysql # not compatible
query I rowsort label-5637
SELECT col1 / col0 + - col2 - + col2 * tab0.col2 AS col0 FROM tab0
----
-1119
-6805
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + col0 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + col0 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 + + 92 FROM tab1 AS cor0
----
66
79
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5640
SELECT ALL CAST( col2 AS SIGNED ) * col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL CAST ( col2 AS INTEGER ) * col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col0 * + col2 * tab0.col1 + + col2 + col1 * - col2 AS col1 FROM tab0
----
3299
65307
656738
query I rowsort
SELECT ALL 92 + - tab1.col0 FROM tab1
----
12
28
89
query I rowsort
SELECT - ( - ( col2 ) + - ( col1 ) ) FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - - col0 * 49 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
101136
166355
396851
query I rowsort
SELECT - 32 - + cor0.col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1072
-110
-672
query I rowsort
SELECT + col0 + + col1 * + col2 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT 0 + col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 63 * - col2 AS col1 FROM tab1 AS cor0
----
-3402
-3591
-6048
onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT ALL - 38 DIV - col1 + col0 + 79 FROM tab0 AS cor0
----
103
114
168
skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 38 / - col1 + col0 + 79 FROM tab0 AS cor0
----
103
114
168
query I rowsort
SELECT DISTINCT ( col0 ) + col0 * 52 AS col0 FROM tab0 AS cor0
----
1272
1855
4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT ALL tab2.col2 DIV - col1 AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL tab2.col2 / - col1 AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + col2 * - col0 col1 FROM tab2 AS cor0
----
-186
-2025
-2999
query I rowsort
SELECT DISTINCT + 53 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT ALL + col0 + + col2 * cor0.col0 * - col0 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT ALL + col1 * - 20 FROM tab2 AS cor0
----
-1180
-340
-620
onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT col1 DIV - 31 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5657
SELECT col1 / - 31 FROM tab2 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( - col0 * - col2 ) col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - col1 * ( col0 * + col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
-60716
-655837
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT ALL - col1 * - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - col1 * - col0 / col0 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 * 85 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT DISTINCT ( 87 ) AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
87
query I rowsort
SELECT ALL - col2 + + 24 FROM tab2 AS cor0
----
-14
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col0 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL col2 * + cor0.col2 - - 42 FROM tab0 AS cor0
----
1131
43
6766
query I rowsort
SELECT DISTINCT + col0 * + 12 * - 78 FROM tab0 AS cor0
----
-22464
-32760
-83304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 93 col2 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT DISTINCT + col0 * 39 * - 47 AS col1 FROM tab1 AS cor0
----
-117312
-146640
-5499
query I rowsort
SELECT + + col2 * + 34 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT - col2 * + ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( + col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col1 * + 24 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0, tab2 AS cor0
----
40
query I rowsort
SELECT ALL - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col1 * - ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col2 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT 11 - - 94 FROM tab0 AS cor0
----
105
105
105
query I rowsort
SELECT ALL 81 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT CAST( NULL AS DECIMAL ) * + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5683
SELECT CAST ( NULL AS REAL ) * + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + tab1.col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col1 + - 27 AS col1 FROM tab1
----
-37
-40
-53
query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT ALL + + 95 * col0 + + CAST( NULL AS DECIMAL ) + - col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + + 95 * col0 + + CAST ( NULL AS REAL ) + - col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col0 - col0 * col2 * - col1 FROM tab2 AS cor0
----
113568
44793
5810
query I rowsort
SELECT + + col2 * + cor0.col1 + - col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL + 92 + + col1 AS col2 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT DISTINCT + - 47 + col1 * ( col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
135
63
655
query I rowsort
SELECT ALL + - col1 * col1 - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT + col1 + cor0.col1 * - 19 * col1 FROM tab2 cor0
----
-18228
-5474
-66080
query I rowsort
SELECT DISTINCT ( col0 ) + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + 7 FROM tab2 AS cor0
----
1541
653
844
query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL cor0.col1 + col1 - - 7 FROM tab1 AS cor0
----
27
33
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT CAST( + 37 AS SIGNED ) * - col2 + + 76 FROM tab2
----
-1330
-886
-923
skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT CAST ( + 37 AS INTEGER ) * - col2 + + 76 FROM tab2
----
-1330
-886
-923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT + 19 DIV col0 + + ( col0 + col0 ) FROM tab1 AS cor0
----
12
128
160
skipif mysql # not compatible
query I rowsort label-5699
SELECT + 19 / col0 + + ( col0 + col0 ) FROM tab1 AS cor0
----
12
128
160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - col0 * col0 col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73
query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + col1 col0 FROM tab0
----
100
89
94
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 4 AS REAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab1 AS cor0
----
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT DISTINCT + col2 DIV cor0.col1 + - 59 * 48 + - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-2832
-2833
-2834
skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + col2 / cor0.col1 + - 59 * 48 + - col0 / col1 AS col1 FROM tab2 AS cor0
----
-2832
-2833
-2834
query I rowsort
SELECT - col2 * + col1 + - col0 FROM tab2
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col1 + cor0.col0 col2 FROM tab0 AS cor0
----
-1180
-1185
-1323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + 26 col2 FROM tab1 AS cor0
----
-1222
-1378
-544
query I rowsort
SELECT + 4 * + cor0.col0 + col0 AS col1 FROM tab0 cor0
----
120
175
445
onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT 29 DIV + tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5711
SELECT 29 / + tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col1 + - tab0.col0 AS col1 FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT col0 * - CAST( - 4 AS SIGNED ) FROM tab1 cor0
----
12
256
320
skipif mysql # not compatible
query I rowsort label-5713
SELECT col0 * - CAST ( - 4 AS INTEGER ) FROM tab1 cor0
----
12
256
320
query I rowsort
SELECT ALL + - col0 * - col2 - + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - 53 ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT - + 5 FROM tab0 cor0
----
-5
-5
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 61 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 61 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * ( - cor0.col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT DISTINCT ( cor0.col1 ) + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT ( cor0.col1 ) + col0 / + col2 AS col2 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT col1 - - col2 DIV + col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-5720
SELECT col1 - - col2 / + col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT - col1 * col1 + col2 AS col2 FROM tab2
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT DISTINCT - col2 - + col0 DIV 71 AS col0 FROM tab2
----
-27
-39
skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - col2 - + col0 / 71 AS col0 FROM tab2
----
-27
-39
query I rowsort
SELECT ALL ( tab1.col2 ) - + 17 * - col2 FROM tab1
----
1026
1728
972
query I rowsort
SELECT col1 - + col2 * 99 FROM tab0
----
-2
-3181
-8027
query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 41 + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-138
-2879
-7503
query I rowsort
SELECT 29 * col0 AS col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT - 65 * col2 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT + col1 + - col1 * + ( + 98 ) AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 * - 79 AS col1 FROM tab0 AS cor0
----
224226
589587
7698
query I rowsort
SELECT + 63 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT 54 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT col0 * - col2 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT + + cor0.col0 * col2 + + col1 * cor0.col2 DIV 30 FROM tab1 AS cor0
----
208
3667
7721
skipif mysql # not compatible
query I rowsort label-5735
SELECT + + cor0.col0 * col2 + + col1 * cor0.col2 / 30 FROM tab1 AS cor0
----
208
3667
7721
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - 58 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1401
-275
-4660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 22 col0 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT DISTINCT col1 * 83 FROM tab0
----
7138
7553
8051
query I rowsort
SELECT ALL + - ( 42 ) FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT + col2 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + col0 BETWEEN NULL AND ( + col2 + + col2 * col0 )
----
78
59
26
79
17
38
query I rowsort
SELECT DISTINCT + cor0.col1 - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT + col2 DIV col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5745
SELECT + col2 / col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col0 + tab0.col1 * col2 * - tab0.col0 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT tab2.col2 * + tab2.col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT ALL + col1 * - col0 + - tab0.col0 - + col2 * - col0 DIV - col0 AS col0 FROM tab0
----
-2121
-3431
-8270
skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + col1 * - col0 + - tab0.col0 - + col2 * - col0 / - col0 AS col0 FROM tab0
----
-2121
-3431
-8270
query I rowsort
SELECT tab2.col0 * col2 FROM tab2 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT tab1.col2 + + col2 AS col1 FROM tab1 WHERE col2 - - col1 NOT IN ( - col0 * col1 )
----
108
114
192
query I rowsort
SELECT ALL + col2 + + tab0.col1 - + col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT DISTINCT + col2 DIV col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + col2 / col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT cor0.col2 + col1 + col0 AS col0 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ALL col1 DIV - col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL col1 / - col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 = col1 + col2 - col0
----
query I rowsort
SELECT DISTINCT col2 * col0 * - col0 + col1 AS col1 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT DISTINCT + tab0.col1 * + tab0.col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT DISTINCT col1 * col2 DIV + col1 AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT col1 * col2 / + col1 AS col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT - col2 * col0 * - col2 + col1 DIV + col2 FROM tab1 AS cor0
----
207936
737280
8748
skipif mysql # not compatible
query I rowsort label-5759
SELECT - col2 * col0 * - col2 + col1 / + col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL - col2 * col2 * col1 + + col2 + col0 * col0 FROM tab2
----
-18269
-22523
-33774
query I rowsort
SELECT col1 * + col2 - - col2 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT - col1 - - col2 DIV col0 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-5762
SELECT - col1 - - col2 / col0 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT DISTINCT tab2.col2 + col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 * col2 FROM tab1
----
-3526
-5152
1395
query I rowsort
SELECT DISTINCT tab2.col1 + col0 + + col0 * col2 AS col1 FROM tab2
----
2165
227
3098
query I rowsort
SELECT - col0 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + + cor0.col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT col2 + col2 * - col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + + col0 + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT - col2 DIV col1 + - col2 * col0 * cor0.col2 FROM tab1 cor0
----
-207941
-737287
-8750
skipif mysql # not compatible
query I rowsort label-5770
SELECT - col2 / col1 + - col2 * col0 * cor0.col2 FROM tab1 cor0
----
-207941
-737287
-8750
query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + + col1 * - col0 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col2 + - col0 + + col1 AS col0 FROM tab0 cor0
----
63
84
95
query I rowsort
SELECT ALL - cor0.col0 - + col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL 69 * + col0 FROM tab2
----
483
5382
5451
onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT ALL - + 58 DIV col0 AS col0 FROM tab2 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - + 58 / col0 AS col0 FROM tab2 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - + 39 AS col2 FROM tab1 AS cor0
----
-39
query I rowsort
SELECT ( + col2 ) + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + 24 + col1 AS col2 FROM tab1 cor0
----
34
37
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT DISTINCT - ( cor0.col0 ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT - ( cor0.col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - + 9 AS col1 FROM tab0 AS cor0
----
-9
-9
-9
query I rowsort
SELECT ALL col2 * col1 * - col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL 92 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
254
3740
7772
onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT + col2 DIV 31 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5784
SELECT + col2 / 31 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col2 * 78 AS col0 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT ALL - + col1 + 60 * 47 + + col0 AS col1 FROM tab2 AS cor0
----
2796
2839
2882
query I rowsort
SELECT DISTINCT col2 * + 47 FROM tab1
----
2538
2679
4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL col0 * ( ( col0 ) ) DIV ( - cor0.col0 * - col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL col0 * ( ( col0 ) ) / ( - cor0.col0 * - col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + ( col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - col2 * 31 AS col1 FROM tab0 AS cor0
----
-1023
-2542
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT 41 + - col1 DIV col1 AS col2 FROM tab0
----
40
40
40
skipif mysql # not compatible
query I rowsort label-5791
SELECT 41 + - col1 / col1 AS col2 FROM tab0
----
40
40
40
query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab0, tab1, tab2 cor0
----
51
query I rowsort
SELECT - col2 * 44 AS col0 FROM tab1 cor0
----
-2376
-2508
-4224
query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL >= + col1 + col2
----
query I rowsort
SELECT ALL col2 * + col0 - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT col1 DIV col2 - - col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5797
SELECT col1 / col2 - - col1 FROM tab1
----
10
13
26
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 + col1 > + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 * - col2 AS col2 FROM tab2
----
22626
24586
39910
query I rowsort
SELECT - col1 * + tab2.col0 + col1 * - col1 FROM tab2
----
-1178
-1632
-8083
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 <> ( NULL )
----
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - tab1.col1 < ( col2 )
----
query I rowsort
SELECT - col2 - - col0 FROM tab2 WHERE NOT + col1 BETWEEN col2 + col2 * + col1 AND ( + col1 )
----
-20
41
52
query I rowsort
SELECT DISTINCT col1 - - col2 * - col2 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT col2 + col0 + + tab2.col0 * col1 AS col2 FROM tab2
----
1460
251
4706
query I rowsort
SELECT col1 + + col0 * - col1 * + col0 FROM tab0
----
-118728
-49450
-720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 WHERE NULL BETWEEN NULL AND col2 * - col2
----
query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + col1 <= NULL
----
query I rowsort
SELECT - col0 * cor0.col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL > ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT DISTINCT + + 95 DIV col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + + 95 / col1 FROM tab1 AS cor0
----
3
7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + cor0.col0 + ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT col1 + + col2 * - col0 * col0 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT tab1.col0 * col2 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL tab2.col1 + col0 * - col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT - col1 DIV col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5817
SELECT - col1 / col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - col1 + + tab0.col2 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL > ( col2 * + col0 * - col2 + + col2 )
----
query I rowsort
SELECT col2 + col0 * - col0 + - col2 * - col2 * + col1 FROM tab0
----
-1127
604045
93111
query I rowsort
SELECT col1 * col2 + - tab0.col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ALL tab1.col2 * col0 * col0 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - - col1 + - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col1 * + 74 FROM tab0 AS cor0
----
-6364
-6734
-7178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5825
SELECT - CAST( NULL AS SIGNED ) * col1 + col1 + + ( - 50 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5825
SELECT - CAST ( NULL AS INTEGER ) * col1 + col1 + + ( - 50 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col2 * + col0 + + cor0.col1 * ( col2 ) AS col1 FROM tab0 cor0
----
2070
253
97
query I rowsort
SELECT col1 * 69 AS col0 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT + + 39 * + col1 AS col2 FROM tab1 cor0
----
1014
390
507
query I rowsort
SELECT - cor0.col1 + 18 FROM tab1 AS cor0
----
-8
5
8
query I rowsort
SELECT ALL + - 73 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-47
-60
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5831
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col0 ) * col0 * 15 + - col0 * col1 * - 8 + col0 AS col2 FROM tab0 AS cor0
----
-53934
7896
8820
query I rowsort
SELECT + - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - ( - tab0.col1 ) * col2 + + col1 * tab0.col2 AS col0 FROM tab0
----
14924
194
5676
query I rowsort
SELECT - + cor0.col2 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + + col2 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT - col1 + + 95 DIV - cor0.col0 FROM tab1 AS cor0
----
-11
-14
-57
skipif mysql # not compatible
query I rowsort label-5837
SELECT - col1 + + 95 / - cor0.col0 FROM tab1 AS cor0
----
-11
-14
-57
query I rowsort
SELECT col2 + 70 FROM tab0 AS cor0
----
103
152
71
query I rowsort
SELECT ALL cor0.col0 * - 59 FROM tab2, tab1 cor0
----
9 values hashing to 45ab40e26cca69ea8ca7efa1e590d71c
query I rowsort
SELECT DISTINCT - col1 * col1 + 97 AS col2 FROM tab2 AS cor0
----
-192
-3384
-864
query I rowsort
SELECT ALL + col1 + ( ( col1 ) ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - cor0.col1 * - col1 * 21 AS col0 FROM tab2 AS cor0
----
20181
6069
73101
query I rowsort
SELECT ALL + col2 - ( + col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5844
SELECT DISTINCT - - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col0 * + col2 * tab1.col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT - col0 * 7 * + 52 FROM tab1 AS cor0
----
-1092
-23296
-29120
query I rowsort
SELECT ALL 37 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 + 80 AS col1 FROM tab0, tab1 AS cor0
----
1328
1484
650
query I rowsort
SELECT - tab2.col0 + - 60 * tab2.col2 AS col0 FROM tab2
----
-1627
-1638
-2359
query I rowsort
SELECT + - col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT 39 * col0 * tab1.col2 AS col2 FROM tab1
----
142272
299520
6318
query I rowsort
SELECT DISTINCT col1 * col1 - + ( col0 ) AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT - 89 + col1 AS col1 FROM tab2 cor0
----
-30
-58
-72
query I rowsort
SELECT DISTINCT + + 54 * + col0 + + 28 * + ( + col2 + col1 ) AS col2 FROM tab1 AS cor0
----
2402
5332
7372
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + + col2 - + col0 * - cor0.col0 FROM tab1 cor0
----
141
4793
7536
query I rowsort
SELECT + 50 + + col2 FROM tab0 AS cor0
----
132
51
83
query I rowsort
SELECT DISTINCT ( + col0 * - col0 ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + - 0 FROM tab1, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT ALL - tab2.col0 * + col1 + + ( col0 ) * - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - tab2.col0 * + col1 + + ( col0 ) * - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - cor0.col1 * - col0 + - 71 AS col2 FROM tab0 AS cor0
----
1993
3324
8028
query I rowsort
SELECT + 28 + col2 AS col1 FROM tab0 cor0
----
110
29
61
query I rowsort
SELECT ALL col2 * 2 * col0 AS col0 FROM tab2
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT + 27 DIV 33 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5864
SELECT + 27 / 33 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 58 * 5 FROM tab0 cor0
----
290
290
290
onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT DISTINCT - ( col2 ) DIV + col1 + - col1 * - ( + col0 + 10 ) AS col2 FROM tab0 AS cor0
----
2924
4365
9009
skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT - ( col2 ) / + col1 + - col1 * - ( + col0 + 10 ) AS col2 FROM tab0 AS cor0
----
2924
4365
9009
onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT + col2 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-5867
SELECT + col2 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT ALL ( + 57 ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL ( + 57 ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT - ( 62 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5869
SELECT - ( 62 ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + 63 + col2 * col2 + col0 AS col0 FROM tab0 AS cor0
----
1176
6876
99
query I rowsort
SELECT DISTINCT col2 * ( - col2 + col0 ) AS col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT ( 49 ) * - col0 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT DISTINCT - 69 * - cor0.col0 + + col1 FROM tab2 AS cor0
----
514
5441
5468
query I rowsort
SELECT - col2 * 50 AS col2 FROM tab0 AS cor0
----
-1650
-4100
-50
query I rowsort
SELECT + col1 + - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - 73 FROM tab0 cor0
----
-73
-73
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col2 + + 67 AS col1 FROM tab2 AS cor0
----
105
93
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT - col0 + + col0 DIV col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-5879
SELECT - col0 + + col0 / col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - + col2 * + col2 * + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT DISTINCT - - col0 + 20 * col2 AS col0 FROM tab2 AS cor0
----
547
598
839
query I rowsort
SELECT + + cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col0 * ( ( - col1 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT + col2 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-5885
SELECT + col2 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 - 5 AS col2 FROM tab0
----
81
86
92
query I rowsort
SELECT DISTINCT 12 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * - col1 col0 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT + - 80 DIV + 13 AS col0 FROM tab2 AS cor0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-5890
SELECT + - 80 / + 13 AS col0 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL - - 84 + - col1 * + col1 FROM tab0 AS cor0
----
-7312
-8197
-9325
query I rowsort
SELECT DISTINCT - 33 * col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT + 73 * + cor0.col2 * + col1 FROM tab0 cor0
----
207174
544726
7081
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + - col0 * - col0 FROM tab1
----
-1395
3526
5152
query I rowsort
SELECT ALL + col2 * - col2 * col1 + col1 AS col0 FROM tab2
----
-22568
-24531
-39825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) * + tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) * + tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2, tab1 AS cor0
----
10
query I rowsort
SELECT + col2 + ( + col0 * + col0 ) FROM tab0
----
1226
609
8003
query I rowsort
SELECT + col0 + - tab0.col0 * - col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT + col0 - 1 AS col2 FROM tab0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT col1 DIV col0 + tab2.col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
965
skipif mysql # not compatible
query I rowsort label-5901
SELECT col1 / col0 + tab2.col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
965
query I rowsort
SELECT + col1 * 54 + + col1 AS col2 FROM tab0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT col1 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-5903
SELECT col1 + col0 / col1 AS col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT ALL - col0 + - 59 FROM tab2
----
-137
-138
-66
query I rowsort
SELECT ALL + + ( col2 ) * + col2 * - ( col0 + col0 * col0 ) FROM tab1 AS cor0
----
-13515840
-34992
-59719680
query I rowsort
SELECT 10 * + tab1.col2 AS col1 FROM tab1
----
540
570
960
query I rowsort
SELECT DISTINCT - + 15 AS col0 FROM tab2 AS cor0
----
-15
query I rowsort
SELECT ALL + 48 AS col1 FROM tab0
----
48
48
48
query I rowsort
SELECT - col0 + col2 * - 54 * + cor0.col0 FROM tab2 AS cor0
----
-10213
-109590
-162187
query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - + col2 * - 68 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT + col0 + 64 AS col2 FROM tab2 AS cor0
----
142
143
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5913
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - col1 - 22 FROM tab1 AS cor0
----
-32
-35
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5915
SELECT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5915
SELECT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - 99 * 85 AS col0 FROM tab1 AS cor0
----
-8319
-8358
-8361
query I rowsort
SELECT + col1 - + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 * + col0 + 33 AS col0 FROM tab0 AS cor0
----
1258
609
7954
query I rowsort
SELECT + col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - col1 * + ( - col0 ) + - col2 * ( - col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-33873
-543269
3394
query I rowsort
SELECT + - col0 - + 28 FROM tab2 AS cor0
----
-106
-107
-35
query I rowsort
SELECT DISTINCT + tab2.col1 * ( + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + col2 * + cor0.col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 80 * - col1 + col0 FROM tab0
----
-6856
-7191
-7725
query I rowsort
SELECT - 27 * col2 AS col0 FROM tab0 cor0
----
-2214
-27
-891
query I rowsort
SELECT - 58 * col0 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT - 81 * - cor0.col0 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT ALL + col1 * ( 88 ) + cor0.col2 FROM tab0 AS cor0
----
7601
8090
8537
query I rowsort
SELECT col2 + cor0.col0 * col1 * - col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT DISTINCT col1 DIV cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT col1 / cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 * ( - col0 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT 99 + col2 FROM tab0 AS cor0
----
100
132
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT - col1 DIV 25 col2 FROM tab2 AS cor0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5939
SELECT - col1 / 25 col2 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT - col0 * - cor0.col1 + + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
1345
217
4602
skipif mysql # not compatible
query I rowsort label-5940
SELECT - col0 * - cor0.col1 + + col2 / col1 AS col1 FROM tab2 AS cor0
----
1345
217
4602
query I rowsort
SELECT ALL + 58 * - cor0.col0 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 9a996662d48bb52c33bbdd0d03f98d28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
skipif mysql # not compatible
query I rowsort
SELECT - tab2.col1 * - CAST ( - col2 AS REAL ) + + col0 * + col0 AS col0 FROM tab2
----
-788
4550
5595
query I rowsort
SELECT + ( - col1 ) + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT 2 * + cor0.col2 + col1 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - col0 * 44 AS col2 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL 94 - - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to db36c12522b791355be00bab9cb81c8e
query I rowsort
SELECT - col1 + 9 * col0 FROM tab0 cor0
----
130
218
710
query I rowsort
SELECT DISTINCT - - 50 * - 51 + + col1 AS col2 FROM tab2 AS cor0
----
-2491
-2519
-2533
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT + 21 DIV + 65 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + 21 / + 65 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ( + 9 ) * + col1 + col0 AS col1 FROM tab0 AS cor0
----
798
908
908
query I rowsort
SELECT ALL 91 * 35 * - col1 FROM tab1 AS cor0
----
-31850
-41405
-82810
query I rowsort
SELECT - 57 + col0 * - col0 FROM tab2 AS cor0
----
-106
-6141
-6298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT - CAST( NULL AS DECIMAL ) * - 47 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-5956
SELECT - CAST ( NULL AS REAL ) * - 47 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - - col2 + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + 84 * + col0 + col2 * 81 FROM tab1 AS cor0
----
14496
4626
9993
query I rowsort
SELECT ALL - + col2 * 11 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT ALL ( + col0 * col0 ) AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - - 50 AS col0 FROM tab2 AS cor0
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT ALL + col0 * - cor0.col1 * CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
-208
-40950
-83187
skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + col0 * - cor0.col1 * CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
-208
-40950
-83187
query I rowsort
SELECT ALL - col0 * 43 + + col1 AS col2 FROM tab0
----
-1408
-3736
-946
query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + col0 * ( - col1 ) FROM tab1 cor0
----
-1040
-640
-78
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT DISTINCT - ( 10 + - cor0.col1 * 76 ) FROM tab0, tab1 AS cor0
----
1966
750
978
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL col1 - + CAST( + col1 AS SIGNED ) * col0 FROM tab1
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL col1 - + CAST ( + col1 AS INTEGER ) * col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT tab0.col0 + 29 - col0 FROM tab0
----
29
query I rowsort
SELECT - col1 - 49 AS col2 FROM tab2
----
-108
-66
-80
query I rowsort
SELECT tab1.col2 * + col2 + + col2 AS col1 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT col0 * ( col2 ) + + col1 + + col1 FROM tab2
----
2146
251
3036
query I rowsort
SELECT ALL - 19 * + col1 + ( - col1 ) AS col0 FROM tab0
----
-1720
-1820
-1940
query I rowsort
SELECT - - 98 AS col0 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT ALL - 50 * - cor0.col0 FROM tab1 AS cor0
----
150
3200
4000
onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT + + col0 + + col0 DIV + col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-5977
SELECT + + col0 + + col0 / + col1 FROM tab2 AS cor0
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5978
SELECT DISTINCT + col0 + - col1 * - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + col0 + - col1 * - col1 / col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 95 + col2 AS col2 FROM tab1
----
149
152
191
query I rowsort
SELECT + ( + col0 ) + tab2.col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col0 col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT col0 + + ( 8 ) FROM tab1
----
11
72
88
query I rowsort
SELECT ALL col2 + - ( - 52 ) * + col0 AS col0 FROM tab0 AS cor0
----
1281
1821
4710
query I rowsort
SELECT DISTINCT col0 + 82 AS col2 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT DISTINCT + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT col2 + col0 * + col1 DIV col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT col2 + col0 * + col1 / col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + + col0 * + col2 - col1 AS col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT - col1 + 54 FROM tab1 AS cor0
----
28
41
44
query I rowsort
SELECT col0 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * - col0 - + col1 FROM tab2 cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT - col1 * col2 DIV col0 AS col2 FROM tab0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-5992
SELECT - col1 * col2 / col0 AS col2 FROM tab0
----
-118
-2
-83
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 + + col0 * col0 AS col0 FROM tab2
----
6221
6337
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT CAST( col1 AS SIGNED ) + + col2 * + CAST( col2 + + col1 * - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3297
-657303
-66937
skipif mysql # not compatible
query I rowsort label-5994
SELECT CAST ( col1 AS INTEGER ) + + col2 * + CAST ( col2 + + col1 * - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3297
-657303
-66937
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5996
SELECT + - CAST( - 32 AS SIGNED ) + col0 * + 79 * cor0.col1 AS col1 FROM tab2 AS cor0
----
106129
17175
363590
skipif mysql # not compatible
query I rowsort label-5996
SELECT + - CAST ( - 32 AS INTEGER ) + col0 * + 79 * cor0.col1 AS col1 FROM tab2 AS cor0
----
106129
17175
363590
query I rowsort
SELECT DISTINCT 66 FROM tab0 AS cor0
----
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col0 col1 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT DISTINCT + + 45 * + col0 AS col2 FROM tab2 AS cor0
----
315
3510
3555
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + 90 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-7
2884
7289
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * col0 * 32 AS col1 FROM tab0 AS cor0
----
1155
233625
25368
query I rowsort
SELECT - col0 + col0 + + ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 + + col0 - - 23 * + col1 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT + - col2 + + col2 * 32 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-4
-4756
231
query I rowsort
SELECT DISTINCT 53 + col2 + - 69 AS col1 FROM tab1 AS cor0
----
38
41
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT - 21 + - 44 DIV + col0 + ( + col1 ) * tab0.col1 FROM tab0
----
7374
8260
9387
skipif mysql # not compatible
query I rowsort label-6007
SELECT - 21 + - 44 / + col0 + ( + col1 ) * tab0.col1 FROM tab0
----
7374
8260
9387
query I rowsort
SELECT DISTINCT col0 - tab1.col2 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6009
SELECT ALL + CAST( ( - col0 ) AS SIGNED ) * col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + CAST ( ( - col0 ) AS INTEGER ) * col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + 36 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT ALL 80 * - tab1.col2 - col2 FROM tab1
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 + + ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + 25 * cor0.col2 + + ( - 87 ) FROM tab2 AS cor0
----
563
588
863
query I rowsort
SELECT DISTINCT - - ( 43 ) * + cor0.col2 FROM tab2, tab0 AS cor0
----
1419
3526
43
query I rowsort
SELECT DISTINCT + + 48 FROM tab2 cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT col1 * col2 + - tab1.col2 AS col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT + 85 AS col2 FROM tab2
----
85
85
85
query I rowsort
SELECT DISTINCT 59 * - col2 + - ( col0 ) AS col0 FROM tab1
----
-3189
-3427
-5744
onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT - 1 * col1 DIV - 76 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6020
SELECT - 1 * col1 / - 76 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - col2 DIV 23 FROM tab1 AS cor0
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 / 23 FROM tab1 AS cor0
----
-2
-2
-4
query I rowsort
SELECT + col0 * + 9 * 27 + cor0.col1 - + 50 * - ( - col0 ) FROM tab2 AS cor0
----
1382
15113
15264
query I rowsort
SELECT + + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT 46 + + col1 AS col0 FROM tab1
----
56
59
72
query I rowsort
SELECT + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT ALL col1 * tab2.col1 DIV + tab2.col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL col1 * tab2.col1 / + tab2.col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT DISTINCT + col1 * col2 DIV col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT + col1 * col2 / col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT col0 * tab0.col0 DIV col0 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6028
SELECT col0 * tab0.col0 / col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - 90 + col0 * - col2 FROM tab2 AS cor0
----
-2118
-279
-3092
query I rowsort
SELECT - col0 + + tab1.col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col1 * 28 FROM tab1 AS cor0
----
280
364
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab0 AS cor0
----
-46
query I rowsort
SELECT ALL + + ( 24 ) + - col2 * - col0 FROM tab2 AS cor0
----
2052
213
3026
query I rowsort
SELECT ALL + ( ( + col1 ) ) * - ( col2 ) - + col1 * 78 FROM tab1 cor0
----
-1350
-2262
-3432
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col0 + + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - - 64 AS col0 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - col2 * col2 + col1 * - 57 AS col0 FROM tab2 AS cor0
----
-2413
-2496
-4039
query I rowsort
SELECT ALL + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + ( 39 ) + + col0 * ( 57 ) AS col1 FROM tab2 AS cor0
----
438
4485
4542
onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT col0 DIV 89 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7922
skipif mysql # not compatible
query I rowsort label-6041
SELECT col0 / 89 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7922
query I rowsort
SELECT ( + cor0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT DISTINCT col2 + ( cor0.col0 ) + - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
172
37
58
skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT col2 + ( cor0.col0 ) + - cor0.col1 / - col1 FROM tab0 AS cor0
----
172
37
58
query I rowsort
SELECT + + ( + cor0.col1 ) * col0 * + 91 + col2 * col1 FROM tab0 AS cor0
----
190662
309042
744471
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - ( col0 ) * ( + col0 ) AS col2 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT ALL CAST( NULL AS SIGNED ) * + 8 + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL CAST ( NULL AS INTEGER ) * + 8 + col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT + 93 DIV + col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-6048
SELECT + 93 / + col1 FROM tab1 AS cor0
----
3
7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT DISTINCT tab1.col0 + 80 DIV - col1 FROM tab1
----
0
56
74
skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT tab1.col0 + 80 / - col1 FROM tab1
----
0
56
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT DISTINCT col1 DIV col2 + + 20 * + 54 * col0 FROM tab0
----
25922
37897
96121
skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT col1 / col2 + + 20 * + 54 * col0 FROM tab0
----
25922
37897
96121
query I rowsort
SELECT - - cor0.col0 * - col1 + + col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + + col1 + + ( cor0.col1 + - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col2 * ( - 45 * col0 ) + col0 * col0 FROM tab1 AS cor0
----
-160064
-339200
-7281
query I rowsort
SELECT + col0 + ( - col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + 56 AS REAL ) AS col1 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT + col2 + + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT + - col0 DIV - col1 + col2 AS col0 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-6057
SELECT + - col0 / - col1 + col2 AS col0 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT - - col2 * ( - 63 ) * - col1 + col2 FROM tab0 AS cor0
----
178827
470188
6112
query I rowsort
SELECT ALL tab1.col2 * + col1 - 97 AS col2 FROM tab1
----
1151
1307
473
query I rowsort
SELECT col0 - 25 AS col1 FROM tab0
----
-1
10
64
query I rowsort
SELECT ALL + col1 * - col2 - col2 * col2 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT col1 + - col2 + ( - col0 ) * + 43 FROM tab1
----
-157
-2799
-3523
query I rowsort
SELECT - col1 - - ( - col0 ) AS col2 FROM tab1
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col0 - - ( col1 + col0 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col2 + col2 * col1 + col0 AS col2 FROM tab1
----
1424
1461
691
query I rowsort
SELECT DISTINCT - col0 + + 0 * 79 AS col0 FROM tab0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6068
SELECT DISTINCT col2 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
query I rowsort
SELECT ALL - - 60 + - cor0.col1 FROM tab2 cor0
----
1
29
43
query I rowsort
SELECT ALL + ( - col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * + 52 FROM tab0 AS cor0
----
-1248
-1820
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT + col1 + 13 DIV - col0 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6072
SELECT + col1 + 13 / - col0 AS col1 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT - CAST( - col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-6074
SELECT - CAST ( - col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 * - col0 - col1 col1 FROM tab1 AS cor0
----
-56
-650
-813
query I rowsort
SELECT ALL - 97 AS col2 FROM tab1 cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + col0 + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - - 97 * 89 + + col1 + + col2 * 77 AS col0 FROM tab0 AS cor0
----
11260
15038
8807
query I rowsort
SELECT DISTINCT - + 16 * + col0 + col0 AS col2 FROM tab2 cor0
----
-105
-1170
-1185
query I rowsort
SELECT 44 * 69 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
2998
3009
3010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT ALL + col0 DIV 40 AS col1 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + col0 / 40 AS col1 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT - ( col0 ) + + col2 + ( 43 ) * col2 * cor0.col2 FROM tab0 cor0
----
289125
46836
9
query I rowsort
SELECT - cor0.col0 + - col2 * cor0.col0 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - + cor0.col1 + 99 FROM tab1 AS cor0
----
73
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT - cor0.col1 DIV + col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6085
SELECT - cor0.col1 / + col0 FROM tab1 cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT + 98 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6086
SELECT + 98 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT + cor0.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-6087
SELECT + cor0.col0 / col1 col0 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col1 * - col1 col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL 9 * col0 AS col2 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT col0 * 63 FROM tab1 AS cor0
----
189
4032
5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT - col1 DIV ( - ( col2 ) ) - - col2 * 53 FROM tab0 AS cor0
----
150
1751
4347
skipif mysql # not compatible
query I rowsort label-6091
SELECT - col1 / ( - ( col2 ) ) - - col2 * 53 FROM tab0 AS cor0
----
150
1751
4347
query I rowsort
SELECT ALL + col0 + + 86 AS col0 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT ALL + col1 + - ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT ALL + cor0.col2 * + col1 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
2836
7461
skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + cor0.col2 * + col1 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
0
2836
7461
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col1 - - cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col0 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
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 + + col1 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT tab2.col0 + col2 + col0 FROM tab2
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT ALL + col0 * col0 DIV col1 + col0 * tab2.col0 AS col1 FROM tab2
----
50
6187
6608
skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + col0 * col0 / col1 + col0 * tab2.col0 AS col1 FROM tab2
----
50
6187
6608
query I rowsort
SELECT DISTINCT col0 * + tab1.col0 + col0 * - col1 AS col1 FROM tab1
----
-69
3456
5360
query I rowsort
SELECT ALL col0 * col1 + + col1 * tab0.col0 + col0 FROM tab0
----
16287
4152
6825
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT col1 * col2 + col2 * + col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT col2 + + col1 - col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 - + col2 col0 FROM tab2 AS cor0
----
-68
-69
-80
query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + col0 * + col2 - col1 FROM tab2 cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 * col2 col0 FROM tab2 AS cor0
----
114076
5103
52728
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-6115
SELECT ALL - col0 DIV + col1 - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-6
0
skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - col0 / + col1 - col2 / col1 AS col1 FROM tab2 AS cor0
----
-1
-6
0
query I rowsort
SELECT - col0 + col0 * + tab0.col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT col1 * + col2 BETWEEN NULL AND - col1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT ALL - col0 - + col0 DIV col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - col0 - + col0 / col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col1 * col2 <> col1 + col1 * - col0 * col2 + - col1
----
query I rowsort
SELECT tab1.col2 FROM tab1 WHERE col1 BETWEEN col0 AND col2 * + col0
----
54
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col0 IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT DISTINCT - tab1.col0 * + tab1.col0 + - col2 * col0 DIV - col2 FROM tab1
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - tab1.col0 * + tab1.col0 + - col2 * col0 / - col2 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT + col1 + - col2 * col0 + tab0.col1 * - col2 AS col2 FROM tab0
----
-14669
-35
-3544
query I rowsort
SELECT - col0 * - col2 * - 9 AS col1 FROM tab1 cor0
----
-1458
-32832
-69120
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + - col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL - col0 * - col1 + col1 AS col2 FROM tab1
----
104
1053
650
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( col0 / + col1 + + col0 )
----
query I rowsort
SELECT col1 FROM tab2 WHERE - col2 / - col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 * col1 * cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT col2 + col1 DIV col1 AS col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6130
SELECT col2 + col1 / col1 AS col2 FROM tab2
----
27
28
39
query I rowsort
SELECT - cor0.col1 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT cor0.col1 * col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL col1 - + col0 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + col0 * col2 FROM tab0 WHERE NOT col1 * - col1 IN ( - col1 )
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT tab2.col0 + - col1 DIV - col0 AS col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-6136
SELECT tab2.col0 + - col1 / - col0 AS col0 FROM tab2
----
11
78
79
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 - + col2 )
----
query I rowsort
SELECT - col1 * + col1 + col0 * col2 FROM tab0
----
-6604
-9374
-983
query I rowsort
SELECT DISTINCT + col1 - - col1 AS col1 FROM tab1
----
20
26
52
query III rowsort
SELECT * FROM tab2 WHERE - col0 * col1 BETWEEN NULL AND col2 + col2 * col0 * + col0
----
query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT col2 + - col1 * col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT tab0.col2 * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col0 * col1 + tab0.col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + 43 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6146
SELECT DISTINCT - 49 + - col0 - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT - 49 + - col0 - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 68 - tab1.col2 FROM tab1
----
-122
-125
-164
query I rowsort
SELECT + col1 * tab0.col0 + 10 FROM tab0
----
2074
3405
8109
query I rowsort
SELECT 0 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT col1 DIV - ( + col1 ) + cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-6150
SELECT col1 / - ( + col1 ) + cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
109
131
179
query I rowsort
SELECT - col2 * + ( col2 ) * col2 + + 1 FROM tab0 cor0
----
-35936
-551367
0
query I rowsort
SELECT ALL cor0.col2 * 55 AS col2 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT - + col0 * col0 + 60 AS col0 FROM tab1 cor0
----
-4036
-6340
51
query I rowsort
SELECT col2 * ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 * 80 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT ALL + col0 + - ( + col1 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + col0 + - ( + col1 ) / + col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT + col0 * + tab0.col1 AS col0 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab1
----
96
96
96
query I rowsort
SELECT + tab2.col2 * - tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - col2 * + col2 + col1 FROM tab2 cor0
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6163
SELECT CAST( + cor0.col1 AS SIGNED ) + - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-6163
SELECT CAST ( + cor0.col1 AS INTEGER ) + - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + cor0.col1 * + ( - tab0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to a811f2025e810c126c8e7210b4f3f570
query I rowsort
SELECT + col2 + - 5 AS col0 FROM tab2
----
21
22
33
query I rowsort
SELECT - col2 * 98 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ( 38 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - 92 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT - - ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT + 80 * 15 DIV - col0 FROM tab0
----
-13
-34
-50
skipif mysql # not compatible
query I rowsort label-6171
SELECT + 80 * 15 / - col0 FROM tab0
----
-13
-34
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col0 - 1 * + col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + + 96 + - col1 * col1 FROM tab2 AS cor0
----
-193
-3385
-865
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6175
SELECT ALL + 37 + + col2 - - CAST( - 99 AS SIGNED ) FROM tab1 cor0
----
-5
-8
34
skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL + 37 + + col2 - - CAST ( - 99 AS INTEGER ) FROM tab1 cor0
----
-5
-8
34
query I rowsort
SELECT ALL - ( - col0 ) + + 61 * - 40 + + col1 FROM tab1 cor0
----
-2347
-2366
-2411
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 - + 98 FROM tab1 AS cor0
----
-98
-98
-98
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 + col1 AS REAL ) AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT ALL + tab2.col2 - + col2 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT - 0 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6181
SELECT - 0 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 7 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 801d0b04fea2429f9392c9c7eaaa3d1a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - ( col2 ) + - ( 93 ) AS col0 FROM tab1 cor0
----
-147
-150
-189
query I rowsort
SELECT - ( + cor0.col2 ) * col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col1 * + col1 - - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + 4 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + - col1 + ( 21 ) AS col1 FROM tab2 AS cor0
----
-10
-38
4
query I rowsort
SELECT - col1 * ( col0 + + cor0.col1 ) AS col1 FROM tab0 cor0
----
-12804
-16380
-9460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + - cor0.col1 * + cor0.col1 col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
-228
-3420
-900
query I rowsort
SELECT + col0 * + 98 + - col1 * + col2 FROM tab1 AS cor0
----
-1110
5702
6592
query I rowsort
SELECT ALL + 89 * 68 FROM tab2 AS cor0
----
6052
6052
6052
query I rowsort
SELECT DISTINCT - ( col1 + - col1 * - ( col2 ) ) AS col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - 74 * 51 - col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-11072
-3809
-4566
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT 15 * + col1 * cor0.col0 + col2 * + cor0.col1 FROM tab1 cor0
----
10170
16848
2574
query I rowsort
SELECT ALL - col2 + 50 FROM tab2 AS cor0
----
12
23
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT ALL + col2 DIV col2 + 15 AS col0 FROM tab0 cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + col2 / col2 + 15 AS col0 FROM tab0 cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT DISTINCT + col1 + ( + col2 ) DIV cor0.col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + col1 + ( + col2 ) / cor0.col1 FROM tab2 AS cor0
----
19
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT ALL + col2 * + 79 + 62 DIV col1 AS col2 FROM tab2 AS cor0
----
2055
2135
3005
skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + col2 * + 79 + 62 / col1 AS col2 FROM tab2 AS cor0
----
2055
2135
3005
onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT DISTINCT - col0 DIV col0 col1 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT - col0 / col0 col1 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + 6 col1 FROM tab0 cor0
----
41
7304
798
query I rowsort
SELECT - cor0.col2 * col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT DISTINCT tab1.col0 DIV + col1 AS col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT tab1.col0 / + col1 AS col0 FROM tab1
----
0
6
query I rowsort
SELECT ALL - - col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col0 * 89 - - col1 * - col1 FROM tab1 AS cor0
----
-409
5596
6951
query I rowsort
SELECT DISTINCT - col1 * - col2 + 30 FROM tab1 AS cor0
----
1278
1434
600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT ALL col1 * + ( - col2 * + cor0.col1 ) + - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL col1 * + ( - col2 * + cor0.col1 ) + - CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT col1 * cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6211
SELECT col1 * cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col1 * + 14 AS col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT + 27 + col2 + cor0.col2 FROM tab1 AS cor0
----
135
141
219
query I rowsort
SELECT ALL 47 - + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-115
-3601
-7633
query I rowsort
SELECT ALL - 71 * col1 + - cor0.col0 FROM tab2 AS cor0
----
-1286
-2208
-4267
query I rowsort
SELECT DISTINCT - col2 + + col0 * ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) + col0 * col0 AS col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT - 94 + + cor0.col2 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-119746
-51128
-5953
query I rowsort
SELECT col1 - 53 * + col0 * - tab2.col2 FROM tab2
----
10048
107543
159123
query I rowsort
SELECT ALL - + col1 * + col2 + + ( 67 * - cor0.col1 ) FROM tab2 cor0
----
-1785
-2914
-5487
query I rowsort
SELECT DISTINCT 40 * col0 + col2 FROM tab0 cor0
----
1401
3642
993
onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT - cor0.col1 * + col0 DIV + col0 + col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6222
SELECT - cor0.col1 * + col0 / + col0 + col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 57 + cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
143
148
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0, tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab0 cor0, tab2 AS cor1
----
-9
query I rowsort
SELECT DISTINCT - col2 - + 57 FROM tab1 cor0
----
-111
-114
-153
query I rowsort
SELECT + 68 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - + col0 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col0 FROM tab0, tab1 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col2 + - 4 AS col2 FROM tab1
----
-100
-58
-61
query I rowsort
SELECT + 48 * tab0.col2 * tab0.col1 FROM tab0
----
136224
358176
4656
query I rowsort
SELECT ALL - ( col1 ) * - col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + - ( col2 ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + - ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT 16 * col0 - col1 AS col1 FROM tab2 AS cor0
----
1189
1247
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT CAST( NULL AS SIGNED ) * 51 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6236
SELECT CAST ( NULL AS INTEGER ) * 51 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 56 * cor0.col0 * col1 FROM tab0 AS cor0
----
-115584
-190120
-453544
query I rowsort
SELECT ALL ( + 63 ) * + cor0.col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT 85 + - col1 AS col2 FROM tab2 AS cor0
----
26
54
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT ALL cor0.col2 DIV + col2 + ( + col0 ) FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL cor0.col2 / + col2 + ( + col0 ) FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + + col0 * + col2 - col1 AS col0 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT 46 + + col1 * - 69 FROM tab0 AS cor0
----
-5888
-6233
-6647
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6244
SELECT DISTINCT ( 85 ) + + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT ( 85 ) + + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT - ( tab1.col1 + + col2 ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - 68 * 93 FROM tab0, tab0 AS cor0
----
-6324
query I rowsort
SELECT + col2 + + col2 * 53 AS col2 FROM tab0 AS cor0
----
1782
4428
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT - col0 + - 15 + - col0 DIV - 72 FROM tab0
----
-103
-39
-50
skipif mysql # not compatible
query I rowsort label-6248
SELECT - col0 + - 15 + - col0 / - 72 FROM tab0
----
-103
-39
-50
query I rowsort
SELECT + + 25 * cor0.col0 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT - tab0.col0 + + col1 * col2 - col1 FROM tab0
----
-35
2728
7282
query I rowsort
SELECT DISTINCT col1 + - tab1.col1 * - col1 * 65 FROM tab1
----
10998
43966
6510
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 + col0 col2 FROM tab0
----
102
113
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT DISTINCT - cor0.col0 DIV col1 FROM tab1 cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - cor0.col0 / col1 FROM tab1 cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT DISTINCT + col0 * + 23 + - col2 DIV ( col1 ) FROM tab1 AS cor0
----
1467
1833
67
skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + col0 * + 23 + - col2 / ( col1 ) FROM tab1 AS cor0
----
1467
1833
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6255
SELECT DISTINCT - cor0.col1 * - ( col0 ) + CAST( NULL AS SIGNED ) * cor0.col1 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - cor0.col1 * - ( col0 ) + CAST ( NULL AS INTEGER ) * cor0.col1 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 95 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT + 80 + - cor0.col0 FROM tab2 AS cor0
----
1
2
73
query I rowsort
SELECT - - 99 AS col2 FROM tab0 cor0
----
99
99
99
query I rowsort
SELECT + col2 + - 47 FROM tab2 AS cor0
----
-20
-21
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col1 FROM tab0 AS cor0
----
2
query I rowsort
SELECT DISTINCT + 55 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
55
query I rowsort
SELECT DISTINCT + 99 * - col0 + 77 FROM tab1
----
-220
-6259
-7843
query I rowsort
SELECT + 30 * + col1 AS col1 FROM tab2 AS cor0
----
1770
510
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-6264
SELECT + ( col2 ) DIV - col2 AS col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6264
SELECT + ( col2 ) / - col2 AS col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - col1 * 73 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-6302
-6732
-7116
query I rowsort
SELECT - 62 AS col1 FROM tab2
----
-62
-62
-62
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + col2 * col1 * + 91 + - col0 * + col2 + + ( cor0.col2 ) * 43 FROM tab0 AS cor0
----
258885
675270
8835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT + col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6270
SELECT + col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + + ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - + cor0.col1 + 76 FROM tab1 AS cor0
----
50
63
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 48 + col2 * - col0 col0 FROM tab2 AS cor0
----
-1178
-780
1107
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col0 + - col1 FROM tab2 AS cor0
----
151
1891
2906
query I rowsort
SELECT ALL - + 45 * + 18 AS col1 FROM tab1 AS cor0
----
-810
-810
-810
query I rowsort
SELECT DISTINCT ( 96 ) * - col0 FROM tab1 AS cor0
----
-288
-6144
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT ALL - col0 DIV - 88 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - col0 / - 88 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 * - 40 + col2 AS col0 FROM tab1
----
-2503
-3104
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL - - 91 + + cor0.col0 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT - col1 + col1 DIV - cor0.col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6282
SELECT - col1 + col1 / - cor0.col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT DISTINCT - - cor0.col1 DIV col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - - cor0.col1 / col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT ALL + + 54 + - col0 FROM tab0 AS cor0
----
-35
19
30
query I rowsort
SELECT ALL - 79 * col0 FROM tab0 cor0
----
-1896
-2765
-7031
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + + col1 * - col0 + ( col1 + col1 ) AS col1 FROM tab0 AS cor0
----
-1892
-3201
-7917
query I rowsort
SELECT - 88 * - col2 FROM tab2
----
2288
2376
3344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 - - col1 col1 FROM tab1
----
47
50
63
query I rowsort
SELECT 88 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL + tab0.col2 * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 50 * + col0 * - col0 + col1 AS col1 FROM tab2
----
2481
304259
312067
query I rowsort
SELECT 38 + + cor0.col0 FROM tab1 AS cor0
----
102
118
41
query I rowsort
SELECT + + col0 * col0 + + col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT - 75 + + cor0.col1 * + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
16149
36429
5625
onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT + col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6297
SELECT + col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab2.col1 + tab2.col2 * - col2 col1 FROM tab2
----
-798
108
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT col1 * + col2 + + cor0.col0 DIV 89 FROM tab0 cor0
----
2838
7463
97
skipif mysql # not compatible
query I rowsort label-6299
SELECT col1 * + col2 + + cor0.col0 / 89 FROM tab0 cor0
----
2838
7463
97
query I rowsort
SELECT ALL ( ( col0 ) ) AS col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT col1 * - col2 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-10903
-25940
-90428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col2 FROM tab0 AS cor0
----
62
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6304
SELECT DISTINCT CAST( - col0 AS SIGNED ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + 19 - + col0 FROM tab2 AS cor0
----
-59
-60
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT ALL col1 DIV + col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL col1 / + col0 AS col1 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL + - 8 * - cor0.col0 + - ( + col1 * - cor0.col2 ) + + cor0.col1 FROM tab0 AS cor0
----
3116
474
8265
query I rowsort
SELECT DISTINCT col1 - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - - col2 - + cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 14 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
17472
19656
7980
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT DISTINCT - ( cor0.col1 ) + 97 DIV - col0 AS col1 FROM tab2 AS cor0
----
-18
-44
-60
skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - ( cor0.col1 ) + 97 / - col0 AS col1 FROM tab2 AS cor0
----
-18
-44
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6312
SELECT ALL + - 21 + col2 * - 30 * + ( + col0 + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + - 21 + col2 * - 30 * + ( + col0 + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col0 - - cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - col0 * - col0 * ( - col0 ) FROM tab1 AS cor0
----
-262144
-27
-512000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - 50 col1 FROM tab0 AS cor0
----
-139
-74
-85
query I rowsort
SELECT 60 * - col0 AS col2 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT DISTINCT col0 * 6 AS col2 FROM tab2 AS cor0
----
42
468
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT + col1 * 7 + + col0 DIV col0 FROM tab1 AS cor0
----
183
71
92
skipif mysql # not compatible
query I rowsort label-6318
SELECT + col1 * 7 + + col0 / col0 FROM tab1 AS cor0
----
183
71
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 - col0 col2 FROM tab1 AS cor0
----
-111
-163
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT ALL + - col0 + CAST( col2 AS SIGNED ) DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + - col0 + CAST ( col2 AS INTEGER ) / col1 AS col1 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT col1 + + col2 + - col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + cor0.col1 + col2 * col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-157438
-185183
-884723
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT ALL - col0 + - col0 DIV - col1 AS col1 FROM tab2
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - col0 + - col0 / - col1 AS col1 FROM tab2
----
-7
-75
-77
query I rowsort
SELECT ALL 12 * 43 FROM tab0, tab1 AS cor0
----
9 values hashing to f7b40b4e157ae1641ddb0aee97a6833a
query I rowsort
SELECT + - 40 + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2f551fb89370ec5a101cb162dd1dbb69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - cor0.col1 * col2 col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - - cor0.col2 + 12 AS col2 FROM tab2 AS cor0
----
38
39
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * + col2 col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 + + ( + col1 * col1 ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - ( - col0 ) * - col0 + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT 53 * col1 AS col2 FROM tab2 cor0
----
1643
3127
901
query I rowsort
SELECT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
30
query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 98 + - 99 * col1 - ( col0 ) FROM tab1 AS cor0
----
-1152
-1465
-2675
query I rowsort
SELECT - ( 18 ) * cor0.col0 + + 12 AS col0 FROM tab0 AS cor0
----
-1590
-420
-618
onlyif mysql # use DIV operator for integer division
query I rowsort label-6338
SELECT 32 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6338
SELECT 32 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT + 95 DIV 93 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6339
SELECT + 95 / 93 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT 16 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT + col2 + CAST( NULL AS SIGNED ) * col0 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6341
SELECT + col2 + CAST ( NULL AS INTEGER ) * col0 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col2 + - tab0.col0 * col1 AS col2 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 35 * + col1 col2 FROM tab0 AS cor0
----
2977
3103
3394
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 81 col2 FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT ( ( - col1 ) ) + col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2, tab1 cor0
----
24
query I rowsort
SELECT ALL 40 * + col1 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT + col0 + ( + cor0.col0 ) FROM tab2 cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT ( col0 ) * + CAST( col2 AS SIGNED ) + col0 AS col0 FROM tab0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-6349
SELECT ( col0 ) * + CAST ( col2 AS INTEGER ) + col0 AS col0 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29d3894440deaba28fcaf7061536fdb6
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * ( - ( col1 ) ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + - 27 AS col2 FROM tab2 AS cor0
----
-20
51
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab1, tab0 AS cor0
----
92
query I rowsort
SELECT ALL col1 * ( + col1 ) - + col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 1 - col2 * + col2 col2 FROM tab1 AS cor0
----
-2861
-3191
-9119
query I rowsort
SELECT DISTINCT - 96 + cor0.col1 + + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 63290986e48ef9a4a3b16c48967f306b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 - + col2 col0 FROM tab1
----
-4
35
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6361
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 70 FROM tab1, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 70 FROM tab1, tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT col1 * CAST( - col0 AS SIGNED ) * - col0 FROM tab1
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-6362
SELECT col1 * CAST ( - col0 AS INTEGER ) * - col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT 28 + - ( - col1 ) * cor0.col0 FROM tab1 AS cor0
----
106
1068
668
query I rowsort
SELECT + - col0 + 36 FROM tab0 AS cor0
----
-53
1
12
query I rowsort
SELECT - + 97 FROM tab2 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + col2 + - 43 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT + 42 * col1 AS col0 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT - col1 * - 90 + - col1 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 + col0 + col0 AS col2 FROM tab0
----
105
7476
840
query I rowsort
SELECT ALL col0 * + col2 + + col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + col2 + + col1 + col2 * + col0 * + col0 FROM tab1
----
233539
566
614509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col2 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT 26 + 84 + col0 FROM tab1
----
113
174
190
query I rowsort
SELECT + col2 * - col2 - tab2.col2 FROM tab2
----
-1482
-702
-756
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( tab1.col2 AS REAL ) FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + ( 42 ) FROM tab0 cor0
----
42
query I rowsort
SELECT - + 64 + col2 FROM tab0 AS cor0
----
-31
-63
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT DISTINCT + col2 DIV - col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + col2 / - col2 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col1 col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 + + cor0.col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
16128
36450
5643
query I rowsort
SELECT DISTINCT + + 81 * + col1 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT - + 94 FROM tab2 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT + col1 * - col2 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1515
-584
-861
query I rowsort
SELECT + - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + + 24 AS col1 FROM tab2 cor0
----
24
24
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6388
SELECT - CAST( NULL AS SIGNED ) - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6388
SELECT - CAST ( NULL AS INTEGER ) - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + ( + col0 ) AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 * 50 + + col1 FROM tab1
----
1326
510
663
query I rowsort
SELECT - ( 80 * + col1 ) AS col1 FROM tab2
----
-1360
-2480
-4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + 31 * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT ALL + 66 AS col2 FROM tab2 cor0
----
66
66
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL col0 * + col0 * col2 + col0 * col0 FROM tab1 AS cor0
----
237568
495
620800
query I rowsort
SELECT - cor0.col0 + col0 * + 3 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col1 + ( col1 ) + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
229
7480
964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + ( + 63 + col1 ) col0 FROM tab1 cor0
----
115
83
89
query I rowsort
SELECT col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + col0 * + 35 + col2 - col2 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT ALL 77 DIV + col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL 77 / + col1 FROM tab2
----
1
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT DISTINCT col2 DIV - col0 AS col2 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT col2 / - col0 AS col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT - col2 + - 20 AS col1 FROM tab1 AS cor0
----
-116
-74
-77
query I rowsort
SELECT ALL + - col1 * + col0 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col1 * - 19 + ( + cor0.col2 + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
16325
1913
3218
query I rowsort
SELECT ALL + col2 * - 8 - col0 FROM tab0 AS cor0
----
-288
-43
-745
query I rowsort
SELECT DISTINCT + col2 + + 21 FROM tab0 AS cor0
----
103
22
54
query I rowsort
SELECT ALL - cor0.col0 * + ( - 85 ) * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
104028
48874
673194
query I rowsort
SELECT - cor0.col1 * col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + col0 * - ( col2 * col0 ) FROM tab1
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT tab1.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6412
SELECT tab1.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0 AS cor0
----
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT ALL - col1 DIV + col0 AS col1 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - col1 / + col0 AS col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT - col0 + col2 * - ( + col0 * col1 ) + + col1 * - col0 AS col1 FROM tab0
----
-672306
-6825
-70200
query I rowsort
SELECT ALL + col1 + - 96 AS col1 FROM tab0
----
-10
-5
1
query I rowsort
SELECT col0 + + col0 * 77 - - col1 AS col2 FROM tab1
----
260
5002
6253
query I rowsort
SELECT + - col0 + + 18 FROM tab2 cor0
----
-60
-61
11
query I rowsort
SELECT col2 * ( - col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - col0 * col2 + ( tab2.col0 ) AS col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT - 47 + - col0 FROM tab0
----
-136
-71
-82
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - 74 + col2 FROM tab2
----
-36
-47
-48
query I rowsort
SELECT + col2 + 61 FROM tab0 AS cor0
----
143
62
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT ALL - col1 DIV cor0.col1 + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
51
53
75
skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - col1 / cor0.col1 + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
51
53
75
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - + cor0.col0 + + 48 + col1 FROM tab0 AS cor0
----
110
110
50
query I rowsort
SELECT + col2 + + ( cor0.col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT DISTINCT - cor0.col0 - - col1 * col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT - cor0.col0 - - col1 * col2 / + col2 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT col0 + ( cor0.col0 ) * col2 - col2 * + ( col0 ) FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT + col1 + + cor0.col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-6432
SELECT + col1 + + cor0.col0 / + col2 AS col0 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6433
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 - 76 AS col2 FROM tab0 AS cor0
----
-41
-52
13
query I rowsort
SELECT DISTINCT col2 + 29 * - col0 * col2 FROM tab1 AS cor0
----
-105735
-222624
-4644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col1 * col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT CAST( NULL AS SIGNED ) + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6437
SELECT CAST ( NULL AS INTEGER ) + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col1 * + col0 + - 42 AS col2 FROM tab2 AS cor0
----
1301
175
4560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6440
SELECT DISTINCT cor0.col1 + + col1 DIV col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT cor0.col1 + + col1 / col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT DISTINCT + 62 + - col1 FROM tab2 cor0
----
3
31
45
query I rowsort
SELECT - + 67 AS col0 FROM tab0 cor0
----
-67
-67
-67
query I rowsort
SELECT - ( 94 ) * tab0.col0 + + col2 * col0 + tab0.col2 * + col0 * + ( - col1 ) FROM tab0
----
-6650
-665186
-69576
query I rowsort
SELECT DISTINCT + col1 - + ( + col2 ) FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL + 66 * col1 AS col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT + - cor0.col0 + + col0 + - 73 FROM tab2 AS cor0
----
-73
-73
-73
query I rowsort
SELECT + - col0 + + col2 * col0 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
185
3594
7613
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * + ( col2 ) * + cor0.col2 FROM tab2 cor0
----
114155
5110
52806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * col0 col2 FROM tab0 AS cor0
----
-1776
-2590
-6586
query I rowsort
SELECT 65 + col1 FROM tab2 AS cor0
----
124
82
96
query I rowsort
SELECT + cor0.col1 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col2 + - ( + col2 ) * col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col2 + - 90 + + 21 AS col2 FROM tab1 cor0
----
-123
-126
-165
query I rowsort
SELECT - 83 * - 88 FROM tab1, tab2 cor0
----
9 values hashing to 5aabb6b822c60f28854c1e91014eeb91
query I rowsort
SELECT - col1 * - 94 FROM tab1 cor0
----
1222
2444
940
query I rowsort
SELECT + cor0.col0 * cor0.col1 + + col0 * col1 AS col2 FROM tab2 cor0
----
2686
434
9204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( col2 ) + 79 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col2 ) + 79 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT 14 * + col0 FROM tab0 AS cor0
----
1246
336
490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6461
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
query I rowsort
SELECT + ( + col2 ) + col2 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT DISTINCT + 64 DIV + cor0.col0 FROM tab0, tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 64 / + cor0.col0 FROM tab0, tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - 68 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1466
578
769
query I rowsort
SELECT ( 7 * - tab1.col0 ) AS col0 FROM tab1
----
-21
-448
-560
query I rowsort
SELECT DISTINCT + tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + 39 col2 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT - 59 + + 8 AS col2 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - + col2 + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - + 83 * + 40 FROM tab1 AS cor0
----
-3320
query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col2 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL + - col2 + - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + col0 * ( col0 + cor0.col0 ) * col0 AS col1 FROM tab2 AS cor0
----
686
949104
986078
query I rowsort
SELECT + 10 * - 39 + col1 * col0 * - col0 FROM tab2 AS cor0
----
-106487
-1909
-359346
query I rowsort
SELECT ALL + 15 * 71 FROM tab2 AS cor0
----
1065
1065
1065
query I rowsort
SELECT ALL + 18 + - 18 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6479
SELECT - CAST( - col0 AS SIGNED ) * - col2 + - ( - col1 + col2 ) AS col0 FROM tab2 AS cor0
----
-185
-1995
-3023
skipif mysql # not compatible
query I rowsort label-6479
SELECT - CAST ( - col0 AS INTEGER ) * - col2 + - ( - col1 + col2 ) AS col0 FROM tab2 AS cor0
----
-185
-1995
-3023
onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT DISTINCT + 18 DIV col0 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + 18 / col0 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL + 23 AS col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT + cor0.col1 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + 18 * + col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL + cor0.col2 * - col2 + col0 * col2 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT ALL col1 - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * - 36 + - col2 AS col2 FROM tab0
----
-3129
-3358
-3493
query I rowsort
SELECT - 29 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT DISTINCT + ( - tab2.col2 ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL - - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col0 * - col0 * + col1 FROM tab1
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT DISTINCT - cor0.col2 * col0 + col1 * col2 + CAST( - ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2079
246
63
skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - cor0.col2 * col0 + col1 * col2 + CAST ( - ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2079
246
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL - col0 DIV - 40 AS col2 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - col0 / - 40 AS col2 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT 90 + - cor0.col1 FROM tab1, tab2 AS cor0
----
31
59
73
query I rowsort
SELECT tab2.col1 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT tab1.col0 + + col0 + - col0 FROM tab1
----
3
64
80
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col1 * cor0.col0 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL col0 - 68 * col1 AS col0 FROM tab0
----
-5824
-6099
-6561
query I rowsort
SELECT ALL - 98 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT - col1 * - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - ( - col0 ) AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - + col0 * - col0 + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + col1 * 82 + cor0.col1 FROM tab1 cor0
----
1079
2158
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT ALL + + 55 DIV col2 + cor0.col2 * ( - col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-399
1536
2755
skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + + 55 / col2 + cor0.col2 * ( - col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-399
1536
2755
query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL tab0.col2 - tab0.col0 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT col0 * col1 + - col2 DIV col1 + + col2 FROM tab1
----
1129
130
692
skipif mysql # not compatible
query I rowsort label-6509
SELECT col0 * col1 + - col2 / col1 + + col2 FROM tab1
----
1129
130
692
query I rowsort
SELECT ALL - ( col1 ) + + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * ( col1 + col0 ) FROM tab1
----
-4736
-7440
-87
query I rowsort
SELECT DISTINCT + tab1.col0 * - col2 + col2 * 46 FROM tab1
----
-1026
-3264
2322
onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT + col1 + + col1 DIV - tab1.col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-6513
SELECT + col1 + + col1 / - tab1.col0 FROM tab1
----
10
13
18
query I rowsort
SELECT DISTINCT 69 * + col1 + col1 + col1 * 75 FROM tab1
----
1450
1885
3770
query I rowsort
SELECT DISTINCT col0 * - tab2.col2 + - col0 * col2 FROM tab2
----
-378
-4056
-6004
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + col1 + + 71 FROM tab2 AS cor0
----
102
130
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6518
SELECT DISTINCT + - ( + 38 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + - ( + 38 ) / - col1 AS col2 FROM tab0 AS cor0
----
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0 WHERE NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 - cor0.col2 * + 60 col0 FROM tab0 AS cor0
----
-12218
-2772
-95
query I rowsort
SELECT ALL - ( + col2 ) - - col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT 53 + col1 FROM tab1
----
63
66
79
query I rowsort
SELECT 96 * col2 + tab2.col0 * 87 FROM tab2
----
10521
3201
9282
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) * - cor0.col2 * 96 col0 FROM tab0 AS cor0
----
-3360
-700608
-76032
query I rowsort
SELECT ALL + 40 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 6437ca8040a6463bd67a07092ce5ffb6
query I rowsort
SELECT - cor0.col0 * + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1
query I rowsort
SELECT ALL - col0 * col1 * - col1 + col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT DISTINCT col1 - - 77 AS col2 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col2 * + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - cor0.col2 * col1 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT ALL + col1 + ( col0 + col1 ) AS col1 FROM tab2 AS cor0
----
113
196
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 51 col1 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT ALL - col0 + + 81 * + col0 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT DISTINCT + - cor0.col2 * - cor0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col1 + col0 - ( col2 ) FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT + col2 * + 62 AS col2 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT + col0 * + col2 * 31 FROM tab2 AS cor0
----
5859
62868
93062
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 col2 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT ( col1 ) * col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 2 FROM tab2, tab2 AS cor0
----
2
query I rowsort
SELECT - ( + tab0.col1 ) + - col0 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - - col1 * + col1 + ( - col1 ) + col2 FROM tab2 AS cor0
----
310
3448
957
query I rowsort
SELECT ALL 79 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT DISTINCT - col0 + + col1 * + CAST( + ( - col2 ) + col2 AS SIGNED ) FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - col0 + + col1 * + CAST ( + ( - col2 ) + col2 AS INTEGER ) FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab1.col2 * - col2 * 99 + - col2 col1 FROM tab1
----
-288712
-321698
-912467
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 + + col1 * col2 col1 FROM tab0 cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL col0 + col1 * + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + 39 + - col1 * - col2 + - col2 AS col1 FROM tab1
----
1191
1389
552
query I rowsort
SELECT DISTINCT - 15 FROM tab0, tab1 AS cor0
----
-15
query I rowsort
SELECT DISTINCT - ( - col1 ) + col1 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT ALL - ( 85 ) * + col1 * col1 AS col1 FROM tab1 AS cor0
----
-14365
-57460
-8500
query I rowsort
SELECT - + cor0.col1 + + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT 58 * - col1 FROM tab1 cor0
----
-1508
-580
-754
query I rowsort
SELECT + - col2 * + 20 * col2 FROM tab2 AS cor0
----
-13520
-14580
-28880
query I rowsort
SELECT ALL col1 * ( - tab0.col0 * - col1 ) FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT 37 * - col1 FROM tab0
----
-3182
-3367
-3589
query I rowsort
SELECT DISTINCT - - ( 94 ) + + col0 * - 36 AS col1 FROM tab1 AS cor0
----
-14
-2210
-2786
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + col2 - - col2 FROM tab1 AS cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + col2 - - col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL + col1 + + col2 DIV col2 + + col0 AS col2 FROM tab0 AS cor0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + col1 + + col2 / col2 + + col0 AS col2 FROM tab0 AS cor0
----
111
133
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 + + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL - 88 * - 45 FROM tab1 AS cor0
----
3960
3960
3960
query I rowsort
SELECT + ( + 4 ) FROM tab0 AS cor0
----
4
4
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT DISTINCT + - col1 + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT + - col1 + col2 / - col1 AS col1 FROM tab2 AS cor0
----
-19
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT DISTINCT + + col0 + + 65 * col0 DIV + 65 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT + + col0 + + 65 * col0 / + 65 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + 91 + - 21 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT ALL - 63 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 28 col0 FROM tab2, tab1, tab0 AS cor0
----
-28
query I rowsort
SELECT ALL - col2 * - col1 + 43 FROM tab0 AS cor0
----
140
2881
7505
query I rowsort
SELECT - ( - 94 ) FROM tab1
----
94
94
94
query I rowsort
SELECT + ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 31 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - col0 * ( col0 ) FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * col0 col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + ( cor0.col0 ) + + 3 AS col0 FROM tab1 AS cor0
----
6
67
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT cor0.col1 + - ( col0 ) DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-6580
SELECT cor0.col1 + - ( col0 ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + - col2 * + col2 + - col1 * col0 + 94 AS col0 FROM tab2 AS cor0
----
-2693
-5184
-852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 8 col1 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT + col2 + ( col1 ) + col1 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT - + col2 + col1 DIV - col0 col0 FROM tab2 AS cor0
----
-26
-31
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6584
SELECT - + col2 + col1 / - col0 col0 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT col2 * 24 + - col1 AS col1 FROM tab2 AS cor0
----
565
617
895
query I rowsort
SELECT tab0.col2 + - ( 56 ) FROM tab0
----
-23
-55
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6587
SELECT CAST( cor0.col0 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-6587
SELECT CAST ( cor0.col0 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( col0 ) - ( col1 ) FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( + 26 ) col1 FROM tab1 AS cor0
----
122
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( 74 ) + + col1 col0 FROM tab2 AS cor0
----
-1865
-1967
-2795
query I rowsort
SELECT - ( + 0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + 68 * + col1 * - col0 FROM tab2
----
-14756
-312936
-91324
query I rowsort
SELECT ALL - - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - col2 * col0 + + col1 * - cor0.col0 + - ( - col2 ) AS col2 FROM tab0 cor0
----
-15315
-2823
-3429
onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ALL + + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + + col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + col0 col2 FROM tab0 AS cor0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT cor0.col1 DIV + cor0.col0 AS col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6597
SELECT cor0.col1 / + cor0.col0 AS col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT ALL - col1 * + col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - cor0.col2 + 99 AS col0 FROM tab1 AS cor0
----
153
156
195
query I rowsort
SELECT ( + 95 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT ALL + - cor0.col0 DIV 26 col1 FROM tab1 AS cor0
----
-2
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + - cor0.col0 / 26 col1 FROM tab1 AS cor0
----
-2
-3
0
query I rowsort
SELECT - 48 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
480
624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * + tab1.col2 * - col0 col2 FROM tab1
----
142272
299520
6318
query I rowsort
SELECT tab0.col2 * - 33 FROM tab0
----
-1089
-2706
-33
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT col0 * - col0 * - col2 FROM tab2
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT DISTINCT 83 DIV + 36 FROM tab1
----
2
skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT 83 / + 36 FROM tab1
----
2
query I rowsort
SELECT + 58 * col0 + ( + col2 ) * col2 + - ( col0 ) FROM tab2 AS cor0
----
1128
5122
5947
query I rowsort
SELECT + - col2 * col1 - col1 * + col2 FROM tab1 cor0
----
-1140
-2496
-2808
query I rowsort
SELECT DISTINCT + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT - 30 + col1 + - col1 DIV 50 AS col1 FROM tab2 AS cor0
----
-13
1
28
skipif mysql # not compatible
query I rowsort label-6612
SELECT - 30 + col1 + - col1 / 50 AS col1 FROM tab2 AS cor0
----
-13
1
28
query I rowsort
SELECT ALL + + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT DISTINCT - col0 DIV 50 AS col0 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - col0 / 50 AS col0 FROM tab0
----
-1
0
query I rowsort
SELECT ALL + ( + col1 * - col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL 1 * tab2.col2 AS col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL 79 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-50560
-6162
-82160
query I rowsort
SELECT ALL + ( - col2 ) * col2 + 34 AS col2 FROM tab0 AS cor0
----
-1055
-6690
33
query I rowsort
SELECT ALL - ( col2 ) + + ( cor0.col0 ) FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + - 95 col0 FROM tab0 AS cor0
----
-2159
-3490
-8194
query I rowsort
SELECT DISTINCT + 79 + - cor0.col1 FROM tab0 cor0
----
-12
-18
-7
query I rowsort
SELECT 3 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT + 31 + + col1 AS col0 FROM tab1
----
41
44
57
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT + ( - col0 * col0 ) + - col0 AS col2 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT col1 * col0 + + tab1.col2 + + col1 FROM tab1
----
1149
158
707
query I rowsort
SELECT ALL - col1 * col2 - - 66 AS col2 FROM tab2
----
-1468
-580
-771
onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT ALL + col0 + col0 DIV col2 - - col0 col0 FROM tab0
----
105
179
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL + col0 + col0 / col2 - - col0 col0 FROM tab0
----
105
179
48
query I rowsort
SELECT DISTINCT + tab1.col0 * - 26 FROM tab1, tab2, tab2 AS cor0, tab0
----
-1664
-2080
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT DISTINCT - col2 + - col2 DIV col2 - - tab0.col1 * tab0.col1 FROM tab0
----
7362
8198
9407
skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - col2 + - col2 / col2 - - tab0.col1 * tab0.col1 FROM tab0
----
7362
8198
9407
query I rowsort
SELECT DISTINCT 88 + col2 FROM tab1
----
142
145
184
onlyif mysql # use DIV operator for integer division
query I rowsort label-6633
SELECT ALL 91 + col1 * col0 DIV - col0 col1 FROM tab2
----
32
60
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL 91 + col1 * col0 / - col0 col1 FROM tab2
----
32
60
74
query I rowsort
SELECT - ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT ALL - col2 DIV + col1 + + col2 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - col2 / + col1 + + col2 FROM tab2 AS cor0
----
26
27
36
query I rowsort
SELECT DISTINCT + 40 * + 42 + + col0 AS col1 FROM tab2 AS cor0
----
1687
1758
1759
query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 + - ( 32 ) AS col0 FROM tab0 AS cor0
----
1193
544
7889
query I rowsort
SELECT ALL tab0.col2 * - 77 + + col0 * - col2 AS col0 FROM tab0
----
-112
-13612
-3333
query I rowsort
SELECT + col1 + 29 FROM tab1
----
39
42
55
query I rowsort
SELECT DISTINCT + col1 + - 10 FROM tab1
----
0
16
3
query I rowsort
SELECT + col2 + col0 * + 74 FROM tab0
----
1809
2591
6668
query I rowsort
SELECT DISTINCT ( - ( - cor0.col1 ) ) + + 11 - col1 FROM tab1 cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT DISTINCT + + 78 DIV col1 FROM tab1 AS cor0
----
3
6
7
skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + + 78 / col1 FROM tab1 AS cor0
----
3
6
7
query I rowsort
SELECT DISTINCT col0 * + 27 AS col2 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT ALL + + 5 + ( + col0 ) * + 24 FROM tab0 AS cor0
----
2141
581
845
query I rowsort
SELECT ALL + 82 - col0 AS col0 FROM tab0 AS cor0
----
-7
47
58
query I rowsort
SELECT DISTINCT - cor0.col0 - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + 29 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-260
-3452
-932
query I rowsort
SELECT DISTINCT + col0 * 65 AS col1 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT ALL 98 * 70 + col1 AS col2 FROM tab0 AS cor0
----
6946
6951
6957
query I rowsort
SELECT + cor0.col0 * - ( + 5 ) FROM tab0 cor0
----
-120
-175
-445
query I rowsort
SELECT - col1 * tab2.col1 + - col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT ALL - col2 * + ( - 8 + - col0 ) AS col0 FROM tab0
----
1056
43
7954
query I rowsort
SELECT 99 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT + col1 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col2 * + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT CAST( - 15 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
skipif mysql # not compatible
query I rowsort label-6657
SELECT CAST ( - 15 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT ALL + - col1 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + - col1 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 97 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL - + col2 + + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + col1 + + 74 FROM tab2 AS cor0
----
105
133
91
query I rowsort
SELECT - ( + col2 ) * col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * col1 + - cor0.col2 AS col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - 18 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
1
33
82
query I rowsort
SELECT col2 * col2 + + ( col2 ) FROM tab0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - col0 col1 FROM tab0 cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * + col0 col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col0 + col0 * + 73 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT DISTINCT 41 * - col2 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 * + 33 AS col2 FROM tab2 AS cor0
----
151866
44319
7161
query I rowsort
SELECT - tab1.col1 * col0 + col0 * col0 FROM tab1
----
-69
3456
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6674
SELECT CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-6674
SELECT CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + - 90 * col2 + 46 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-1272
24310
39200
query I rowsort
SELECT + + 50 * - col2 AS col1 FROM tab1 AS cor0
----
-2700
-2850
-4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab1
----
90
90
90
query I rowsort
SELECT DISTINCT 75 * col2 AS col2 FROM tab2
----
1950
2025
2850
query I rowsort
SELECT DISTINCT + - ( - cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 * cor0.col2 * - 63 col2 FROM tab0 AS cor0
----
-166320
-413280
-5040
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + - col2 col1 FROM tab0 AS cor0
----
-128
-177
-96
query I rowsort
SELECT + + col0 + + col2 * col2 + col1 * col2 FROM tab0 AS cor0
----
133
14275
3951
query I rowsort
SELECT 22 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6685
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT - col1 + CAST( NULL AS SIGNED ) + 58 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6686
SELECT - col1 + CAST ( NULL AS INTEGER ) + 58 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * 27 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT - CAST( - 93 AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
103
106
119
skipif mysql # not compatible
query I rowsort label-6689
SELECT - CAST ( - 93 AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT DISTINCT + col0 * + col1 + col2 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + col0 * + col1 + col2 / - cor0.col2 AS col0 FROM tab0 cor0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 FROM tab2 cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT col2 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6693
SELECT col2 + col2 / col0 AS col2 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT + 0 * 16 DIV col1 - - ( - 83 ) FROM tab0 AS cor0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort label-6694
SELECT + 0 * 16 / col1 - - ( - 83 ) FROM tab0 AS cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6695
SELECT ALL + col1 * 23 + + col0 * CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + col1 * 23 + + col0 * 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 DISTINCT + - 36 * + col0 col1 FROM tab2 AS cor0
----
-252
-2808
-2844
query I rowsort
SELECT + col2 * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6700
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6702
SELECT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6702
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 17 + col0 * + col0 + col1 FROM tab2 AS cor0
----
6160
6275
97
query I rowsort
SELECT 43 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL 84 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT DISTINCT CAST( - 14 AS SIGNED ) + cor0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
17
3
45
skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT CAST ( - 14 AS INTEGER ) + cor0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
17
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT col2 * col1 DIV col0 AS col2 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-6707
SELECT col2 * col1 / col0 AS col2 FROM tab0
----
118
2
83
query I rowsort
SELECT - tab2.col1 * - tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT col0 * + 4 + col0 FROM tab2
----
35
390
395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT 7 + col2 * + col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6710
SELECT 7 + col2 * + col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( col0 ) + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT cor0.col0 * ( - col1 ) * + col1 - - cor0.col1 * col2 FROM tab0 AS cor0
----
-174666
-329218
-729547
onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV col0 + col0 * + col2 + col0 FROM tab1 AS cor0
----
173
3712
7760
skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / col0 + col0 * + col2 + col0 FROM tab1 AS cor0
----
173
3712
7760
query I rowsort
SELECT + 80 * 63 - col2 AS col1 FROM tab0 AS cor0
----
4958
5007
5039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + - col0 col2 FROM tab2 AS cor0
----
-167
-168
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col0 + col0 * + cor0.col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + ( + col2 ) + + col1 * col2 * + col0 FROM tab2
----
119678
51072
5886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT cor0.col2 DIV col1 + + 57 * - cor0.col1 AS col2 FROM tab1 cor0
----
-1480
-565
-734
skipif mysql # not compatible
query I rowsort label-6719
SELECT cor0.col2 / col1 + + 57 * - cor0.col1 AS col2 FROM tab1 cor0
----
-1480
-565
-734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT ALL 29 * - tab1.col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 29 * - tab1.col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2, tab2 AS cor0
----
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * + col1 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + col2 * - col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT col2 + + 8 * + 60 FROM tab1 AS cor0
----
534
537
576
query I rowsort
SELECT DISTINCT col0 - col1 * + cor0.col1 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT ALL - col2 - + ( - cor0.col0 + + col2 ) AS col2 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab1, tab1 AS cor0
----
15
query I rowsort
SELECT DISTINCT - col2 + + 17 * cor0.col1 AS col0 FROM tab0 AS cor0
----
1429
1465
1648
query I rowsort
SELECT cor0.col1 + 97 FROM tab1 AS cor0
----
107
110
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT ALL - + col0 DIV 40 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - + col0 / 40 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT + - col0 + - col2 * + col1 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + col0 * + col0 * + col0 FROM tab0 cor0
----
13824
42875
704969
query I rowsort
SELECT + - col2 + ( + cor0.col1 * + col1 + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
330
3533
941
query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) + col1 * + col2 * col1 FROM tab1 AS cor0
----
2052
36342
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT DISTINCT col2 * col1 DIV col0 + col0 * + col2 + - col2 * col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
3292
624
7105
skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT col2 * col1 / col0 + col0 * + col2 + - col2 * col0 / + col1 AS col2 FROM tab1 AS cor0
----
3292
624
7105
query I rowsort
SELECT col1 + - 63 * - col2 FROM tab0 cor0
----
160
2165
5257
query I rowsort
SELECT ALL + col0 * col0 * + 8 FROM tab1 AS cor0
----
32768
51200
72
query I rowsort
SELECT - - cor0.col0 * 54 AS col2 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT ALL + 23 * - 52 AS col2 FROM tab0 AS cor0
----
-1196
-1196
-1196
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT ALL col1 DIV + col2 + col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-118728
-49534
-720810
skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL col1 / + col2 + col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-118728
-49534
-720810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + ( col2 ) + col2 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 31 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT col0 + + 57 DIV - col1 AS col0 FROM tab1
----
1
59
76
skipif mysql # not compatible
query I rowsort label-6743
SELECT col0 + + 57 / - col1 AS col0 FROM tab1
----
1
59
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + ( - col0 * col2 ) col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT col2 * - col2 + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6745
SELECT col2 * - col2 + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * + 78 FROM tab1 AS cor0
----
-109512
-44460
-97344
query I rowsort
SELECT - cor0.col1 * + col1 * ( col1 ) + - col1 * cor0.col1 FROM tab1 AS cor0
----
-1100
-18252
-2366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + 23 col2 FROM tab2 AS cor0
----
-166
-2005
-2979
query I rowsort
SELECT ALL - col0 + + col1 * - 26 * col2 AS col1 FROM tab2 AS cor0
----
-16875
-21769
-39962
query I rowsort
SELECT col0 + + col0 * - 53 AS col1 FROM tab0
----
-1248
-1820
-4628
query I rowsort
SELECT DISTINCT - 32 + col2 AS col2 FROM tab1
----
22
25
64
query I rowsort
SELECT DISTINCT col2 * col2 + ( 97 * + col2 ) AS col1 FROM tab2
----
3198
3348
5130
query I rowsort
SELECT + col2 + - col1 * - col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - + col1 * col1 + + col0 * col1 * col0 FROM tab0 AS cor0
----
109416
42140
712530
query I rowsort
SELECT DISTINCT 57 + + col2 * col2 + - ( + col1 ) * - tab1.col2 AS col0 FROM tab1
----
10521
3876
4377
query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 * + col0 + - col1 * col2 + + col2 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6758
SELECT ALL 8 * col1 + + CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL 8 * col1 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col2 + - 52 * - col2 + + col0 * col1 FROM tab1
----
4174
4290
7280
query I rowsort
SELECT col1 * col0 + - ( + 51 * + col0 ) FROM tab2
----
-140
-2686
624
query I rowsort
SELECT ( + col1 ) * 70 FROM tab0
----
6020
6370
6790
query I rowsort
SELECT - col1 + col2 * + tab0.col0 + ( tab0.col0 ) * - col0 AS col1 FROM tab0
----
-1287
-714
130
query I rowsort
SELECT DISTINCT + 91 FROM tab2, tab1, tab1 AS cor0
----
91
query I rowsort
SELECT + cor0.col1 + tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b4f1c386be87fcd5849dc0c2155c8ce7
query I rowsort
SELECT col1 * col1 * + col0 + 18 FROM tab0
----
177522
329333
737027
query I rowsort
SELECT - tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - cor1.col2 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col1 + col0 * - col1 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT ALL + col0 * - cor0.col0 + 78 AS col0 FROM tab2 AS cor0
----
-6006
-6163
29
query I rowsort
SELECT DISTINCT 18 FROM tab0, tab2, tab2 AS cor0
----
18
query I rowsort
SELECT ALL + 5 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT + col2 + + 28 FROM tab2
----
54
55
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT DISTINCT - col0 DIV + 2 + + col2 * col0 col0 FROM tab0
----
18
7254
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - col0 / + 2 + + col2 * col0 col0 FROM tab0
----
18
7254
780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6774
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2, 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-6774
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 26 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT - col0 * col0 - - col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - col0 * cor0.col2 + + col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + col0 * - col2 * + 38 AS col0 FROM tab1 AS cor0
----
-138624
-291840
-6156
query I rowsort
SELECT col0 * + 56 + + 52 + col1 * col1 * col2 AS col2 FROM tab0 AS cor0
----
11421
245464
684078
query I rowsort
SELECT 47 + cor0.col1 FROM tab2 AS cor0
----
106
64
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT - - CAST( NULL AS DECIMAL ) * col2 + col0 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-6781
SELECT - - CAST ( NULL AS REAL ) * col2 + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT DISTINCT - col2 + col2 DIV - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - col2 + col2 / - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + 75 AS col1 FROM tab2 AS cor0
----
75
75
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT - ( - 91 ) DIV cor0.col2 + - col1 FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-6784
SELECT - ( - 91 ) / cor0.col2 + - col1 FROM tab1 AS cor0
----
-13
-25
-9
query I rowsort
SELECT DISTINCT + - col1 + + 66 AS col0 FROM tab2 AS cor0
----
35
49
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT col1 DIV 93 + - col2 + col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6786
SELECT col1 / 93 + - col2 + col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT + CAST( col2 AS SIGNED ) * col2 + col2 FROM tab1 cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-6787
SELECT + CAST ( col2 AS INTEGER ) * col2 + col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT 20 - + col1 FROM tab0
----
-66
-71
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT + CAST( NULL AS SIGNED ) * + tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6789
SELECT + CAST ( NULL AS INTEGER ) * + tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 31 * 67 + + cor0.col0 + col0 AS col0 FROM tab2 cor0
----
2091
2233
2235
query I rowsort
SELECT ( col2 ) + + col1 + col2 * + col1 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT ALL col2 * 47 AS col1 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT DISTINCT + cor1.col2 + + 54 * 10 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
594
597
636
query I rowsort
SELECT - cor0.col2 + - col1 + col0 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT ALL + 63 * cor0.col2 * + 14 - col0 AS col1 FROM tab0 AS cor0
----
29082
72235
847
query I rowsort
SELECT ALL col0 + - col0 - ( + ( col0 ) ) * 44 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476
onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT ALL - - col2 DIV col1 col2 FROM tab1 cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - - col2 / col1 col2 FROM tab1 cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT - col1 + cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6798
SELECT - col1 + cor0.col0 / - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT - col1 DIV col1 + - ( col2 ) * + cor0.col0 FROM tab1 AS cor0
----
-163
-3649
-7681
skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - col1 / col1 + - ( col2 ) * + cor0.col0 FROM tab1 AS cor0
----
-163
-3649
-7681
query I rowsort
SELECT - + 50 * + col2 + 60 FROM tab0 AS cor0
----
-1590
-4040
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 55 * + col0 FROM tab1 AS cor0
----
165
3520
4400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT - - col0 + - col0 DIV + ( col0 ) FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6803
SELECT - - col0 + - col0 / + ( col0 ) FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT DISTINCT + - ( col0 ) * col1 + + col0 DIV - col2 FROM tab1 AS cor0
----
-1040
-641
-78
skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + - ( col0 ) * col1 + + col0 / - col2 FROM tab1 AS cor0
----
-1040
-641
-78
query I rowsort
SELECT - - col2 * - 56 FROM tab1 AS cor0
----
-3024
-3192
-5376
query I rowsort
SELECT + - col2 + ( + cor0.col0 ) * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT tab2.col1 * - tab2.col1 FROM tab2, tab0, tab1 cor0 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT 22 * col2 + - col2 * col0 DIV - col1 FROM tab1
----
1194
1618
2702
skipif mysql # not compatible
query I rowsort label-6808
SELECT 22 * col2 + - col2 * col0 / - col1 FROM tab1
----
1194
1618
2702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT - + col2 DIV col0 AS col2 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6809
SELECT - + col2 / col0 AS col2 FROM tab2 cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col2 FROM tab1
----
86
86
86
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT - - col0 - + col2 * - 43 AS col2 FROM tab0 AS cor0
----
1443
3615
78
query I rowsort
SELECT 27 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL - + col1 * 67 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + col0 * - 11 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT ALL cor0.col1 + 19 AS col1 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT + - col1 * 14 AS col1 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT ALL - col1 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT col0 * 27 AS col2 FROM tab1 cor0
----
1728
2160
81
query I rowsort
SELECT - col0 + + ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6822
SELECT ALL + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * col0 + ( - col2 ) + col0 FROM tab2
----
29
6136
6282
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT ALL cor0.col0 * - CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL cor0.col0 * - CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + - col2 * 7 AS col2 FROM tab1 AS cor0
----
-378
-399
-672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6826
SELECT - CAST( - tab0.col2 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif mysql # not compatible
query I rowsort label-6826
SELECT - CAST ( - tab0.col2 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT DISTINCT - ( tab2.col0 + CAST( + 95 AS SIGNED ) ) FROM tab2
----
-102
-173
-174
skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT - ( tab2.col0 + CAST ( + 95 AS INTEGER ) ) FROM tab2
----
-102
-173
-174
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT - + col0 * CAST( NULL AS SIGNED ) 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-6829
SELECT - + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + 77 * - 56 FROM tab1
----
-4232
-4248
-4309
onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT col1 - col0 DIV 35 AS col2 FROM tab0
----
86
89
96
skipif mysql # not compatible
query I rowsort label-6831
SELECT col1 - col0 / 35 AS col2 FROM tab0
----
86
89
96
query I rowsort
SELECT col0 * col1 * + tab1.col2 + col2 FROM tab1
----
36537
4266
99936
onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT + - col2 + col1 DIV + col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-6833
SELECT + - col2 + col1 / + col0 FROM tab1 AS cor0
----
-46
-57
-96
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 DISTINCT - col1 * - col2 + 89 AS col1 FROM tab1 AS cor0
----
1337
1493
659
query I rowsort
SELECT + col2 * col0 + ( + col0 ) FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col1 * + col1 * - col1 + - col2 AS col1 FROM tab2
----
-205405
-29818
-4951
query I rowsort
SELECT ALL + col2 + - tab2.col0 + col1 AS col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT DISTINCT - col0 + - col2 + + tab1.col2 FROM tab1
----
-3
-64
-80
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT DISTINCT - col1 * - col0 + col1 DIV tab2.col0 AS col2 FROM tab2
----
1343
221
4602
skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - col1 * - col0 + col1 / tab2.col0 AS col2 FROM tab2
----
1343
221
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT ALL + col0 DIV tab1.col1 + + col2 * col0 FROM tab1
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + col0 / tab1.col1 + + col2 * col0 FROM tab1
----
162
3654
7686
onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT - 22 * - tab2.col0 DIV + col0 - - 72 FROM tab2
----
94
94
94
skipif mysql # not compatible
query I rowsort label-6843
SELECT - 22 * - tab2.col0 / + col0 - - 72 FROM tab2
----
94
94
94
query I rowsort
SELECT - col1 + col0 * col1 * 19 FROM tab0
----
153790
39130
64408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + col2 * col2 + col2 col2 FROM tab0
----
-81
1039
6723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT DISTINCT cor0.col1 * cor0.col1 + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
157
265
730
skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT cor0.col1 * cor0.col1 + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT + ( + col0 ) + - ( col0 ) + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + + 26 + - col2 FROM tab1 AS cor0
----
-28
-31
-70
query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 99 ) * cor1.col1 * + 31 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bc87f17c5a1400ff9e89c31568ea5bba
onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT DISTINCT - - 59 DIV col2 col2 FROM tab0 AS cor0
----
0
1
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - - 59 / col2 col2 FROM tab0 AS cor0
----
0
1
59
query I rowsort
SELECT + col1 * + cor0.col2 + + col2 + - 19 * col1 FROM tab0 cor0
----
-1745
1237
5815
query I rowsort
SELECT ALL + - 69 + - cor0.col1 FROM tab0 AS cor0
----
-155
-160
-166
query I rowsort
SELECT + col2 * cor0.col0 + 73 + + col1 AS col2 FROM tab1 AS cor0
----
261
3731
7766
query I rowsort
SELECT cor0.col2 * col0 - - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + + ( + col2 ) + + col2 * col0 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 + 43 FROM tab0 AS cor0
----
129
134
140
query I rowsort
SELECT + - col0 + ( 66 ) FROM tab0 cor0
----
-23
31
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT DISTINCT - col1 + + col1 DIV cor0.col2 col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT - col1 + + col1 / cor0.col2 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col2 * - col1 - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT 53 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT DISTINCT + cor0.col1 * CAST( col1 AS SIGNED ) + + col0 col1 FROM tab1 AS cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + cor0.col1 * CAST ( col1 AS INTEGER ) + + col0 col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT ALL - + col0 * CAST( col1 * + col0 AS SIGNED ) + 76 FROM tab1 AS cor0
----
-158
-40884
-83124
skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - + col0 * CAST ( col1 * + col0 AS INTEGER ) + 76 FROM tab1 AS cor0
----
-158
-40884
-83124
query I rowsort
SELECT DISTINCT - col2 - 37 AS col2 FROM tab0 AS cor0
----
-119
-38
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT ALL + col1 DIV ( - col1 * col0 ) + 69 * - col0 AS col0 FROM tab1 AS cor0
----
-207
-4416
-5520
skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + col1 / ( - col1 * col0 ) + 69 * - col0 AS col0 FROM tab1 AS cor0
----
-207
-4416
-5520
query I rowsort
SELECT DISTINCT col1 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT + 20 + - col0 FROM tab2
----
-58
-59
13
query I rowsort
SELECT ALL ( col2 ) + - col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - ( + 9 * col0 ) + col1 * col2 AS col2 FROM tab2
----
-65
774
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT DISTINCT - col1 DIV - cor0.col0 AS col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - col1 / - cor0.col0 AS col0 FROM tab0 cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + + col0 * - 97 AS col2 FROM tab2 AS cor0
----
-679
-7566
-7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 * + ( col1 ) col0 FROM tab0 AS cor0
----
5676
6006
6402
query I rowsort
SELECT + col2 * + cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL col1 + col1 - + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - 73 + + col1 AS col0 FROM tab2 AS cor0
----
104
132
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT DISTINCT + - col2 DIV col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + - col2 / col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT ALL + col2 + + cor0.col2 DIV - ( col0 ) AS col0 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + col2 + + cor0.col2 / - ( col0 ) AS col0 FROM tab1 AS cor0
----
36
57
95
query I rowsort
SELECT + 99 + - col0 * col0 FROM tab2 AS cor0
----
-5985
-6142
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT DISTINCT + + col0 * - cor0.col2 + col1 - col0 DIV col1 AS col0 FROM tab1 cor0
----
-136
-3644
-7673
skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT + + col0 * - cor0.col2 + col1 - col0 / col1 AS col0 FROM tab1 cor0
----
-136
-3644
-7673
query I rowsort
SELECT DISTINCT cor0.col2 + col1 + - col0 AS col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT ALL + 16 - - col0 AS col1 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT 21 + + col0 FROM tab2 AS cor0
----
100
28
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT col0 DIV + 30 AS col2 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-6885
SELECT col0 / + 30 AS col2 FROM tab2
----
0
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT + col1 + + col1 * - col2 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6886
SELECT + col1 + + col1 * - col2 / col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT + - col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6887
SELECT + - col2 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 40 + col1 * + col1 FROM tab0
----
7356
8241
9369
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 87 + - col2 FROM tab0
----
5
54
86
query I rowsort
SELECT ALL tab2.col1 * col1 * + col0 AS col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL col0 * col2 * + col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - col0 + + cor0.col2 * - col2 FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + tab2.col2 * + cor0.col2 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 994244f565b077d9bfe0a9efd8b9bf4b
query I rowsort
SELECT tab2.col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + col1 + col0 * - col1 * - col0 AS col1 FROM tab0
----
118922
49622
720902
query I rowsort
SELECT ALL 97 - col2 AS col0 FROM tab1
----
1
40
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT ALL + 63 - + col1 DIV col1 AS col2 FROM tab2
----
62
62
62
skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL + 63 - + col1 / col1 AS col2 FROM tab2
----
62
62
62
query I rowsort
SELECT DISTINCT ( - col2 + + col2 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT + - col2 * cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ( 55 + col2 ) FROM tab1
----
109
112
151
query I rowsort
SELECT - col0 * col2 - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + col0 * + col0 + col1 AS col2 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT - - col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - 65 + col1 AS col1 FROM tab1 AS cor0
----
-39
-52
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col2 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + 16 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
17
49
98
query I rowsort
SELECT + 76 * col0 FROM tab2 AS cor0
----
532
5928
6004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - col1 col1 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT - cor0.col0 DIV + col1 + col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-6911
SELECT - cor0.col0 / + col1 + col1 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT DISTINCT + - 86 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
11
5
query I rowsort
SELECT - col0 * + col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT DISTINCT tab1.col2 DIV - col2 + col0 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT tab1.col2 / - col2 + col0 AS col0 FROM tab1
----
2
63
79
query I rowsort
SELECT + col0 - + col2 * col2 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT * FROM tab2 WHERE - col1 * col1 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT tab1.col2 DIV + col1 + col0 AS col1 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-6917
SELECT tab1.col2 / + col1 + col0 AS col1 FROM tab1
----
5
69
87
query I rowsort
SELECT col2 * + col2 - col2 * col0 AS col0 FROM tab1 WHERE NOT - col2 NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT col2 DIV + col1 AS col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6919
SELECT col2 / + col1 AS col1 FROM tab2 cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT col1 * col1 * col1 + col2 DIV col1 FROM tab0
----
636056
753571
912673
skipif mysql # not compatible
query I rowsort label-6920
SELECT col1 * col1 * col1 + col2 / col1 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col2 * tab1.col2 + - col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL - col2 * col0 * col0 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + tab1.col0 col0 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT ALL - col0 DIV col1 + - col2 * tab0.col0 + - tab0.col1 AS col0 FROM tab0
----
-132
-7389
-878
skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - col0 / col1 + - col2 * tab0.col0 + - tab0.col1 AS col0 FROM tab0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * - tab0.col2 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col1 + + col0 )
----
query I rowsort
SELECT col0 * - col0 * col2 AS col2 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT col0 DIV - col1 + tab0.col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6928
SELECT col0 / - col1 + tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab0.col0 - col2 * col2 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT ALL + tab0.col2 * + col1 - col2 DIV - col0 AS col0 FROM tab0
----
2839
7462
97
skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + tab0.col2 * + col1 - col2 / - col0 AS col0 FROM tab0
----
2839
7462
97
query I rowsort
SELECT ALL col2 + col1 * + col0 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab0
----
172
182
194
query I rowsort
SELECT + col2 + col1 * - col1 * + col0 FROM tab2 AS cor0
----
-22793
-271492
-6700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL tab1.col0 * col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + cor0.col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 + tab2.col0 AS col1 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT DISTINCT col2 DIV + col2 + tab0.col2 * - 59 * + col2 AS col2 FROM tab0
----
-396715
-58
-64250
skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT col2 / + col2 + tab0.col2 * - 59 * + col2 AS col2 FROM tab0
----
-396715
-58
-64250
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT DISTINCT CAST( col0 AS SIGNED ) * col1 * ( ( col2 ) ) + - col1 AS col0 FROM tab1
----
36470
4186
99827
skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col1 * ( ( col2 ) ) + - col1 AS col0 FROM tab1
----
36470
4186
99827
query I rowsort
SELECT col2 + 71 FROM tab0
----
104
153
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT ALL + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT ALL + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 28 * col0 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT ALL + cor0.col0 * - col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + - col0 + + cor0.col0 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
36416
4209
99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT ALL col1 - + col1 DIV + col1 col0 FROM tab2 AS cor0
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL col1 - + col1 / + col1 col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT 89 * cor0.col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT ( - col0 ) - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT col0 * + col1 * + col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + 4 + + col0 AS col2 FROM tab2 AS cor0
----
11
82
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6953
SELECT DISTINCT + col1 * - col2 + + CAST( NULL AS SIGNED ) * 6 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + col1 * - col2 + + CAST ( NULL AS INTEGER ) * 6 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * + cor0.col1 col2 FROM tab1 AS cor0
----
182
70
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT - - cor0.col1 DIV col0 + 76 * - col1 AS col1 FROM tab2 cor0
----
-1292
-2352
-4484
skipif mysql # not compatible
query I rowsort label-6956
SELECT - - cor0.col1 / col0 + 76 * - col1 AS col1 FROM tab2 cor0
----
-1292
-2352
-4484
query I rowsort
SELECT ALL + col2 + - ( - col2 ) * col0 AS col1 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT DISTINCT tab1.col1 DIV - ( col2 ) + + col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT tab1.col1 / - ( col2 ) + + col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + - col1 col2 FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT - col0 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col2 * - ( + 68 ) + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-1886
-29
-594
query I rowsort
SELECT DISTINCT cor0.col1 * + 58 FROM tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT col1 + - col2 + col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT DISTINCT - cor0.col1 * + CAST( NULL AS SIGNED ) * 84 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT - cor0.col1 * + CAST ( NULL AS INTEGER ) * 84 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT + col1 + + ( 91 ) * - col2 + 17 DIV - ( cor0.col2 + 77 ) AS col1 FROM tab1 AS cor0
----
-4888
-5177
-8723
skipif mysql # not compatible
query I rowsort label-6967
SELECT + col1 + + ( 91 ) * - col2 + 17 / - ( cor0.col2 + 77 ) AS col1 FROM tab1 AS cor0
----
-4888
-5177
-8723
query I rowsort
SELECT + col2 * col1 - + col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + 5 * col0 FROM tab1
----
15
320
400
query I rowsort
SELECT + col2 - - 91 FROM tab0 AS cor0
----
124
173
92
query I rowsort
SELECT ALL + + col2 * + ( - ( + col1 ) ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col1 - 91 * + cor0.col2 FROM tab1 AS cor0
----
-4940
-5197
-8749
query I rowsort
SELECT ALL ( 55 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT col1 DIV - tab1.col1 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6974
SELECT col1 / - tab1.col1 AS col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT cor0.col1 + - 43 + + cor0.col1 DIV + 46 FROM tab0 AS cor0
----
44
49
56
skipif mysql # not compatible
query I rowsort label-6975
SELECT cor0.col1 + - 43 + + cor0.col1 / + 46 FROM tab0 AS cor0
----
44
49
56
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1, tab0 cor0, tab2 cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 * ( - col2 ) - col0 FROM tab1 AS cor0
----
-14160
-174
-7808
onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT DISTINCT + + col1 * - col1 - + col2 DIV 27 col1 FROM tab0 AS cor0
----
-7397
-8284
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + + col1 * - col1 - + col2 / 27 col1 FROM tab0 AS cor0
----
-7397
-8284
-9409
query I rowsort
SELECT col0 + - 74 AS col1 FROM tab1 cor0
----
-10
-71
6
query I rowsort
SELECT DISTINCT + + col1 + 5 + + col0 FROM tab0 AS cor0
----
115
137
185
onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT ALL - tab1.col0 + 65 DIV - col2 AS col1 FROM tab1
----
-4
-65
-80
skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - tab1.col0 + 65 / - col2 AS col1 FROM tab1
----
-4
-65
-80
query I rowsort
SELECT col1 * col0 * - col1 + col1 * + 6 FROM tab2 cor0
----
-22729
-271164
-6541
query I rowsort
SELECT - col0 + ( col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 65 + - col2 FROM tab0 AS cor0
----
-17
32
64
query I rowsort
SELECT - + col1 * - col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT DISTINCT - col1 * col0 + col1 DIV cor0.col0 FROM tab0 cor0
----
-2061
-3393
-8098
skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - col1 * col0 + col1 / cor0.col0 FROM tab0 cor0
----
-2061
-3393
-8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-6987
SELECT ALL CAST( 89 AS SIGNED ) + - col0 DIV CAST( - ( + cor0.col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
124
89
90
skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL CAST ( 89 AS INTEGER ) + - col0 / CAST ( - ( + cor0.col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
124
89
90
query I rowsort
SELECT ALL + - ( col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + ( 68 ) AS col1 FROM tab0 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT + 17 + col1 DIV col1 AS col2 FROM tab2 cor0
----
18
18
18
skipif mysql # not compatible
query I rowsort label-6990
SELECT + 17 + col1 / col1 AS col2 FROM tab2 cor0
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT DISTINCT - col2 DIV + 37 col2 FROM tab1 AS cor0
----
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - col2 / + 37 col2 FROM tab1 AS cor0
----
-1
-2
query I rowsort
SELECT + col2 + - col1 + + col0 FROM tab2
----
100
3
45
query I rowsort
SELECT ALL + col0 + 78 * + ( col0 * tab1.col2 ) - - 12 FROM tab1
----
12651
284620
599132
query I rowsort
SELECT DISTINCT col2 - col2 * + tab0.col1 AS col2 FROM tab0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6995
SELECT - - CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6995
SELECT - - CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT DISTINCT col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL - ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + col1 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT col1 - - 97 FROM tab0 AS cor0
----
183
188
194
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col1 + - col1 * ( col2 ) FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT ALL + col1 DIV + col1 - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + col1 / + col1 - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT + col1 * - col0 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT ALL col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 + CAST ( + 66 AS REAL ) * cor0.col1 FROM tab1 AS cor0
----
1770
717
954
query I rowsort
SELECT DISTINCT col1 + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT + - cor0.col0 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - - col0 * col0 + - ( + col1 ) FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - + 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-7010
SELECT - - col2 * - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7010
SELECT - - col2 * - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 * - col2 - ( col0 + col1 ) col1 FROM tab0 AS cor0
----
-63
2167
5478
query I rowsort
SELECT - cor0.col2 * - col1 + col2 * + 34 * col0 FROM tab1 AS cor0
----
124602
262368
6912
query I rowsort
SELECT + + 49 - + col1 FROM tab1 AS cor0
----
23
36
39
query I rowsort
SELECT - col0 * col2 + ( + col2 * col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 85 * col1 FROM tab0
----
7310
7735
8245
query I rowsort
SELECT - col0 * - 5 * col0 AS col0 FROM tab1 AS cor0
----
20480
32000
45
query I rowsort
SELECT 80 * - col2 AS col1 FROM tab1 AS cor0
----
-4320
-4560
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT DISTINCT + col0 * 43 DIV - col2 FROM tab0 AS cor0
----
-1505
-31
-46
skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + col0 * 43 / - col2 FROM tab0 AS cor0
----
-1505
-31
-46
query I rowsort
SELECT ALL + cor1.col2 + cor1.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 027c3fd9ed9216284edfb65afa492ca7
query I rowsort
SELECT 55 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL col0 * 81 AS col1 FROM tab0
----
1944
2835
7209
onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT ALL - col1 DIV - col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - col1 / - col2 AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - ( + col0 ) + - cor0.col0 * col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab1, tab0, tab0 AS cor0
----
6
query I rowsort
SELECT DISTINCT + ( col1 ) * - col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col2 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT ALL - col1 + - col0 DIV - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - col1 + - col0 / - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT - ( + col1 ) + + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-7029
SELECT - ( + col1 ) + + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT DISTINCT - - 92 + col1 AS col2 FROM tab2 AS cor0
----
109
123
151
query I rowsort
SELECT DISTINCT + 21 * col2 AS col2 FROM tab2
----
546
567
798
query I rowsort
SELECT ALL + col2 * - cor0.col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT 85 - - col1 DIV - col2 FROM tab1
----
85
85
85
skipif mysql # not compatible
query I rowsort label-7033
SELECT 85 - - col1 / - col2 FROM tab1
----
85
85
85
query I rowsort
SELECT ALL + 17 * - cor0.col1 + + 82 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fa22a93c292942de3333f5a856add6d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col1 col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT + CAST( 64 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
skipif mysql # not compatible
query I rowsort label-7036
SELECT + CAST ( 64 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col0 * col1 + - col2 AS col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col1 + - 10 FROM tab2
----
21
49
7
query I rowsort
SELECT - 75 * - 53 AS col1 FROM tab2 cor0
----
3975
3975
3975
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL 32 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
112
35
96
query I rowsort
SELECT ALL 55 * + col0 - col1 FROM tab2 cor0
----
354
4231
4328
query I rowsort
SELECT ALL + + ( + 1 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col0 + + ( cor0.col2 ) * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT 87 * 44 FROM tab0, tab0 AS cor0
----
9 values hashing to adcf97b6489aa846d151a7d7d0ba5ca4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT 49 + + 25 DIV + col1 AS col2 FROM tab1 AS cor0
----
49
50
51
skipif mysql # not compatible
query I rowsort label-7048
SELECT 49 + + 25 / + col1 AS col2 FROM tab1 AS cor0
----
49
50
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT + ( - cor0.col0 ) + + cor0.col0 * + ( + col1 * + col1 + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7049
SELECT + ( - cor0.col0 ) + + cor0.col0 * + ( + col1 * + col1 + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ALL - ( + col2 ) DIV + ( + 80 ) - col2 AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - ( + col2 ) / + ( + 80 ) - col2 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + col0 - col0 * 93 * 32 AS col1 FROM tab1
----
-190400
-238000
-8925
query I rowsort
SELECT ALL 64 - - col2 AS col1 FROM tab2
----
102
90
91
query I rowsort
SELECT + 65 * col0 * ( + col2 ) - + col1 AS col1 FROM tab2
----
12254
131761
195113
query I rowsort
SELECT 52 * col2 FROM tab1 AS cor0
----
2808
2964
4992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col2 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL col1 + + col2 * + col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT + 3 + - col2 AS col2 FROM tab1
----
-51
-54
-93
query I rowsort
SELECT DISTINCT 8 * - tab2.col0 + 30 AS col0 FROM tab2
----
-26
-594
-602
query I rowsort
SELECT ALL - - col1 * + col2 + + col0 AS col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL col2 * - ( + 78 ) FROM tab2 AS cor0
----
-2028
-2106
-2964
query I rowsort
SELECT ALL - col2 + 33 AS col0 FROM tab2 AS cor0
----
-5
6
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 85 col1 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT DISTINCT + - col2 * col0 * 73 FROM tab0 cor0
----
-2555
-532754
-57816
query I rowsort
SELECT col2 + 2 FROM tab2 AS cor0
----
28
29
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 92 * + cor0.col1 * + col2 + - ( 55 ) * col2 col2 FROM tab1 AS cor0
----
109523
126172
49295
query I rowsort
SELECT ALL + col0 * 76 + col0 FROM tab1
----
231
4928
6160
query I rowsort
SELECT - cor0.col1 * + col1 + 12 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-16405
-3565
-58705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7068
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + col2 * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7069
SELECT - col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-7069
SELECT - col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7070
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col1 * + 2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7568
8463
9603
query I rowsort
SELECT - cor0.col2 * 49 + col0 FROM tab1 AS cor0
----
-2643
-2729
-4624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * col1 col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT col0 DIV col0 + 92 * - col2 FROM tab2 AS cor0
----
-2391
-2483
-3495
skipif mysql # not compatible
query I rowsort label-7074
SELECT col0 / col0 + 92 * - col2 FROM tab2 AS cor0
----
-2391
-2483
-3495
query I rowsort
SELECT DISTINCT + col1 * 21 + - col1 + col2 FROM tab2 AS cor0
----
1206
378
647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 5 * + col1 col2 FROM tab0 cor0
----
-344
-364
-388
query I rowsort
SELECT ALL - + col1 * 10 AS col0 FROM tab2 AS cor0
----
-170
-310
-590
query I rowsort
SELECT 31 * 45 FROM tab0 AS cor0
----
1395
1395
1395
query I rowsort
SELECT 50 * - col0 * - col2 AS col2 FROM tab1 AS cor0
----
182400
384000
8100
query I rowsort
SELECT - - 91 AS col0 FROM tab0 AS cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT ALL - CAST( + 86 AS SIGNED ) FROM tab0 AS cor0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - CAST ( + 86 AS INTEGER ) FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT - - 13 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7383
-8268
-9396
query I rowsort
SELECT - col1 * + 32 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT ALL - col2 + - col1 DIV - col1 col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - col2 + - col1 / - col1 col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL - cor0.col1 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab1 cor0
----
62
query I rowsort
SELECT DISTINCT - 50 * col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT + col0 * - col1 * col2 + - cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-101088
-37050
-5616
query I rowsort
SELECT ALL - col1 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT 92 * - col0 AS col2 FROM tab1
----
-276
-5888
-7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7092
SELECT DISTINCT - 32 + col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - 32 + col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 84 AS col1 FROM tab0 AS cor0
----
84
query I rowsort
SELECT - + col1 * - cor0.col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 col1 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + - 59 + col1 AS col2 FROM tab0 AS cor0
----
27
32
38
query I rowsort
SELECT ALL + 88 + - col2 AS col0 FROM tab2 AS cor0
----
50
61
62
query I rowsort
SELECT col2 + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - + 5 * + col1 AS col2 FROM tab2 AS cor0
----
-155
-295
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col2 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT + + col2 * + cor0.col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT col2 + - col1 + ( + col2 ) * tab1.col1 AS col0 FROM tab1
----
1331
1432
617
query I rowsort
SELECT + col0 + + cor0.col0 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1200
768
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + ( 28 ) * cor0.col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT ALL - - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 47 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2538
2679
4512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col1 col0 FROM tab2 AS cor0
----
1705
3245
935
query I rowsort
SELECT DISTINCT col0 * col1 + + ( col2 + col2 ) FROM tab0
----
2130
3397
8263
query I rowsort
SELECT ALL + col0 * - col1 + + tab2.col2 AS col2 FROM tab2
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col0 * col0 - + col1 AS col2 FROM tab2
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT ALL - col2 * col2 + - col0 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - col2 * col2 + - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
query I rowsort
SELECT ALL + 91 + col1 AS col0 FROM tab2 AS cor0
----
108
122
150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7118
SELECT DISTINCT - + CAST( 90 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-90
skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - + CAST ( 90 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-90
query I rowsort
SELECT ALL 38 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL - col2 + - col2 - 84 FROM tab0 AS cor0
----
-150
-248
-86
query I rowsort
SELECT - 44 * + col1 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT ALL 13 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - ( + 5 ) + - col0 AS col1 FROM tab2 AS cor0
----
-12
-83
-84
query I rowsort
SELECT - 35 * + ( - col1 ) FROM tab0 AS cor0
----
3010
3185
3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT DISTINCT + 88 DIV col2 + ( - col1 ) FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + 88 / col2 + ( - col1 ) FROM tab1 AS cor0
----
-13
-25
-9
query I rowsort
SELECT ( - col1 ) * col0 + col2 FROM tab2 cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT ALL 57 * col2 DIV cor0.col1 FROM tab2 AS cor0
----
127
25
49
skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL 57 * col2 / cor0.col1 FROM tab2 AS cor0
----
127
25
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col1 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col2 )
----
query I rowsort
SELECT col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - col1 * - 27 AS col0 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT col0 + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 10 - - tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cda5eb8d98aa230e8e11e78339e60d76
query I rowsort
SELECT - 24 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT + - col2 DIV - ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7138
SELECT + - col2 / - ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + col0 * - col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT DISTINCT 24 DIV col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT 24 / col0 FROM tab0
----
0
1
query I rowsort
SELECT ALL col0 * ( - 64 ) AS col1 FROM tab0
----
-1536
-2240
-5696
query I rowsort
SELECT ALL + col2 * + col0 + - 34 + + col1 * - ( + ( tab0.col0 ) ) AS col1 FROM tab0
----
-1306
-3394
-835
query I rowsort
SELECT DISTINCT col2 * ( tab1.col0 ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT 11 * 69 FROM tab1
----
759
759
759
query I rowsort
SELECT + + 28 + col2 - - col2 FROM tab0 AS cor0
----
192
30
94
query I rowsort
SELECT DISTINCT - 47 FROM tab1, tab2 AS cor0
----
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7149
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - col0 * col2 * col2 AS col0 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT ALL + CAST( 4 AS SIGNED ) AS col2 FROM tab1
----
4
4
4
skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + CAST ( 4 AS INTEGER ) AS col2 FROM tab1
----
4
4
4
query I rowsort
SELECT + col1 * + cor0.col0 - 84 * + col2 FROM tab2 AS cor0
----
-1849
-2051
2418
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT - + col0 * cor0.col1 + - ( + col0 ) DIV - col1 AS col0 FROM tab2 cor0
----
-1339
-217
-4601
skipif mysql # not compatible
query I rowsort label-7153
SELECT - + col0 * cor0.col1 + - ( + col0 ) / - col1 AS col0 FROM tab2 cor0
----
-1339
-217
-4601
query I rowsort
SELECT 2 + col1 FROM tab0 AS cor0
----
88
93
99
query I rowsort
SELECT DISTINCT + 52 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
52
query I rowsort
SELECT - col1 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT DISTINCT col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT ALL ( + col1 ) + - col1 DIV - col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL ( + col1 ) + - col1 / - col1 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT 63 DIV col2 FROM tab0 AS cor0
----
0
1
63
skipif mysql # not compatible
query I rowsort label-7159
SELECT 63 / col2 FROM tab0 AS cor0
----
0
1
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT DISTINCT + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + + col0 / col2 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col1 FROM tab1 WHERE NOT col1 * + col0 NOT IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col1 * + col1 * col2 + - col1 * col1 col2 FROM tab0
----
237464
35
678059
query I rowsort
SELECT ALL col0 + - tab2.col1 * col2 * col0 FROM tab2
----
-119574
-50955
-5852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col2 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 + - tab1.col0 FROM tab1 WHERE NULL < + col0
----
query I rowsort
SELECT 51 * - col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT ALL + tab1.col1 + + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 BETWEEN ( NULL ) AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL ( col2 ) - + 91 DIV 96 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL ( col2 ) - + 91 / 96 FROM tab1
----
54
57
96
query I rowsort
SELECT tab1.col2 + col2 + - col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL 85 * col0 + + 97 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1161
-389
2878
query I rowsort
SELECT ALL + ( col0 ) + ( + ( + tab2.col0 ) ) * + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - col1 * tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col0 * col0 + + col0 * tab2.col1 + - col0 * col1 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col2 + col1 + col1 FROM tab0 WHERE NULL < col2 * - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT + col1 - col2 DIV col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7178
SELECT + col1 - col2 / col2 FROM tab1
----
12
25
9
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND col1
----
query I rowsort
SELECT + col0 * - col2 + - col2 AS col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col1 * tab0.col1 * + col2 + col2 + tab0.col2 * - col0 AS col2 FROM tab0
----
243309
671826
9375
query I rowsort
SELECT ALL tab1.col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT tab0.col1 DIV - tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7183
SELECT tab0.col1 / - tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - col2 * col2 + - col0 + + col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col0 * + col0 - tab0.col2 FROM tab0
----
1224
543
7839
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - col1 * col2 + + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT tab2.col0 + col0 * col2 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col2 + tab0.col1 - col1 FROM tab0 WHERE NOT ( NULL ) < col1 + + col2
----
query I rowsort
SELECT ALL + col1 - - col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 * col1 + tab2.col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT col1 * col1 FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT ALL col2 - - col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col2 - col1 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab0 WHERE - col0 * col2 / col0 IN ( col1 / col0 )
----
query I rowsort
SELECT ALL + col2 + col2 * + tab0.col2 AS col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - cor0.col0 * 4 + 48 FROM tab2, tab2 cor0, tab2 AS cor1
----
-264
-268
20
query I rowsort
SELECT ALL - col0 * col0 + + col2 * - col0 AS col0 FROM tab2 cor0
----
-238
-8112
-9243
query I rowsort
SELECT + 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT + col2 * col0 - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL 82 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT ALL 60 + 83 AS col1 FROM tab1 AS cor0
----
143
143
143
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT ALL - col1 * cor0.col1 + - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
-7482
-8372
-9506
skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - col1 * cor0.col1 + - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL col0 * cor0.col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL + ( - cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 78 - + 35 * tab0.col1 FROM tab0
----
-2932
-3107
-3317
query I rowsort
SELECT + 87 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query I rowsort
SELECT + + col0 + - col2 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - + col0 * - 76 + cor0.col0 * - col2 - + 98 FROM tab1 AS cor0
----
-1698
-32
1118
query I rowsort
SELECT ALL - col0 - + col1 * ( col2 ) * - col1 FROM tab2 cor0
----
10903
25940
90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT - cor0.col0 * 34 + - 53 DIV cor0.col0 FROM tab1 cor0
----
-119
-2176
-2720
skipif mysql # not compatible
query I rowsort label-7213
SELECT - cor0.col0 * 34 + - 53 / cor0.col0 FROM tab1 cor0
----
-119
-2176
-2720
query I rowsort
SELECT DISTINCT col2 + 81 + - 78 * + col1 AS col2 FROM tab2 AS cor0
----
-1207
-2310
-4495
query I rowsort
SELECT ALL - cor0.col2 - - ( - ( - cor0.col0 ) ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col1 * + col2 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - cor0.col1 * col2 + + col1 + cor0.col0 * 82 AS col2 FROM tab2 AS cor0
----
-232
4921
5849
query I rowsort
SELECT ALL cor0.col2 * - 2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - + col2 * - cor0.col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + col2 - col0 * - cor0.col2 * col2 AS col1 FROM tab1 cor0
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT DISTINCT + col0 + + col2 DIV + 74 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + col0 + + col2 / + 74 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col2 * - 85 + + cor0.col2 * - col1 + + col2 FROM tab2 AS cor0
----
-3105
-3718
-3838
query I rowsort
SELECT - col0 + col2 + col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - + col1 * + col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + cor0.col2 + + cor0.col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - + col0 + 21 - + 12 FROM tab2 AS cor0
----
-69
-70
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT ALL - col0 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - col0 / - col2 col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + col2 + + ( + ( + col2 ) ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - cor0.col0 * 20 FROM tab1 AS cor0
----
-1280
-1600
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * + 19 col0 FROM tab2 AS cor0
----
-1199
-402
-596
query I rowsort
SELECT ALL + col1 + + col1 * col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - + col0 + + 19 * - col0 AS col2 FROM tab2 AS cor0
----
-140
-1560
-1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - 69 * + 88 + - col2 AS col0 FROM tab1 AS cor0
----
-6126
-6129
-6168
query I rowsort
SELECT ALL col0 + 43 * - col1 FROM tab1
----
-1115
-366
-479
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca
onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT DISTINCT tab0.col2 DIV - 8 + col1 FROM tab0
----
81
82
97
skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT tab0.col2 / - 8 + col1 FROM tab0
----
81
82
97
query I rowsort
SELECT DISTINCT col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + - col1 * col1 + + col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL tab0.col2 * - 6 * + tab0.col0 AS col0 FROM tab0
----
-210
-43788
-4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT DISTINCT - tab0.col2 DIV + ( tab0.col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - tab0.col2 / + ( tab0.col1 ) FROM tab0
----
0
query I rowsort
SELECT + - col1 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7244
SELECT ALL col0 DIV ( 28 ) AS col1 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL col0 / ( 28 ) AS col1 FROM tab0
----
0
1
3
query I rowsort
SELECT ALL + col1 - 71 FROM tab0 AS cor0
----
15
20
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT ALL + - col1 DIV 19 + col2 FROM tab0 AS cor0
----
-4
29
78
skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + - col1 / 19 + col2 FROM tab0 AS cor0
----
-4
29
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + ( col1 ) ) + - col1 * col0 col1 FROM tab2 AS cor0
----
-2686
-434
-9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT - col0 DIV - col0 AS col2 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - col0 / - col0 AS col2 FROM tab2 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT + CAST( NULL AS SIGNED ) + + col0 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-7249
SELECT + CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 78 * + col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT - - ( - col2 ) - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT 18 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
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 - 28 + + 53 * col2 FROM tab2 AS cor0
----
1350
1403
1986
query I rowsort
SELECT col0 * col1 + col0 FROM tab2
----
1422
224
4680
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + col0 - col0 col0 FROM tab2
----
1247
179
4465
onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT - cor0.col2 * - cor0.col2 + - col0 DIV - col1 FROM tab2 AS cor0
----
1448
677
729
skipif mysql # not compatible
query I rowsort label-7258
SELECT - cor0.col2 * - cor0.col2 + - col0 / - col1 FROM tab2 AS cor0
----
1448
677
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7259
SELECT col2 DIV - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7259
SELECT col2 / - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT + col2 DIV - col1 - - col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6243
skipif mysql # not compatible
query I rowsort label-7260
SELECT + col2 / - col1 - - col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6243
query I rowsort
SELECT + col1 * col0 + - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + cor0.col0 * col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 + cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-7264
SELECT DISTINCT cor0.col2 * - col2 * col0 + - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-132
-26138
-598437
skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT cor0.col2 * - col2 * col0 + - col1 / col2 AS col0 FROM tab0 AS cor0
----
-132
-26138
-598437
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( + col1 * + col2 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 + - col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL col0 + cor0.col1 + + col1 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 + + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - col1 BETWEEN col1 * col2 AND + col0 * + col1 OR NOT ( + col0 ) <= NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL + col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col0 * tab1.col0 * - col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col2 * - col0 - + col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + - col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col1 * + col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + + col2 * + col1 + 30 FROM tab1 AS cor0
----
1278
1434
600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL - col2 + - cor0.col1 DIV - col0 + - col2 FROM tab0 AS cor0
----
-163
-63
0
skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - col2 + - cor0.col1 / - col0 + - col2 FROM tab0 AS cor0
----
-163
-63
0
query I rowsort
SELECT DISTINCT - + col2 + 14 AS col2 FROM tab1 AS cor0
----
-40
-43
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT + col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7284
SELECT + col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab1, tab0 cor0, tab0
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL tab1.col0 * 36 * + 27 AS col2 FROM tab1
----
2916
62208
77760
query I rowsort
SELECT DISTINCT + 79 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
79
query I rowsort
SELECT ALL + col2 * + 25 + + col0 FROM tab0 AS cor0
----
2139
60
849
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * + ( col0 ) FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT DISTINCT cor0.col1 * CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT cor0.col1 * CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 64 col2 FROM tab1 cor0
----
3456
3648
6144
query I rowsort
SELECT ALL + + col2 * + 71 + cor0.col2 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT DISTINCT - 48 * - cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1584
3936
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7295
SELECT + CAST( - ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7295
SELECT + CAST ( - ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col1 * col0 * + col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - + 88 * - col1 AS col0 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT + + ( + 16 ) * col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT DISTINCT + + ( + ( + col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 7 AS col0 FROM tab0 cor0
----
7
7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7301
SELECT ALL CAST( NULL AS SIGNED ) + 54 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL CAST ( NULL AS INTEGER ) + 54 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * 29 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1737
-531
-926
query I rowsort
SELECT DISTINCT - - 86 AS col1 FROM tab2 AS cor0
----
86
query I rowsort
SELECT ( + cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - tab0.col0 + 11 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 2ac78a5b067116e0df3c155961597cb7
query I rowsort
SELECT DISTINCT + 40 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1320
-3280
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT - - ( + cor0.col0 ) * 41 + - col2 DIV + cor0.col2 FROM tab1 cor0
----
122
2623
3279
skipif mysql # not compatible
query I rowsort label-7307
SELECT - - ( + cor0.col0 ) * 41 + - col2 / + cor0.col2 FROM tab1 cor0
----
122
2623
3279
query I rowsort
SELECT + - 91 * col0 AS col1 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT + col1 * col1 + col2 * 46 AS col0 FROM tab0 AS cor0
----
12053
8914
9455
query I rowsort
SELECT ALL 43 * col0 AS col0 FROM tab0 cor0
----
1032
1505
3827
query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab0 AS cor0
----
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + + col0 * col1 col2 FROM tab0 AS cor0
----
2071
3402
8106
query I rowsort
SELECT ( col0 ) + - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + col1 col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - col1 * col2 + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + + col0 + + col2 * 10 AS col1 FROM tab1 cor0
----
1040
543
634
query I rowsort
SELECT DISTINCT - 38 * + col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT cor0.col1 - 50 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3a0d91a87ca8af9011a85c1234c0cd2b
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + col0 * + tab2.col0 + tab2.col2 * tab2.col0 FROM tab2
----
238
8112
9243
query I rowsort
SELECT - 50 * cor0.col0 AS col1 FROM tab0 cor0
----
-1200
-1750
-4450
query I rowsort
SELECT 59 + + col2 AS col1 FROM tab0
----
141
60
92
query I rowsort
SELECT + - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT ALL 85 + col2 + 71 FROM tab0
----
157
189
238
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 + + tab1.col1 * + col1 AS col2 FROM tab1
----
-540
-871
598
query I rowsort
SELECT DISTINCT 35 * - tab2.col0 + + col2 AS col2 FROM tab2
----
-218
-2704
-2727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7327
SELECT col1 * - CAST( - col2 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-7327
SELECT col1 * - CAST ( - col2 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT ( col0 + ( + col0 ) ) FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT - 71 * col1 + - CAST ( + col0 AS REAL ) + col0 AS col0 FROM tab2
----
-1207
-2201
-4189
query I rowsort
SELECT + tab0.col2 * tab0.col0 * col1 + tab0.col1 AS col0 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT 41 * col2 + 42 AS col0 FROM tab1
----
2256
2379
3978
query I rowsort
SELECT DISTINCT - 62 FROM tab1, tab0 AS cor0
----
-62
query I rowsort
SELECT DISTINCT - - col1 * 2 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7334
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col2 + 6 AS col2 FROM tab0 AS cor0
----
39
7
88
query I rowsort
SELECT + + col0 + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - col2 * + ( col1 * col0 + col0 ) FROM tab2 AS cor0
----
-121680
-54036
-6048
query I rowsort
SELECT cor0.col0 + + col0 * + col2 + + col2 FROM tab0 AS cor0
----
71
7469
849
query I rowsort
SELECT ALL - col1 + - 80 AS col1 FROM tab1 AS cor0
----
-106
-90
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 30 + col1 col2 FROM tab1 AS cor0
----
1646
1720
2893
query I rowsort
SELECT DISTINCT + col0 * 53 AS col2 FROM tab0 AS cor0
----
1272
1855
4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-7342
SELECT col0 DIV + 17 AS col2 FROM tab2 cor0
----
0
4
4
skipif mysql # not compatible
query I rowsort label-7342
SELECT col0 / + 17 AS col2 FROM tab2 cor0
----
0
4
4
query I rowsort
SELECT ALL - cor0.col2 + - 59 FROM tab2 AS cor0
----
-85
-86
-97
query I rowsort
SELECT DISTINCT col1 * col0 + 38 * + col0 FROM tab2 AS cor0
----
4345
483
7566
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + 45 + + cor0.col1 * col2 FROM tab1 AS cor0
----
1293
1449
615
query I rowsort
SELECT ALL + col0 * 69 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT - 92 + - col2 * col2 FROM tab1 AS cor0
----
-3008
-3341
-9308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 41 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 41 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + + col1 - + 82 FROM tab2 AS cor0
----
-23
-51
-65
query I rowsort
SELECT DISTINCT + + col0 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT 59 + + col0 FROM tab1 AS cor0
----
123
139
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col2 col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col0 * - ( - 92 ) FROM tab2 AS cor0
----
675
7235
7285
query I rowsort
SELECT ALL - - col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7358
SELECT ALL + col1 + - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + col1 + - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 25 + col2 * + ( 31 ) * + col2 FROM tab0 AS cor0
----
208469
33784
56
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - - col1 * + col1 + 86 AS col1 FROM tab0 AS cor0
----
7482
8367
9495
query I rowsort
SELECT - + 78 + col0 AS col1 FROM tab2 AS cor0
----
-71
0
1
query I rowsort
SELECT - ( col0 ) + - col1 * - col2 * + col1 AS col2 FROM tab2 AS cor0
----
10903
25940
90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT + + col0 + col0 DIV + col0 - col1 * + 48 FROM tab0 AS cor0
----
-4103
-4278
-4620
skipif mysql # not compatible
query I rowsort label-7364
SELECT + + col0 + col0 / + col0 - col1 * + 48 FROM tab0 AS cor0
----
-4103
-4278
-4620
query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT - 84 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT DISTINCT tab1.col2 * ( tab1.col0 * tab1.col1 ) FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + 80 AS col0 FROM tab1 AS cor0
----
80
80
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7371
SELECT + CAST( col1 * - col0 + - col0 AS SIGNED ) AS col0 FROM tab2
----
-1422
-224
-4680
skipif mysql # not compatible
query I rowsort label-7371
SELECT + CAST ( col1 * - col0 + - col0 AS INTEGER ) AS col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - col1 + + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT - 52 DIV col2 + + ( ( col1 ) + - 72 * col1 ) col0 FROM tab1
----
-1846
-710
-923
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7373
SELECT - 52 / col2 + + ( ( col1 ) + - 72 * col1 ) col0 FROM tab1
----
-1846
-710
-923
query I rowsort
SELECT col0 * 64 AS col0 FROM tab1
----
192
4096
5120
query I rowsort
SELECT DISTINCT - col2 * + ( + 47 ) * col2 AS col0 FROM tab0
----
-316028
-47
-51183
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT DISTINCT tab0.col2 * ( - 52 ) DIV - col1 FROM tab0
----
0
19
46
skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT tab0.col2 * ( - 52 ) / - col1 FROM tab0
----
0
19
46
query I rowsort
SELECT ALL + ( col0 ) * col1 + - col2 AS col1 FROM tab2 cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 cor2, tab1
----
13122 values hashing to 9ce4d25118357f178272b04062362156
query I rowsort
SELECT DISTINCT 79 + col0 + tab2.col2 FROM tab2
----
113
183
196
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT 50 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
50
skipif mysql # not compatible
query I rowsort label-7382
SELECT 50 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
50
query I rowsort
SELECT + cor0.col0 * + 87 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 913046721d00a3bdd3e9c7887da83af4
query I rowsort
SELECT DISTINCT - 73 FROM tab1, tab2, tab2 AS cor0
----
-73
query I rowsort
SELECT + 93 + - col0 FROM tab2
----
14
15
86
query I rowsort
SELECT ALL - 44 * col1 AS col2 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT ALL ( col2 ) + + col0 * - col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT + + 12 AS col1 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT ALL + - 9 * 25 AS col0 FROM tab0 AS cor0
----
-225
-225
-225
query I rowsort
SELECT col2 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - 10 + - col1 * ( 7 ) AS col2 FROM tab2
----
-129
-227
-423
query I rowsort
SELECT - ( 41 ) AS col1 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT + 2 * - col2 * + col0 + col2 * col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7394
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col1 + ( col1 * col1 ) AS col2 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT + + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + - col2 + col0 * col0 * col1 FROM tab2 AS cor0
----
106059
1492
358930
query I rowsort
SELECT + - cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 68 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL + col2 + - 9 * cor0.col0 FROM tab1 AS cor0
----
-519
-624
27
query I rowsort
SELECT DISTINCT - col0 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - col1 + ( + cor0.col0 ) + col1 * col1 FROM tab2 cor0
----
3500
351
937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT 38 + cor0.col2 AS col1 FROM tab0 AS cor0
----
120
39
71
query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT DISTINCT col2 + - col1 DIV - col0 + col2 DIV 63 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT col2 + - col1 / - col0 + col2 / 63 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT - + col0 + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL ( col1 ) * - col2 * - col1 + - ( + col2 + col2 ) FROM tab0 AS cor0
----
244002
678878
9407
query I rowsort
SELECT ALL - 10 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT 6 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8
query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-70
query I rowsort
SELECT ALL + - 48 + - col1 * + ( + 76 * col0 ) FROM tab1 AS cor0
----
-48688
-5976
-79088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7414
SELECT + + col2 + cor0.col0 + - CAST( col1 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
-619
21
7
skipif mysql # not compatible
query I rowsort label-7414
SELECT + + col2 + cor0.col0 + - CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
-619
21
7
query I rowsort
SELECT ALL - + ( cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * - col2 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - col1 * col2 * - cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT DISTINCT 32 DIV + col1 + + ( col0 ) + col0 FROM tab1 cor0
----
131
162
7
skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT 32 / + col1 + + ( col0 ) + col0 FROM tab1 cor0
----
131
162
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT + col2 DIV 47 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7419
SELECT + col2 / 47 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 - - 10 FROM tab1 AS cor0
----
13
74
90
query I rowsort
SELECT DISTINCT - + col2 * - 13 - col2 * - col0 * - col2 FROM tab0 AS cor0
----
-22
-25707
-597370
query I rowsort
SELECT DISTINCT + + cor0.col0 * - 3 FROM tab2 AS cor0
----
-21
-234
-237
query I rowsort
SELECT col0 * col1 + - 42 * - cor0.col0 FROM tab0 AS cor0
----
11837
3072
4865
onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT DISTINCT + col0 DIV - 66 + 0 AS col0 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + col0 / - 66 + 0 AS col0 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT - col1 + - ( col0 ) * col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT + + col1 * ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * - 20 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT ALL - - col1 * 15 FROM tab1 AS cor0
----
150
195
390
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT ALL - cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 31 + col2 * - col0 FROM tab1 AS cor0
----
-131
-3617
-7649
query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 - - col1 FROM tab2 AS cor0
----
22630
24565
39943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7432
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7433
SELECT DISTINCT + col1 + + col0 * + col0 * CAST( col0 + cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
717
949163
986095
skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT + col1 + + col0 * + col0 * CAST ( col0 + cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
717
949163
986095
onlyif mysql # use DIV operator for integer division
query I rowsort label-7434
SELECT + + col1 - + col2 DIV - col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7434
SELECT + + col1 - + col2 / - col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT DISTINCT ( + 36 ) FROM tab1 cor0
----
36
query I rowsort
SELECT ALL + cor0.col0 * - 98 + col2 FROM tab2 AS cor0
----
-659
-7618
-7704
query I rowsort
SELECT ALL - 17 - col2 AS col2 FROM tab2 AS cor0
----
-43
-44
-55
query I rowsort
SELECT ALL - col2 + - 82 + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2179
-3478
-8263
query I rowsort
SELECT DISTINCT - - 72 * col0 - + col2 FROM tab0 AS cor0
----
1695
2519
6326
query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7441
SELECT + CAST( col2 AS SIGNED ) + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
skipif mysql # not compatible
query I rowsort label-7441
SELECT + CAST ( col2 AS INTEGER ) + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL col2 * + 69 - + col2 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT ALL + col2 - 30 AS col1 FROM tab2
----
-3
-4
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT col0 + 84 DIV col2 + + col1 FROM tab1
----
30
75
93
skipif mysql # not compatible
query I rowsort label-7444
SELECT col0 + 84 / col2 + + col1 FROM tab1
----
30
75
93
query I rowsort
SELECT - - col2 + 81 FROM tab0 AS cor0
----
114
163
82
query I rowsort
SELECT - + ( 77 ) AS col2 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT + 87 + 82 AS col1 FROM tab0 AS cor0
----
169
query I rowsort
SELECT DISTINCT + + ( 69 ) AS col0 FROM tab1 cor0
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT 94 * - col1 * col2 + + CAST( + col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-117286
-131924
-53560
skipif mysql # not compatible
query I rowsort label-7451
SELECT 94 * - col1 * col2 + + CAST ( + col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-117286
-131924
-53560
query I rowsort
SELECT - 33 * 91 AS col1 FROM tab0
----
-3003
-3003
-3003
query I rowsort
SELECT - + 51 + col2 FROM tab1 AS cor0
----
3
45
6
query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab2
----
80
query I rowsort
SELECT ALL + 79 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL - tab1.col1 * + col1 AS col2 FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7457
SELECT 12 DIV - col2 FROM tab0
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-7457
SELECT 12 / - col2 FROM tab0
----
-12
0
0
query I rowsort
SELECT DISTINCT ( 91 ) AS col0 FROM tab2
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col0 FROM tab0, tab2, tab2 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT + col2 DIV 4 AS col1 FROM tab1 AS cor0
----
13
14
24
skipif mysql # not compatible
query I rowsort label-7460
SELECT + col2 / 4 AS col1 FROM tab1 AS cor0
----
13
14
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * col1 col0 FROM tab2
----
1416
408
744
query I rowsort
SELECT + col0 - tab2.col2 * col0 AS col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL 16 * - col0 AS col0 FROM tab1
----
-1024
-1280
-48
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0
query I rowsort
SELECT ALL - 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 cor3
----
243 values hashing to aae90a3693940d37cdb51d5e4f1c7ac8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col1 col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT ALL + + cor0.col1 * + col0 + - col1 DIV - col1 AS col0 FROM tab1 cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + + cor0.col1 * + col0 + - col1 / - col1 AS col0 FROM tab1 cor0
----
1041
641
79
query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1, tab2, tab0 cor0
----
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM tab1
----
22
query I rowsort
SELECT + col2 * + 19 * 35 AS col1 FROM tab0 AS cor0
----
21945
54530
665
query I rowsort
SELECT - - col1 + 79 AS col0 FROM tab1 AS cor0
----
105
89
92
query I rowsort
SELECT + col1 + - col1 * col2 * + col2 FROM tab0 AS cor0
----
-611793
-93568
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7473
SELECT - col2 * + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7473
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-7474
SELECT DISTINCT + col1 DIV - 23 AS col1 FROM tab0 AS cor0
----
-3
-4
skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT + col1 / - 23 AS col1 FROM tab0 AS cor0
----
-3
-4
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab2
----
11
query I rowsort
SELECT + + col2 + 85 * + col1 FROM tab0 AS cor0
----
7343
7817
8246
query I rowsort
SELECT ALL + cor0.col2 * 37 * cor0.col0 FROM tab0 AS cor0
----
1295
270026
29304
query I rowsort
SELECT DISTINCT - col0 + - 49 FROM tab0 AS cor0
----
-138
-73
-84
query I rowsort
SELECT ALL - - col2 * - 45 FROM tab1 cor0
----
-2430
-2565
-4320
query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - 50 + col0 * - col1 * 71 AS col2 FROM tab2 cor0
----
-15457
-326792
-95403
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e
query I rowsort
SELECT ALL ( - ( col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * - 95 - + col0 col0 FROM tab2 cor0
----
-641
-7429
-7567
query I rowsort
SELECT - - ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col0 + + col0 * + 38 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT ALL - col1 + col2 * 78 FROM tab0 cor0
----
-19
2488
6305
query I rowsort
SELECT DISTINCT + 60 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-245760
-384000
-540
query I rowsort
SELECT DISTINCT + 44 * + col0 FROM tab0 AS cor0
----
1056
1540
3916
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT ALL + cor0.col0 * col0 DIV ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + cor0.col0 * col0 / ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 * + 75 col0 FROM tab0
----
1050
onlyif mysql # use DIV operator for integer division
query I rowsort label-7497
SELECT ALL ( col0 + col2 ) DIV col2 FROM tab0
----
1
2
36
skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL ( col0 + col2 ) / col2 FROM tab0
----
1
2
36
query I rowsort
SELECT DISTINCT + 64 + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT 2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7499
SELECT 2 / - col2 AS col2 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT + col2 * - 48 AS col1 FROM tab0
----
-1584
-3936
-48
query I rowsort
SELECT - col0 * - 33 FROM tab2
----
231
2574
2607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col1 ) + + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col1 * - col2 * col1 + - 94 * col0 AS col1 FROM tab0 AS cor0
----
-12699
-246324
-687408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to b367033d2867a8ca951e3972e9b13154
onlyif mysql # use DIV operator for integer division
query I rowsort label-7505
SELECT col2 * 69 + - col2 DIV - tab1.col1 FROM tab1
----
3728
3938
6631
skipif mysql # not compatible
query I rowsort label-7505
SELECT col2 * 69 + - col2 / - tab1.col1 FROM tab1
----
3728
3938
6631
query I rowsort
SELECT 67 - tab1.col0 AS col1 FROM tab1
----
-13
3
64
query I rowsort
SELECT + col1 * col0 + + tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 97 * - col1 + - col0 AS col0 FROM tab0
----
8318
8738
9374
query I rowsort
SELECT ( - 87 * - tab1.col2 + + 98 ) FROM tab1
----
4796
5057
8450
query I rowsort
SELECT ALL - - col0 + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - ( col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT - CAST( + 80 AS SIGNED ) + - col2 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1168
1324
490
skipif mysql # not compatible
query I rowsort label-7512
SELECT - CAST ( + 80 AS INTEGER ) + - col2 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1168
1324
490
onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT ( 73 ) DIV col1 FROM tab2 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-7513
SELECT ( 73 ) / col1 FROM tab2 cor0
----
1
2
4
query I rowsort
SELECT 61 * col2 AS col2 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT + col2 + col0 * col2 - + 10 AS col2 FROM tab0
----
26
7370
815
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7516
SELECT DISTINCT col0 * - CAST( 12 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
-202
-323
-977
skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT col0 * - CAST ( 12 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
-202
-323
-977
query I rowsort
SELECT - col2 * col0 + + 23 FROM tab0 cor0
----
-12
-7275
-769
query I rowsort
SELECT ALL 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT DISTINCT - col0 + + col0 DIV 97 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT - col0 + + col0 / 97 AS col2 FROM tab0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7520
SELECT DISTINCT + col2 + - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + col2 + - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT 30 DIV tab1.col2 + + 30 * col2 AS col0 FROM tab1
----
1620
1710
2880
skipif mysql # not compatible
query I rowsort label-7521
SELECT 30 / tab1.col2 + + 30 * col2 AS col0 FROM tab1
----
1620
1710
2880
query I rowsort
SELECT + col1 + + tab1.col2 AS col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7523
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT col1 * - 22 + col1 DIV tab0.col0 AS col2 FROM tab0
----
-1889
-2001
-2132
skipif mysql # not compatible
query I rowsort label-7525
SELECT col1 * - 22 + col1 / tab0.col0 AS col2 FROM tab0
----
-1889
-2001
-2132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7526
SELECT col2 + CAST( NULL AS SIGNED ) + 56 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7526
SELECT col2 + CAST ( NULL AS INTEGER ) + 56 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7527
SELECT DISTINCT - tab2.col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - tab2.col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT - col1 DIV + col2 col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7528
SELECT - col1 / + col2 col1 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7529
SELECT ALL - col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 39 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 * + tab0.col0 ) col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab2.col0 + - tab2.col0 * - col0 AS col2 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT - 12 - + col2 AS col2 FROM tab0 AS cor0
----
-13
-45
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT ALL CAST( - col1 + col1 AS SIGNED ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL CAST ( - col1 + col1 AS INTEGER ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + + 96 * col0 + col2 * 68 - - col0 FROM tab2 AS cor0
----
10247
2515
9334
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 + col0 + - col0 col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT col1 + col2 * + col1 - ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
-3201
-546
860
onlyif mysql # use DIV operator for integer division
query I rowsort label-7538
SELECT DISTINCT - - col1 + + cor0.col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT - - col1 + + cor0.col1 / + col0 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL + col1 + + col1 * col1 + - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col0 - col2 * col2 * + 69 AS col2 FROM tab2 AS cor0
----
-46722
-50308
-99715
onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT DISTINCT + col1 * - col1 + ( - 37 ) DIV col1 FROM tab1 cor0
----
-103
-171
-677
skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + col1 * - col1 + ( - 37 ) / col1 FROM tab1 cor0
----
-103
-171
-677
query I rowsort
SELECT col1 * col2 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col0 * + 13 FROM tab2 cor0
----
1052
1316
4495
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT col0 DIV col0 - col0 * ( + col0 ) * + col1 FROM tab2
----
-106096
-1518
-358955
skipif mysql # not compatible
query I rowsort label-7545
SELECT col0 / col0 - col0 * ( + col0 ) * + col1 FROM tab2
----
-106096
-1518
-358955
query I rowsort
SELECT DISTINCT - 9 * - col0 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT + - 62 + col2 FROM tab0 AS cor0
----
-29
-61
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT ALL - - 48 DIV - col0 + 78 FROM tab0 AS cor0
----
76
77
78
skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - - 48 / - col0 + 78 FROM tab0 AS cor0
----
76
77
78
query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab0 AS cor0
----
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT ALL - col0 * - cor0.col1 DIV - col1 + + col1 + col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - col0 * - cor0.col1 / - col1 + + col1 + col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT DISTINCT + - col0 * col2 + - ( - col0 ) * col1 DIV col0 - - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-347
-3997
-5987
skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + - col0 * col2 + - ( - col0 ) * col1 / col0 - - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-347
-3997
-5987
query I rowsort
SELECT DISTINCT + 78 + + col0 * col1 FROM tab1 AS cor0
----
1118
156
718
query I rowsort
SELECT DISTINCT - 50 * col1 AS col1 FROM tab1
----
-1300
-500
-650
query I rowsort
SELECT ( cor0.col2 ) + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col0 - + col0 * - ( - col2 * col0 ) FROM tab2 AS cor0
----
-1330
-158262
-237237
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT - col2 DIV + cor0.col0 - - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
834
skipif mysql # not compatible
query I rowsort label-7556
SELECT - col2 / + cor0.col0 - - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
834
query I rowsort
SELECT + - cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + col0 - col0 * cor0.col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + - cor0.col0 * + 19 - + col1 FROM tab2 AS cor0
----
-1518
-1541
-164
query I rowsort
SELECT + ( col1 + + 13 * 77 ) AS col0 FROM tab2
----
1018
1032
1060
query I rowsort
SELECT + col2 - col0 * + 36 AS col1 FROM tab0 AS cor0
----
-1259
-3122
-831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 - - col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL - + ( + col2 ) * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 86 + col0 * col2 * col0 FROM tab2 AS cor0
----
1409
158270
237244
query I rowsort
SELECT - cor0.col1 * 24 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
-546
400
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7567
SELECT ALL + col0 + cor0.col1 DIV col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + col0 + cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT + col2 + - col0 * - col0 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-7569
SELECT ALL - col2 * 35 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-32
-48
skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - col2 * 35 / + cor0.col0 FROM tab0 AS cor0
----
-1
-32
-48
query I rowsort
SELECT - + col0 + 98 FROM tab2 AS cor0
----
19
20
91
query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT + col2 DIV col2 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7572
SELECT + col2 / col2 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + col1 * col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT + col0 * col1 * - col0 + ( col2 * col2 + + col2 ) FROM tab1 AS cor0
----
-37654
-73888
2736
query I rowsort
SELECT tab0.col2 + - ( tab0.col2 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 78 col1 FROM tab0
----
-6708
-7098
-7566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7577
SELECT ALL col2 + - CAST( col1 AS SIGNED ) * col1 FROM tab2
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL col2 + - CAST ( col1 AS INTEGER ) * col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT col2 * + 81 AS col0 FROM tab2
----
2106
2187
3078
query I rowsort
SELECT + - col0 * - 87 FROM tab1 AS cor0
----
261
5568
6960
query I rowsort
SELECT ALL 8 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab1
----
-67
-67
-67
query I rowsort
SELECT ALL + 46 + - cor0.col2 * col0 FROM tab1 cor0
----
-116
-3602
-7634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT ALL + 44 + + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
44
45
79
skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + 44 + + col0 / col2 AS col2 FROM tab0 AS cor0
----
44
45
79
query I rowsort
SELECT - col0 - 49 * col2 * col2 AS col2 FROM tab0
----
-329565
-53385
-84
query I rowsort
SELECT 37 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - + cor0.col1 * 1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT - CAST( cor0.col0 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7587
SELECT - CAST ( cor0.col0 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - 72 * + col2 FROM tab0 AS cor0
----
-2376
-5904
-72
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT - 61 * col2 + col1 FROM tab1 AS cor0
----
-3268
-3467
-5843
query I rowsort
SELECT DISTINCT + col1 + 41 * + cor0.col2 FROM tab2 AS cor0
----
1125
1138
1575
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col1 col0 FROM tab0 AS cor0
----
-40
-45
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 79 col1 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL - + cor0.col0 * + col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT 99 * cor0.col2 AS col2 FROM tab0 cor0
----
3267
8118
99
query I rowsort
SELECT 66 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + 36 * col2 + + 4 AS col2 FROM tab2 AS cor0
----
1372
940
976
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT col1 DIV col2 + 24 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7598
SELECT col1 / col2 + 24 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + + col0 + + col0 * 4 FROM tab1 AS cor0
----
15
320
400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7600
SELECT ALL - - col2 * - col2 + + col1 + - ( col2 ) * CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - - col2 * - col2 + + col1 + - ( col2 ) * CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 * + col1 + col2 * + ( col0 + - 59 ) AS col1 FROM tab1 AS cor0
----
-2348
2185
385
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT - ( - 37 ) FROM tab1, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT col0 + + col0 * + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT - - col1 + 67 * + col0 FROM tab1 AS cor0
----
227
4298
5373
query I rowsort
SELECT DISTINCT + + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26
query I rowsort
SELECT - + col2 + ( col0 * + col1 ) FROM tab1 cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT - col0 DIV + ( col1 * col1 ) + col1 AS col0 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7608
SELECT - col0 / + ( col1 * col1 ) + col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col0 * ( + 10 ) AS col2 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT DISTINCT - + col1 * + 14 FROM tab2 cor0
----
-238
-434
-826
query I rowsort
SELECT ALL - - col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + col1 - 11 AS col2 FROM tab2 AS cor0
----
20
48
6
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7614
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7614
SELECT cor0.col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7616
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 6 + - col0 * col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-233478
-492
-614406
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + - col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 80 + col1 AS col1 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT ALL + ( - cor0.col0 ) + - ( 10 ) AS col1 FROM tab1 AS cor0
----
-13
-74
-90
query I rowsort
SELECT - 89 + + col1 AS col1 FROM tab2 AS cor0
----
-30
-58
-72
query I rowsort
SELECT - cor0.col0 + - col1 + + 49 AS col2 FROM tab1 AS cor0
----
-25
-44
20
query I rowsort
SELECT + - 37 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d813e7be7c85029cd71f7457b98c6f0
query I rowsort
SELECT + - col1 + cor0.col1 * + col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL col0 * 90 * - col1 FROM tab1
----
-57600
-7020
-93600
query I rowsort
SELECT DISTINCT tab2.col0 * - ( 41 ) AS col0 FROM tab2, tab0 AS cor0
----
-287
-3198
-3239
query I rowsort
SELECT ALL col0 + - col2 * 38 AS col2 FROM tab1
----
-2049
-2102
-3568
query I rowsort
SELECT col1 + - col2 * + col2 + - tab0.col2 FROM tab0
----
-1036
-6715
95
query I rowsort
SELECT ALL - 40 + col2 FROM tab1
----
14
17
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT col1 + col1 + 39 FROM tab2
----
101
157
73
query I rowsort
SELECT ALL + 85 + col0 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT 34 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
115430
275366
70176
query I rowsort
SELECT col1 + + cor0.col1 * - 27 FROM tab1 cor0
----
-260
-338
-676
query I rowsort
SELECT DISTINCT - 78 + + col2 AS col1 FROM tab2 AS cor0
----
-40
-51
-52
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 38 * + col0 * tab1.col2 AS col1 FROM tab1
----
138624
291840
6156
query I rowsort
SELECT DISTINCT col2 + col0 - col1 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + 98 AS col1 FROM tab0 AS cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT DISTINCT + cor0.col0 * col1 + - col1 * col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
1946
3393
8016
skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + cor0.col0 * col1 + - col1 * col2 / + col0 AS col0 FROM tab0 AS cor0
----
1946
3393
8016
query I rowsort
SELECT ALL + 19 * - col0 - - cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1032
-1890
-9612
query I rowsort
SELECT + + col0 - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( + 46 ) * + col1 + - ( 92 + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
19264
20839
22795
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT + - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7646
SELECT + - col1 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + - 49 AS col1 FROM tab2 AS cor0
----
-49
-49
-49
query I rowsort
SELECT 55 + ( - tab0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 9e30a0f7890975f51e8c0e7336caffab
query I rowsort
SELECT ALL col0 * - 83 + + col2 FROM tab2
----
-554
-6448
-6519
query I rowsort
SELECT ALL - col2 * - col0 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 + ( + tab0.col0 + - ( tab0.col0 ) ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + 37 AS col1 FROM tab1
----
37
37
37
query I rowsort
SELECT - ( 32 ) * - col0 AS col2 FROM tab2 AS cor0
----
224
2496
2528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 + col0 ) col2 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT 48 * col1 FROM tab0 AS cor0
----
4128
4368
4656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 68 * col1 col2 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT - ( tab2.col0 ) AS col0 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT 8 FROM tab2, tab1, tab0 cor0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col2 col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5
query I rowsort
SELECT 75 + + col1 * + 36 AS col0 FROM tab1 AS cor0
----
1011
435
543
query I rowsort
SELECT - 60 * - col0 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT col2 * ( + col2 + + col1 ) AS col2 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT DISTINCT col2 + + ( + 25 ) AS col0 FROM tab1 cor0
----
121
79
82
query I rowsort
SELECT DISTINCT + cor0.col0 * 4 AS col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT col1 + col0 * cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT - 6 * cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 253baa43b37f808e9232f2ca803533de
onlyif mysql # use DIV operator for integer division
query I rowsort label-7670
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - col2 / col1 AS col2 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + col1 * ( - col2 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7672
SELECT - CAST( 81 AS SIGNED ) + col0 FROM tab2 cor0
----
-2
-3
-74
skipif mysql # not compatible
query I rowsort label-7672
SELECT - CAST ( 81 AS INTEGER ) + col0 FROM tab2 cor0
----
-2
-3
-74
query I rowsort
SELECT ALL - + col0 + 46 AS col1 FROM tab1 cor0
----
-18
-34
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 67 col0 FROM tab2 AS cor0
----
105
93
94
query I rowsort
SELECT - ( col0 ) * col2 + - ( ( col1 ) ) FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - ( - 44 ) AS col0 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT 75 * - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1872
-2018
-2771
query I rowsort
SELECT + tab0.col0 * col0 * col1 AS col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col0 * + col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT + 34 DIV ( - col1 * - col2 ) + + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-7680
SELECT + 34 / ( - col1 * - col2 ) + + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 68 + col2 AS col2 FROM tab0 AS cor0
----
101
150
69
query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL - col1 * - ( + col0 ) - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + + cor0.col1 * - 38 FROM tab0 AS cor0
----
-3268
-3458
-3686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7685
SELECT CAST( NULL AS SIGNED ) * 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7685
SELECT CAST ( NULL AS INTEGER ) * 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 7 + - col1 * - col0 * col0 + - col1 AS col0 FROM tab0 cor0
----
118721
49443
720713
query I rowsort
SELECT ALL col0 * 42 FROM tab1
----
126
2688
3360
query I rowsort
SELECT 23 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col1 FROM tab2 cor0
----
-5
-5
-5
query I rowsort
SELECT - col0 * 15 FROM tab2
----
-105
-1170
-1185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7691
SELECT - ( + col2 ) * + CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7691
SELECT - ( + col2 ) * + CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT col2 + col2 DIV + 65 AS col2 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7692
SELECT col2 + col2 / + 65 AS col2 FROM tab2 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT ALL col0 + col0 * + cor0.col1 * + ( + col1 + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL col0 + col0 * + cor0.col1 * + ( + col1 + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * - col2 * - col0 + - col1 col2 FROM tab1 AS cor0
----
142262
299507
6292
query I rowsort
SELECT tab1.col1 * ( + col2 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 82 * - col2 AS col2 FROM tab2
----
-2132
-2214
-3116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab1
----
54
54
54
query I rowsort
SELECT + 41 * - col1 AS col2 FROM tab0
----
-3526
-3731
-3977
query I rowsort
SELECT DISTINCT - col1 * 16 * col1 AS col2 FROM tab1
----
-10816
-1600
-2704
query I rowsort
SELECT DISTINCT + col2 + col2 * 14 FROM tab0
----
1230
15
495
query I rowsort
SELECT + ( cor0.col2 ) + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - 11 + + col0 AS col2 FROM tab2 AS cor0
----
-4
67
68
query I rowsort
SELECT 43 * col1 AS col1 FROM tab2 AS cor0
----
1333
2537
731
query I rowsort
SELECT 68 + tab0.col0 FROM tab0
----
103
157
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 + col1 col2 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - 50 * - tab1.col1 * - ( + 37 ) + + col0 + - 61 * col2 FROM tab1
----
-21913
-29826
-51391
query I rowsort
SELECT DISTINCT 28 + - col1 * + ( col2 ) FROM tab2
----
-1506
-618
-809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 99 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT - col2 DIV + col0 + ( - 9 ) * + col2 FROM tab1
----
-504
-513
-865
skipif mysql # not compatible
query I rowsort label-7711
SELECT - col2 / + col0 + ( - 9 ) * + col2 FROM tab1
----
-504
-513
-865
query I rowsort
SELECT DISTINCT col0 * col0 + 28 + + col2 * - col2 * tab0.col0 FROM tab0
----
-25532
-590487
1218
onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT DISTINCT 54 + + col2 DIV col0 FROM tab0
----
54
55
skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT 54 + + col2 / col0 FROM tab0
----
54
55
query I rowsort
SELECT col2 + 86 * 10 FROM tab2 AS cor0
----
886
887
898
query I rowsort
SELECT ALL col0 * + ( col0 ) FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col1 + - 90 FROM tab2 AS cor0
----
-107
-121
-149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + col0 col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT - col0 + - col2 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-7718
SELECT - col0 + - col2 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT ALL + col1 * + 57 AS col2 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT DISTINCT 87 FROM tab2, tab2 AS cor0
----
87
query I rowsort
SELECT ALL + col0 + 11 AS col2 FROM tab2 AS cor0
----
18
89
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT - + col1 + - col1 * cor0.col1 DIV col2 col2 FROM tab1 AS cor0
----
-11
-14
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7722
SELECT - + col1 + - col1 * cor0.col1 / col2 col2 FROM tab1 AS cor0
----
-11
-14
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT - col1 DIV ( - 57 ) FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7723
SELECT - col1 / ( - 57 ) FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7725
SELECT ALL - - cor0.col1 * - CAST( NULL AS SIGNED ) * - cor0.col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - - cor0.col1 * - CAST ( NULL AS INTEGER ) * - cor0.col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * 38 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT ALL - - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 + + 82 FROM tab1 AS cor0
----
108
92
95
query I rowsort
SELECT + - col2 * col1 * + ( col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT - col2 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + + col2 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT - col2 DIV + ( col0 ) FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7733
SELECT - col2 / + ( col0 ) FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT ALL col2 + + ( 94 ) * + col1 FROM tab1 AS cor0
----
1318
2498
997
query I rowsort
SELECT ALL - cor1.col2 - - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7607aa711594b93a04a1b001dc2b95bf
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7737
SELECT ALL - CAST( - col2 AS SIGNED ) + + col2 + - col2 col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - CAST ( - col2 AS INTEGER ) + + col2 + - col2 col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ( 40 ) AS col2 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT ALL + ( col1 ) * - col2 + 41 FROM tab0 cor0
----
-2797
-56
-7421
query I rowsort
SELECT ALL - + col1 * 0 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col2 + + col0 * col0 * + col2 AS col0 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT + 26 + 95 FROM tab0 AS cor0
----
121
121
121
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7743
SELECT + CAST( col0 AS SIGNED ) + - col0 * + ( + 34 ) FROM tab0 AS cor0
----
-1155
-2937
-792
skipif mysql # not compatible
query I rowsort label-7743
SELECT + CAST ( col0 AS INTEGER ) + - col0 * + ( + 34 ) FROM tab0 AS cor0
----
-1155
-2937
-792
query I rowsort
SELECT + + 66 + col0 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT ALL + - ( - col1 ) AS col1 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + col1 col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 10 + col2 AS col1 FROM tab1 AS cor0
----
44
47
86
query I rowsort
SELECT DISTINCT - col1 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + - col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7751
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * - col0 - - 20 FROM tab1 cor0
----
-142
-3628
-7660
onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT ALL col1 DIV col0 + + col0 * col1 AS col1 FROM tab2 cor0
----
1343
221
4602
skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL col1 / col0 + + col0 * col1 AS col1 FROM tab2 cor0
----
1343
221
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * + CAST ( - 61 AS REAL ) * + col1 + - col2 col2 FROM tab0 cor0
----
173085
455100
5916
query I rowsort
SELECT DISTINCT + col0 - + ( col0 * col1 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col1 * col2 + 56 AS col1 FROM tab2 AS cor0
----
-1478
-590
-781
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7758
SELECT + col0 * - CAST( NULL AS SIGNED ) / - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7758
SELECT + col0 * - CAST ( NULL AS INTEGER ) / - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * 56 + 8 FROM tab1 AS cor0
----
-160
-3576
-4472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) + col0 col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL col0 + - 82 AS col0 FROM tab0 AS cor0
----
-47
-58
7
query I rowsort
SELECT ALL - col2 * col2 - - col1 AS col0 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + col1 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col0 * 17 + - 35 * + col1 AS col0 FROM tab2 AS cor0
----
-1204
-1938
-3391
onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT ALL - - col1 DIV - ( 68 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - - col1 / - ( 68 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col1 + ( - ( + col1 ) ) * col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col2 + - 29 FROM tab0 AS cor0
----
-111
-30
-62
query I rowsort
SELECT - ( 25 ) FROM tab2 cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) + 65 AS col2 FROM tab1 cor0
----
-1183
-1339
-505
query I rowsort
SELECT ( 23 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) * - 93 AS col2 FROM tab0 AS cor0
----
-2265
-3256
-8359
query I rowsort
SELECT ALL + col1 * cor0.col2 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL - 80 + + 27 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT - - 60 * + col1 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-2236
-2821
-3589
query I rowsort
SELECT DISTINCT - col1 + col2 + - col0 FROM tab2 cor0
----
-11
-111
-58
query I rowsort
SELECT ALL - col0 * + col1 - ( - cor0.col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-69
3456
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT DISTINCT - + ( col1 ) * col1 DIV cor0.col2 + col1 DIV col2 FROM tab0 AS cor0
----
-222
-9312
-99
skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - + ( col1 ) * col1 / cor0.col2 + col1 / col2 FROM tab0 AS cor0
----
-222
-9312
-99
query I rowsort
SELECT - cor0.col2 * - col1 + 57 FROM tab2 AS cor0
----
1591
703
894
query I rowsort
SELECT ALL + + 10 AS col2 FROM tab0 cor0
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col0 FROM tab1 AS cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7781
SELECT ALL 13 * + col0 + ( ( col0 ) ) - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL 13 * + col0 + ( ( col0 ) ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + tab0.col0 col2 FROM tab0
----
100
35
46
query I rowsort
SELECT 54 + - col0 FROM tab0
----
-35
19
30
query I rowsort
SELECT DISTINCT - 33 * + col1 * col2 + - col0 * - col0 AS col0 FROM tab1
----
-14714
-34784
-46323
onlyif mysql # use DIV operator for integer division
query I rowsort label-7785
SELECT ALL col0 + col2 DIV + ( - col2 + - col0 ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL col0 + col2 / + ( - col2 + - col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT - - col2 + - 91 AS col0 FROM tab0 AS cor0
----
-58
-9
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + col0 + ( col0 + col0 ) col1 FROM tab1
----
202
253
35
query I rowsort
SELECT DISTINCT tab1.col2 - + cor0.col1 * + 67 FROM tab1, tab1 AS cor0
----
9 values hashing to 332a33a85f77b3d5680943ea2954b46c
query I rowsort
SELECT + 52 * - col2 AS col2 FROM tab2
----
-1352
-1404
-1976
onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT col0 + + col0 DIV tab1.col2 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-7790
SELECT col0 + + col0 / tab1.col2 FROM tab1
----
3
65
80
query I rowsort
SELECT - col0 * col1 + 70 FROM tab1 AS cor0
----
-570
-8
-970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7792
SELECT col2 + CAST( - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-7792
SELECT col2 + CAST ( - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - col0 + - 82 AS col0 FROM tab2 AS cor0
----
-160
-161
-89
query I rowsort
SELECT - col2 + col2 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT ALL - col2 * col0 DIV 85 AS col0 FROM tab1
----
-1
-42
-90
skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - col2 * col0 / 85 AS col0 FROM tab1
----
-1
-42
-90
query I rowsort
SELECT ALL 87 + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 77d4c687d5242f55a59fb12402ec175c
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab0, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 * col0 AS col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT ALL col0 + + 60 FROM tab2 AS cor0
----
138
139
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT 4 * 61 + col2 DIV 36 + 69 FROM tab0
----
313
313
315
skipif mysql # not compatible
query I rowsort label-7801
SELECT 4 * 61 + col2 / 36 + 69 FROM tab0
----
313
313
315
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7802
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * tab0.col0 + - 5 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * tab0.col0 + - 5 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - 92 ) - + col1 AS col2 FROM tab2
----
-109
-123
-151
query I rowsort
SELECT ALL + col2 + tab1.col0 AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT DISTINCT col0 + + col1 DIV col2 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT col0 + + col1 / col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - + col0 + 40 FROM tab0 AS cor0
----
-49
16
5
query I rowsort
SELECT DISTINCT - + col2 + 28 FROM tab0 AS cor0
----
-5
-54
27
query I rowsort
SELECT - - 18 * + tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 844089087499cdd9e5f9f04c676a2360
query I rowsort
SELECT + col1 + col1 * - 45 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT DISTINCT - - ( col0 ) * - 54 * col2 FROM tab1 AS cor0
----
-196992
-414720
-8748
query I rowsort
SELECT - col1 * - cor0.col1 + 12 FROM tab2 AS cor0
----
301
3493
973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab1 AS cor0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7813
SELECT + cor0.col1 + + col2 - - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7813
SELECT + cor0.col1 + + col2 - - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 60 + col1 AS col0 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( col0 ) * - 73 - 33 FROM tab1 AS cor0
----
186
4639
5807
query I rowsort
SELECT + 79 + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
128
6163
6320
query I rowsort
SELECT + + 70 + col1 - col1 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT col2 * col2 + - tab2.col2 AS col2 FROM tab2
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + 96 col1 FROM tab0
----
-182
-187
-193
query I rowsort
SELECT ALL - 24 + ( - col1 ) AS col1 FROM tab0
----
-110
-115
-121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col2 col2 FROM tab0
----
164
2
66
query I rowsort
SELECT 18 * col2 + - col2 * col2 AS col2 FROM tab2 cor0
----
-208
-243
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT DISTINCT - ( 74 ) DIV - col1 + ( - cor0.col1 + + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-164
-2046
-62
skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - ( 74 ) / - col1 + ( - cor0.col1 + + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL - col2 - + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + col1 * col1 - cor0.col1 * - cor0.col2 FROM tab0 cor0
----
10234
15743
9506
query I rowsort
SELECT - 79 + col1 AS col0 FROM tab1 cor0
----
-53
-66
-69
query I rowsort
SELECT ALL - col0 * + col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - + 75 * col1 * - 97 FROM tab0 AS cor0
----
625650
662025
705675
query I rowsort
SELECT DISTINCT col1 * col2 * + ( + col1 + col2 ) FROM tab1 AS cor0
----
112320
136032
38190
query I rowsort
SELECT ALL - 97 * col0 + col2 FROM tab1 cor0
----
-237
-6151
-7664
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 34 * - col1 + - 61 * 51 - col0 * + 89 FROM tab1 AS cor0
----
-10673
-4262
-9147
query I rowsort
SELECT - ( + col1 ) * col2 * 97 AS col1 FROM tab0
----
-275286
-723814
-9409
query I rowsort
SELECT + col1 * + 68 FROM tab2 cor0
----
1156
2108
4012
query I rowsort
SELECT + cor0.col2 * 45 FROM tab2 AS cor0
----
1170
1215
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 92 col1 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT + col0 + + 4 + 98 AS col1 FROM tab0 AS cor0
----
126
137
191
query I rowsort
SELECT ALL - 13 * - tab0.col1 FROM tab0
----
1118
1183
1261
query I rowsort
SELECT ALL + 61 * col1 AS col0 FROM tab2
----
1037
1891
3599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * col1 col0 FROM tab0
----
3956
4186
4462
query I rowsort
SELECT + + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT 0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7845
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * ( col1 + - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * ( col1 + - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - tab0.col0 * + col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT - col0 DIV col0 + + col2 AS col0 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-7847
SELECT - col0 / col0 + + col2 AS col0 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT col1 * - 74 + - col2 + col0 FROM tab2 cor0
----
-1217
-2314
-4314
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT + tab0.col2 DIV - tab0.col0 col0 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7849
SELECT + tab0.col2 / - tab0.col0 col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT + 53 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0aba98f04ad193b5835a87c466b2e0d
query I rowsort
SELECT - ( col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT ( - col0 ) + + col0 * col1 * + 24 FROM tab2 AS cor0
----
110370
32153
5201
query I rowsort
SELECT ALL 18 + cor0.col1 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT DISTINCT + 49 * - col0 FROM tab1 AS cor0
----
-147
-3136
-3920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * col0 col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + + 92 + 63 * col0 FROM tab0 AS cor0
----
1604
2297
5699
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT DISTINCT col1 DIV 25 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT col1 / 25 FROM tab1
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL 46 * 14 AS col0 FROM tab0 cor0
----
644
644
644
query I rowsort
SELECT ALL + col2 * 73 FROM tab1 AS cor0
----
3942
4161
7008
onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT - + col2 DIV 70 + col2 + + col0 FROM tab0 AS cor0
----
170
36
57
skipif mysql # not compatible
query I rowsort label-7861
SELECT - + col2 / 70 + col2 + + col0 FROM tab0 AS cor0
----
170
36
57
query I rowsort
SELECT DISTINCT - 20 FROM tab1 cor0
----
-20
query I rowsort
SELECT DISTINCT + + 66 FROM tab2 cor0
----
66
query I rowsort
SELECT - 61 + + col1 * cor0.col1 FROM tab1 AS cor0
----
108
39
615
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + ( - 26 ) + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dec24881da0ebb7521bcce50c977535d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT ALL + ( - col1 ) DIV ( - col1 ) AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + ( - col1 ) / ( - col1 ) AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT + col0 + - col0 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7869
SELECT ALL + CAST( - 51 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + CAST ( - 51 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT DISTINCT cor0.col2 * + 4 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT ALL - 25 + - 34 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7872
SELECT DISTINCT - - col2 + ( + col0 * cor0.col2 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - - col2 + ( + col0 * cor0.col2 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * + 17 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT - cor0.col0 * 29 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d92716868d5bdc9272f7ba54dfbc5e44
query I rowsort
SELECT ALL + cor0.col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 + + col0 * + ( col1 ) * 12 AS col1 FROM tab1 AS cor0
----
12493
7690
962
query I rowsort
SELECT - - col2 + - col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 22 * + col1 + col1 col2 FROM tab0
----
-1892
-2002
-2134
query I rowsort
SELECT + ( col1 ) * - col0 - 79 AS col0 FROM tab2
----
-1422
-296
-4681
query I rowsort
SELECT DISTINCT 99 + + col2 * tab0.col0 FROM tab0
----
134
7397
891
query I rowsort
SELECT - + cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + ( col1 ) * + col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ( + col1 ) * col0 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + tab0.col0 * - col1 + - col1 AS col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL - 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT + col1 * 28 FROM tab2
----
1652
476
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7887
SELECT - CAST( col1 AS SIGNED ) * - col1 AS col0 FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-7887
SELECT - CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - ( + col2 ) * + col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 68 * - col1 AS col0 FROM tab0 cor0
----
-5848
-6188
-6596
query I rowsort
SELECT 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - - 82 + - col0 * - ( 15 ) AS col2 FROM tab0 AS cor0
----
1417
442
607
query I rowsort
SELECT DISTINCT - col2 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + + 55 + + col2 AS col1 FROM tab0 AS cor0
----
137
56
88
skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( col2 + - col0 AS REAL ) FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT ALL - col1 + ( cor0.col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col2 + 62 AS col1 FROM tab1 AS cor0
----
116
119
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + cor0.col2 + - col0 col1 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT DISTINCT col1 * ( + cor0.col1 ) * - col1 + col1 + + col1 FROM tab1 AS cor0
----
-17524
-2171
-980
query I rowsort
SELECT DISTINCT + col2 * + 18 AS col0 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT DISTINCT + col0 + 69 FROM tab2 cor0
----
147
148
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7901
SELECT + CAST( 33 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
59
60
71
skipif mysql # not compatible
query I rowsort label-7901
SELECT + CAST ( 33 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL - - col1 * 68 + col0 FROM tab2 AS cor0
----
1235
2115
4090
query I rowsort
SELECT DISTINCT col0 + col1 * col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + - col2 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT col2 DIV - 76 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7906
SELECT col2 / - 76 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col0 * + col0 * col1 + + col0 * col1 FROM tab2 cor0
----
107440
1736
363558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7908
SELECT 65 * col2 * + col0 + CAST( + 37 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10567
237157
499237
skipif mysql # not compatible
query I rowsort label-7908
SELECT 65 * col2 * + col0 + CAST ( + 37 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10567
237157
499237
query I rowsort
SELECT + + 87 * col1 * - col2 FROM tab0 AS cor0
----
-246906
-649194
-8439
query I rowsort
SELECT 43 * col1 + - col0 * col0 * col1 FROM tab0 AS cor0
----
-114654
-45838
-716898
query I rowsort
SELECT - 12 * cor0.col2 * col1 + - ( col1 * + col1 + col0 ) AS col1 FROM tab1 cor0
----
-15225
-17527
-7004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7913
SELECT - + cor0.col1 * cor0.col0 * col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7913
SELECT - + cor0.col1 * cor0.col0 * col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + 15 FROM tab0 AS cor0
----
16
48
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT - ( cor0.col0 ) DIV col0 - + col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-7915
SELECT - ( cor0.col0 ) / col0 - + col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - 26 col0 FROM tab2 AS cor0
----
-9
33
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT - col2 + - col1 DIV col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-7917
SELECT - col2 + - col1 / col2 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT - - col2 + + col2 * ( + col0 + + col1 ) AS col2 FROM tab1 AS cor0
----
1620
4275
9024
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + cor0.col2 col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab1, tab0 AS cor0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT ALL - col1 * + col0 + 41 DIV col0 - 78 FROM tab0 AS cor0
----
-2141
-3472
-8177
skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - col1 * + col0 + 41 / col0 - 78 FROM tab0 AS cor0
----
-2141
-3472
-8177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7923
SELECT + + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7923
SELECT + + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + ( - cor0.col0 ) * + col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + tab1.col2 * 66 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 08947d915aab150cea9ea45d94d4263b
query I rowsort
SELECT + col0 + + ( + cor0.col2 ) + col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT ALL tab0.col2 + + col2 * col0 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7929
SELECT ALL tab1.col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL tab1.col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + col1 * col1 + 73 col1 FROM tab0 AS cor0
----
10307
15816
9579
query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) FROM tab0 cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7932
SELECT DISTINCT - cor0.col0 * + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - cor0.col0 * + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - + col0 * col2 + 58 AS col2 FROM tab0 AS cor0
----
-7240
-734
23
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ( - col2 ) + - col1 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT col1 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT + ( + 17 ) AS col1 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT + ( 34 ) + cor0.col2 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT + 31 + - 42 AS col1 FROM tab1 cor0
----
-11
-11
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT - CAST( ( - col2 ) AS SIGNED ) + col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7940
SELECT - CAST ( ( - col2 ) AS INTEGER ) + col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7941
SELECT ALL CAST( + 39 AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb
skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL CAST ( + 39 AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb
query I rowsort
SELECT col1 * + col2 + - 93 FROM tab2 AS cor0
----
1441
553
744
query I rowsort
SELECT ALL - col0 * - col0 + - ( + col2 ) * col1 FROM tab2 AS cor0
----
-788
4550
5595
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 32 * - col0 FROM tab1 cor0
----
-2048
-2560
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7946
SELECT ALL + cor0.col1 * - col0 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + cor0.col1 * - col0 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col2 + 83 * - col2 AS col0 FROM tab0 AS cor0
----
-1947
-48
492
query I rowsort
SELECT - + col0 * + cor0.col2 * 46 FROM tab2 AS cor0
----
-138092
-8694
-93288
query I rowsort
SELECT ALL - + ( col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + + 40 FROM tab0 cor0
----
40
query I rowsort
SELECT DISTINCT - - col2 * col0 - ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * ( 11 * - col0 + - col2 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
40837
753298
90902
query I rowsort
SELECT ALL + 34 + - col1 * 34 FROM tab2 AS cor0
----
-1020
-1972
-544
query I rowsort
SELECT ALL - 37 - cor0.col1 FROM tab1 AS cor0
----
-47
-50
-63
query I rowsort
SELECT DISTINCT - - 80 AS col0 FROM tab0, tab2, tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT col2 * col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - cor0.col0 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + tab1.col1 * - tab1.col1 + col1 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT 31 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
31
skipif mysql # not compatible
query I rowsort label-7960
SELECT 31 / col2 AS col1 FROM tab0 AS cor0
----
0
0
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7961
SELECT DISTINCT + CAST( 64 AS SIGNED ) + col2 * col1 FROM tab0 AS cor0
----
161
2902
7526
skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + CAST ( 64 AS INTEGER ) + col2 * col1 FROM tab0 AS cor0
----
161
2902
7526
query I rowsort
SELECT + col2 * col0 + cor0.col1 * 63 + col2 FROM tab1 AS cor0
----
1854
4335
8595
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT - 77 DIV ( - col2 ) col1 FROM tab0 AS cor0
----
0
2
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7963
SELECT - 77 / ( - col2 ) col1 FROM tab0 AS cor0
----
0
2
77
query I rowsort
SELECT DISTINCT col2 + 76 * col1 AS col2 FROM tab0 AS cor0
----
6569
6998
7373
query I rowsort
SELECT - + 51 AS col0 FROM tab1 AS cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT col2 + - col1 * cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-7966
SELECT col2 + - col1 * cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + 50 FROM tab1 AS cor0
----
-50
query I rowsort
SELECT - + col1 + 39 FROM tab0 AS cor0
----
-47
-52
-58
query I rowsort
SELECT ALL 28 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1253
604
7949
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7970
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 + + ( tab0.col2 ) AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT ALL tab0.col0 DIV + col2 + + col0 + - col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL tab0.col0 / + col2 + + col0 + - col0 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col2 - 62 AS col0 FROM tab0
----
-29
-61
20
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT ( col2 ) + col0 * - col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - ( col0 ) * col1 * + 64 + - 59 * - col0 AS col2 FROM tab0
----
-130680
-215215
-513085
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * col2 col0 FROM tab0 AS cor0
----
1188
2952
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7979
SELECT CAST( + col1 AS SIGNED ) * col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( + col1 AS INTEGER ) * col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - ( ( col2 ) ) * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT + + col1 + col1 * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7981
SELECT + + col1 + col1 * col1 / - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( - col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 + + col2 FROM tab0
----
-7387
-8288
-9443
query I rowsort
SELECT DISTINCT + tab1.col2 + - tab1.col0 * tab1.col1 - col1 * col2 * col2 FROM tab1
----
-120752
-33073
-75840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT DISTINCT col2 DIV - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT col2 / - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + col0 * - tab1.col2 * col0 + col2 * - col0 + col0 FROM tab1
----
-237056
-622000
-645
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 = col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 * - col0 * col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT - col0 * + col1 + tab2.col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 + + col2 * tab1.col1 + col0 FROM tab1
----
1408
1410
698
query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab1 WHERE col1 / + col2 + + col1 < NULL
----
query I rowsort
SELECT - tab0.col2 * col2 * col2 FROM tab0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT DISTINCT + tab0.col1 * col2 DIV tab0.col2 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + tab0.col1 * col2 / tab0.col2 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL col2 * col0 DIV - tab2.col1 AS col0 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL col2 * col0 / - tab2.col1 AS col0 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0 WHERE NOT col2 + + col2 * col0 <= - col2 * col0
----
86
91
97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND col2 * + col1 * col1 + + col1
----
query I rowsort
SELECT ALL tab2.col1 - - col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT col2 * - col0 * + col2 AS col2 FROM tab1
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - col0 + col2 col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL BETWEEN col0 - col1 AND ( col2 / col2 )
----
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + col1 AS col1 FROM tab2 WHERE NOT - col1 + tab2.col1 IN ( col1 )
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT tab0.col2 * col1 + + col0 DIV + col0 AS col0 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-8003
SELECT tab0.col2 * col1 + + col0 / + col0 AS col0 FROM tab0
----
2839
7463
98
query I rowsort
SELECT + col0 * + col2 * - col1 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col1 + - col2 * col2 + col1 * - tab1.col0 * + col2 FROM tab1
----
-109043
-39719
-7102
onlyif mysql # use DIV operator for integer division
query I rowsort label-8006
SELECT ALL - col1 + col1 DIV tab2.col1 FROM tab2
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - col1 + col1 / tab2.col1 FROM tab2
----
-16
-30
-58
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8008
SELECT col2 * col0 * + col0 + - col0 DIV tab2.col0 FROM tab2
----
1322
158183
237157
skipif mysql # not compatible
query I rowsort label-8008
SELECT col2 * col0 * + col0 + - col0 / tab2.col0 FROM tab2
----
1322
158183
237157
query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( tab2.col2 + + col0 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT DISTINCT + col1 * + col0 DIV col0 + col2 col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT + col1 * + col0 / col0 + col2 col0 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8011
SELECT + cor0.col0 * - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8011
SELECT + cor0.col0 * - col1 / - col1 AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT DISTINCT col0 DIV col1 col2 FROM tab2
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT col0 / col1 col2 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 + col1 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col0 * + col1 FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-8015
SELECT DISTINCT col1 * - col2 + col2 DIV col2 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT col1 * - col2 + col2 / col2 FROM tab1 AS cor0
----
-1247
-1403
-569
onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT col0 DIV tab0.col1 + col1 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8016
SELECT col0 / tab0.col1 + col1 AS col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT ALL col1 - col1 DIV col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL col1 - col1 / col0 FROM tab1
----
10
13
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab2.col2 col2 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < NULL
----
query I rowsort
SELECT ALL col0 * - col0 * col0 FROM tab1 cor0
----
-262144
-27
-512000
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col0 + col1 * + col1 )
----
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * col1 FROM tab1 AS cor0 WHERE + col2 / + cor0.col2 + + col0 / cor0.col2 BETWEEN + cor0.col1 * col2 AND NULL
----
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96
query I rowsort
SELECT + col2 * + 93 AS col2 FROM tab0 AS cor0
----
3069
7626
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT ALL - col2 DIV + 23 FROM tab1
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - col2 / + 23 FROM tab1
----
-2
-2
-4
query I rowsort
SELECT - ( col2 ) * col2 - + 43 * col0 AS col0 FROM tab2 cor0
----
-1030
-4030
-4841
query I rowsort
SELECT + + col1 * 27 AS col0 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT ALL - 86 + col2 AS col0 FROM tab2 AS cor0
----
-48
-59
-60
query I rowsort
SELECT DISTINCT - 91 + + col0 AS col0 FROM tab1 AS cor0
----
-11
-27
-88
query I rowsort
SELECT col2 + + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8034
SELECT + + col2 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8034
SELECT + + col2 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col1 + - 0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + tab1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT ALL + + 84 DIV 32 FROM tab2 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + + 84 / 32 FROM tab2 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT DISTINCT - 36 DIV 52 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - 36 / 52 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8040
SELECT + 64 DIV - ( - cor0.col1 ) FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8040
SELECT + 64 / - ( - cor0.col1 ) FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - 36 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
1004
42
604
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + 3 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4db566b1c24579a693701691c14ecd0c
query I rowsort
SELECT - col2 + - 33 AS col0 FROM tab1
----
-129
-87
-90
query I rowsort
SELECT ( 70 + col1 * + col1 ) AS col2 FROM tab0
----
7466
8351
9479
query I rowsort
SELECT DISTINCT ( 6 ) * col1 AS col1 FROM tab1
----
156
60
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab0
----
78
78
78
query I rowsort
SELECT 93 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab0, tab0 AS cor0
----
-27
query I rowsort
SELECT ALL cor0.col0 * 69 FROM tab0, tab2 AS cor0
----
9 values hashing to 327033a0552226769c3eef5e7d8d7666
query I rowsort
SELECT ( + cor0.col0 ) * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 + col2 * 51 + col2 FROM tab2
----
1411
1435
1993
query I rowsort
SELECT - - cor0.col0 * - ( - col2 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col0 * - 37 FROM tab2 cor0
----
-259
-2886
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-8056
SELECT col2 + - col0 DIV - 68 col2 FROM tab2 AS cor0
----
27
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8056
SELECT col2 + - col0 / - 68 col2 FROM tab2 AS cor0
----
27
27
39
query I rowsort
SELECT ALL cor0.col1 * 12 FROM tab1 AS cor0
----
120
156
312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8058
SELECT - col1 * - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8058
SELECT - col1 * - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8060
SELECT ALL + - col0 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + - col0 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 1 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * col1 * + 59 FROM tab1 AS cor0
----
39884
5900
9971
query I rowsort
SELECT tab2.col1 + + col1 * col1 AS col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT col0 DIV col0 + + col1 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8064
SELECT col0 / col0 + + col1 AS col1 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT - col2 DIV col2 + col2 AS col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8065
SELECT - col2 / col2 + col2 AS col2 FROM tab1
----
53
56
95
query I rowsort
SELECT col1 * - tab2.col1 * - col0 AS col2 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + col0 col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + tab2.col2 * col2 + + col2 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT DISTINCT + col0 DIV - col1 + col2 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + col0 / - col1 + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * tab2.col2 * - col1 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col0 col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-12168
-12482
-98
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
174
262
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT DISTINCT - col0 + cor0.col1 * col0 DIV - cor0.col2 + col1 FROM tab0 AS cor0
----
-3333
-96
0
skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT - col0 + cor0.col1 * col0 / - cor0.col2 + col1 FROM tab0 AS cor0
----
-3333
-96
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + cor0.col2 * - col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL <= NULL OR NOT ( NULL ) > col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT ALL col0 * - col2 + - cor0.col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3004
skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL col0 * - col2 + - cor0.col2 / + col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3004
query I rowsort
SELECT ALL + col1 * + col2 * col2 + col0 * + col2 FROM tab1 AS cor0
----
127488
36138
75978
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT tab0.col1 - tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 + col0 * + col0 * + col2 AS col1 FROM tab2 AS cor0
----
1519
160290
240239
onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT + col1 DIV + col1 - - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-8084
SELECT + col1 / + col1 - - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT ALL - + col1 + col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + + col2 * - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + 99 * col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
5400
5700
9600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT 76 + col2 AS col1 FROM tab0 AS cor0
----
109
158
77
query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - - col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8093
SELECT DISTINCT col1 DIV - cor0.col1 - col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT col1 / - cor0.col1 - col0 / + col1 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - - col1 + - col2 + + col1 AS col2 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT + cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + cor0.col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT + 21 DIV - col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8099
SELECT + 21 / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 14 + col0 FROM tab2
----
21
92
93
query I rowsort
SELECT ALL - 17 * col1 + col0 FROM tab1 AS cor0
----
-106
-141
-439
query I rowsort
SELECT DISTINCT + col1 - - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - + col1 - + col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT - + col0 * + CAST( NULL AS SIGNED ) - - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8104
SELECT - + col0 * + CAST ( NULL AS INTEGER ) - - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - 14 - + col0 FROM tab1 AS cor0
----
-135
-190
-71
query I rowsort
SELECT ALL + col1 + col2 + - col2 * - col1 FROM tab1
----
1357
1484
637
query I rowsort
SELECT + col1 - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( - col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col1 + + 55 * col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT ALL - 49 + + col1 AS col0 FROM tab1 AS cor0
----
-23
-36
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col0 * 72 AS col0 FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT 24 * - col2 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT DISTINCT - col1 * 20 * col0 AS col1 FROM tab2 AS cor0
----
-26860
-4340
-92040
query I rowsort
SELECT - + col0 * - ( - col0 + + col2 ) AS col1 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT ALL col1 - + 6 FROM tab2 cor0
----
11
25
53
query I rowsort
SELECT + 97 * + 62 FROM tab1 AS cor0
----
6014
6014
6014
query I rowsort
SELECT ALL - ( cor0.col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 81 * + col1 + col0 * + 93 FROM tab2 AS cor0
----
12033
3162
8724
query I rowsort
SELECT DISTINCT - - 38 - 19 AS col0 FROM tab1 AS cor0
----
19
query I rowsort
SELECT ALL - ( 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 DISTINCT - 76 + + col2 + - col1 * col1 col0 FROM tab1 AS cor0
----
-119
-149
-698
query I rowsort
SELECT ALL - 46 - - ( - col2 * - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
1488
600
791
query I rowsort
SELECT cor0.col0 + + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col0 * col1 + col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - 41 AS col0 FROM tab2
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - ( + 87 ) * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT - 76 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0
skipif mysql # not compatible
query I rowsort label-8130
SELECT - 76 / + col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0
query I rowsort
SELECT + ( - col0 ) * ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 17 * + col2 AS col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT ALL - ( 33 ) FROM tab1
----
-33
-33
-33
query I rowsort
SELECT col0 * - 21 AS col1 FROM tab0
----
-1869
-504
-735
query I rowsort
SELECT ALL - 95 AS col0 FROM tab0
----
-95
-95
-95
query I rowsort
SELECT ALL 95 * col0 AS col0 FROM tab1
----
285
6080
7600
query I rowsort
SELECT DISTINCT 82 FROM tab2, tab2 AS cor0
----
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT + col1 DIV ( col2 ) + + CAST( + 50 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
147
1652
4101
skipif mysql # not compatible
query I rowsort label-8139
SELECT + col1 / ( col2 ) + + CAST ( + 50 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
147
1652
4101
query I rowsort
SELECT ALL 68 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT - col1 DIV - cor0.col0 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8142
SELECT - col1 / - cor0.col0 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT - - col2 DIV - ( - col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8143
SELECT - - col2 / - ( - col0 ) FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8144
SELECT - col0 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL 16 * + 37 * + tab0.col2 + ( + 92 ) + - col2 FROM tab0
----
19595
48554
683
query I rowsort
SELECT + 62 * col1 + - col1 FROM tab1 cor0
----
1586
610
793
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8147
SELECT - col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-8147
SELECT - col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - - col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col2 + - col2 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col1 * col0 + 30 + - col2 AS col2 FROM tab0 AS cor0
----
2061
3424
8047
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 * - col1 + + col2 FROM tab2 AS cor0
----
-10944
-25920
-90480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col1 col0 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8153
SELECT ALL + - cor0.col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL + - cor0.col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + ( + ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8155
SELECT ALL + cor0.col1 * col1 + - col0 DIV col2 - - 70 * - col1 FROM tab1 AS cor0
----
-1144
-601
-741
skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + cor0.col1 * col1 + - col0 / col2 - - 70 * - col1 FROM tab1 AS cor0
----
-1144
-601
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-8156
SELECT + col1 DIV col1 + - 66 AS col2 FROM tab2 AS cor0
----
-65
-65
-65
skipif mysql # not compatible
query I rowsort label-8156
SELECT + col1 / col1 + - 66 AS col2 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL + + col1 * + 33 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-4918
1976
2262
query I rowsort
SELECT DISTINCT col2 * col1 - - col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col2 + - col2 * - col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col0 + ( - col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + - cor0.col1 + + 48 + + cor0.col2 FROM tab2 cor0
----
15
44
69
query I rowsort
SELECT DISTINCT + 77 * - col2 AS col1 FROM tab2 cor0
----
-2002
-2079
-2926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT ALL + CAST( NULL AS SIGNED ) / col1 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + CAST ( NULL AS INTEGER ) / col1 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 51 * + col0 + - col2 FROM tab1 AS cor0
----
-207
-3321
-4176
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * col0 col2 FROM tab1 cor0
----
219
4672
5840
query I rowsort
SELECT 91 + col1 + ( col2 ) AS col2 FROM tab0 cor0
----
189
210
264
query I rowsort
SELECT + 96 + - col2 FROM tab1 AS cor0
----
0
39
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT - 75 DIV cor0.col1 + + col0 FROM tab2 AS cor0
----
5
75
77
skipif mysql # not compatible
query I rowsort label-8169
SELECT - 75 / cor0.col1 + + col0 FROM tab2 AS cor0
----
5
75
77
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8171
SELECT DISTINCT + - 24 + col1 DIV 99 FROM tab2 AS cor0
----
-24
skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT + - 24 + col1 / 99 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT ALL + 80 * col2 AS col2 FROM tab2
----
2080
2160
3040
query I rowsort
SELECT col1 + col0 * + col2 - - col2 AS col2 FROM tab0
----
133
7471
911
query I rowsort
SELECT DISTINCT col1 * col0 + + ( + 79 ) + - col2 * + col2 AS col1 FROM tab1
----
-2530
-2759
-8097
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8175
SELECT + col0 * + CAST( NULL AS DECIMAL ) * + 60 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8175
SELECT + col0 * + CAST ( NULL AS REAL ) * + 60 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab0.col0 + col0 * + col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT ALL ( - tab2.col2 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + col0 + ( + col1 * col0 ) AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - col0 * tab1.col0 + + 23 FROM tab1
----
-4073
-6377
14
query I rowsort
SELECT DISTINCT col2 * + ( 59 * col2 + - col0 * col2 ) FROM tab0
----
-201720
24
38115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8181
SELECT ALL - col1 - CAST( col1 AS SIGNED ) * - col0 AS col0 FROM tab0 cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - col1 - CAST ( col1 AS INTEGER ) * - col0 AS col0 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT col1 + 15 AS col2 FROM tab0 AS cor0
----
101
106
112
query I rowsort
SELECT + col2 * cor0.col1 * + col0 + + col0 FROM tab1 cor0
----
36544
4215
99920
query I rowsort
SELECT ALL - col0 * 19 FROM tab0 AS cor0
----
-1691
-456
-665
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT ALL col1 + 57 FROM tab1 AS cor0
----
67
70
83
query I rowsort
SELECT DISTINCT 84 * col1 * + col1 FROM tab2
----
24276
292404
80724
query I rowsort
SELECT tab0.col1 * col2 + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + - col1 + + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8190
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8190
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + col2 * - col1 + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8193
SELECT ALL + CAST( - 74 AS SIGNED ) FROM tab2
----
-74
-74
-74
skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + CAST ( - 74 AS INTEGER ) FROM tab2
----
-74
-74
-74
query I rowsort
SELECT ALL + + col1 + - col2 * col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - - col2 + + col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * col1 + ( 88 ) col2 FROM tab0 AS cor0
----
-7308
-7738
-8254
query I rowsort
SELECT DISTINCT col2 + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT 87 - + col2 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT cor0.col0 + + col0 * col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + + col0 * col1 + col1 + - 82 * - col0 AS col1 FROM tab0 AS cor0
----
15488
4118
6362
query I rowsort
SELECT ALL + - col2 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 * - ( - 1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - + 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT col1 * col1 * + col0 + tab2.col2 * + ( + tab2.col1 ) FROM tab2
----
23477
273052
7564
query I rowsort
SELECT 88 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT + + col0 * + ( + col2 * + col1 ) FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT DISTINCT + col2 DIV col2 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT + col2 / col2 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + + cor0.col1 + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ( - 2 ) * cor0.col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT + - cor0.col0 * + 39 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT ALL - col1 * col2 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8214
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8214
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - 27 FROM tab0 AS cor0
----
-2322
-2457
-2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT - col2 DIV - col1 + - ( + col2 ) AS col0 FROM tab1
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-8216
SELECT - col2 / - col1 + - ( + col2 ) AS col0 FROM tab1
----
-52
-52
-89
query I rowsort
SELECT col0 * 4 * tab0.col2 + col2 FROM tab0
----
141
29274
3201
query I rowsort
SELECT 32 + + col0 * - col0 FROM tab0 AS cor0
----
-1193
-544
-7889
query I rowsort
SELECT ALL - - 14 * col0 FROM tab2 cor0
----
1092
1106
98
query I rowsort
SELECT DISTINCT - - col0 * col2 + col1 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-2070
-253
-97
query I rowsort
SELECT - col1 * - col1 + - ( col0 ) FROM tab2 AS cor0
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 95 col1 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT + col1 * - col1 + ( + ( - col0 ) ) AS col1 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + - 24 - + col0 FROM tab2 AS cor0
----
-102
-103
-31
query I rowsort
SELECT 26 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT col2 + - col0 * - ( 18 * cor0.col0 ) FROM tab2 cor0
----
109538
112376
909
query I rowsort
SELECT DISTINCT - 42 + + col2 AS col1 FROM tab0 cor0
----
-41
-9
40
query I rowsort
SELECT DISTINCT 22 + - col2 FROM tab1 AS cor0
----
-32
-35
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT cor0.col0 * + col0 + + 98 DIV - 27 AS col2 FROM tab1 AS cor0
----
4093
6
6397
skipif mysql # not compatible
query I rowsort label-8230
SELECT cor0.col0 * + col0 + + 98 / - 27 AS col2 FROM tab1 AS cor0
----
4093
6
6397
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - - col1 + + col2 + 73 * + col2 FROM tab1 AS cor0
----
4022
4228
7117
query I rowsort
SELECT 88 * - col2 + + 47 * col2 FROM tab2 cor0
----
-1066
-1107
-1558
query I rowsort
SELECT + + 91 + col0 * + 84 FROM tab1 AS cor0
----
343
5467
6811
query I rowsort
SELECT ALL + 41 * - col2 FROM tab2 AS cor0
----
-1066
-1107
-1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT + ( col1 ) + + 77 * 90 FROM tab0
----
7016
7021
7027
query I rowsort
SELECT ALL - + col1 * col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3349
-3592
-9385
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + 40 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL col1 * col0 + + 30 AS col2 FROM tab2
----
1373
247
4632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8241
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8241
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col2 + 82 + col0 FROM tab1 AS cor0
----
139
203
258
query I rowsort
SELECT 20 * + col2 AS col0 FROM tab0
----
1640
20
660
query I rowsort
SELECT DISTINCT + col2 + - col2 * 77 * + col2 FROM tab1
----
-224478
-250116
-709536
query I rowsort
SELECT + col0 * col2 * + 99 AS col0 FROM tab0
----
3465
722502
78408
query I rowsort
SELECT ALL ( + col2 ) * + col0 * col2 AS col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL + + 44 * - cor0.col2 - - col1 FROM tab1 AS cor0
----
-2350
-2498
-4211
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT DISTINCT - 99 * - tab2.col2 * col2 FROM tab2
----
142956
66924
72171
onlyif mysql # use DIV operator for integer division
query I rowsort label-8251
SELECT - col1 DIV + 75 + tab2.col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8251
SELECT - col1 / + 75 + tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + 38 + col1 + cor0.col0 FROM tab0 AS cor0
----
148
170
218
query I rowsort
SELECT ALL + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + col1 * - 51 FROM tab2
----
-1581
-3009
-867
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT - cor0.col0 DIV 91 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-8255
SELECT - cor0.col0 / 91 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT ( - col1 + 73 ) AS col0 FROM tab2
----
14
42
56
query I rowsort
SELECT ALL 28 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 col0 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - col0 * 45 FROM tab0
----
-1080
-1575
-4005
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT - col2 + 47 AS col1 FROM tab2 AS cor0
----
20
21
9
query I rowsort
SELECT 60 AS col0 FROM tab0 cor0
----
60
60
60
query I rowsort
SELECT ALL + col2 + - 64 AS col1 FROM tab2 AS cor0
----
-26
-37
-38
query I rowsort
SELECT ALL + col0 * col2 * - col0 + + 38 AS col0 FROM tab2 AS cor0
----
-1285
-158146
-237120
query I rowsort
SELECT - ( 4 ) - col1 FROM tab1 cor0
----
-14
-17
-30
query I rowsort
SELECT + + 2 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2918
3251
9218
query I rowsort
SELECT + 28 + - col1 FROM tab2 AS cor0
----
-3
-31
11
query I rowsort
SELECT - 83 + col1 AS col2 FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT 19 + col1 AS col1 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT ALL - + 61 * - col2 + 43 + + col1 FROM tab2 cor0
----
1688
1721
2378
query I rowsort
SELECT ALL col2 * - col2 - - col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ( - cor0.col0 ) * + 72 + - col2 AS col0 FROM tab0 AS cor0
----
-1761
-2521
-6490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab0, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT + col0 * + 11 AS col2 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT ALL + + col2 + + col0 * - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT - + col0 * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + + col2 * col1 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL - ( col0 ) + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8283
SELECT + CAST( - col0 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8283
SELECT + CAST ( - col0 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col2 * - col1 * col0 + col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + - col2 AS col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 70 * col0 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT - col2 + + ( col1 + col2 ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT ALL + col2 DIV 57 AS col0 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + col2 / 57 AS col0 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT - col1 * col2 - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + col1 * + col2 * - col1 + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-244860
-686340
-9444
query I rowsort
SELECT DISTINCT - + col2 * 53 + col2 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT + + col0 * col2 + col1 * + 76 AS col1 FROM tab2 AS cor0
----
2545
4294
6512
query I rowsort
SELECT ALL col2 * 99 - - col0 * col0 * col1 FROM tab1
----
46603
5580
92704
query I rowsort
SELECT ALL 92 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-548
-948
14
query I rowsort
SELECT + - ( ( col0 ) ) - - col2 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + 41 * - col1 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT DISTINCT + 39 * col1 FROM tab0 cor0
----
3354
3549
3783
query I rowsort
SELECT ALL - 42 * + 82 AS col2 FROM tab1 AS cor0
----
-3444
-3444
-3444
query I rowsort
SELECT + 47 * + col1 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT DISTINCT 32 * 69 FROM tab2 AS cor0
----
2208
query I rowsort
SELECT ALL + + col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + tab2.col0 * col1 * tab2.col1 + + 41 FROM tab2
----
22872
271559
6768
query I rowsort
SELECT ALL - col2 + + col1 * col0 + col0 * - col2 AS col2 FROM tab1
----
-138
-3065
-6736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * cor0.col1 col0 FROM tab0 AS cor0
----
-1462
-1547
-1649
onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT ALL + col2 DIV ( - col0 ) - col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + col2 / ( - col0 ) - col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col1 FROM tab2, tab1 AS cor0
----
36
query I rowsort
SELECT + ( - 20 ) FROM tab1
----
-20
-20
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT - 52 DIV - col2 FROM tab0
----
0
1
52
skipif mysql # not compatible
query I rowsort label-8308
SELECT - 52 / - col2 FROM tab0
----
0
1
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col2 FROM tab2
----
0
query I rowsort
SELECT ALL + col2 * 69 AS col0 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT DISTINCT col0 DIV - 26 AS col2 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT col0 / - 26 AS col2 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT DISTINCT + col1 * + 33 FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT ALL + col2 * + col2 * 9 AS col2 FROM tab0 cor0
----
60516
9
9801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 62 col0 FROM tab1 AS cor0
----
72
75
88
query I rowsort
SELECT + col0 * + col1 + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT tab1.col0 + + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT col0 * - ( - ( - col1 ) ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL tab0.col2 * 15 AS col2 FROM tab0
----
1230
15
495
query I rowsort
SELECT DISTINCT + col1 * ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT ALL + - col2 + col1 DIV col0 AS col0 FROM tab0 cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + - col2 + col1 / col0 AS col0 FROM tab0 cor0
----
-30
-81
1
query I rowsort
SELECT + col0 * 22 FROM tab2 AS cor0
----
154
1716
1738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT ALL col1 + - CAST( NULL AS SIGNED ) / - 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) / - 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * - 81 * + 56 AS col2 FROM tab1 AS cor0
----
-13608
-290304
-362880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 - + 3 col0 FROM tab0 AS cor0
----
-100
-2841
-7465
query I rowsort
SELECT DISTINCT - + col2 * + 95 + - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
-18336
-8046
-8664
query I rowsort
SELECT col0 * + col0 + col2 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
120317
5152
58812
query I rowsort
SELECT col1 + col0 * col1 + + col0 FROM tab1
----
107
1133
714
query I rowsort
SELECT ALL col2 * col2 + - tab2.col1 * tab2.col0 FROM tab2
----
-3926
101
512
query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 * col0 AS col1 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT DISTINCT tab0.col0 DIV col1 - col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT tab0.col0 / col1 - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col1 - - col1 * + col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL - tab2.col2 * col0 + - col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE - col0 IN ( col0 + - col1 )
----
query I rowsort
SELECT col1 * + col1 - - tab1.col1 FROM tab1
----
110
182
702
query I rowsort
SELECT ALL col1 + col2 * col1 + - col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - tab2.col2 * + tab2.col2 + + col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col1 * + col2 + col1 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
1220
1508
2301
query I rowsort
SELECT ALL - tab0.col2 + col2 * col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT - col1 * col0 + col0 * + tab1.col1 FROM tab1
----
0
0
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT col0 * tab1.col2 * - col0 + col1 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT ALL col0 + + tab2.col0 * - col1 AS col2 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - col2 + col1 * tab2.col2 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + col0 - + col0 * - col2 col2 FROM tab2 AS cor0
----
-21
-2496
1738
query I rowsort
SELECT ALL col0 * - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + tab0.col0 NOT IN ( + col2 )
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT - col1 - + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-8347
SELECT - col1 - + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-10
-12
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT - + col1 - col0 DIV - col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-8348
SELECT - + col1 - col0 / - col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT col0 + col2 * col1 * + col2 + + col1 * - col2 FROM tab2 AS cor0
----
21769
23981
38428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col0 + col2 * + col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * col1 + col1 - col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col0 + col1 * col0 col2 FROM tab2 AS cor0
----
10712
293
7622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 - col1 col0 FROM tab2
----
-16
-2
-44
query I rowsort
SELECT - 74 * col2 FROM tab1
----
-3996
-4218
-7104
onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT DISTINCT col2 * + col0 DIV + col0 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT col2 * + col0 / + col0 AS col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT - - col2 DIV 86 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8356
SELECT - - col2 / 86 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT - col0 - col2 DIV col1 FROM tab1 cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-8357
SELECT - col0 - col2 / col1 FROM tab1 cor0
----
-5
-69
-87
query I rowsort
SELECT - - col2 * 67 + col1 * + col1 FROM tab1 AS cor0
----
3919
4294
6601
query I rowsort
SELECT + col0 * + col0 - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT col0 * ( + 81 ) + - col1 FROM tab1 AS cor0
----
217
5174
6467
onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT ALL - col2 DIV + tab2.col1 - col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3004
skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - col2 / + tab2.col1 - col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3004
query I rowsort
SELECT ALL + col0 + + col2 * - col1 AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT - col0 + - col0 * - col2 AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL IN ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) <= col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 + col2 / col1 + + col1 )
----
query I rowsort
SELECT ALL col1 + tab2.col1 AS col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT + col0 + tab0.col2 DIV + col2 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8368
SELECT + col0 + tab0.col2 / + col2 AS col1 FROM tab0
----
25
36
90
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 * + 48 * col2 col2 FROM tab0 AS cor0
----
136138
358085
4559
query I rowsort
SELECT ALL + tab2.col1 + + col1 * col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col1 + col0 * + col0 AS col0 FROM tab0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT DISTINCT - col2 DIV tab2.col0 + col0 AS col2 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - col2 / tab2.col0 + col0 AS col2 FROM tab2
----
4
78
79
query I rowsort
SELECT DISTINCT col1 + - col2 * col2 AS col2 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT ALL - col1 DIV + 82 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - col1 / + 82 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8378
SELECT DISTINCT + + cor0.col0 + CAST( + col2 AS SIGNED ) + col2 * col1 FROM tab1 AS cor0
----
1424
1461
691
skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + + cor0.col0 + CAST ( + col2 AS INTEGER ) + col2 * col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT + col2 * ( col0 ) AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - col1 + ( + col1 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8382
SELECT col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-8382
SELECT col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 94 AS col0 FROM tab2
----
94
94
94
query I rowsort
SELECT DISTINCT + 50 * col1 FROM tab0
----
4300
4550
4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT ( col2 ) DIV col2 + - ( col2 ) + - col1 FROM tab1
----
-108
-66
-79
skipif mysql # not compatible
query I rowsort label-8385
SELECT ( col2 ) / col2 + - ( col2 ) + - col1 FROM tab1
----
-108
-66
-79
query I rowsort
SELECT tab1.col1 * col0 * - col1 + - col0 FROM tab1
----
-13600
-2031
-6464
onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT DISTINCT 66 DIV col2 FROM tab0
----
0
2
66
skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 66 / col2 FROM tab0
----
0
2
66
query I rowsort
SELECT ALL - col2 + ( - col0 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT + col1 + - col2 - + 36 AS col1 FROM tab0
----
-27
17
60
query I rowsort
SELECT ALL cor0.col0 - + 75 AS col2 FROM tab0 AS cor0
----
-40
-51
14
query I rowsort
SELECT - col2 + + ( - 44 ) * - col1 FROM tab2 AS cor0
----
1337
2570
710
query I rowsort
SELECT ALL - col1 * - col1 - - col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL + col2 + - ( col1 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - + col1 + + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + col1 * + 25 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
14250
31200
35100
query I rowsort
SELECT ALL - col0 * + ( 36 * col1 ) AS col1 FROM tab2 AS cor0
----
-165672
-48348
-7812
query I rowsort
SELECT + col2 - - col0 * + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 + + col1 FROM tab2 cor0
----
-234
-3396
-903
query I rowsort
SELECT - cor0.col2 * + tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to a3b44b1349b97a64e1970dbe00e8d983
query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - col0 * 13 FROM tab1
----
-1040
-39
-832
query I rowsort
SELECT 90 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ( cor0.col1 ) + + 11 * + col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164
query I rowsort
SELECT + col2 + tab2.col0 * - 5 AS col0 FROM tab2
----
-357
-364
-8
query I rowsort
SELECT + 15 * col0 AS col0 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT ALL - - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 8 * + col1 FROM tab1 cor0
----
-104
-208
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8408
SELECT + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8408
SELECT + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL col0 + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 14 + col0 FROM tab0
----
103
38
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT DISTINCT + 52 * + col2 + cor0.col1 FROM tab1 AS cor0
----
2834
2974
5005
onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT + + col2 * + cor0.col0 + + col2 DIV - col0 + col2 * col1 AS col0 FROM tab0 cor0
----
132
14760
3629
skipif mysql # not compatible
query I rowsort label-8414
SELECT + + col2 * + cor0.col0 + + col2 / - col0 + col2 * col1 AS col0 FROM tab0 cor0
----
132
14760
3629
query I rowsort
SELECT DISTINCT ( col2 ) + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( col0 ) + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT DISTINCT - 77 DIV + col0 + col1 FROM tab0 AS cor0
----
83
91
95
skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - 77 / + col0 + col1 FROM tab0 AS cor0
----
83
91
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT ALL + 23 * + col0 - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
161
1794
1815
skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + 23 * + col0 - col2 / col1 AS col0 FROM tab2 AS cor0
----
161
1794
1815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 + col2 * - col2 * col2 col1 FROM tab1 AS cor0
----
-157386
-184553
-883696
query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col1 * col0 AS col1 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT - cor0.col1 DIV - col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8423
SELECT - cor0.col1 / - col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT + - col2 * cor0.col1 + col0 * + col2 FROM tab2 cor0
----
-648
2356
494
query I rowsort
SELECT - - col2 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + col2 + - col0 * + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col2 * - col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - col0 + 70 * col2 AS col2 FROM tab2 AS cor0
----
1897
1898
2739
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 * + col1 + col2 * col1 AS col0 FROM tab2 AS cor0
----
-21762
-23902
-38350
query I rowsort
SELECT DISTINCT + + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col0 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - 7 + col1 + - col2 FROM tab2 AS cor0
----
-14
11
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8434
SELECT ALL cor0.col2 * - col0 + + col1 DIV col0 FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL cor0.col2 * - col0 + + col1 / col0 FROM tab0 AS cor0
----
-33
-7297
-789
onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT + CAST( col2 AS SIGNED ) DIV col2 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8435
SELECT + CAST ( col2 AS INTEGER ) / col2 + + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT - - 89 - col1 AS col2 FROM tab2 AS cor0
----
30
58
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 * - col2 col1 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT - 75 + - 28 * col0 FROM tab2
----
-2259
-2287
-271
onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT - col1 * col0 DIV - col1 + - col2 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-8439
SELECT - col1 * col0 / - col1 + - col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT 36 + - ( col2 ) AS col2 FROM tab2
----
-2
10
9
query I rowsort
SELECT ALL - 42 + + col1 AS col2 FROM tab1 cor0
----
-16
-29
-32
query I rowsort
SELECT 51 AS col2 FROM tab0 AS cor0
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8443
SELECT - CAST( NULL AS SIGNED ) + - tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8443
SELECT - CAST ( NULL AS INTEGER ) + - tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 70 ) + - col1 AS col0 FROM tab0
----
-156
-161
-167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8445
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col0 AS col1 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ( + col1 ) * - col1 * col2 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 * - col1 + - col2 AS col0 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT + + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 70 + 28 AS col1 FROM tab1 cor0
----
-42
-42
-42
query I rowsort
SELECT col1 * + 29 AS col2 FROM tab1
----
290
377
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT + col0 DIV + ( col2 ) + - col2 + tab0.col0 * col0 FROM tab0
----
1259
543
7840
skipif mysql # not compatible
query I rowsort label-8453
SELECT + col0 / + ( col2 ) + - col2 + tab0.col0 * col0 FROM tab0
----
1259
543
7840
query I rowsort
SELECT ALL - tab0.col1 + + 89 FROM tab0
----
-2
-8
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT + col2 DIV - col2 + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8455
SELECT + col2 / - col2 + col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT - cor0.col1 * + 80 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aecd51c8b7b5398743117a92a0a593fb
query I rowsort
SELECT 11 * - ( - cor0.col0 ) FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT - col0 + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col2 * - 66 + - col2 * 36 FROM tab1
----
-5508
-5814
-9792
query I rowsort
SELECT + + 65 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT + cor0.col0 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3
query I rowsort
SELECT + col0 * + col2 * col0 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col0 * col1 * - tab2.col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ( 52 * col1 ) AS col1 FROM tab1
----
1352
520
676
query I rowsort
SELECT DISTINCT + ( - ( col2 ) * - col2 ) AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL cor0.col2 * + 74 * - 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ae2810ec008473166319da795e3127b
query I rowsort
SELECT - 68 + + col2 AS col0 FROM tab2
----
-30
-41
-42
query I rowsort
SELECT 65 + - col1 * + ( col2 * + col2 + + 24 ) AS col0 FROM tab1
----
-120055
-32665
-76375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col1 col2 FROM tab1
----
-1079
-2158
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT ALL + 48 DIV + 87 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + 48 / + 87 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + 29 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2, tab0 cor0
----
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT col1 DIV 52 col2 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8473
SELECT col1 / 52 col2 FROM tab2
----
0
0
1
query I rowsort
SELECT - col0 * - cor0.col0 + + ( col1 ) FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 + - col1 FROM tab0 cor0
----
-244154
-679133
-9506
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 * - col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + - col0 * 46 + col0 * col2 AS col1 FROM tab1 AS cor0
----
24
4000
704
query I rowsort
SELECT - cor0.col0 * ( cor0.col1 ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col1 * - col1 + + 28 FROM tab1 AS cor0
----
128
197
704
query I rowsort
SELECT ALL col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * ( + 13 ) FROM tab1
----
1040
39
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT DISTINCT - col1 DIV + 61 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - col1 / + 61 AS col0 FROM tab1
----
0
query I rowsort
SELECT + 16 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-129584
-33024
-54320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8484
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + ( col0 ) + col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8486
SELECT - tab0.col1 * col2 - ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8486
SELECT - tab0.col1 * col2 - ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1, tab1 AS cor0
----
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 7 col0 FROM tab2
----
19
20
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8489
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 - - ( 56 * + col2 ) FROM tab0
----
153
1934
4683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 26 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT + 72 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
72
query I rowsort
SELECT DISTINCT tab2.col0 * 21 FROM tab2
----
147
1638
1659
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 - cor0.col1 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 72 * + col1 col0 FROM tab2 AS cor0
----
1303
2239
4326
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
query I rowsort
SELECT - 38 * 23 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6c529dafd5c9de6136d9f9764ac432fd
query I rowsort
SELECT - + col2 + - col2 + col0 * 40 FROM tab1 AS cor0
----
12
2446
3008
query I rowsort
SELECT - col1 * cor0.col2 * 77 FROM tab2 AS cor0
----
-118118
-49742
-64449
query I rowsort
SELECT ( col1 ) + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col2 * col2 + + col1 * + 90 + col2 FROM tab0 AS cor0
----
14996
8732
8862
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT + col1 DIV - ( - col0 ) FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8504
SELECT + col1 / - ( - col0 ) FROM tab0 cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8505
SELECT + CAST( NULL AS SIGNED ) * + 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8505
SELECT + CAST ( NULL AS INTEGER ) * + 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 41 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 945348bfd1b34283993fff3a1279f1bd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col2 + col0 * col2 * col0 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT ALL col0 - + col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 39 * col1 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT DISTINCT col0 + col0 * col1 AS col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + - col1 - col1 AS col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT 47 + 83 AS col0 FROM tab1, tab0, tab0 AS cor0
----
130
query I rowsort
SELECT cor1.col1 + 20 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 88bffc7890eab78915939fda9a832d89
query I rowsort
SELECT ALL + tab1.col2 * + 48 FROM tab1
----
2592
2736
4608
query I rowsort
SELECT - - 5 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT - 17 + + col0 * + 29 AS col1 FROM tab2
----
186
2245
2274
query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 25 + + 69 * - col1 FROM tab1 AS cor0
----
-1769
-665
-872
query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1 AS cor0
----
-89
query I rowsort
SELECT ALL + col1 + 9 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT + col0 - col0 * + col0 AS col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1, tab0 AS cor0
----
-78
query I rowsort
SELECT - col0 * + 16 - col0 * - col1 * - ( col0 + tab0.col2 ) AS col1 FROM tab0
----
-118032
-122780
-1386353
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * + col2 + - col1 col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + ( col1 * col1 ) AS col2 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 67 col2 FROM tab1
----
-3
-64
13
query I rowsort
SELECT 0 * 51 + - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + ( 24 * - col0 ) FROM tab2
----
-168
-1872
-1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8532
SELECT CAST( NULL AS SIGNED ) * - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8532
SELECT CAST ( NULL AS INTEGER ) * - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 91 + + col0 * col2 FROM tab1 AS cor0
----
253
3739
7771
query I rowsort
SELECT DISTINCT + 98 * + cor0.col1 - - col1 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT - col2 + - 58 FROM tab1 AS cor0
----
-112
-115
-154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 - - col0 col2 FROM tab2 AS cor0
----
-16
-17
-88
query I rowsort
SELECT + ( col2 ) * + col2 - col0 * - col0 FROM tab1
----
15616
2925
7345
query I rowsort
SELECT DISTINCT - 23 * col0 * - col0 FROM tab2 AS cor0
----
1127
139932
143543
query I rowsort
SELECT DISTINCT - - 38 * cor0.col2 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8540
SELECT ALL + + CAST( NULL AS DECIMAL ) + + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + + CAST ( NULL AS REAL ) + + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 42 + - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-1121
-494
-639
query I rowsort
SELECT - ( ( col1 ) ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col2 * col0 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL cor2.col0 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT + 74 + + col2 * + ( - col2 ) AS col0 FROM tab0 cor0
----
-1015
-6650
73
query I rowsort
SELECT ALL - - col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 24 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT ALL 7 + cor1.col2 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a87044c11e51af19ed6f9e1cc40cdaa3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT ALL - col1 + - col0 DIV - 30 FROM tab0 AS cor0
----
-86
-89
-96
skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - col1 + - col0 / - 30 FROM tab0 AS cor0
----
-86
-89
-96
query I rowsort
SELECT ALL + 77 AS col0 FROM tab0 AS cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT ALL cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL cor0.col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + 69 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT - 14 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT - col1 DIV - 30 FROM tab0
----
2
3
3
skipif mysql # not compatible
query I rowsort label-8555
SELECT - col1 / - 30 FROM tab0
----
2
3
3
query I rowsort
SELECT col1 * - ( col2 + col0 ) AS col1 FROM tab2
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT + col0 * - col1 + - tab1.col0 * + tab1.col2 AS col2 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT + col0 * 88 + + 85 AS col1 FROM tab2 AS cor0
----
6949
701
7037
query I rowsort
SELECT DISTINCT col1 * 47 FROM tab0 AS cor0
----
4042
4277
4559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8560
SELECT DISTINCT + col2 * + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + col2 * + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 + 41 * col2 FROM tab0 AS cor0
----
-56
1267
3271
query I rowsort
SELECT ALL + ( 88 ) FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT 29 * + col2 + col1 FROM tab0 AS cor0
----
1043
126
2469
query I rowsort
SELECT DISTINCT + + 6 * + col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT + ( - col1 ) + col1 * 54 AS col0 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT ALL - ( - col1 ) * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8568
SELECT CAST( - col1 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-8568
SELECT CAST ( - col1 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL cor0.col2 * 30 AS col2 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT - - 35 + col2 FROM tab0 AS cor0
----
117
36
68
query I rowsort
SELECT - 46 * - ( cor0.col1 ) * col0 + + col1 FROM tab0 AS cor0
----
156267
372645
95030
query I rowsort
SELECT ALL col1 * col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 51 col0 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT ALL + ( - 85 ) + - col0 * - 10 AS col1 FROM tab2 AS cor0
----
-15
695
705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8575
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + + col1 * col1 + - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - col1 * + 87 + + col1 AS col0 FROM tab2 AS cor0
----
-1462
-2666
-5074
query I rowsort
SELECT ALL col2 - - 13 FROM tab2
----
39
40
51
query I rowsort
SELECT ALL col2 + 13 * 17 * - col2 FROM tab0
----
-18040
-220
-7260
query I rowsort
SELECT DISTINCT - ( 79 ) * + cor1.col1 - + 8 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-6802
-7197
-7671
query I rowsort
SELECT ALL - 41 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT 60 + col2 FROM tab0
----
142
61
93
query I rowsort
SELECT - 40 AS col1 FROM tab0 cor0
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8584
SELECT - ( col1 ) + 43 DIV + col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-6
skipif mysql # not compatible
query I rowsort label-8584
SELECT - ( col1 ) + 43 / + col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-6
query I rowsort
SELECT ALL + col1 * col1 - + col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT + - col2 + 32 + + cor0.col0 * cor0.col2 AS col2 FROM tab1 cor0
----
140
3623
7616
onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT col2 + col1 DIV col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-8587
SELECT col2 + col1 / col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - cor0.col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 52 * + cor0.col1 + cor0.col0 AS col0 FROM tab2 cor0
----
-1605
-2990
-805
query I rowsort
SELECT 38 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab0 cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8592
SELECT - ( - ( + col2 ) ) + CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4153
63
6496
skipif mysql # not compatible
query I rowsort label-8592
SELECT - ( - ( + col2 ) ) + CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - col1 + + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 5 AS col0 FROM tab1 cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT + - 42 + cor0.col1 DIV 67 AS col1 FROM tab1 AS cor0
----
-42
-42
-42
skipif mysql # not compatible
query I rowsort label-8596
SELECT + - 42 + cor0.col1 / 67 AS col1 FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT - cor0.col1 + col2 * + 55 * cor0.col2 FROM tab2 AS cor0
----
37121
40064
79403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col1 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - - ( - tab2.col1 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - 40 AS col2 FROM tab1
----
-40
-40
-40
query I rowsort
SELECT + col2 + - 80 FROM tab2
----
-42
-53
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8602
SELECT CAST( NULL AS SIGNED ) + - 32 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8602
SELECT CAST ( NULL AS INTEGER ) + - 32 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT ALL col2 DIV + cor0.col0 + + col0 * - col0 * col0 FROM tab2 AS cor0
----
-340
-474552
-493039
skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL col2 / + cor0.col0 + + col0 * - col0 * col0 FROM tab2 AS cor0
----
-340
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 - ( col2 ) * col2 col0 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT DISTINCT - 58 * cor0.col2 * 25 AS col0 FROM tab1 AS cor0
----
-139200
-78300
-82650
query I rowsort
SELECT col1 + - col0 * - col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL + - tab2.col0 * cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 5bf5dc8f967b91d3fa0086e9c50c21a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT col2 DIV + col1 - 49 * + col2 AS col1 FROM tab2
----
-1274
-1323
-1860
skipif mysql # not compatible
query I rowsort label-8609
SELECT col2 / + col1 - 49 * + col2 AS col1 FROM tab2
----
-1274
-1323
-1860
query I rowsort
SELECT ALL + 97 * col2 AS col1 FROM tab0 AS cor0
----
3201
7954
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT ALL - 98 DIV + col1 FROM tab1 cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - 98 / + col1 FROM tab1 cor0
----
-3
-7
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8613
SELECT - tab1.col1 * CAST( col1 AS SIGNED ) FROM tab1
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-8613
SELECT - tab1.col1 * CAST ( col1 AS INTEGER ) FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + 97 + - col0 FROM tab2 AS cor0
----
18
19
90
query I rowsort
SELECT - col1 * + 4 FROM tab2
----
-124
-236
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8616
SELECT - col0 + col0 DIV - col0 col0 FROM tab0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8616
SELECT - col0 + col0 / - col0 col0 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT ( col2 * col1 ) + + ( col1 + col0 ) FROM tab1
----
1341
1433
644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8618
SELECT CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8618
SELECT CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 69 * col1 + col2 FROM tab2 AS cor0
----
1211
2166
4097
query I rowsort
SELECT + - 72 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
25
2766
7390
query I rowsort
SELECT + ( - cor0.col2 ) * col2 + - 90 * col1 AS col0 FROM tab2 AS cor0
----
-2974
-3519
-5986
query I rowsort
SELECT + 9 FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8623
SELECT DISTINCT + tab0.col2 * + CAST( + col0 AS SIGNED ) * col2 FROM tab0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + tab0.col2 * + CAST ( + col0 AS INTEGER ) * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - col1 * - 66 AS col1 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT ALL - col1 * + col1 * + cor0.col2 + - col2 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT - + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col2 * ( cor0.col0 ) + + col2 + - 3 FROM tab1 AS cor0
----
-111
-3594
-7587
query I rowsort
SELECT 54 * col1 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 39 * col1 * col0 FROM tab0 AS cor0
----
132405
315861
80496
query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT + ( col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL ( + 98 ) FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) * - col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT cor0.col0 * 38 FROM tab0 AS cor0
----
1330
3382
912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8637
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 * 42 AS col1 FROM tab2 cor0
----
1092
1134
1596
query I rowsort
SELECT - cor0.col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + + 67 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT ALL - + ( - col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 15 + - col2 col0 FROM tab0 AS cor0
----
-18
-67
14
query I rowsort
SELECT ALL col1 + - 25 AS col2 FROM tab1
----
-12
-15
1
query I rowsort
SELECT ALL tab2.col0 * - ( col2 ) + col2 * col2 FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT + col1 * + ( 78 ) + + col0 FROM tab1
----
1094
2031
844
query I rowsort
SELECT ALL - ( + col2 ) + - col2 + 32 AS col0 FROM tab0 AS cor0
----
-132
-34
30
query I rowsort
SELECT ALL col2 * col2 * - ( - 61 ) FROM tab1 AS cor0
----
177876
198189
562176
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT + cor0.col2 - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-8648
SELECT + cor0.col2 - col2 / + col0 AS col0 FROM tab0 AS cor0
----
1
32
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8649
SELECT ALL + - col1 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + - col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 * col0 - cor0.col0 AS col1 FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT + col2 * cor0.col1 + + ( + col1 ) * col1 * - 24 FROM tab1 AS cor0
----
-14820
-1830
-2808
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * - ( col2 * col2 ) FROM tab2 AS cor0
----
-22606
-24627
-39962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8653
SELECT - CAST( NULL AS DECIMAL ) * - 58 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8653
SELECT - CAST ( NULL AS REAL ) * - 58 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT ALL + col2 DIV - col1 + - ( ( + col2 ) * - col0 ) FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + col2 / - col1 + - ( ( + col2 ) * - col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8656
SELECT DISTINCT - - col0 * col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT - - col0 * col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT col1 + 63 AS col0 FROM tab0 AS cor0
----
149
154
160
query I rowsort
SELECT - col2 + col1 * - 47 FROM tab1 cor0
----
-1276
-527
-707
query I rowsort
SELECT col1 * col2 + + 5 AS col1 FROM tab1 AS cor0
----
1253
1409
575
query I rowsort
SELECT cor0.col2 * + 52 - cor0.col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT - + cor0.col2 + col1 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT + cor0.col0 + 27 DIV 16 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8664
SELECT + cor0.col0 + 27 / 16 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8665
SELECT ALL + - col2 * col0 + - ( col1 * CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + - col2 * col0 + - ( col1 * CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
query I rowsort
SELECT ALL - + cor0.col2 * 57 + + 88 + + col1 AS col0 FROM tab0 cor0
----
-1707
-4495
128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 1 col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - + 69 * + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 070b945136a581d84df1069e1508aa60
query I rowsort
SELECT ALL col1 + col0 * 92 AS col0 FROM tab2
----
675
7235
7285
query I rowsort
SELECT ALL col0 + + col0 * - col1 + col0 FROM tab0
----
-2016
-3325
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + 15 col2 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT ALL 29 + + col1 AS col1 FROM tab2
----
46
60
88
query I rowsort
SELECT DISTINCT + cor2.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * 33 col0 FROM tab1, tab0 cor0, tab2, tab1 cor1
----
81 values hashing to dd8270119d6c670ffa233a2d52027efe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + col1 col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + col0 + 74 AS col1 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT - cor0.col1 * 97 + col0 FROM tab1 AS cor0
----
-1181
-2519
-906
query I rowsort
SELECT DISTINCT + col2 + + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + cor0.col1 + 39 col2 FROM tab0 AS cor0
----
-2799
-58
-7423
query I rowsort
SELECT - ( col0 ) * - 54 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT tab2.col1 + 32 FROM tab2
----
49
63
91
query I rowsort
SELECT ALL - ( + col2 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 14 * col0 AS col2 FROM tab1 AS cor0
----
1120
42
896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT - CAST( NULL AS SIGNED ) + - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8684
SELECT - CAST ( NULL AS INTEGER ) + - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab1.col1 * col2 * col0 + col0 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT + col0 - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT DISTINCT - col1 DIV + tab0.col2 + + col1 DIV - col2 FROM tab0
----
-194
-2
-4
skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - col1 / + tab0.col2 + + col1 / - col2 FROM tab0
----
-194
-2
-4
query I rowsort
SELECT + - 17 * col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8689
SELECT DISTINCT 23 DIV - col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
-22
33
82
skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT 23 / - col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
-22
33
82
query I rowsort
SELECT cor0.col0 + col0 * 67 AS col1 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT 72 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8692
SELECT DISTINCT + col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 24 * - col0 * col1 FROM tab0
----
-194376
-49536
-81480
query I rowsort
SELECT - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 8 * col2 FROM tab0
----
264
656
8
query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + ( - col1 ) * 2 + + 68 AS col2 FROM tab2 AS cor0
----
-50
34
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col2 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 * col0 col2 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-8700
SELECT + col0 / - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - col1 * + 7 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1339
-1586
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-8702
SELECT ALL - - col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - - col1 / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT col0 + col0 * 59 + + col0 AS col0 FROM tab0
----
1464
2135
5429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab1.col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 43 FROM tab1, tab2, tab1 AS cor0
----
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-8706
SELECT + col1 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-8706
SELECT + col1 + col0 / col1 AS col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT + col2 * + cor0.col0 + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT col1 * 57 + + col2 * cor0.col2 DIV cor0.col2 FROM tab0 AS cor0
----
4935
5269
5530
skipif mysql # not compatible
query I rowsort label-8708
SELECT col1 * 57 + + col2 * cor0.col2 / cor0.col2 FROM tab0 AS cor0
----
4935
5269
5530
query I rowsort
SELECT + col2 * + cor0.col0 + - cor0.col0 * col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8710
SELECT + cor0.col1 / CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8710
SELECT + cor0.col1 / CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * ( col2 * + col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-1226
-19041
-649604
query I rowsort
SELECT ALL col0 * 59 + - col0 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT ALL - col1 DIV 65 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - col1 / 65 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL + - ( col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 + col0 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 62 * - col2 * - col1 + col1 * col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1183455
-124839
-225492
query I rowsort
SELECT ALL + col0 * + 20 AS col0 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ( + 52 ) * + col0 FROM tab0 cor0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT + col0 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + - col1 * - 93 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT - col1 + - 23 * + col1 + 12 FROM tab0 AS cor0
----
-2052
-2172
-2316
query I rowsort
SELECT col0 * col2 + 87 AS col2 FROM tab2 AS cor0
----
2115
276
3089
query I rowsort
SELECT + 55 * + col0 - - ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
3620
4569
841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 + + col0 col2 FROM tab2 cor0
----
-65
6
7
query I rowsort
SELECT - col0 * col0 - - ( col2 ) AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - 42 + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9604edf1d3617a97ea249ea03567d1a0
query I rowsort
SELECT DISTINCT 95 + col2 AS col0 FROM tab1 cor0
----
149
152
191
query I rowsort
SELECT ALL + col2 + - 97 AS col1 FROM tab0 AS cor0
----
-15
-64
-96
query I rowsort
SELECT ALL + 97 + col1 + col2 AS col0 FROM tab0
----
195
216
270
query I rowsort
SELECT DISTINCT - 47 + col2 + + col2 AS col1 FROM tab1
----
145
61
67
query I rowsort
SELECT ALL + - 1 * - col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + 89 + + tab0.col2 * tab0.col1 * 8 + col1 AS col1 FROM tab0
----
22879
59876
962
query I rowsort
SELECT ALL ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 + col0 + col1 AS col0 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * - 45 AS col0 FROM tab0 cor0
----
1518
3772
46
query I rowsort
SELECT + 56 + - col0 * col1 FROM tab2 cor0
----
-1287
-161
-4546
query I rowsort
SELECT DISTINCT 38 + col0 * - col0 * - cor0.col0 FROM tab2 AS cor0
----
381
474590
493077
query I rowsort
SELECT - col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT - 97 + + col1 * CAST( + col1 + col0 * - 99 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-132765
-20619
-452214
skipif mysql # not compatible
query I rowsort label-8741
SELECT - 97 + + col1 * CAST ( + col1 + col0 * - 99 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-132765
-20619
-452214
query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6
query I rowsort
SELECT 97 * col2 AS col2 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT DISTINCT + + 23 + + cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
-18
-29
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8745
SELECT ALL - 74 * col1 * CAST( 2 AS SIGNED ) + col2 col0 FROM tab2 AS cor0
----
-2478
-4561
-8706
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - 74 * col1 * CAST ( 2 AS INTEGER ) + col2 col0 FROM tab2 AS cor0
----
-2478
-4561
-8706
query I rowsort
SELECT - - col2 * - col1 + col1 * cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + + cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 9 * - col0 AS col1 FROM tab1 AS cor0
----
-27
-576
-720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8749
SELECT ALL + 12 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + 12 / + col1 FROM tab2 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432
query I rowsort
SELECT + tab1.col0 - - col2 * ( col0 ) FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + + cor0.col0 + - 96 FROM tab1 AS cor0
----
-16
-32
-93
query I rowsort
SELECT DISTINCT + col1 + 86 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT ALL + col2 * col2 * + 65 AS col2 FROM tab0 AS cor0
----
437060
65
70785
query I rowsort
SELECT DISTINCT + col0 + + 52 FROM tab1 cor0
----
116
132
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-8756
SELECT - - col2 + 66 DIV - col0 FROM tab0 AS cor0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-8756
SELECT - - col2 + 66 / - col0 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT + col0 + + 72 FROM tab0 AS cor0
----
107
161
96
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT - 43 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT DISTINCT 54 + - 2 * col1 AS col1 FROM tab0 AS cor0
----
-118
-128
-140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8763
SELECT ALL CAST( - 59 AS SIGNED ) FROM tab1 AS cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL CAST ( - 59 AS INTEGER ) FROM tab1 AS cor0
----
-59
-59
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT - col1 * + 3 + - cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-30
-39
-78
skipif mysql # not compatible
query I rowsort label-8764
SELECT - col1 * + 3 + - cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
-30
-39
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 65 * + col2 col2 FROM tab0 AS cor0
----
162
2231
5421
query I rowsort
SELECT ALL 50 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT ALL + ( cor0.col0 ) + col2 * col0 + + col0 FROM tab1 AS cor0
----
168
3776
7840
query I rowsort
SELECT - ( cor0.col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL 36 + - cor0.col2 FROM tab0 AS cor0
----
-46
3
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8770
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - 49 * + col1 + - col2 FROM tab0 AS cor0
----
-4247
-4541
-4754
query I rowsort
SELECT 84 * col0 - + col0 * ( + 63 ) AS col0 FROM tab0 AS cor0
----
1869
504
735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 26 ) * + cor0.col0 col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL + col2 + ( col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL - ( + cor0.col0 ) - - cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + - col0 + col1 * col0 AS col0 FROM tab2 cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 14 + + col2 + - cor0.col0 col0 FROM tab0 cor0
----
1213
1267
1324
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + cor0.col1 - 94 AS col1 FROM tab0 cor0
----
100
2830
7459
query I rowsort
SELECT DISTINCT 67 + col1 AS col2 FROM tab0 AS cor0
----
153
158
164
query I rowsort
SELECT + col2 * col2 + + 33 FROM tab1 AS cor0
----
2949
3282
9249
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT - + col2 - 6 FROM tab0 cor0
----
-39
-7
-88
query I rowsort
SELECT ALL cor0.col2 * - 18 + col0 FROM tab1 AS cor0
----
-1648
-962
-969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT DISTINCT + - CAST( 13 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13
skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT + - CAST ( 13 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT col2 + - CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8785
SELECT col2 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT col0 * + col0 * col2 + + col2 DIV + 51 FROM tab0
----
1225
19008
649523
skipif mysql # not compatible
query I rowsort label-8786
SELECT col0 * + col0 * col2 + + col2 / + 51 FROM tab0
----
1225
19008
649523
query I rowsort
SELECT ALL - col0 * - 17 + col2 AS col1 FROM tab0 AS cor0
----
1595
441
596
query I rowsort
SELECT DISTINCT + cor0.col2 * 5 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT DISTINCT + - col2 + + col1 * 90 AS col0 FROM tab2 AS cor0
----
1492
2763
5284
query I rowsort
SELECT DISTINCT - - col2 * 68 - + col0 AS col1 FROM tab0 AS cor0
----
2220
33
5487
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT - col0 + ( col0 ) * col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-8791
SELECT - col0 + ( col0 ) * col2 / - col2 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT col1 * - ( ( + col0 ) ) * cor0.col0 + 4 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-118685
-49440
-720455
onlyif mysql # use DIV operator for integer division
query I rowsort label-8793
SELECT + col2 DIV - col2 + col1 AS col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8793
SELECT + col2 / - col2 + col1 AS col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT col2 + - 78 AS col0 FROM tab1 cor0
----
-21
-24
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-8795
SELECT + col0 DIV + 25 FROM tab2 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-8795
SELECT + col0 / + 25 FROM tab2 AS cor0
----
0
3
3
query I rowsort
SELECT ALL + col2 * 90 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT 83 * 2 * + cor1.col0 + 23 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to fae8522a761c84a31974bb5614a2ecf3
query I rowsort
SELECT col0 - + tab1.col1 * - col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT 86 * + tab0.col1 * col0 FROM tab0
----
177504
291970
696514
query I rowsort
SELECT - + 70 * col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
query I rowsort
SELECT - col0 * - col2 * + col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL cor0.col1 + - 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03c096d9133588deb40f10774ecaa1fc
query I rowsort
SELECT + + col0 * + 14 + 94 FROM tab2 AS cor0
----
1186
1200
192
query I rowsort
SELECT ALL - cor0.col1 - ( 97 ) AS col2 FROM tab0 AS cor0
----
-183
-188
-194
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 + - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT + col1 DIV col2 + - 80 - tab1.col1 DIV + col1 FROM tab1
----
-81
skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + col1 / col2 + - 80 - tab1.col1 / + col1 FROM tab1
----
-81
query I rowsort
SELECT - col1 + + ( + col0 ) + col0 AS col1 FROM tab0
----
-27
-38
87
query I rowsort
SELECT col1 * col0 + - 33 FROM tab0 AS cor0
----
2031
3362
8066
query I rowsort
SELECT + 29 * - 18 FROM tab2, tab0 AS cor0
----
9 values hashing to f49feefa048f983cb63d53862164edf8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT + col1 * ( - col2 ) + - col0 DIV ( col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
-1509
-612
-810
skipif mysql # not compatible
query I rowsort label-8810
SELECT + col1 * ( - col2 ) + - col0 / ( col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
-1509
-612
-810
query I rowsort
SELECT DISTINCT + + col0 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col1 * - 97 + + 45 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-12517
-9454
-9827
query I rowsort
SELECT col2 * + ( 99 ) + col2 AS col2 FROM tab0 AS cor0
----
100
3300
8200
query I rowsort
SELECT DISTINCT col1 + + ( col0 ) * + col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col0 * 22 AS col0 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT - + col0 + col0 * + 82 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT + col2 - - 62 FROM tab2
----
100
88
89
query I rowsort
SELECT 86 + col2 * col2 AS col0 FROM tab1
----
3002
3335
9302
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - col1 ) ) * 92 + col1 col0 FROM tab2
----
-1547
-2821
-5369
query I rowsort
SELECT - 15 * 47 AS col1 FROM tab2 AS cor0
----
-705
-705
-705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8821
SELECT ALL CAST( + 84 AS SIGNED ) FROM tab0
----
84
84
84
skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL CAST ( + 84 AS INTEGER ) FROM tab0
----
84
84
84
query I rowsort
SELECT - 21 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - + ( 31 ) * - col2 AS col0 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8827
SELECT - ( col2 ) * - ( 43 * col0 + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8827
SELECT - ( col2 ) * - ( 43 * col0 + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 73 * - col2 * col2 FROM tab1 AS cor0
----
-212868
-237177
-672768
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT col0 * col1 DIV + 40 AS col0 FROM tab0 cor0
----
202
51
84
skipif mysql # not compatible
query I rowsort label-8829
SELECT col0 * col1 / + 40 AS col0 FROM tab0 cor0
----
202
51
84
query I rowsort
SELECT ALL + col1 * - cor0.col0 * ( - cor0.col0 ) + + col0 AS col0 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT - col2 + 79 FROM tab1 AS cor0
----
-17
22
25
query I rowsort
SELECT ALL - 1 * col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 8 + col0 AS col1 FROM tab0 AS cor0
----
32
43
97
query I rowsort
SELECT ALL + + 65 AS col0 FROM tab0 cor0
----
65
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + col0 * + 89 FROM tab2 AS cor0
----
654
7001
7048
skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + col0 * + 89 FROM tab2 AS cor0
----
654
7001
7048
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8838
SELECT - col2 + - col2 + tab2.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8838
SELECT - col2 + - col2 + tab2.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - col1 * + 97 AS col2 FROM tab2 AS cor0
----
-1632
-2976
-5664
query I rowsort
SELECT 58 * col2 * 96 AS col2 FROM tab0 AS cor0
----
183744
456576
5568
query I rowsort
SELECT ALL ( col1 ) + + tab2.col0 * - col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8842
SELECT + CAST( - col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8842
SELECT + CAST ( - col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT DISTINCT - cor1.col2 * - CAST( NULL AS SIGNED ) * + 30 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT - cor1.col2 * - CAST ( NULL AS INTEGER ) * + 30 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT + CAST( + col1 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8844
SELECT + CAST ( + col1 AS INTEGER ) / col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * + col0 + + col2 * 88 * - col1 col1 FROM tab2
----
-130780
-52582
-73278
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col2 FROM tab0
----
63
query I rowsort
SELECT DISTINCT + - col1 * 45 FROM tab0 cor0
----
-3870
-4095
-4365
query I rowsort
SELECT DISTINCT col0 + - col2 * - 43 AS col0 FROM tab2 AS cor0
----
1168
1196
1713
query I rowsort
SELECT + - col0 * - col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - ( col1 + 97 ) * + col0 AS col0 FROM tab2
----
-12168
-896
-9006
query I rowsort
SELECT tab0.col2 + - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 - + col2 * col0 * col0 col1 FROM tab1 AS cor0
----
-237120
-622080
-648
query I rowsort
SELECT DISTINCT - cor0.col0 * 56 * - col1 AS col2 FROM tab0 AS cor0
----
115584
190120
453544
query I rowsort
SELECT - - col0 + + col2 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col0 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + col0 * - 50 AS col2 FROM tab0 AS cor0
----
-1200
-1750
-4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - 64 col1 FROM tab2 AS cor0
----
-26
-37
-38
query I rowsort
SELECT ALL - cor0.col2 * 78 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT ALL - col0 * 16 FROM tab2
----
-112
-1248
-1264
query I rowsort
SELECT col0 + + col2 * - tab0.col2 * col0 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT - col2 * + 20 AS col2 FROM tab1
----
-1080
-1140
-1920
query I rowsort
SELECT ALL + + 42 AS col2 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT - + ( - 4 ) FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT ( + ( + col0 ) ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - + ( - col1 ) + + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + col2 * + 53 AS col2 FROM tab1 AS cor0
----
2862
3021
5088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8868
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 44 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
6128
6285
93
query I rowsort
SELECT + + ( + col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8871
SELECT DISTINCT + cor0.col0 + - CAST( NULL AS SIGNED ) * + tab1.col1 col0 FROM tab1, tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT + cor0.col0 + - CAST ( NULL AS INTEGER ) * + tab1.col1 col0 FROM tab1, tab0 cor0
----
NULL
query I rowsort
SELECT - 64 + col2 FROM tab1 cor0
----
-10
-7
32
query I rowsort
SELECT DISTINCT + + col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 + 11 FROM tab1 AS cor0
----
-1029
-629
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8875
SELECT ALL - - col1 * - cor0.col0 + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - - col1 * - cor0.col0 + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col0 - - col0 AS col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT - - 2 + col0 FROM tab1 AS cor0
----
5
66
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8878
SELECT col0 + - col1 DIV col2 col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8878
SELECT col0 + - col1 / col2 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab2 cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * - col2 * col0 col2 FROM tab2 AS cor0
----
-114093
-5134
-52787
query I rowsort
SELECT ALL + - 62 * + col2 + + col0 * - 26 AS col1 FROM tab1 AS cor0
----
-3426
-5198
-8032
query I rowsort
SELECT DISTINCT - col0 * - col2 + - ( 44 ) AS col1 FROM tab1 AS cor0
----
118
3604
7636
query I rowsort
SELECT + 95 + + col1 AS col2 FROM tab1 cor0
----
105
108
121
query I rowsort
SELECT ALL + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + cor0.col0 + - 57 + col0 AS col1 FROM tab2 AS cor0
----
-43
101
99
query I rowsort
SELECT col1 + - 60 + col2 FROM tab1 AS cor0
----
20
49
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8889
SELECT + col1 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8889
SELECT + col1 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 17 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT + cor0.col1 + 58 * + col2 FROM tab1 cor0
----
3158
3316
5581
query I rowsort
SELECT col0 - - col1 * col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + cor0.col0 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col0 ) col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT col0 + ( col1 * CAST( NULL AS SIGNED ) ) - 74 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8895
SELECT col0 + ( col1 * CAST ( NULL AS INTEGER ) ) - 74 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT col0 + + col1 DIV + col2 - - 0 AS col2 FROM tab0 cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-8896
SELECT col0 + + col1 / + col2 - - 0 AS col2 FROM tab0 cor0
----
132
26
90
query I rowsort
SELECT - + ( - 74 ) FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT ALL - col2 * col2 + ( - col1 ) AS col2 FROM tab0 cor0
----
-1175
-6815
-98
query I rowsort
SELECT - 88 * + col1 * col1 + + cor0.col2 FROM tab2 AS cor0
----
-25394
-306302
-84541
query I rowsort
SELECT + col2 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 61 + ( - cor1.col0 ) * 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af2116f27a3e918d33fbeaa3b3d4e372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8902
SELECT CAST( col1 AS SIGNED ) + + col0 - - 81 col1 FROM tab2 AS cor0
----
119
177
218
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8902
SELECT CAST ( col1 AS INTEGER ) + + col0 - - 81 col1 FROM tab2 AS cor0
----
119
177
218
query I rowsort
SELECT 96 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT + cor0.col2 DIV tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6a6053de931c7e0bcbb1d3f466e8c2b9
skipif mysql # not compatible
query I rowsort label-8904
SELECT + cor0.col2 / tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6a6053de931c7e0bcbb1d3f466e8c2b9
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + col0 * 50 AS col1 FROM tab2
----
350
3900
3950
query I rowsort
SELECT ALL ( + 43 ) - col1 AS col2 FROM tab0
----
-43
-48
-54
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 + + col0 AS REAL ) AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab2
----
85
query I rowsort
SELECT ( - col2 * col0 ) FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8911
SELECT + - CAST( col2 AS SIGNED ) + + cor0.col2 * col2 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-157518
-185250
-884832
skipif mysql # not compatible
query I rowsort label-8911
SELECT + - CAST ( col2 AS INTEGER ) + + cor0.col2 * col2 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-157518
-185250
-884832
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT ALL + col2 + col0 * + col0 + - 29 DIV col0 FROM tab1
----
4153
54
6496
skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + col2 + col0 * + col0 + - 29 / col0 FROM tab1
----
4153
54
6496
query I rowsort
SELECT ALL + col2 * col1 * col0 + + col1 * + col0 FROM tab2
----
124254
52377
6076
query I rowsort
SELECT + + col0 + cor0.col1 * + ( col1 ) AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT ALL - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * - col2 + - col0 + col2 FROM tab1 cor0
----
1264
1455
563
query I rowsort
SELECT DISTINCT col2 - 53 * - cor0.col0 FROM tab1 AS cor0
----
213
3449
4336
query I rowsort
SELECT + col1 + 17 FROM tab2 AS cor0
----
34
48
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8922
SELECT - col1 DIV + 53 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8922
SELECT - col1 / + 53 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 29 + - col0 FROM tab1 AS cor0
----
-35
-51
26
query I rowsort
SELECT ALL + col0 + - cor0.col1 * + 7 AS col2 FROM tab0 cor0
----
-548
-578
-644
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + ( cor0.col0 ) FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 71 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT ALL + col1 * col0 + col0 DIV + 63 AS col2 FROM tab0 AS cor0
----
2064
3395
8100
skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + col1 * col0 + col0 / + 63 AS col2 FROM tab0 AS cor0
----
2064
3395
8100
query I rowsort
SELECT ALL - cor0.col1 + col2 * 89 FROM tab1 AS cor0
----
4780
5063
8531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 - + col2 col2 FROM tab2 AS cor0
----
-75
-76
-87
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + 37 AS col2 FROM tab1 AS cor0
----
199
3685
7717
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT ALL - 2 DIV col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - 2 / col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * + col1 + 53 * cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
116788
189344
437528
query I rowsort
SELECT ALL + - 25 * + col1 AS col1 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT - tab0.col1 * - cor0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
9 values hashing to 116454f2268e21c1351daf3f5803c987
onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT DISTINCT - col1 DIV 61 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - col1 / 61 FROM tab0 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT ALL - + col0 * CAST( - col0 + - col0 AS SIGNED ) FROM tab1 cor0
----
12800
18
8192
skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - + col0 * CAST ( - col0 + - col0 AS INTEGER ) FROM tab1 cor0
----
12800
18
8192
query I rowsort
SELECT DISTINCT col1 * 75 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-273
180
546
query I rowsort
SELECT cor0.col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + - col2 * ( ( + col2 ) ) * - 41 AS col1 FROM tab1 cor0
----
119556
133209
377856
onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT col1 + col1 DIV - 19 FROM tab2
----
17
30
56
skipif mysql # not compatible
query I rowsort label-8940
SELECT col1 + col1 / - 19 FROM tab2
----
17
30
56
query I rowsort
SELECT col2 + col0 * tab2.col1 * + ( + col1 ) FROM tab2
----
22869
271544
6754
query I rowsort
SELECT ALL - - col2 * + col2 - - col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL - ( col0 ) + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + col2 + 67 FROM tab0 AS cor0
----
100
149
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8946
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + ( col0 * 60 ) - + col1 * cor0.col0 * - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + ( col0 * 60 ) - + col1 * cor0.col0 * - col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8947
SELECT DISTINCT col1 DIV 17 AS col1 FROM tab0 cor0
----
5
skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT col1 / 17 AS col1 FROM tab0 cor0
----
5
query I rowsort
SELECT 72 + - col0 AS col2 FROM tab1 AS cor0
----
-8
69
8
query I rowsort
SELECT ALL col0 * col1 + cor0.col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8950
SELECT ( ( col0 ) ) * CAST( + 54 + col0 * + col2 AS SIGNED ) FROM tab1 AS cor0
----
236928
618720
648
skipif mysql # not compatible
query I rowsort label-8950
SELECT ( ( col0 ) ) * CAST ( + 54 + col0 * + col2 AS INTEGER ) FROM tab1 AS cor0
----
236928
618720
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT DISTINCT - col1 + + col1 - cor0.col0 * CAST( + col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - col1 + + col1 - cor0.col0 * CAST ( + col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL cor0.col0 + - 2 AS col2 FROM tab1 AS cor0
----
1
62
78
query I rowsort
SELECT DISTINCT + - 86 + + ( - cor0.col2 + col0 ) FROM tab0 cor0
----
-52
-79
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8954
SELECT ALL + + CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + + CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 89 ) + col2 + + 79 * + col2 FROM tab1 AS cor0
----
4409
4649
7769
query I rowsort
SELECT ALL - col2 * 57 + + col0 FROM tab2
----
-1404
-1532
-2087
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - ( 31 ) FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT ALL + col2 + + ( + tab0.col2 ) * col2 AS col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL + ( 60 ) FROM tab0 AS cor0
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT DISTINCT - col1 * - col0 + + col0 * col1 * + col0 + - cor0.col0 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
122219
51599
728909
skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - col1 * - col0 + + col0 * col1 * + col0 + - cor0.col0 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
122219
51599
728909
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 + col0 col2 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - ( col2 ) + col0 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col2 + - col2 * - cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
17602
19710
54910
query I rowsort
SELECT - 5 * col1 * + col2 AS col2 FROM tab0
----
-14190
-37310
-485
query I rowsort
SELECT 37 * + col0 AS col1 FROM tab2
----
259
2886
2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8967
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT tab1.col0 * + 69 FROM tab1
----
207
4416
5520
query I rowsort
SELECT col0 + ( + col1 ) AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL 62 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8971
SELECT ALL + 7 DIV + 60 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + 7 / + 60 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( col1 + + 50 ) AS col1 FROM tab1
----
60
63
76
query I rowsort
SELECT - 74 * col2 + ( + col2 ) FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - 87 FROM tab0 cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT - col1 * + ( - 35 ) + - col1 + col1 DIV - tab0.col2 FROM tab0
----
2922
3093
3201
skipif mysql # not compatible
query I rowsort label-8976
SELECT - col1 * + ( - 35 ) + - col1 + col1 / - tab0.col2 FROM tab0
----
2922
3093
3201
query I rowsort
SELECT + col2 + ( - col0 ) AS col0 FROM tab2
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8978
SELECT + CAST( + 22 AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif mysql # not compatible
query I rowsort label-8978
SELECT + CAST ( + 22 AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8979
SELECT + cor0.col2 + + cor0.col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8979
SELECT + cor0.col2 + + cor0.col2 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 + col0 + - 56 * col2 AS col1 FROM tab2
----
-1300
-1498
-1970
query I rowsort
SELECT ALL + col0 * + 92 + + col1 AS col1 FROM tab2 cor0
----
675
7235
7285
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + col1 + 16 AS col1 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT + col0 + - 21 - cor0.col2 * - col0 FROM tab2 cor0
----
175
2085
3060
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 + + col0 col2 FROM tab0 cor0
----
-29
-61
80
query I rowsort
SELECT + col1 * + col0 - col2 * - col1 AS col2 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT col0 - 50 FROM tab2 AS cor0
----
-43
28
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - tab2.col0 + - col0 ) * 99 col0 FROM tab2
----
-1386
-15444
-15642
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 023677f2362ebf8bd60cb629f4090df4
query I rowsort
SELECT DISTINCT - - ( 23 ) FROM tab2 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 - tab1.col1 col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37
query I rowsort
SELECT + ( - 35 ) * cor0.col0 + col1 + 61 * + col1 FROM tab2 AS cor0
----
-1711
1677
928
query I rowsort
SELECT - 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT + + 4 + col2 - - col1 * + col0 FROM tab1 AS cor0
----
1140
136
701
query I rowsort
SELECT + cor0.col2 * - 92 + - col1 * 64 * 73 + col0 FROM tab2 AS cor0
----
-147309
-277962
-82841
query I rowsort
SELECT ALL 4 * - col1 FROM tab2
----
-124
-236
-68
query I rowsort
SELECT ALL col1 + - 12 FROM tab1 AS cor0
----
-2
1
14
query I rowsort
SELECT DISTINCT - col0 * + col1 * - col0 - col0 FROM tab0 cor0
----
118790
49512
720722
query I rowsort
SELECT - col0 * col1 + + 25 FROM tab0
----
-2039
-3370
-8074
query I rowsort
SELECT ALL - col1 - ( + col2 ) * - col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT cor0.col0 * col1 * col0 - - col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT col0 * col1 - + col2 FROM tab1 cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT col1 * - col0 DIV cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9007
SELECT col1 * - col0 / cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor2.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT - col1 * - ( 93 ) FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT - col1 * + 63 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - - col0 + + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + col2 + ( 31 ) * col2 FROM tab1 AS cor0
----
1728
1824
3072
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9014
SELECT + col2 + CAST( col1 * col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-9014
SELECT + col2 + CAST ( col1 * col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - cor0.col2 * col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 58 AS col2 FROM tab1
----
58
58
58
query I rowsort
SELECT - - 20 AS col1 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT - 18 + col2 AS col0 FROM tab1 AS cor0
----
36
39
78
query I rowsort
SELECT + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + + 58 * col1 col1 FROM tab0 AS cor0
----
5040
5330
5678
query I rowsort
SELECT + cor0.col1 + ( col2 + col0 ) FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - 47 * - col1 AS col2 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT - + 94 * col0 FROM tab0 cor0
----
-2256
-3290
-8366
query I rowsort
SELECT 74 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT + - ( - col0 ) * + col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - 67 + col0 + + ( - col0 + col1 * + col1 ) FROM tab0 cor0
----
7329
8214
9342
query I rowsort
SELECT + col2 * + col1 * + col1 FROM tab2 AS cor0
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9029
SELECT DISTINCT - cor0.col2 * - col0 * 45 + ( col0 ) + - CAST( + 39 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
135832
93639
9721
skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - cor0.col2 * - col0 * 45 + ( col0 ) + - CAST ( + 39 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
135832
93639
9721
query I rowsort
SELECT ALL - ( col1 ) * - col0 + + 27 + + col1 AS col1 FROM tab2 AS cor0
----
1387
275
4688
query I rowsort
SELECT ALL + col0 + + col0 * col1 + 36 FROM tab1 AS cor0
----
1156
117
740
query I rowsort
SELECT ALL - col1 * col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 - - ( col0 ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 70 + col0 FROM tab1 AS cor0
----
134
150
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT ALL - col0 * + col2 * col1 + - 61 DIV col0 FROM tab2 AS cor0
----
-119652
-51034
-5867
skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - col0 * + col2 * col1 + - 61 / col0 FROM tab2 AS cor0
----
-119652
-51034
-5867
query I rowsort
SELECT ALL + 30 + + col2 FROM tab2 AS cor0
----
56
57
68
query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2 cor0
----
28
query I rowsort
SELECT ALL + - cor0.col2 + + 82 FROM tab0 AS cor0
----
0
49
81
query I rowsort
SELECT cor0.col2 + 65 * + col2 FROM tab1 AS cor0
----
3564
3762
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-9040
SELECT DISTINCT + col0 DIV - col1 AS col0 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT + col0 / - col1 AS col0 FROM tab2 cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT DISTINCT - - col1 DIV cor0.col1 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT - - col1 / cor0.col1 FROM tab0 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9042
SELECT col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9042
SELECT col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * - col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT 60 - - col1 * - col0 FROM tab2
----
-1283
-157
-4542
query I rowsort
SELECT + 11 + - col0 FROM tab2 AS cor0
----
-67
-68
4
query I rowsort
SELECT ALL - + col2 * col1 * - col0 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9047
SELECT DISTINCT + CAST( col1 AS SIGNED ) * cor0.col2 * ( + 99 ) + + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
152022
64112
82877
skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * cor0.col2 * ( + 99 ) + + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
152022
64112
82877
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT 36 * 7 + col2 FROM tab1 AS cor0
----
306
309
348
query I rowsort
SELECT 3 + - cor0.col0 FROM tab2 AS cor0
----
-4
-75
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT DISTINCT 26 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT 26 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
27
query I rowsort
SELECT ALL - 7 AS col2 FROM tab2 cor0
----
-7
-7
-7
query I rowsort
SELECT + + col2 * - col1 + col2 * 0 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 21 + col0 AS col2 FROM tab2 AS cor0
----
574
624
877
query I rowsort
SELECT ALL - - col2 - 63 AS col1 FROM tab0 AS cor0
----
-30
-62
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9056
SELECT col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9056
SELECT col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + 79 * col2 ) AS col0 FROM tab1
----
4266
4503
7584
query I rowsort
SELECT ALL col1 + 56 AS col0 FROM tab2
----
115
73
87
query I rowsort
SELECT - 28 + - col2 * + cor0.col0 * - col0 FROM tab2 AS cor0
----
1295
158156
237130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9060
SELECT + CAST( ( - col0 ) AS SIGNED ) * + tab0.col0 * + col0 AS col1 FROM tab0
----
-13824
-42875
-704969
skipif mysql # not compatible
query I rowsort label-9060
SELECT + CAST ( ( - col0 ) AS INTEGER ) * + tab0.col0 * + col0 AS col1 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL tab2.col0 + 55 FROM tab2
----
133
134
62
query I rowsort
SELECT - 51 * + col2 FROM tab1
----
-2754
-2907
-4896
skipif mysql # not compatible
query I rowsort
SELECT + - col2 + - CAST ( + 28 AS REAL ) AS col1 FROM tab1 AS cor0
----
-124
-82
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT ALL col2 DIV - 82 AS col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL col2 / - 82 AS col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL col1 * + col0 + + 86 FROM tab0 AS cor0
----
2150
3481
8185
query I rowsort
SELECT ALL ( 12 ) - - col2 * 50 * col1 AS col2 FROM tab0 AS cor0
----
141912
373112
4862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9067
SELECT ALL + CAST( NULL AS SIGNED ) / col2 - + col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 - + col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 28 * col2 + col1 AS col1 FROM tab1 AS cor0
----
1538
1606
2701
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 col1 FROM tab1 cor0
----
-95
-95
-95
query I rowsort
SELECT - 35 * tab0.col2 AS col0 FROM tab0
----
-1155
-2870
-35
query I rowsort
SELECT 52 + + col0 FROM tab2
----
130
131
59
query I rowsort
SELECT tab1.col2 * - col2 * 24 + - col0 + + col2 FROM tab1
----
-221168
-69933
-77983
query I rowsort
SELECT ALL 10 * col0 AS col1 FROM tab0 AS cor0
----
240
350
890
onlyif mysql # use DIV operator for integer division
query I rowsort label-9074
SELECT DISTINCT - col2 + col2 * col0 DIV col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - col2 + col2 * col0 / col0 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT cor0.col0 DIV + col0 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9075
SELECT cor0.col0 / + col0 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + tab1.col2 + + col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT cor0.col0 * col2 + col1 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT + - cor0.col1 + + col0 * + col1 FROM tab2 cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - cor0.col1 * col1 + - col1 col2 FROM tab2 AS cor0
----
-3618
-385
-999
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT col2 + - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col2 * col1 * col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + + cor0.col1 - col0 * - 38 FROM tab0 AS cor0
----
1427
3473
998
query I rowsort
SELECT DISTINCT + cor0.col0 * - 58 - - col0 FROM tab0 cor0
----
-1368
-1995
-5073
query I rowsort
SELECT + + cor0.col2 + 94 AS col1 FROM tab2 AS cor0
----
120
121
132
query I rowsort
SELECT cor0.col2 * + cor0.col2 + - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL + col1 * - 82 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT DISTINCT + - col1 * + ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col1 * col2 + - tab0.col1 * + col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 87 + col0 FROM tab0
----
111
122
176
query I rowsort
SELECT col2 * 1 AS col0 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + + col0 col1 FROM tab2
----
124
125
53
query I rowsort
SELECT DISTINCT col2 * col2 + col2 + tab1.col1 FROM tab1
----
2996
3316
9325
onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT + tab1.col2 DIV + col2 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9096
SELECT + tab1.col2 / + col2 AS col1 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT col2 DIV - 11 AS col1 FROM tab0 AS cor0
----
-3
-7
0
skipif mysql # not compatible
query I rowsort label-9097
SELECT col2 / - 11 AS col1 FROM tab0 AS cor0
----
-3
-7
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT DISTINCT + col2 DIV tab1.col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + col2 / tab1.col0 AS col0 FROM tab1
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9099
SELECT - col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9099
SELECT - col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9101
SELECT DISTINCT - col0 DIV 15 col1 FROM tab1
----
-4
-5
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - col0 / 15 col1 FROM tab1
----
-4
-5
0
query I rowsort
SELECT 69 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT col0 * 58 AS col1 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT col0 * + 0 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( col0 * + col1 ) AS col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col1 col1 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + col2 col2 FROM tab2
----
74
75
86
query I rowsort
SELECT DISTINCT ( col2 ) * tab0.col1 + - tab0.col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT col2 + col2 + - tab1.col0 FROM tab1
----
105
112
50
query I rowsort
SELECT ALL + 7 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT 8 * cor0.col1 AS col0 FROM tab1 AS cor0
----
104
208
80
query I rowsort
SELECT DISTINCT - 7 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-104
-93
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 - col2 col2 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT DISTINCT - col1 * + col1 - col1 * col2 * col0 FROM tab2 AS cor0
----
-123133
-51323
-6820
onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT DISTINCT - col0 * col1 + col0 DIV + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - col0 * col1 + col0 / + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL cor0.col0 * - col0 + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col1 * col2 * col2 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT ALL col0 - - col1 * + cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 - + cor0.col1 FROM tab0 AS cor0 WHERE col1 * + col2 BETWEEN - col0 / - col0 + - col1 AND + cor0.col0 + col0 OR NOT ( NULL ) > NULL
----
query I rowsort
SELECT + - col0 + - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT - col0 * - cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col2 * tab0.col2 * + tab0.col2 AS col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 / col0 NOT BETWEEN ( - col0 ) AND NULL
----
query I rowsort
SELECT - + col1 * + cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT ALL + cor0.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-9128
SELECT ALL + cor0.col0 / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 74 AS col2 FROM tab2
----
-74
-74
-74
query I rowsort
SELECT - cor0.col2 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT - - col2 * col1 + - col0 DIV - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9132
SELECT - - col2 * col1 + - col0 / - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + - col1 + col1 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 WHERE NOT ( - col2 * col2 + col1 ) = ( col2 * col0 + col2 )
----
29
74
93
query I rowsort
SELECT tab0.col2 * col1 + + col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col0 * col1 * - col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT ALL col0 DIV - col0 + col0 * tab0.col2 + col0 FROM tab0
----
69
7386
815
skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL col0 / - col0 + col0 * tab0.col2 + col0 FROM tab0
----
69
7386
815
query I rowsort
SELECT ALL + col0 + col0 + + col1 FROM tab0
----
134
167
269
query I rowsort
SELECT col2 + - tab2.col0 * col2 / col0 AS col1 FROM tab2 WHERE ( NULL ) >= ( NULL )
----
query I rowsort
SELECT ALL - col1 * tab0.col1 - - col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT + tab1.col1 - - tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + tab2.col2 * + tab2.col1 + col1 * - col1 AS col2 FROM tab2
----
-124
-1947
357
query I rowsort
SELECT + col2 + - col1 * + col1 FROM tab2
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + - col1 * col2 col0 FROM tab1
----
1512
2679
7968
query I rowsort
SELECT ALL col0 * - col1 * - col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ( + col2 ) + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - + col2 * col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT + col0 + + col1 * 53 AS col2 FROM tab2 cor0
----
1650
3205
980
query I rowsort
SELECT - 76 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT tab2.col0 - col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT ALL col2 - tab1.col1 DIV col1 col0 FROM tab1
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL col2 - tab1.col1 / col1 col0 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT col2 * + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT 43 + col2 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
1291
1447
613
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / col0 IN ( col1 * - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT tab1.col1 DIV + col2 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9155
SELECT tab1.col1 / + col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + cor0.col1 + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
query I rowsort
SELECT DISTINCT col0 + + col2 * col2 AS col1 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT - tab0.col0 * col0 + tab0.col2 AS col2 FROM tab0
----
-1224
-543
-7839
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col0 * + col0 - + col1
----
query I rowsort
SELECT col1 FROM tab2 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT - col2 + col2 - + col2 * - col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - tab1.col0 - - col1 * col0 FROM tab1
----
576
75
960
query I rowsort
SELECT col2 + col1 + + col2 AS col1 FROM tab0
----
152
255
99
query I rowsort
SELECT ALL col2 * - tab2.col1 + col0 * col1 + col2 FROM tab2
----
-593
3094
735
query I rowsort
SELECT + col0 + col2 * + tab0.col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - tab0.col1 - col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL - col2 * col2 * col2 + - col2 AS col2 FROM tab0 WHERE ( + col2 ) NOT IN ( - col1 * tab0.col2 )
----
-2
-35970
-551450
query I rowsort
SELECT - col1 * + col1 - col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT ALL + col0 * col0 - col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL - col0 + col1 * - cor0.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 tab1
----
-23
54
67
query I rowsort
SELECT + - 72 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT - 15 * col1 FROM tab1
----
-150
-195
-390
query I rowsort
SELECT + col2 + - col0 * col0 AS col1 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL cor0.col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - 52 * col0 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT DISTINCT 37 + + col1 AS col0 FROM tab1 AS cor0
----
47
50
63
query I rowsort
SELECT - - cor0.col1 * - cor0.col2 + col1 * col0 AS col0 FROM tab0 cor0
----
-774
3298
637
query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-65
query I rowsort
SELECT ALL tab2.col2 * 47 FROM tab2
----
1222
1269
1786
query I rowsort
SELECT - col2 * - col0 - + col0 * col0 * + col0 FROM tab1
----
-258496
-504320
135
query I rowsort
SELECT - col0 + + 94 AS col2 FROM tab0
----
5
59
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT col0 DIV 40 AS col0 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9183
SELECT col0 / 40 AS col0 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + col1 + 28 FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT ALL col0 * - 97 FROM tab0
----
-2328
-3395
-8633
query I rowsort
SELECT DISTINCT col2 * - col2 - + cor0.col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT + + ( - col0 ) - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + + 88 * col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT DISTINCT - col0 * 84 AS col1 FROM tab0 AS cor0
----
-2016
-2940
-7476
query I rowsort
SELECT ALL + + 31 + 15 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-40
-45
-51
query I rowsort
SELECT ALL + col0 - + 9 * - col0 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT DISTINCT - - ( + 58 ) FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL + - ( 79 ) * col2 AS col0 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT 70 * col1 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9195
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT - 61 * col2 * col2 FROM tab1 AS cor0
----
-177876
-198189
-562176
query I rowsort
SELECT DISTINCT col2 - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL + 57 AS col1 FROM tab0 cor0
----
57
57
57
query I rowsort
SELECT + - col2 + + col2 + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 - ( col2 ) FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9202
SELECT DISTINCT CAST( - 47 AS SIGNED ) * col1 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
30362
39339
72098
skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT CAST ( - 47 AS INTEGER ) * col1 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
30362
39339
72098
query I rowsort
SELECT DISTINCT - 75 * + col1 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT ALL ( + tab0.col2 + col1 ) * tab0.col0 * col1 AS col1 FROM tab0
----
1401127
245616
332710
query I rowsort
SELECT - + ( + col2 ) * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col0 + + col1 * col2 * tab0.col2 FROM tab0
----
132
611973
93678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * 4 AS col1 FROM tab0
----
-132
-328
-4
query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab1
----
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT DISTINCT ( + 36 ) * col1 DIV cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
114
115
43
skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT ( + 36 ) * col1 / cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT ALL - 10 + + 70 * col0 FROM tab2 cor0
----
480
5450
5520
query I rowsort
SELECT + + 95 + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4001
-6305
86
query I rowsort
SELECT + 71 * - cor0.col1 - + col0 FROM tab0 AS cor0
----
-6130
-6550
-6922
query I rowsort
SELECT - 96 + + col1 AS col0 FROM tab1 AS cor0
----
-70
-83
-86
query I rowsort
SELECT + + ( col2 ) * + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT 56 + - col1 * - cor0.col2 FROM tab1 AS cor0
----
1304
1460
626
query I rowsort
SELECT ALL 35 + - 38 FROM tab2
----
-3
-3
-3
query I rowsort
SELECT ALL - col1 * 49 * + col1 + col0 FROM tab0
----
-362380
-405680
-461006
query I rowsort
SELECT - + col1 + + col0 - - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2002
3333
8097
query I rowsort
SELECT DISTINCT + col2 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9222
SELECT DISTINCT + col2 * - CAST( + col2 AS SIGNED ) + col2 * cor0.col2 AS col1 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + col2 * - CAST ( + col2 AS INTEGER ) + col2 * cor0.col2 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT - col0 * + 36 + col1 FROM tab2 AS cor0
----
-221
-2749
-2827
onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT DISTINCT + - col1 DIV + 24 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + - col1 / + 24 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL + col2 * 10 + col0 AS col0 FROM tab1 AS cor0
----
1040
543
634
query I rowsort
SELECT ALL + col2 + 26 * - col1 FROM tab2 AS cor0
----
-1508
-404
-779
query I rowsort
SELECT + 82 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT ALL - 43 + + col1 FROM tab2
----
-12
-26
16
query I rowsort
SELECT DISTINCT 44 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT - col0 * col1 DIV - tab1.col1 - col2 * - col0 AS col2 FROM tab1
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-9230
SELECT - col0 * col1 / - tab1.col1 - col2 * - col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + - 66 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT - - col2 DIV ( + 9 ) + - col0 FROM tab2 AS cor0
----
-4
-75
-76
skipif mysql # not compatible
query I rowsort label-9232
SELECT - - col2 / ( + 9 ) + - col0 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT col2 * cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + 6 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT - + 62 * ( col1 * col0 ) FROM tab1 AS cor0
----
-39680
-4836
-64480
query I rowsort
SELECT col1 + 10 AS col0 FROM tab0 AS cor0
----
101
107
96
query I rowsort
SELECT + col1 + col2 * 25 AS col2 FROM tab0 AS cor0
----
122
2141
911
query I rowsort
SELECT ALL col0 + + 9 AS col1 FROM tab1
----
12
73
89
query I rowsort
SELECT DISTINCT col0 + 50 AS col0 FROM tab2 AS cor0
----
128
129
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT + col1 * cor0.col0 + col2 DIV cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9241
SELECT + col1 * cor0.col0 + col2 / cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col1 * 34 * - col0 + cor0.col0 AS col0 FROM tab2 cor0
----
-156390
-45583
-7371
query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
-61
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 + 48 AS col1 FROM tab0 AS cor0
----
130
49
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9246
SELECT DISTINCT - - 89 DIV col0 FROM tab1 cor0
----
1
29
skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT - - 89 / col0 FROM tab1 cor0
----
1
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9247
SELECT - CAST( + col1 AS SIGNED ) + - col2 * col1 AS col1 FROM tab0 cor0
----
-194
-2924
-7553
skipif mysql # not compatible
query I rowsort label-9247
SELECT - CAST ( + col1 AS INTEGER ) + - col2 * col1 AS col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + + col0 * 6 AS col1 FROM tab1 cor0
----
18
384
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 77 ) * col2 * - 86 col2 FROM tab0 cor0
----
218526
543004
6622
onlyif mysql # use DIV operator for integer division
query I rowsort label-9250
SELECT + col0 + + cor0.col1 DIV col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-9250
SELECT + col0 + + cor0.col1 / col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL + cor0.col1 + + col0 + + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - 96 * + col1 AS col0 FROM tab0 cor0
----
-8256
-8736
-9312
query I rowsort
SELECT 94 + - col0 FROM tab1 AS cor0
----
14
30
91
query I rowsort
SELECT ALL + col0 + + 90 * + col0 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT ALL - cor0.col1 * tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b1d1c8abbc483ff4a42f7a4fd637cd89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT ALL + col2 DIV + ( - col2 ) AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL + col2 / + ( - col2 ) AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 63 - cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-33
6
9
query I rowsort
SELECT col2 + - 46 FROM tab1
----
11
50
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 87 col2 FROM tab1
----
1131
2262
870
query I rowsort
SELECT col0 * + 88 AS col2 FROM tab0
----
2112
3080
7832
query I rowsort
SELECT + col0 * + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + 16 * col0 + col0 FROM tab0 AS cor0
----
1513
408
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT - + col0 + col0 DIV 57 - - 74 * - col1 FROM tab0 AS cor0
----
-6388
-6822
-7213
skipif mysql # not compatible
query I rowsort label-9263
SELECT - + col0 + col0 / 57 - - 74 * - col1 FROM tab0 AS cor0
----
-6388
-6822
-7213
query I rowsort
SELECT + col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT col2 DIV col2 + cor0.col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9265
SELECT col2 / col2 + cor0.col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - col1 + col0 * - 0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + + 84 + cor0.col0 FROM tab2 AS cor0
----
162
163
91
query I rowsort
SELECT ALL - 75 + - col2 + + ( + col1 ) AS col1 FROM tab1 cor0
----
-103
-122
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9269
SELECT DISTINCT cor0.col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT cor0.col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + col1 + ( 44 ) AS col1 FROM tab2 cor0
----
103
61
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT ALL col0 * ( col1 ) * col1 + + 57 DIV col0 FROM tab0 AS cor0
----
177506
329316
737009
skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL col0 * ( col1 ) * col1 + + 57 / col0 FROM tab0 AS cor0
----
177506
329316
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT DISTINCT col1 * + col1 - - col2 DIV + col0 FROM tab1
----
100
170
694
skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT col1 * + col1 - - col2 / + col0 FROM tab1
----
100
170
694
query I rowsort
SELECT 9 + - col2 * 89 FROM tab1 cor0
----
-4797
-5064
-8535
onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT DISTINCT + + cor0.col1 DIV - col0 + col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + + cor0.col1 / - col0 + col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - col0 * + 93 + col1 FROM tab1 AS cor0
----
-253
-5942
-7427
query I rowsort
SELECT - col1 * + 85 - col0 FROM tab1 AS cor0
----
-1185
-2213
-914
query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - col0 * - 98 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT - + col2 - - col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT ALL - - col2 * + CAST( col0 AS SIGNED ) * - cor0.col1 + col0 FROM tab2 cor0
----
-119574
-50955
-5852
skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - - col2 * + CAST ( col0 AS INTEGER ) * - cor0.col1 + col0 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT + col1 - ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9284
SELECT - col0 + + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-9284
SELECT - col0 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col2 - col0 * - 38 AS col1 FROM tab1
----
168
2489
3136
query I rowsort
SELECT - col2 + tab0.col2 * + 15 AS col2 FROM tab0
----
1148
14
462
query I rowsort
SELECT DISTINCT - col1 * col1 + tab1.col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT + 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT + col1 - col0 * 72 AS col1 FROM tab2
----
-473
-5557
-5671
query I rowsort
SELECT ALL - col2 * - ( 24 ) + col2 FROM tab1 AS cor0
----
1350
1425
2400
query I rowsort
SELECT DISTINCT - col1 - - ( col0 + + col2 * - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-1181
-1427
-516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - + col1 col2 FROM tab2 cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT ALL + + col0 DIV col0 + col0 * col2 FROM tab2 AS cor0
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + + col0 / col0 + col0 * col2 FROM tab2 AS cor0
----
190
2029
3003
query I rowsort
SELECT DISTINCT - - col0 * ( - col0 ) - + cor0.col0 FROM tab1 cor0
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT ALL cor0.col1 DIV - ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL cor0.col1 / - ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT + col0 * col2 + cor0.col0 AS col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL + col1 * col1 * col2 - col0 * + col1 FROM tab2 AS cor0
----
25730
85904
9639
onlyif mysql # use DIV operator for integer division
query I rowsort label-9298
SELECT + 50 DIV 10 AS col2 FROM tab0 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-9298
SELECT + 50 / 10 AS col2 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT - col0 * + col1 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT + 54 FROM tab2, tab2 cor0
----
54
query I rowsort
SELECT ALL ( 37 + - col0 ) * 92 FROM tab1
----
-2484
-3956
3128
query I rowsort
SELECT ALL - 52 * col0 AS col0 FROM tab1 cor0
----
-156
-3328
-4160
query I rowsort
SELECT ALL col1 * - col1 - + col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT - 89 * col1 FROM tab1
----
-1157
-2314
-890
query I rowsort
SELECT + 62 AS col0 FROM tab2
----
62
62
62
query I rowsort
SELECT DISTINCT 63 * col1 * ( 63 ) AS col1 FROM tab2 AS cor0
----
123039
234171
67473
query I rowsort
SELECT DISTINCT - col0 * col0 + col1 * col0 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT DISTINCT + - 29 * + col1 AS col1 FROM tab1 AS cor0
----
-290
-377
-754
query I rowsort
SELECT DISTINCT - + 90 * col2 AS col1 FROM tab0 AS cor0
----
-2970
-7380
-90
query I rowsort
SELECT - + 46 + col1 FROM tab0 cor0
----
40
45
51
query I rowsort
SELECT ALL - col1 + - 22 * + col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9312
SELECT ALL - cor1.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - cor1.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 59 * - 74 FROM tab1 AS cor0
----
-4366
-4366
-4366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9314
SELECT - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9314
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col1 ) + + col0 * col1 * cor0.col1 FROM tab2 AS cor0
----
22814
271459
6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT + + 39 * + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
39
39
39
skipif mysql # not compatible
query I rowsort label-9316
SELECT + + 39 * + col1 / col1 AS col2 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT - 76 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-19
-22
20
query I rowsort
SELECT DISTINCT col2 + col1 * col2 * col2 + - 91 AS col2 FROM tab2
----
22535
24495
39819
query I rowsort
SELECT - - col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + tab0.col2 + + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT + 89 AS col2 FROM tab2, tab2 cor0, tab1, tab1 AS cor1
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6
query I rowsort
SELECT + cor1.col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 59 col0 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT + + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( 59 AS REAL ) FROM tab1
----
123
139
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9326
SELECT col1 DIV 3 + + col0 AS col2 FROM tab1
----
11
67
84
skipif mysql # not compatible
query I rowsort label-9326
SELECT col1 / 3 + + col0 AS col2 FROM tab1
----
11
67
84
query I rowsort
SELECT DISTINCT + + col1 * - col1 + - 92 FROM tab1 cor0
----
-192
-261
-768
query I rowsort
SELECT ALL - cor0.col2 * col2 - col1 FROM tab0 cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL + + col2 - - 49 AS col2 FROM tab0 cor0
----
131
50
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 FROM tab1, tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT + 12 * ( - col2 ) FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT DISTINCT tab2.col2 * 80 FROM tab2, tab0 AS cor0
----
2080
2160
3040
query I rowsort
SELECT - tab1.col0 * + cor0.col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to c86a7c2445d7410c559267e98ed0c591
query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0
----
88
query I rowsort
SELECT - - col1 * col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + - 97 + + col0 * 52 FROM tab0 AS cor0
----
1151
1723
4531
query I rowsort
SELECT 43 * + tab0.col2 FROM tab0
----
1419
3526
43
query I rowsort
SELECT ALL + ( + col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 + - 56 * + ( - col1 ) FROM tab1 AS cor0
----
1510
617
824
onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT ALL - cor0.col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - col2 + - ( 83 ) * - col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT ALL - col2 * col1 * + ( col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + col2 + + 98 FROM tab1 AS cor0
----
152
155
194
query I rowsort
SELECT ALL 42 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT - col0 + ( 87 * col1 ) AS col2 FROM tab0 AS cor0
----
7458
7828
8404
query I rowsort
SELECT - cor0.col0 + + col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 + 77 * col2 * - col1 - col2 col1 FROM tab0
----
-218583
-574745
-7505
query I rowsort
SELECT - 87 * 82 FROM tab1
----
-7134
-7134
-7134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * col2 - col1 col0 FROM tab2
----
2073
2183
3099
query I rowsort
SELECT + 69 * col1 FROM tab2 AS cor0
----
1173
2139
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * col2 col0 FROM tab2 AS cor0
----
-2574
-2673
-3762
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT - 33 * + tab1.col0 DIV + col0 FROM tab1
----
-33
-33
-33
skipif mysql # not compatible
query I rowsort label-9357
SELECT - 33 * + tab1.col0 / + col0 FROM tab1
----
-33
-33
-33
query I rowsort
SELECT + 28 * + col1 FROM tab0
----
2408
2548
2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT + ( - col2 ) * + 93 + col2 * col1 FROM tab0 cor0
----
-164
-231
4
query I rowsort
SELECT ALL 75 + col2 * cor0.col2 FROM tab0 AS cor0
----
1164
6799
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT DISTINCT CAST( 60 AS SIGNED ) AS col1 FROM tab2
----
60
skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT CAST ( 60 AS INTEGER ) AS col1 FROM tab2
----
60
query I rowsort
SELECT + ( col0 ) * + 26 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT + 82 * + col2 AS col2 FROM tab2
----
2132
2214
3116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + + col0 col1 FROM tab0 cor0
----
-5
6
60
query I rowsort
SELECT DISTINCT 14 * + col1 AS col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT + - ( - col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT DISTINCT - col0 DIV - col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - col0 / - col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT + col1 + + cor0.col0 + + 73 FROM tab0 cor0
----
183
205
253
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT + cor0.col1 DIV 89 col1 FROM tab0 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9370
SELECT + cor0.col1 / 89 col1 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + cor0.col1 + - col2 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-194
-611975
-93740
query I rowsort
SELECT ALL - col2 + ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col2 + - 94 AS col0 FROM tab2 AS cor0
----
-56
-67
-68
query I rowsort
SELECT ALL 30 * cor0.col1 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT ALL - - col2 * 87 AS col0 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT ALL - ( 99 ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT 67 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1410
284
4669
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31
query I rowsort
SELECT ALL - cor0.col1 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 + + 15 * - col1 AS col1 FROM tab1 AS cor0
----
-214
-275
-393
query I rowsort
SELECT ALL + + cor0.col2 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + + col2 * col0 + - col2 FROM tab2 cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * col1 * cor0.col2 + + col2 * col0 col2 FROM tab0 cor0
----
111474
298316
3818
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9388
SELECT - CAST( + 94 AS SIGNED ) FROM tab1 AS cor0
----
-94
-94
-94
skipif mysql # not compatible
query I rowsort label-9388
SELECT - CAST ( + 94 AS INTEGER ) FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT 78 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1612
724
915
onlyif mysql # use DIV operator for integer division
query I rowsort label-9390
SELECT ALL + col1 DIV + 28 + - col1 * ( col0 ) * + col0 FROM tab0 AS cor0
----
-118822
-49533
-720808
skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + col1 / + 28 + - col1 * ( col0 ) * + col0 FROM tab0 AS cor0
----
-118822
-49533
-720808
query I rowsort
SELECT - + 94 * col0 * - col0 FROM tab0 AS cor0
----
115150
54144
744574
query I rowsort
SELECT col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col1 + - 21 FROM tab2 AS cor0
----
-4
10
38
query I rowsort
SELECT 71 * + col1 FROM tab1 AS cor0
----
1846
710
923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * cor0.col1 + 87 * - cor0.col1 + col2 col2 FROM tab2 AS cor0
----
-1151
104656
353849
query I rowsort
SELECT ALL + ( 89 ) * - col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9397
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - 47 + col0 * 32 FROM tab0 AS cor0
----
1073
2801
721
query I rowsort
SELECT ALL 69 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL col1 + col0 * - ( col0 + col0 * + col2 ) FROM tab0 AS cor0
----
-19498
-2353
-657352
query I rowsort
SELECT - 28 - - col0 FROM tab1
----
-25
36
52
skipif mysql # not compatible
query I rowsort
SELECT col1 - CAST ( ( col0 ) AS REAL ) * - col1 * - 46 AS col1 FROM tab2
----
-211633
-61761
-9951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 45 col2 FROM tab2
----
18
19
7
query I rowsort
SELECT + col2 * + 75 + col2 FROM tab1
----
4104
4332
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT ALL cor0.col1 - col1 DIV cor0.col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL cor0.col1 - col1 / cor0.col0 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT 16 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL - - col0 * - col2 * col1 + + 82 FROM tab0 cor0
----
-3313
-664036
-68030
query I rowsort
SELECT - 48 + - col0 AS col1 FROM tab0 AS cor0
----
-137
-72
-83
query I rowsort
SELECT ALL - + col2 + col0 * ( - col2 ) FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL col1 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - col1 + col2 * col2 FROM tab0 cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT DISTINCT + 36 DIV + cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT + 36 / + cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 25 AS REAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - cor0.col2 * + 89 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT DISTINCT + - col1 * col0 * 62 AS col0 FROM tab2 AS cor0
----
-13454
-285324
-83266
query I rowsort
SELECT ALL col2 + + col2 + + col0 * col2 AS col0 FROM tab0 cor0
----
37
7462
858
query I rowsort
SELECT ALL 32 * + col1 FROM tab1
----
320
416
832
query I rowsort
SELECT ALL + col1 * + 32 FROM tab0 AS cor0
----
2752
2912
3104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT col1 + - col2 * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9420
SELECT col1 + - col2 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT + 99 + 3 DIV col0 + + col1 AS col0 FROM tab1 AS cor0
----
109
112
126
skipif mysql # not compatible
query I rowsort label-9421
SELECT + 99 + 3 / col0 + + col1 AS col0 FROM tab1 AS cor0
----
109
112
126
query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT col1 * col1 + col1 * ( - col0 ) FROM tab1 AS cor0
----
-540
-871
598
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 90 * col2 AS col0 FROM tab2 cor0
----
2340
2430
3420
query I rowsort
SELECT + ( - col0 ) + col2 * - 85 AS col1 FROM tab2 AS cor0
----
-2288
-2302
-3309
query I rowsort
SELECT ALL col0 * + 31 * col0 AS col2 FROM tab1
----
126976
198400
279
query I rowsort
SELECT + 44 + col1 FROM tab2 AS cor0
----
103
61
75
query I rowsort
SELECT - + col2 * col0 + + 40 + col2 FROM tab1 AS cor0
----
-3551
-68
-7544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab0.col0 * + col1 col2 FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9433
SELECT - ( - col0 ) + CAST( - col2 AS SIGNED ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort label-9433
SELECT - ( - col0 ) + CAST ( - col2 AS INTEGER ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + 67 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL col0 + ( - col2 * - col2 ) FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL col2 + + 73 * col0 * col0 FROM tab0
----
42081
578315
89426
query I rowsort
SELECT + - 45 FROM tab1 AS cor0
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + tab2.col0 col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col2 * - ( ( tab1.col1 ) ) + + col1 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT - col1 * 64 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT col1 + col1 * + 51 * col1 FROM tab2
----
14756
177590
49042
query I rowsort
SELECT 5 - + 78 FROM tab0, tab0 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT - col1 * 69 - cor0.col1 * - ( - ( + col0 ) ) * + cor0.col1 AS col2 FROM tab0 cor0
----
-183438
-336008
-743288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9445
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 FROM tab1 cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 - + col0 * cor0.col2 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT + - col0 + - 82 AS col1 FROM tab2 AS cor0
----
-160
-161
-89
query I rowsort
SELECT DISTINCT - + col1 * col2 + - col1 FROM tab2 cor0
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9449
SELECT CAST( NULL AS SIGNED ) / 62 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9449
SELECT CAST ( NULL AS INTEGER ) / 62 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 43 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-53
-56
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 - col1 col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + - 47 + col1 FROM tab0 AS cor0
----
39
44
50
query I rowsort
SELECT - col0 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - + 58 AS col1 FROM tab2 cor0
----
-58
-58
-58
query I rowsort
SELECT cor0.col2 + + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - - col2 * cor0.col1 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
1274
1456
590
query I rowsort
SELECT + 0 + + col2 * - tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT DISTINCT col2 + col1 DIV - col0 - + col2 * - col2 FROM tab2
----
1482
702
752
skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT col2 + col1 / - col0 - + col2 * - col2 FROM tab2
----
1482
702
752
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT tab1.col2 * col2 DIV col2 + - col2 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9459
SELECT tab1.col2 * col2 / col2 + - col2 col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT DISTINCT + col1 DIV - col0 - col0 DIV col2 FROM tab0
----
-2
-3
-37
skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + col1 / - col0 - col0 / col2 FROM tab0
----
-2
-3
-37
query I rowsort
SELECT DISTINCT tab2.col1 - col2 * + col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT col1 + col0 + col1 AS col2 FROM tab0
----
196
229
271
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col2 + + col1 * col2 * col1 col0 FROM tab1
----
22720
36567
9853
query I rowsort
SELECT tab0.col1 * tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT - col2 + + col1 - + col0 AS col0 FROM tab1
----
-111
-163
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col2 * col0 + col0 * - col1 - col0 FROM tab0
----
-1296
-3395
-890
query I rowsort
SELECT col0 + col0 * - col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL col1 * - col1 - - col1 * col0 FROM tab2
----
-744
1054
1121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col1 FROM tab0
----
57
57
57
query I rowsort
SELECT - 47 FROM tab1, tab2 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + - col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL col0 + - 3 AS col0 FROM tab2
----
4
75
76
query I rowsort
SELECT + + col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT ALL - col0 + 93 AS col2 FROM tab2
----
14
15
86
query I rowsort
SELECT ALL 77 * tab1.col1 + col2 * - col0 + - col1 AS col2 FROM tab1
----
-2888
-6692
1814
query I rowsort
SELECT + 31 + - col1 * + col0 FROM tab2 AS cor0
----
-1312
-186
-4571
query I rowsort
SELECT - 32 * col1 AS col0 FROM tab1 AS cor0
----
-320
-416
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * col1 col0 FROM tab1 AS cor0
----
1534
590
767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - cor0.col0 col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + 83 * col2 AS col1 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT DISTINCT - + 68 AS col2 FROM tab2 AS cor0
----
-68
query I rowsort
SELECT ALL 48 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
6132
6289
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9487
SELECT ALL + col0 DIV col1 + col2 col0 FROM tab2 AS cor0
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + col0 / col1 + col2 col0 FROM tab2 AS cor0
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT DISTINCT + 38 * col0 * - col0 - + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1863
-231193
-237159
skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + 38 * col0 * - col0 - + col0 / col0 AS col0 FROM tab2 AS cor0
----
-1863
-231193
-237159
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 * - col0 ) NOT IN ( col0 * col1 * col0 )
----
query I rowsort
SELECT col2 FROM tab0 WHERE ( + col0 * + col2 ) >= - col0
----
1
33
82
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( col1 + + col2 + col2 * - cor0.col1 )
----
query I rowsort
SELECT tab0.col2 + tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL cor0.col1 * + col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT ALL col1 + + col1 DIV col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL col1 + + col1 / col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT - tab0.col1 + col2 * - col0 AS col2 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col1 * - col0 * - col1 + col2 AS col1 FROM tab2
----
22869
271544
6754
query I rowsort
SELECT tab2.col1 + col1 * - col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - col1 - col1 * col0 AS col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 AS col2 FROM tab0
----
2097
3396
8181
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < + col0
----
78
59
26
79
17
38
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT IN ( tab0.col2 / col1 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT + - col1 * + col2 + col0 DIV + col0 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-9502
SELECT + - col1 * + col2 + col0 / + col0 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 * col2 * col1 + + col0 AS col2 FROM tab1
----
119888
32554
75819
onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT ALL col0 + + col2 DIV + col2 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL col0 + + col2 / + col2 AS col1 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT - col2 + + col1 * col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9508
SELECT - col2 + + col1 * col0 / col0 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col0 * - col0 * - col1 FROM tab0 AS cor0
----
117600
48960
712890
query I rowsort
SELECT col1 * col0 - col1 * - cor0.col0 FROM tab0 AS cor0
----
16198
4128
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT DISTINCT + - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + - cor0.col0 / + col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + cor0.col2 * - col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT col2 + + col2 - + col1 * - col1 FROM tab0 cor0
----
7462
8445
9411
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + col0 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 col2 FROM tab2
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT col0 DIV + col2 + col0 AS col2 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-9518
SELECT col0 / + col2 + col0 AS col2 FROM tab1
----
3
65
80
query I rowsort
SELECT + col2 + tab0.col2 * col1 + - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - ( + col0 ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col0 + 56 FROM tab1
----
120
136
59
query I rowsort
SELECT col1 + - 29 FROM tab0 AS cor0
----
57
62
68
query I rowsort
SELECT + 93 * 46 * col0 FROM tab0 AS cor0
----
102672
149730
380742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9524
SELECT - col1 * - CAST( NULL AS SIGNED ) * ( - col0 * + 56 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9524
SELECT - col1 * - CAST ( NULL AS INTEGER ) * ( - col0 * + 56 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col0 FROM tab0, tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 34 + + col0 FROM tab0 AS cor0
----
123
58
69
query I rowsort
SELECT ALL + 63 * col2 AS col0 FROM tab0 cor0
----
2079
5166
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + cor0.col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + 65 + - 12 AS col1 FROM tab2 AS cor0
----
53
query I rowsort
SELECT ALL 59 * + col2 FROM tab0 cor0
----
1947
4838
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col2 + 86 FROM tab0 AS cor0
----
1175
6810
87
skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col2 + 86 FROM tab0 AS cor0
----
1175
6810
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT 37 DIV col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9532
SELECT 37 / col1 FROM tab1
----
1
2
3
query I rowsort
SELECT DISTINCT + tab1.col1 + tab1.col1 * ( - 55 * + col1 + - col1 ) FROM tab1
----
-37830
-5590
-9451
query I rowsort
SELECT - - 78 + + col0 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT ( - col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - cor0.col2 - col1 AS col1 FROM tab2 cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9537
SELECT ALL - + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - + col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col1 + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT DISTINCT + 12 + tab1.col1 DIV 90 FROM tab1
----
12
skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + 12 + tab1.col1 / 90 FROM tab1
----
12
query I rowsort
SELECT DISTINCT + 25 + + col2 FROM tab0 cor0
----
107
26
58
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL col0 + + 9 + cor0.col2 AS col0 FROM tab0 AS cor0
----
180
45
66
query I rowsort
SELECT DISTINCT + col2 * - 31 FROM tab2 AS cor0
----
-1178
-806
-837
query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab1 cor0
----
1
33
82
query I rowsort
SELECT + col1 * + ( + col0 ) + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + col2 + + col0 - cor0.col1 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT - col2 + col1 + 43 FROM tab1 cor0
----
-4
-40
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9550
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9550
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - cor0.col2 ) + col0 col2 FROM tab1 cor0
----
-25
-3
17
query I rowsort
SELECT - - col2 * col1 + - col0 * cor0.col2 - + col2 AS col2 FROM tab1 AS cor0
----
-3135
-6528
1188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9553
SELECT + + col2 + + CAST( cor0.col0 * col2 AS SIGNED ) - col0 * + col1 FROM tab0 AS cor0
----
-1239
-3359
-719
skipif mysql # not compatible
query I rowsort label-9553
SELECT + + col2 + + CAST ( cor0.col0 * col2 AS INTEGER ) - col0 * + col1 FROM tab0 AS cor0
----
-1239
-3359
-719
query I rowsort
SELECT - - 63 * col0 + + col1 FROM tab1 AS cor0
----
215
4042
5053
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9556
SELECT ALL + CAST( NULL AS SIGNED ) - col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - 67 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT + 69 + + col0 * col1 FROM tab1 AS cor0
----
1109
147
709
query I rowsort
SELECT + + 59 + col0 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT 87 * - col0 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT ALL col1 * col0 + col1 AS col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL - col1 * tab0.col1 * + ( + col2 * - col1 ) FROM tab0
----
20989848
61792822
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT + cor0.col1 DIV 3 - ( col0 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-3
28
29
skipif mysql # not compatible
query I rowsort label-9563
SELECT + cor0.col1 / 3 - ( col0 ) / col2 AS col2 FROM tab0 AS cor0
----
-3
28
29
query I rowsort
SELECT ALL - tab1.col2 + + col0 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT ALL - col0 + + col0 DIV + col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - col0 + + col0 / + col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab1
----
-60
-60
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab1
----
-80
query I rowsort
SELECT - + 53 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query I rowsort
SELECT DISTINCT + col0 * - col2 + ( col0 + col2 ) AS col2 FROM tab0 AS cor0
----
-7127
-735
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT - col1 + col2 * CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9570
SELECT - col1 + col2 * CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 88 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1496
2728
5192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9573
SELECT ALL + 32 * col2 DIV col1 col0 FROM tab0 AS cor0
----
0
12
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + 32 * col2 / col1 col0 FROM tab0 AS cor0
----
0
12
28
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + - ( - cor0.col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-100
-139
-193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) + 1 col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col2 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT ALL + - col1 DIV col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + - col1 / col1 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * - col2 col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - col1 * col2 * + col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + + col0 * ( col1 ) + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 + + 3 AS col2 FROM tab2 AS cor0
----
-14
-28
-56
query I rowsort
SELECT - col1 * col2 + + col1 * - col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT ( col2 ) * cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - 23 * + ( col0 ) + 85 FROM tab0
----
-1962
-467
-720
query I rowsort
SELECT ALL 78 + - 9 AS col2 FROM tab1
----
69
69
69
query I rowsort
SELECT - col1 * col2 + + col2 + - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT ALL CAST( col2 AS SIGNED ) + col0 DIV - col1 col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL CAST ( col2 AS INTEGER ) + col0 / - col1 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT 5 + + col2 FROM tab1
----
101
59
62
query I rowsort
SELECT ALL ( 3 ) + + tab1.col2 FROM tab1
----
57
60
99
query I rowsort
SELECT DISTINCT - - 36 AS col2 FROM tab2 AS cor0
----
36
query I rowsort
SELECT ALL 18 + 11 FROM tab2
----
29
29
29
query I rowsort
SELECT - + 6 + col2 AS col2 FROM tab0 AS cor0
----
-5
27
76
query I rowsort
SELECT ALL - 56 + - cor0.col1 AS col2 FROM tab2 cor0
----
-115
-73
-87
query I rowsort
SELECT DISTINCT - 57 - + col2 FROM tab2 AS cor0
----
-83
-84
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT ALL col0 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL col0 / - col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) * + col1 + - col0 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - + 54 * cor0.col2 FROM tab2 AS cor0
----
-1404
-1458
-2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 + - 61 col2 FROM tab1 cor0
----
-223
-3709
-7741
query I rowsort
SELECT ALL + + 56 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1515
-1543
-2145
onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT DISTINCT + + cor0.col2 * col2 DIV + col1 + 77 * + col2 * col1 - col0 * col2 * + 98 AS col1 FROM tab2 AS cor0
----
-244370
-80615
45950
skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + + cor0.col2 * col2 / + col1 + 77 * + col2 * col1 - col0 * col2 * + 98 AS col1 FROM tab2 AS cor0
----
-244370
-80615
45950
query I rowsort
SELECT ALL - ( col2 ) - ( col0 * col2 ) FROM tab1 AS cor0
----
-216
-3705
-7776
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT col0 + - 84 * - col2 AS col1 FROM tab2
----
2262
2275
3271
query I rowsort
SELECT - + col2 * ( col1 ) * - cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - - col2 * col2 + + col0 FROM tab0 cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-9607
SELECT + col1 DIV + col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9607
SELECT + col1 / + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + ( + col2 ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT col2 DIV 3 AS col1 FROM tab0 AS cor0
----
0
11
27
skipif mysql # not compatible
query I rowsort label-9609
SELECT col2 / 3 AS col1 FROM tab0 AS cor0
----
0
11
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9610
SELECT DISTINCT col1 * - col0 + - col1 DIV - 64 FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT col1 * - col0 + - col1 / - 64 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col2 * + col1 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-2356
-494
648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9613
SELECT ALL - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL cor0.col1 * 54 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT DISTINCT - - cor0.col1 * 34 + + col1 AS col2 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT 5 * 84 AS col1 FROM tab1 AS cor0
----
420
420
420
query I rowsort
SELECT ALL + col0 + col2 * - 17 - col2 FROM tab2
----
-390
-479
-605
onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT col0 + - col0 DIV col0 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-9618
SELECT col0 + - col0 / col0 col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT col1 * CAST( - col2 AS SIGNED ) + + col2 * col0 col1 FROM tab2 AS cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9619
SELECT col1 * CAST ( - col2 AS INTEGER ) + + col2 * col0 col1 FROM tab2 AS cor0
----
-648
2356
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT + col0 DIV col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9620
SELECT + col0 / col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - col0 * - ( - col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col1 + + 0 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col2 * 43 + cor0.col0 FROM tab2 AS cor0
----
1168
1196
1713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + 63 * col1 col0 FROM tab0
----
13031
6146
6210
onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT ALL + col2 DIV tab2.col0 + + col0 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + col2 / tab2.col0 + + col0 FROM tab2
----
10
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9626
SELECT CAST( NULL AS SIGNED ) + ( tab2.col2 ) + - 2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9626
SELECT CAST ( NULL AS INTEGER ) + ( tab2.col2 ) + - 2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9628
SELECT - col2 * CAST( col1 AS SIGNED ) + - col0 * col0 col2 FROM tab0 AS cor0
----
-1322
-15383
-3414
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9628
SELECT - col2 * CAST ( col1 AS INTEGER ) + - col0 * col0 col2 FROM tab0 AS cor0
----
-1322
-15383
-3414
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT DISTINCT col0 * col0 + 83 * - col2 DIV col2 + + col0 FROM tab0 cor0
----
1177
517
7927
skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT col0 * col0 + 83 * - col2 / col2 + + col0 FROM tab0 cor0
----
1177
517
7927
query I rowsort
SELECT + col1 * 34 + + 29 FROM tab2 AS cor0
----
1083
2035
607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + col1 col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + col1 + tab0.col2 * col2 FROM tab0 WHERE NULL = col2
----
query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT col1 + + col2 * - col0 AS col1 FROM tab0
----
-706
-7207
62
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( - col1 + col0 * col1 / tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col1 FROM tab0
----
164
2
66
query I rowsort
SELECT col0 FROM tab1 WHERE NULL >= col1 - - col1
----
query I rowsort
SELECT col1 - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col1 + + col1 AS col1 FROM tab2 WHERE + col1 >= col2
----
118
62
query I rowsort
SELECT + col0 + col0 * - col2 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - + 29 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT + col1 + - col0 * - 3 + - col2 FROM tab1
----
-19
145
157
query I rowsort
SELECT + - col2 * + col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT ALL - - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL - - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - 62 + - col2 AS col1 FROM tab2 cor0
----
-100
-88
-89
query I rowsort
SELECT + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT tab1.col1 + + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT + col1 + - tab2.col2 + - 59 FROM tab2
----
-26
-55
-80
query I rowsort
SELECT DISTINCT col2 - - 1 FROM tab1
----
55
58
97
query I rowsort
SELECT col0 + ( 12 ) FROM tab0 AS cor0
----
101
36
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 64 * col2 col2 FROM tab0 AS cor0
----
2088
29
5159
query I rowsort
SELECT col1 * 23 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT + - col1 + + col1 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9656
SELECT + CAST( NULL AS SIGNED ) * cor0.col2 + - col2 / col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9656
SELECT + CAST ( NULL AS INTEGER ) * cor0.col2 + - col2 / col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 63 FROM tab1 cor0
----
117
120
159
query I rowsort
SELECT + - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 94 * col1 AS col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT - 27 * + col2 AS col2 FROM tab2 AS cor0
----
-1026
-702
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * ( tab0.col0 + - ( col1 ) ) col2 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT col0 + - 4 FROM tab2
----
3
74
75
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT + col0 + - ( col2 ) * col2 DIV ( col1 ) FROM tab0 AS cor0
----
12
16
35
skipif mysql # not compatible
query I rowsort label-9664
SELECT + col0 + - ( col2 ) * col2 / ( col1 ) FROM tab0 AS cor0
----
12
16
35
query I rowsort
SELECT ALL col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col0 * 18 * + 10 FROM tab1 AS cor0
----
11520
14400
540
query I rowsort
SELECT cor0.col1 * - ( - col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL 35 + + 0 AS col2 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL - col0 * - col0 + - col1 * + ( + col1 ) FROM tab1 cor0
----
-667
3996
6231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - cor0.col0 col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9671
SELECT DISTINCT - col0 DIV - col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - col0 / - col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT cor0.col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col0 + 85 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT ALL - + 17 + - col2 AS col1 FROM tab1 AS cor0
----
-113
-71
-74
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col0 - - 34 FROM tab0 AS cor0
----
-2030
-3361
-8065
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab2 AS cor0
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT DISTINCT col2 DIV col1 + - cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT col2 / col1 + - cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col0 * col0 col2 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT DISTINCT - col0 DIV + col2 - - col0 * + col0 FROM tab0 AS cor0
----
1190
576
7920
skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - col0 / + col2 - - col0 * + col0 FROM tab0 AS cor0
----
1190
576
7920
query I rowsort
SELECT DISTINCT 41 + - col2 - col2 FROM tab0
----
-123
-25
39
query I rowsort
SELECT DISTINCT + 89 * col0 AS col2 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9682
SELECT + - col0 * col0 / - ( ( col2 ) + - CAST( NULL AS SIGNED ) * - col1 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9682
SELECT + - col0 * col0 / - ( ( col2 ) + - CAST ( NULL AS INTEGER ) * - col1 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + 66 + col0 * - 80 * col2 FROM tab0 AS cor0
----
-2734
-583774
-63294
query I rowsort
SELECT DISTINCT - - col2 * 34 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT ALL + col1 + + 89 * col0 FROM tab2 cor0
----
654
7001
7048
query I rowsort
SELECT - + col1 + col2 + + 24 AS col0 FROM tab1 cor0
----
107
52
71
query I rowsort
SELECT DISTINCT col0 * col1 + + col1 * col0 - tab0.col2 FROM tab0
----
16116
4095
6789
query I rowsort
SELECT 59 * + col1 FROM tab2
----
1003
1829
3481
query I rowsort
SELECT 95 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0, tab0 cor0, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT ALL 55 - col1 AS col2 FROM tab0
----
-31
-36
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT + ( + col0 ) * tab1.col0 DIV col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9693
SELECT + ( + col0 ) * tab1.col0 / col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col1 * + col1 + col0 * + col2 * 57 FROM tab2 AS cor0
----
11734
119077
171403
query I rowsort
SELECT DISTINCT col0 * ( - 46 ) AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT + col0 * + 27 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9701
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9703
SELECT - col1 + CAST( + col0 + - col2 AS SIGNED ) * 29 FROM tab2
----
-611
1172
1449
skipif mysql # not compatible
query I rowsort label-9703
SELECT - col1 + CAST ( + col0 + - col2 AS INTEGER ) * 29 FROM tab2
----
-611
1172
1449
query I rowsort
SELECT col2 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - tab2.col1 * ( - col0 * tab2.col1 ) + - col0 AS col1 FROM tab2
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT ALL - cor0.col2 DIV 85 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - cor0.col2 / 85 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col1 + - col2 + - col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col0 + - 50 AS col2 FROM tab2
----
-43
28
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 * - col1 col1 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT ALL col0 * - col1 * col2 + - 57 + - col1 * - col1 * col1 FROM tab1 AS cor0
----
-35537
-97700
13307
query I rowsort
SELECT 23 AS col0 FROM tab0 AS cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT ALL 56 DIV - col2 - + cor0.col0 FROM tab1 AS cor0
----
-4
-64
-80
skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 56 / - col2 - + cor0.col0 FROM tab1 AS cor0
----
-4
-64
-80
query I rowsort
SELECT ALL - 80 * cor0.col0 - + 77 FROM tab0 AS cor0
----
-1997
-2877
-7197
query I rowsort
SELECT DISTINCT 0 * + col1 + + col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT ( 31 ) DIV col1 + 88 AS col2 FROM tab0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-9715
SELECT ( 31 ) / col1 + 88 AS col2 FROM tab0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * - 99 col1 FROM tab1
----
-1287
-2574
-990
query I rowsort
SELECT + cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - - cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + 18 + - col0 * - 63 + col2 FROM tab0 AS cor0
----
1563
2224
5707
query I rowsort
SELECT ALL + col2 * col2 + 5 AS col2 FROM tab0 AS cor0
----
1094
6
6729
query I rowsort
SELECT ALL + 67 * cor0.col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-138288
-227465
-542633
query I rowsort
SELECT DISTINCT col0 + cor0.col0 * - 60 AS col2 FROM tab1 AS cor0
----
-177
-3776
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT DISTINCT - + 29 + col1 DIV col1 AS col0 FROM tab0 cor0
----
-28
skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - + 29 + col1 / col1 AS col0 FROM tab0 cor0
----
-28
query I rowsort
SELECT ALL + + col1 * + cor0.col1 - ( - col2 ) FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col1 * - col0 * + col1 col0 FROM tab2 AS cor0
----
-22910
-271596
-6734
query I rowsort
SELECT DISTINCT col2 + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + - ( col0 ) + col2 * 7 FROM tab2 AS cor0
----
104
182
187
query I rowsort
SELECT DISTINCT - 57 + col0 * 49 * - col2 AS col1 FROM tab1 AS cor0
----
-178809
-376377
-7995
query I rowsort
SELECT ALL + 63 * col2 * + 9 + + cor0.col2 * col2 FROM tab1 AS cor0
----
33534
35568
63648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9730
SELECT DISTINCT - CAST( 83 AS SIGNED ) - + col2 * + 84 FROM tab0 AS cor0
----
-167
-2855
-6971
skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - CAST ( 83 AS INTEGER ) - + col2 * + 84 FROM tab0 AS cor0
----
-167
-2855
-6971
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col0 col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - ( - 71 ) * - col0 AS col1 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT - - col0 + - cor0.col0 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col1 + + cor0.col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + - ( + col2 ) * + 82 + col0 * cor0.col2 + 5 FROM tab0 AS cor0
----
-1909
-42
579
query I rowsort
SELECT ALL col0 + + col2 * col2 * - col2 FROM tab0
----
-35913
-551279
34
query I rowsort
SELECT - col0 - - col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT col2 * + col2 + col0 DIV - cor0.col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-9738
SELECT col2 * + col2 + col0 / - cor0.col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - ( 19 ) + col2 AS col2 FROM tab2
----
19
7
8
query I rowsort
SELECT DISTINCT - - col1 + + 0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9741
SELECT - col1 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9741
SELECT - col1 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - - col0 * - cor0.col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT - col2 DIV + 78 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9744
SELECT - col2 / + 78 AS col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9745
SELECT DISTINCT - col0 DIV col2 + col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - col0 / col2 + col2 FROM tab0 AS cor0
----
-34
33
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT ALL - col2 * cor0.col2 + col1 DIV + col1 FROM tab2 AS cor0
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - col2 * cor0.col2 + col1 / + col1 FROM tab2 AS cor0
----
-1443
-675
-728
query I rowsort
SELECT cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 * 41 AS col0 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT ALL col1 * 75 FROM tab2
----
1275
2325
4425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT CAST( NULL AS SIGNED ) + + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9750
SELECT CAST ( NULL AS INTEGER ) + + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + ( 17 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + - 95 * + col0 FROM tab2 AS cor0
----
-665
-7410
-7505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + ( - col0 ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 59 AS REAL ) AS col2 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + 9 FROM tab1 cor0
----
9
9
9
query I rowsort
SELECT + 54 AS col2 FROM tab2 AS cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9760
SELECT - CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif mysql # not compatible
query I rowsort label-9760
SELECT - CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ( 38 ) FROM tab1
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9762
SELECT - + 24 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-9762
SELECT - + 24 / - ( col1 ) col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT ALL + col0 * col0 - 65 AS col1 FROM tab1 cor0
----
-56
4031
6335
query I rowsort
SELECT cor0.col2 + 51 * col0 AS col1 FROM tab0 cor0
----
1257
1786
4621
query I rowsort
SELECT cor0.col1 * 78 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 226f7bda3805102b1cfe16bbcd69bedc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT ALL - tab0.col0 * - 25 + 95 * - col2 DIV CAST( - col2 AS SIGNED ) FROM tab0
----
2320
695
970
skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - tab0.col0 * - 25 + 95 * - col2 / CAST ( - col2 AS INTEGER ) FROM tab0
----
2320
695
970
query I rowsort
SELECT + tab0.col2 + - col1 * col2 * - col1 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
10
13
26
query I rowsort
SELECT cor0.col1 * - 28 + - col0 FROM tab0 AS cor0
----
-2432
-2637
-2751
query I rowsort
SELECT ALL + - 2 + col1 AS col2 FROM tab0 AS cor0
----
84
89
95
query I rowsort
SELECT DISTINCT - 79 * col1 - col0 FROM tab1 AS cor0
----
-1107
-2057
-854
onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT DISTINCT - col0 DIV col0 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - col0 / col0 FROM tab2 cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 - + cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col2 * col2 + - 88 * + col1 * - col1 FROM tab0 AS cor0
----
649759
722004
827991
query I rowsort
SELECT + ( col0 ) - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + 52 - 82 AS col0 FROM tab2
----
-30
-30
-30
query I rowsort
SELECT 40 - col1 FROM tab2 AS cor0
----
-19
23
9
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL + 32 * + col1 * - ( 78 ) + tab1.col0 + col0 FROM tab1
----
-24832
-32288
-64890
query I rowsort
SELECT DISTINCT 85 * + ( + cor0.col0 ) AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT ALL - col1 * col1 + col0 * col2 + + col2 * col2 DIV 7 FROM tab0 AS cor0
----
-23
-6449
-9374
skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - col1 * col1 + col0 * col2 + + col2 * col2 / 7 FROM tab0 AS cor0
----
-23
-6449
-9374
query I rowsort
SELECT DISTINCT - 33 * cor0.col2 - - col1 FROM tab2 AS cor0
----
-1237
-799
-860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT col0 + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9784
SELECT col0 + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + col0 + - 76 * + 1 + col2 FROM tab2 AS cor0
----
140
1978
2964
query I rowsort
SELECT + + col1 * col2 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
6887
7618
886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col2 FROM tab0 cor0
----
-70
query I rowsort
SELECT ALL + 40 * cor0.col0 + + 15 * 92 AS col1 FROM tab2 AS cor0
----
1660
4500
4540
onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT - tab0.col1 DIV + 8 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f6e637f03a2e5b35bdb6a0bd7f3276ce
skipif mysql # not compatible
query I rowsort label-9789
SELECT - tab0.col1 / + 8 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f6e637f03a2e5b35bdb6a0bd7f3276ce
query I rowsort
SELECT DISTINCT + 57 FROM tab2, tab2 AS cor0
----
57
query I rowsort
SELECT cor0.col1 * 17 AS col1 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT - ( 80 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT DISTINCT - - ( + ( + cor0.col2 ) ) DIV ( - col1 ) + col0 AS col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - - ( + ( + cor0.col2 ) ) / ( - col1 ) + col0 AS col1 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) + - ( col1 ) FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL - col2 + col2 - cor0.col1 * + 53 AS col0 FROM tab2 AS cor0
----
-1643
-3127
-901
query I rowsort
SELECT - + ( - cor0.col2 ) - + col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9800
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 32 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1566
-678
-869
query I rowsort
SELECT ALL + col0 - - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + ( - ( - col2 ) ) + 92 FROM tab2 AS cor0
----
118
119
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT DISTINCT + col2 DIV - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + col2 / - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-34
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col0 FROM tab0 AS cor0
----
-99
query I rowsort
SELECT DISTINCT - - ( - col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9807
SELECT ALL - + CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - + CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT DISTINCT + col0 * - col1 + col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + col0 * - col1 + col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT DISTINCT + - col0 DIV - 30 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT + - col0 / - 30 FROM tab0 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT CAST( NULL AS SIGNED ) / ( + col1 + - col1 * 26 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9810
SELECT CAST ( NULL AS INTEGER ) / ( + col1 + - col1 * 26 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT col1 + - col2 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-9811
SELECT col1 + - col2 / cor0.col1 AS col0 FROM tab1 AS cor0
----
24
5
6
query I rowsort
SELECT DISTINCT - 67 * col1 AS col0 FROM tab2
----
-1139
-2077
-3953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9813
SELECT col2 * + col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9813
SELECT col2 * + col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + col1 * 4 FROM tab1 AS cor0
----
148
158
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + cor0.col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 - + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col2 + + col2 * col0 AS col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 AS col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT ALL 69 DIV + col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL 69 / + col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + 29 - + col2 * + col0 AS col1 FROM tab1
----
-133
-3619
-7651
query I rowsort
SELECT 75 + + tab0.col2 FROM tab0
----
108
157
76
query I rowsort
SELECT + 93 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9823
SELECT - CAST( col1 AS SIGNED ) FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9823
SELECT - CAST ( col1 AS INTEGER ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + col0 * + 4 AS col1 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT DISTINCT + cor0.col2 + - 1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col2 + col0 + col0 AS col0 FROM tab0 cor0
----
260
71
81
query I rowsort
SELECT - col1 + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-106
-55
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9828
SELECT ALL - col1 + CAST( col2 AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
0
611793
93568
skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - col1 + CAST ( col2 AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
0
611793
93568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9829
SELECT col1 * + CAST( + ( + cor0.col1 ) * ( + col1 ) AS SIGNED ) + col0 + CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9829
SELECT col1 * + CAST ( + ( + cor0.col1 ) * ( + col1 ) AS INTEGER ) + col0 + CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + 95 * - col0 + - col1 FROM tab2 AS cor0
----
-17986
-192719
-285207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - col0 * 43 + ( col0 ) FROM tab2 AS cor0
----
308
3432
3476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT ALL - - cor0.col0 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - - cor0.col0 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 - + 89 * col0 col0 FROM tab0 AS cor0
----
-2308
-3309
-8103
query I rowsort
SELECT DISTINCT cor0.col2 + 16 AS col1 FROM tab0 cor0
----
17
49
98
query I rowsort
SELECT - 87 AS col0 FROM tab1
----
-87
-87
-87
query I rowsort
SELECT - col1 + + col1 * col1 FROM tab0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT ALL - - col0 + - col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - - col0 + - col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
7
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT DISTINCT + col1 * - col1 + + col2 * col0 + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-513
3549
7512
skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + col1 * - col1 + + col2 * col0 + col1 / cor0.col1 FROM tab1 AS cor0
----
-513
3549
7512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 19 + 30 col0 FROM tab0 AS cor0
----
-1528
-597
11
query I rowsort
SELECT DISTINCT 64 * col1 AS col1 FROM tab1
----
1664
640
832
query I rowsort
SELECT tab2.col1 + + col2 * col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT + 32 * - col2 AS col1 FROM tab0 AS cor0
----
-1056
-2624
-32
query I rowsort
SELECT - cor1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9847
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT - + cor0.col1 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + col2 * col0 * - col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - + col2 * ( 72 ) FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT - cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col0 * 73 FROM tab0 AS cor0
----
-1752
-2555
-6497
query I rowsort
SELECT DISTINCT - 32 * - 34 * + col0 AS col2 FROM tab2 AS cor0
----
7616
84864
85952
query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + cor1.col0 * + cor0.col1 + 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6c6a3936661940c8fa51757fbc35408d
query I rowsort
SELECT DISTINCT ( 31 ) + + cor0.col0 * + 94 FROM tab2 cor0
----
689
7363
7457
query I rowsort
SELECT + 92 * 52 + col1 AS col1 FROM tab0 AS cor0
----
4870
4875
4881
query I rowsort
SELECT - ( 18 ) + col0 AS col0 FROM tab2 AS cor0
----
-11
60
61
query I rowsort
SELECT + - 57 + col0 AS col0 FROM tab0 cor0
----
-22
-33
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT - ( 75 ) DIV - col2 AS col1 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9860
SELECT - ( 75 ) / - col2 AS col1 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT ( 88 ) * cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT - + ( 13 ) + col2 * col1 FROM tab2 AS cor0
----
1521
633
824
query I rowsort
SELECT ALL col2 * 4 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT + cor0.col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + col1 * + col1 + cor0.col0 * cor0.col1 + + col0 FROM tab0 AS cor0
----
12839
16469
9484
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * + cor0.col0 col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9867
SELECT + - cor0.col1 + - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9867
SELECT + - cor0.col1 + - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + col1 * col1 + 49 AS col0 FROM tab1 cor0
----
149
218
725
query I rowsort
SELECT - col0 * + col2 * - 11 FROM tab1 cor0
----
1782
40128
84480
query I rowsort
SELECT DISTINCT - + 37 * col0 + - ( 63 ) * + col0 FROM tab0 cor0
----
-2400
-3500
-8900
query I rowsort
SELECT ALL + col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 * col1 + - col2 FROM tab2
----
-1482
-605
-857
query I rowsort
SELECT ALL - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT ALL + 63 + 74 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3da972573ade226d84f9191d39b85e4a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT DISTINCT - cor0.col1 DIV 56 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-1
0
skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - cor0.col1 / 56 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9878
SELECT - col1 DIV - ( + col1 ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9878
SELECT - col1 / - ( + col1 ) FROM tab2
----
1
1
1
query I rowsort
SELECT + 16 + 36 AS col2 FROM tab1 cor0
----
52
52
52
query I rowsort
SELECT 14 * + ( - col1 ) AS col0 FROM tab0
----
-1204
-1274
-1358
query I rowsort
SELECT - col0 * 13 * col1 AS col0 FROM tab1
----
-1014
-13520
-8320
query I rowsort
SELECT ( - ( tab0.col2 ) + tab0.col2 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT tab1.col2 * 63 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT DISTINCT - + col2 * col0 + col2 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
-127488
-36138
-75978
query I rowsort
SELECT + + 23 FROM tab2 cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + 86 AS REAL ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9888
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + + col1 * - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + + col1 * - col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + col0 col0 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT ALL + 45 + - 56 * + cor0.col1 AS col2 FROM tab2 cor0
----
-1691
-3259
-907
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT ALL CAST( - 63 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL CAST ( - 63 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT 45 + - col0 AS col1 FROM tab2 AS cor0
----
-33
-34
38
query I rowsort
SELECT DISTINCT + cor0.col0 + - 71 FROM tab1 AS cor0
----
-68
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 5 col0 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + ( + ( col2 ) ) * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT CAST( - 16 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-16
-16
-16
skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( - 16 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT - col0 DIV - 59 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9899
SELECT - col0 / - 59 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab0 AS cor0, tab1, tab1 cor1
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9901
SELECT CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-9901
SELECT CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL + tab2.col1 * 25 FROM tab2
----
1475
425
775
onlyif mysql # use DIV operator for integer division
query I rowsort label-9903
SELECT DISTINCT - - col1 DIV col0 FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - - col1 / col0 FROM tab1 cor0
----
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT + col0 + CAST( - 22 AS SIGNED ) FROM tab2 AS cor0
----
-15
56
57
skipif mysql # not compatible
query I rowsort label-9904
SELECT + col0 + CAST ( - 22 AS INTEGER ) FROM tab2 AS cor0
----
-15
56
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9905
SELECT DISTINCT - col1 * col0 + - col0 * col0 + + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - col1 * col0 + - col0 * col0 + + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 * - col1 + + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT ALL + + col1 * col1 AS col0 FROM tab1 cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + tab2.col1 * + 3 col0 FROM tab2
----
13
151
66
query I rowsort
SELECT - col2 * - ( + 25 ) + col0 * + col1 FROM tab1
----
1428
2065
3440
query I rowsort
SELECT ALL col2 * + col2 + cor0.col1 * + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1717
1771
4183
query I rowsort
SELECT ALL col1 * + col1 + col2 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9912
SELECT ALL + col0 DIV col1 + - ( col2 ) * col1 FROM tab1 AS cor0
----
-1242
-1404
-564
skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + col0 / col1 + - ( col2 ) * col1 FROM tab1 AS cor0
----
-1242
-1404
-564
query I rowsort
SELECT ALL + col0 * col1 + + col2 * + col1 FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9914
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9914
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9915
SELECT col2 DIV col1 + - col2 * col1 AS col1 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-9915
SELECT col2 / col1 + - col2 * col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 * - 58 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT - col2 * - 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT 43 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT DISTINCT + 69 - + col1 DIV - col2 FROM tab1 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + 69 - + col1 / - col2 FROM tab1 AS cor0
----
69
query I rowsort
SELECT DISTINCT - col2 * 80 + - col1 FROM tab1 AS cor0
----
-4346
-4570
-7693
query I rowsort
SELECT - cor0.col1 * - ( cor1.col2 ) FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 65a4933846a29192b3ccaeabd5632157
query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab1, tab0 AS cor0
----
88
query I rowsort
SELECT - 38 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to dc3731b6ce8b1f8ecf6042af8e1c4df1
query I rowsort
SELECT DISTINCT 48 * ( + col1 ) + ( - col1 ) * col1 FROM tab0 AS cor0
----
-3268
-3913
-4753
query I rowsort
SELECT ALL + col1 + + col0 * col0 FROM tab0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT ALL + col2 * + col1 DIV col1 + col2 AS col0 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + col2 * + col1 / col1 + col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL col1 + col2 + 28 * col2 FROM tab2
----
1119
813
814
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9931
SELECT - - cor0.col0 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9931
SELECT - - cor0.col0 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * col0 * 66 FROM tab2 AS cor0
----
3234
401544
411906
query I rowsort
SELECT DISTINCT + - 53 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
4558
4823
5141
onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT ALL + + 14 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
14
skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + + 14 / col2 AS col2 FROM tab0 AS cor0
----
0
0
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col1 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT ALL - - ( col1 ) + - ( - ( - col0 ) ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col1 * col0 * + 28 FROM tab0 AS cor0
----
226772
57792
95060
query I rowsort
SELECT ALL - col2 * cor0.col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9939
SELECT + cor0.col2 + + CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9939
SELECT + cor0.col2 + + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9940
SELECT - col0 * - CAST( NULL AS SIGNED ) + + col1 * col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9940
SELECT - col0 * - CAST ( NULL AS INTEGER ) + + col1 * col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT col0 * 97 + + col0 FROM tab1 cor0
----
294
6272
7840
query I rowsort
SELECT + cor0.col0 * 54 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT DISTINCT ( + col1 ) * 97 + - col0 * + col1 AS col0 FROM tab1
----
221
2444
330
query I rowsort
SELECT col1 + - col2 + col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - cor0.col0 * + col0 + 27 AS col2 FROM tab0 AS cor0
----
-1198
-549
-7894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab0.col0 * col2 + + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL - col0 * - col1 + tab0.col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL > NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND ( NULL )
----
query I rowsort
SELECT col1 * col0 + + col1 * col2 AS col1 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT + 64 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - tab1.col0 + 88 FROM tab1, tab1 AS cor0
----
9 values hashing to bc37c6f45ee62063c02103904a4d82f3
query I rowsort
SELECT - col0 * + col0 - col1 FROM tab0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-9957
SELECT col0 DIV - col0 + - col0 * tab2.col2 AS col2 FROM tab2
----
-190
-2029
-3003
skipif mysql # not compatible
query I rowsort label-9957
SELECT col0 / - col0 + - col0 * tab2.col2 AS col2 FROM tab2
----
-190
-2029
-3003
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( col1 + col0 ) AND NULL
----
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + tab2.col1 + col2 * - col2 + - col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( col0 + col2 ) = col2 * - col1
----
query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL > ( + col2 + - col2 * col1 / - col2 )
----
query I rowsort
SELECT ALL - col2 - + col1 AS col1 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT col2 DIV + col0 + col0 AS col0 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-9964
SELECT col2 / + col0 + col0 AS col0 FROM tab2
----
10
78
79
query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( col0 ) BETWEEN col2 * + col2 AND col0 + - col2 + + col1
----
35
query I rowsort
SELECT ALL col1 * + col0 * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col0 + + col2 * col1 / + col1 AS col2 FROM tab1 WHERE NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col2 * col2 + + col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT tab0.col2 * col2 AS col2 FROM tab0 WHERE ( + col1 * col0 ) > col2
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9971
SELECT - tab1.col0 - col2 DIV + col2 AS col0 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-9971
SELECT - tab1.col0 - col2 / + col2 AS col0 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col1 IN ( col1 )
----
7
78
79
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col0
----
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 AS col2 FROM tab2
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + col0 col1 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 + col2 col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col1 ) AND + col1 + col0
----
query I rowsort
SELECT - col0 * - col0 * - col0 + col1 AS col2 FROM tab1
----
-1
-262134
-511987
onlyif mysql # use DIV operator for integer division
query I rowsort label-9978
SELECT ALL - col2 + col2 + col0 DIV col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - col2 + col2 + col0 / col1 AS col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT + col2 * col0 + + col0 DIV - tab0.col2 + col2 AS col0 FROM tab0
----
1
7379
825
skipif mysql # not compatible
query I rowsort label-9979
SELECT + col2 * col0 + + col0 / - tab0.col2 + col2 AS col0 FROM tab0
----
1
7379
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT ALL + tab1.col0 DIV col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + tab1.col0 / col2 FROM tab1
----
0
0
1
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col1 * col0 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT ALL col2 DIV tab1.col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col2 / tab1.col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT + col2 + - col2 + + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT - col1 * - col1 + col1 + col0 * col0 * + col0 AS col1 FROM tab2
----
1335
478092
493345
query I rowsort
SELECT ( + col2 + tab1.col1 ) * col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT DISTINCT - col2 - - tab2.col1 * col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT col0 - - ( - col0 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - col0 * tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL 67 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT 96 + + cor0.col1 FROM tab1 AS cor0
----
106
109
122
query I rowsort
SELECT + 62 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT col1 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + + col2 col1 FROM tab0 AS cor0
----
-16
16
65
query I rowsort
SELECT - - 60 + + col2 FROM tab1 cor0
----
114
117
156
query I rowsort
SELECT + + cor0.col0 + - col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - - col2 + + col0 * + col0 FROM tab0 AS cor0
----
1226
609
8003